/* WXP Store Locator VF - frontend styles */

.wxp-sl-root {
	--wxp-sl-marker: #171716;
	--wxp-sl-border: #e6e4e0;
	--wxp-sl-muted: #6b6b67;
	--wxp-sl-bg: #ffffff;
	--wxp-sl-active: #f6f5f3;
	font-family: inherit;
	color: #171716;
	box-sizing: border-box;
}
.wxp-sl-root *,
.wxp-sl-root *::before,
.wxp-sl-root *::after { box-sizing: border-box; }

.wxp-sl-wrapper {
	display: flex;
	width: 100%;
	height: var(--wxp-sl-height, 640px);
	border: 1px solid var(--wxp-sl-border);
	background: var(--wxp-sl-bg);
	overflow: hidden;
}

/* ---- List pane ---- */
.wxp-sl-list-container {
	display: flex;
	flex-direction: column;
	width: 360px;
	min-width: 300px;
	max-width: 40%;
	border-right: 1px solid var(--wxp-sl-border);
	background: var(--wxp-sl-bg);
}
.wxp-sl-list-header {
	padding: 16px;
	border-bottom: 1px solid var(--wxp-sl-border);
}
.wxp-sl-search-wrapper { position: relative; }
.wxp-sl-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.3;
	color: #171716;
	background: #fff;
	border: 1px solid var(--wxp-sl-border);
	border-radius: 6px;
	outline: none;
}
.wxp-sl-input:focus { border-color: #171716; }
.wxp-sl-input::placeholder { color: var(--wxp-sl-muted); }

.wxp-sl-store-list-wrapper {
	flex: 1 1 auto;
	overflow-y: auto;
}
.wxp-sl-store-list { display: block; }

.wxp-sl-store {
	padding: 16px;
	border-bottom: 1px solid var(--wxp-sl-border);
	cursor: pointer;
	transition: background .12s ease;
	outline: none;
}
.wxp-sl-store:hover { background: var(--wxp-sl-active); }
.wxp-sl-store.wxp-sl-active { background: var(--wxp-sl-active); }
.wxp-sl-store:focus-visible { box-shadow: inset 0 0 0 2px #171716; }

.wxp-sl-store-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
.wxp-sl-store-name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.3;
}
.wxp-sl-label-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	flex: 0 0 auto;
}
.wxp-sl-label-tag {
	display: inline-block;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--wxp-sl-muted);
	background: var(--wxp-sl-active);
	border: 1px solid var(--wxp-sl-border);
	border-radius: 3px;
	white-space: nowrap;
}
.wxp-sl-store-address {
	font-size: 13px;
	line-height: 1.55;
	color: var(--wxp-sl-muted);
}
.wxp-sl-store-address a { color: #171716; text-decoration: underline; }

.wxp-sl-empty {
	padding: 16px;
	font-size: 13px;
	color: var(--wxp-sl-muted);
}

/* ---- Map pane ---- */
.wxp-sl-map-container {
	position: relative;
	flex: 1 1 auto;
}
.wxp-sl-map {
	width: 100%;
	height: 100%;
	background: #e5e3df;
}

/* ---- Marker + optional permanent map label ---- */
.wxp-sl-marker { position: relative; display: inline-block; line-height: 0; }
.wxp-sl-marker-dot { line-height: 0; }
.wxp-sl-map-label {
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin-left: 6px;
	white-space: nowrap;
	background: #fff;
	color: #171716;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	padding: 3px 7px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	pointer-events: none;
}

/* ---- Selection popup (custom InfoWindow content) ---- */
.wxp-sl-iw {
	font-family: inherit;
	color: #171716;
	min-width: 210px;
	max-width: 280px;
	padding: 2px 2px 4px;
}
.wxp-sl-iw-title { font-size: 16px; font-weight: 700; line-height: 1.25; margin-bottom: 6px; }
.wxp-sl-iw-addr  { font-size: 13px; line-height: 1.5; color: #444; }
.wxp-sl-iw-line  { font-size: 13px; line-height: 1.5; margin-top: 2px; }
.wxp-sl-iw-line a, .wxp-sl-iw-addr a { color: #171716; text-decoration: underline; }

/* Large black Directions button with icon */
.wxp-sl-dir-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 4px 4px;
	padding: 11px 18px;
	background: #171716;
	color: #fff !important;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	border-radius: 6px;
	transition: background .15s ease;
}
.wxp-sl-dir-btn:hover { background: #000; }
.wxp-sl-dir-ico { display: block; flex: 0 0 auto; }

/* Trim Google's default InfoWindow chrome a touch */
.wxp-sl-map .gm-style-iw-c { padding: 14px !important; border-radius: 8px; }
.wxp-sl-map .gm-style-iw-d { overflow: hidden !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
	@media (max-width: 768px) {
    .wxp-sl-list-container {
        max-height: 280px;
    }
}
	.wxp-sl-wrapper { flex-direction: column; height: auto; }
	.wxp-sl-list-container {
		width: 100%;
		max-width: 100%;
		border-right: 0;
		border-bottom: 1px solid var(--wxp-sl-border);
	}
	.wxp-sl-store-list-wrapper { max-height: 320px; }
	.wxp-sl-map-container { height: 60vh; min-height: 360px; }
}
