/**
 * Victra Store Locator — retail list + map (list left, map right).
 */

.vcsl-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--vcsl-map-width, 100%);
	margin: 0 0 2em;
	--vcsl-pad: 16px;
	--vcsl-border: #e0e0e0;
	--vcsl-black: #111;
	--vcsl-muted: #5c5c5c;
}

.vcsl-wrap *,
.vcsl-wrap *::before,
.vcsl-wrap *::after {
	box-sizing: border-box;
}

.vcsl-clearfix::after {
	content: "";
	display: table;
	clear: both;
}

/* —— Search —— */
.vcsl-search {
	margin-bottom: 1rem;
	padding: 14px var(--vcsl-pad);
	background: #f7f7f7;
	border: 1px solid var(--vcsl-border);
	border-radius: 4px;
}

.vcsl-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 18px;
}

.vcsl-input {
	flex: 1 1 220px;
	min-width: 180px;
}

.vcsl-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 4px;
	color: #222;
	text-transform: none;
	letter-spacing: 0;
}

.vcsl-search-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
}

.vcsl-select-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: flex-end;
}

.vcsl-field {
	min-width: 120px;
}

.vcsl-dropdown {
	width: 100%;
	min-width: 100px;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
}

.vcsl-search-btn-wrap {
	flex: 0 0 auto;
}

.vcsl-search-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.vcsl-nearby-btn.button {
	cursor: pointer;
	padding: 10px 18px;
	font-size: 14px;
	line-height: 1.35;
	border-radius: 4px;
	border: 1px solid #1a73e8;
	background: #fff;
	color: #1a73e8;
	font-weight: 600;
}

.vcsl-nearby-btn.button:hover {
	background: #e8f0fe;
	border-color: #1557b0;
	color: #1557b0;
}

.vcsl-search-btn.button {
	cursor: pointer;
	padding: 10px 22px;
	font-size: 14px;
	line-height: 1.35;
	border-radius: 4px;
	border: 1px solid var(--vcsl-black);
	background: var(--vcsl-black);
	color: #fff;
	font-weight: 600;
}

.vcsl-search-btn.button:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* —— Main: list | map —— */
.vcsl-main {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--vcsl-border);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	min-height: var(--vcsl-map-height, 660px);
}

@media (min-width: 900px) {
	.vcsl-main {
		flex-direction: row;
		align-items: stretch;
		/* Fixed row height so the store list scrolls inside the panel instead of growing the page */
		height: var(--vcsl-map-height, 660px);
		min-height: var(--vcsl-map-height, 660px);
		max-height: min(90vh, var(--vcsl-map-height, 660px));
	}
}

.vcsl-list-panel {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	background: #fff;
}

@media (min-width: 900px) {
	.vcsl-list-panel {
		flex: 0 0 38%;
		max-width: 420px;
		border-right: 1px solid var(--vcsl-border);
		height: 100%;
		overflow: hidden;
	}
}

.vcsl-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 14px var(--vcsl-pad);
	background: var(--vcsl-black);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	flex-shrink: 0;
}

.vcsl-list-header__chevron {
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #fff;
	opacity: 0.85;
	flex-shrink: 0;
}

.vcsl-result-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: min(60vh, var(--vcsl-map-height, 660px));
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

@media (min-width: 900px) {
	.vcsl-result-list {
		max-height: none;
		/* Scroll within list-panel; height bound by .vcsl-main */
	}
}

.vcsl-map-panel {
	flex: 1;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	background: #e8eaed;
}

@media (min-width: 900px) {
	.vcsl-map-panel {
		height: 100%;
	}
}

.vcsl-gmap-canvas {
	width: 100%;
	flex: 1;
	min-height: 280px;
	height: var(--vcsl-map-height, 660px);
	background: #e8eaed;
}

@media (min-width: 900px) {
	.vcsl-gmap-canvas {
		flex: 1 1 auto;
		min-height: 0;
		height: 100%;
	}
}

/* —— Store cards —— */
.vcsl-store-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcsl-store-card {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--vcsl-border);
	cursor: default;
	transition: background 0.15s ease;
}

.vcsl-store-card:last-child {
	border-bottom: none;
}

.vcsl-store-card:hover,
.vcsl-store-card.vcsl-active {
	background: #f5f7f9;
}

.vcsl-card__inner {
	padding: 16px var(--vcsl-pad) 18px;
}

.vcsl-card__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 4px;
}

.vcsl-card__name-block {
	min-width: 0;
	flex: 1;
}

.vcsl-card__numname {
	font-size: 1rem;
	font-weight: 700;
	color: var(--vcsl-black);
	line-height: 1.3;
	margin: 0;
}

.vcsl-card__tagline {
	font-size: 0.8rem;
	color: var(--vcsl-muted);
	margin: 4px 0 0;
	line-height: 1.35;
}

.vcsl-card__aside {
	text-align: right;
	flex-shrink: 0;
	font-size: 0.85rem;
	color: var(--vcsl-muted);
	line-height: 1.4;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.vcsl-card__aside .vcsl-btn {
	margin: 0;
}

.vcsl-card__distance {
	font-weight: 600;
	color: var(--vcsl-black);
}

.vcsl-card__hours {
	margin-top: 2px;
	font-weight: 400;
}

.vcsl-btn {
	display: inline-block;
	padding: 6px 14px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	border-radius: 999px;
	border: 1px solid var(--vcsl-black);
	background: transparent;
	color: var(--vcsl-black);
	cursor: pointer;
	white-space: nowrap;
	font-family: inherit;
}

a.vcsl-btn:hover,
button.vcsl-btn:hover {
	background: var(--vcsl-black);
	color: #fff;
	text-decoration: none;
}

.vcsl-card__links {
	margin-top: 10px;
	font-size: 0.9rem;
	line-height: 1.55;
}

.vcsl-card__links a {
	color: #0b57d0;
	text-decoration: underline;
	word-break: break-word;
}

.vcsl-card__links a:hover {
	text-decoration: underline;
}

.vcsl-card__services {
	margin-top: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.vcsl-svc {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.vcsl-svc__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--vcsl-black);
	margin-top: 2px;
}

.vcsl-svc__icon svg {
	display: block;
	width: 22px;
	height: 22px;
}

.vcsl-svc__body {
	font-size: 0.85rem;
	line-height: 1.45;
	color: #222;
	min-width: 0;
}

.vcsl-svc__body a {
	color: #0b57d0;
	font-weight: 600;
	text-decoration: underline;
}

.vcsl-svc__sub {
	display: block;
	color: var(--vcsl-muted);
	font-weight: 400;
	margin-top: 2px;
	font-size: 0.8rem;
}

.vcsl-card__footer-btns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.vcsl-card__footer-schedule {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
}

.vcsl-card__footer-schedule-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--vcsl-black);
}

.vcsl-card__footer-schedule-icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

.vcsl-card__schedule-appt-link {
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--vcsl-black);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vcsl-card__schedule-appt-link:hover,
.vcsl-card__schedule-appt-link:focus {
	color: var(--vcsl-black);
	text-decoration: underline;
}

.vcsl-card__footer-shop {
	flex-shrink: 0;
	margin-left: auto;
}

.vcsl-store-list .vcsl-msg {
	padding: 20px var(--vcsl-pad);
	font-size: 0.95rem;
	color: var(--vcsl-muted);
	cursor: default;
}

.vcsl-info-window {
	font-size: 14px;
	line-height: 1.35;
	max-width: 255px;
	color: #111;
	padding-right: 6px;
}

.vcsl-info-window .vcsl-info-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 4px;
}

.vcsl-info-window .vcsl-info-address {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 8px;
}

.vcsl-info-window .vcsl-info-phone {
	font-size: 16px;
	line-height: 1.35;
	margin: 0 0 8px;
}

.vcsl-info-window .vcsl-info-phone-label {
	font-weight: 600;
}

.vcsl-info-window .vcsl-info-dist {
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 10px;
	color: #111;
}

.vcsl-info-window .vcsl-info-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2px;
}

.vcsl-info-window .vcsl-info-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 8px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 1px solid #111;
	transition: all 0.15s ease;
}

.vcsl-info-window .vcsl-info-btn--primary {
	background: #111;
	color: #fff;
}

.vcsl-info-window .vcsl-info-btn--primary:hover,
.vcsl-info-window .vcsl-info-btn--primary:focus {
	background: #222;
	color: #fff;
}

.vcsl-info-window .vcsl-info-btn--ghost {
	background: #fff;
	color: #111;
}

.vcsl-info-window .vcsl-info-btn--ghost:hover,
.vcsl-info-window .vcsl-info-btn--ghost:focus {
	background: #f6f6f6;
	color: #111;
}

.vcsl-admin-notice {
	padding: 10px 12px;
	background: #fcf0e3;
	border-left: 4px solid #d63638;
}
