/**
 * Single store template — retail-style layout (hello-elementor-child single-wpsl_stores.php).
 */

/* Reset legacy `.location-subpage` / `.content-1200` rules (floats, narrow columns) for this shell only */
.location-subpage.vcsl-single-store-shell.content-1200 {
	width: 100% !important;
	max-width: min(1320px, calc(100vw - 32px)) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
	padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
	box-sizing: border-box !important;
}

.location-subpage.vcsl-single-store-shell #primary,
.location-subpage.vcsl-single-store-shell #main {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
}

.location-subpage.vcsl-single-store-shell .vcsl-single-store__entry.entry-content {
	display: block !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

.location-subpage.vcsl-single-store-shell .vcsl-single-store__entry.entry-content > * {
	float: none !important;
	max-width: 100% !important;
}

/* Legacy theme rules (e.g. float on `.entry-content > div`) must not affect the mid 2×2 grid */
.location-subpage.vcsl-single-store-shell .vcsl-single-store__grid--mid,
.location-subpage.vcsl-single-store-shell .vcsl-single-store__grid--mid > * {
	float: none !important;
}

/* If another template still outputs #mainheading, hide it on this page (title is in .vcsl-single-store__title) */
body.single-wpsl_stores #mainheading {
	display: none !important;
}

.vcsl-single-store {
	--vcsl-ss-black: #111;
	--vcsl-ss-muted: #5c5c5c;
	--vcsl-ss-border: #e8e8e8;
	--vcsl-ss-bg-status: #e1f5fe;
	--vcsl-ss-radius: 12px;
	--vcsl-ss-radius-pill: 999px;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 12px 0 48px;
	color: var(--vcsl-ss-black);
	font-size: 16px;
	line-height: 1.5;
}

.vcsl-single-store__breadcrumb {
	font-size: 0.8125rem;
	color: var(--vcsl-ss-muted);
	margin: 0 0 20px;
}

.vcsl-single-store__breadcrumb a {
	color: var(--vcsl-ss-muted);
	text-decoration: none;
}

.vcsl-single-store__breadcrumb a:hover {
	text-decoration: underline;
}

.vcsl-single-store__bc-sep {
	margin: 0 0.35em;
	color: #b0b0b0;
}

.vcsl-single-store__bc-current {
	color: var(--vcsl-ss-black);
	font-weight: 500;
}

/* Hero */
.vcsl-single-store__hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 28px;
}

.vcsl-single-store__title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.vcsl-single-store__tagline {
	font-size: 1rem;
	color: var(--vcsl-ss-muted);
	margin: 0 0 20px;
}

.vcsl-single-store__fave {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: 1px solid var(--vcsl-ss-border);
	border-radius: 50%;
	background: #fff;
	color: var(--vcsl-ss-black);
	cursor: default;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	opacity: 0.45;
}

.vcsl-single-store__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 12px 28px;
	border-radius: var(--vcsl-ss-radius-pill);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vcsl-single-store__btn--primary {
	background: var(--vcsl-ss-black);
	color: #fff;
	border: 1px solid var(--vcsl-ss-black);
}

.vcsl-single-store__btn--primary:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

.vcsl-single-store__btn--outline {
	background: #fff !important;
	color: var(--vcsl-ss-black) !;
	border: 1px solid var(--vcsl-ss-black) !important;
	margin-top: 12px;
}

.vcsl-single-store__btn--outline:hover {
	background: var(--vcsl-ss-black) !important;
	color: #fff !important;
}

.vcsl-single-store__btn--outline-dark {
	background: transparent !important;
	color: var(--vcsl-ss-black) !important;
	border: 1px solid var(--vcsl-ss-black);
	padding: 8px 16px;
	font-size: 0.8125rem;
	flex-shrink: 0;
}

.vcsl-single-store__btn--outline-dark:hover {
	background: var(--vcsl-ss-black) !important;
	color: #fff !important;
}

.vcsl-single-store__btn--sm {
	padding: 8px 18px;
	font-size: 0.8125rem;
}

/* Top grid: details + map */
.vcsl-single-store__grid {
	display: grid;
	gap: 28px 40px;
	margin-bottom: 40px;
}

.vcsl-single-store__grid--top {
	grid-template-columns: 1fr;
}

@media (min-width: 960px) {
	/* ~33% store details / ~66% map (1:2 track ratio, matches reference layout) */
	.vcsl-single-store__grid--top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: stretch;
		column-gap: clamp(24px, 3vw, 56px);
	}

	.vcsl-single-store__grid--top .vcsl-single-store__details,
	.vcsl-single-store__grid--top .vcsl-single-store__map {
		min-width: 0;
		max-width: 100%;
	}
}

@media (min-width: 960px) {
	/*
	 * Mid block: two rows × two columns — Services | Gallery, Visit us | Tips.
	 * 33fr / 67fr ≈ 33% / 67% (same gutter alignment for both rows; explicit placement avoids auto-flow bugs).
	 */
	.vcsl-single-store__grid--mid {
		display: grid;
		grid-template-columns: minmax(0, 33fr) minmax(0, 67fr);
		grid-template-rows: auto auto;
		align-items: stretch;
		column-gap: clamp(24px, 3vw, 40px);
		row-gap: clamp(24px, 3vw, 36px);
		width: 100%;
		clear: both;
		float: none;
	}

	.vcsl-single-store__grid--mid > .vcsl-single-store__services {
		grid-column: 1;
		grid-row: 1;
	}

	.vcsl-single-store__grid--mid > .vcsl-single-store__gallery {
		grid-column: 2;
		grid-row: 1;
	}

	.vcsl-single-store__grid--mid > .vcsl-single-store__visit {
		grid-column: 1;
		grid-row: 2;
	}

	.vcsl-single-store__grid--mid > .vcsl-single-store__tips {
		grid-column: 2;
		grid-row: 2;
	}

	/*
	 * No gallery: row 1 col 2 would stay empty and “Get ready” would sit too low.
	 * Move tips beside Services; let “Visit us” span the full width on row 2 when present.
	 */
	.vcsl-single-store__grid--mid:not(:has(> .vcsl-single-store__gallery)) > .vcsl-single-store__tips {
		grid-column: 2;
		grid-row: 1;
	}

	.vcsl-single-store__grid--mid:not(:has(> .vcsl-single-store__gallery)) > .vcsl-single-store__visit {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.vcsl-single-store__grid--mid .vcsl-single-store__services,
	.vcsl-single-store__grid--mid .vcsl-single-store__gallery,
	.vcsl-single-store__grid--mid .vcsl-single-store__visit,
	.vcsl-single-store__grid--mid .vcsl-single-store__tips {
		min-width: 0;
		width: 100%;
		max-width: 100%;
		float: none;
	}
}

/* Mid block: light panels (Services, Gallery, Visit us, Get ready) */
.vcsl-single-store__grid--mid > .vcsl-single-store__services,
.vcsl-single-store__grid--mid > .vcsl-single-store__gallery,
.vcsl-single-store__grid--mid > .vcsl-single-store__visit,
.vcsl-single-store__grid--mid > .vcsl-single-store__tips {
	background: #f5f5f5;
	border: 1px solid var(--vcsl-ss-border);
	border-radius: var(--vcsl-ss-radius);
	padding: 22px 24px;
	box-sizing: border-box;
}

.vcsl-single-store__services-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
	row-gap: 10px;
	margin-bottom: 8px;
}

.vcsl-single-store__section-title--panel {
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.vcsl-single-store__services-shop {
	justify-self: end;
	white-space: nowrap;
}

.vcsl-single-store__panel-see-more {
	margin: 16px 0 0;
	padding: 0;
}

.vcsl-single-store__panel-see-more-btn {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0b57d0;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	text-align: left;
}

.vcsl-single-store__panel-see-more-btn:hover,
.vcsl-single-store__panel-see-more-btn:focus {
	color: #0842a0;
	outline: none;
}

.vcsl-single-store__panel-see-more-btn:focus-visible {
	outline: 2px solid #0b57d0;
	outline-offset: 2px;
}

/* Left column panel (reference: light gray card) */
.vcsl-single-store__details-surface {
	background: #f5f5f5;
	border: 1px solid var(--vcsl-ss-border);
	border-radius: var(--vcsl-ss-radius);
	padding: 22px 24px;
	box-sizing: border-box;
}

.vcsl-single-store__details-surface .vcsl-single-store__status {
	margin-bottom: 20px;
}

.vcsl-single-store__details-surface .vcsl-single-store__contact {
	margin-bottom: 20px;
}

.vcsl-single-store__details-surface .vcsl-single-store__hours {
	margin-bottom: 4px;
}

.vcsl-single-store__details-surface .vcsl-single-store__links {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba( 0, 0, 0, 0.08 );
}

/* Status alert */
.vcsl-single-store__status {
	display: flex;
	gap: 14px;
	padding: 18px 20px;
	background: var(--vcsl-ss-bg-status);
	border-radius: var(--vcsl-ss-radius);
	border: 1px solid #b3e5fc;
	margin-bottom: 28px;
}

.vcsl-single-store__status-icon {
	flex-shrink: 0;
	color: #0b57d0;
	margin-top: 2px;
}

.vcsl-single-store__status-title {
	font-weight: 700;
	margin: 0 0 8px;
	font-size: 1rem;
}

.vcsl-single-store__status-text {
	margin: 0 0 4px;
	font-size: 0.9375rem;
	color: #333;
	line-height: 1.5;
}

/* Contact */
.vcsl-single-store__contact {
	margin-bottom: 28px;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.vcsl-single-store__address {
	margin: 0 0 10px;
}

.vcsl-single-store__phone {
	margin: 0 0 8px;
}

.vcsl-single-store__phone a {
	color: var(--vcsl-ss-black);
	font-weight: 600;
	text-decoration: none;
}

.vcsl-single-store__phone a:hover {
	text-decoration: underline;
}

.vcsl-single-store__directions {
	margin: 0;
}

.vcsl-single-store__directions a {
	font-weight: 600;
	color: var(--vcsl-ss-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Hours */
.vcsl-single-store__section-title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 14px;
}

/* Plain hours (no table): label left, time right */
.vcsl-single-store__hours-plain {
	margin: 0 0 2px;
	padding: 0;
	font-size: 0.9375rem;
}

.vcsl-single-store__hours-plain-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px 20px;
	padding: 5px 0;
}

.vcsl-single-store__hours-plain-day {
	flex-shrink: 0;
	font-weight: 600;
	color: var(--vcsl-ss-black);
}

.vcsl-single-store__hours-plain-time {
	font-weight: 400;
	color: var(--vcsl-ss-black);
	text-align: right;
}

.vcsl-single-store__hours-plain--week {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba( 0, 0, 0, 0.08 );
}

.vcsl-single-store__hours-plain--week .vcsl-single-store__hours-plain-day {
	font-weight: 700;
}

/* See More / See Less */
.vcsl-single-store__hours-toggle {
	display: inline-block;
	margin: 6px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--vcsl-ss-black);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	text-align: left;
}

.vcsl-single-store__hours-toggle:hover,
.vcsl-single-store__hours-toggle:focus {
	color: #333;
	background-color: transparent;
	text-decoration: underline;
}

.vcsl-single-store__hours-toggle:focus-visible {
	outline: 2px solid var(--vcsl-ss-black);
	outline-offset: 2px;
}

.vcsl-single-store__hours-full[hidden] {
	display: none !important;
}

.vcsl-single-store__hours-full:not([hidden]) {
	display: block;
}

.vcsl-single-store__address--one-line {
	margin: 0 0 14px;
	font-size: 1rem;
	line-height: 1.45;
}

.vcsl-single-store .wpsl-opening-hours {
	width: 100%;
	font-size: 0.9rem !important;
	border-collapse: collapse;
}

.vcsl-single-store .wpsl-opening-hours td {
	padding: 8px 12px 8px 0;
	border-bottom: 1px solid var(--vcsl-ss-border);
	vertical-align: top;
	font-size: 0.9rem !important;
}

.vcsl-single-store .wpsl-opening-hours td time {
	font-size: 0.9rem !important;
	display: inline !important;
}

/* Full week table — same visual language as Today/Tomorrow summary */
.vcsl-single-store .wpsl-opening-hours--compact {
	width: 100%;
	border: 1px solid var(--vcsl-ss-border);
	border-radius: var(--vcsl-ss-radius);
	overflow: hidden;
	font-size: 0.95rem !important;
	background: #fff;
}

.vcsl-single-store .wpsl-opening-hours--compact tr:nth-child(even) {
	background: #fafafa;
}

.vcsl-single-store .wpsl-opening-hours--compact td {
	padding: 10px 14px !important;
	border-bottom: 1px solid var(--vcsl-ss-border) !important;
	font-size: 0.95rem !important;
	vertical-align: middle !important;
}

.vcsl-single-store .wpsl-opening-hours--compact tr:last-child td {
	border-bottom: none !important;
}

.vcsl-single-store .wpsl-opening-hours--compact .vcsl-hours-day-abbr {
	width: 3.75rem;
	font-weight: 600;
	color: var(--vcsl-ss-muted);
	white-space: nowrap;
}

.vcsl-single-store .wpsl-opening-hours--compact .vcsl-hours-range {
	font-weight: 700;
	color: var(--vcsl-ss-black);
}

.vcsl-single-store .wpsl-opening-hours--compact .vcsl-hours-range time {
	font-weight: inherit;
	font-size: inherit !important;
}

.vcsl-single-store .wpsl-opening-hours--compact .vcsl-hours-range--closed {
	font-weight: 700;
	color: var(--vcsl-ss-muted);
}

/* Links block */
.vcsl-single-store__links {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var( --vcsl-ss-border );
}

.vcsl-single-store__sched {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 0.9375rem;
}

.vcsl-single-store__sched--plain {
	margin-bottom: 0;
}

.vcsl-single-store__sched-icon {
	flex-shrink: 0;
	color: var(--vcsl-ss-black);
	display: inline-flex;
}

.vcsl-single-store__sched-link {
	font-weight: 700;
	color: var(--vcsl-ss-black);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.vcsl-single-store__reviews {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 16px;
	font-size: 0.875rem;
}

.vcsl-single-store__stars {
	letter-spacing: 2px;
	color: #d0d0d0;
	font-size: 1rem;
	line-height: 1;
}

.vcsl-single-store__reviews-meta {
	color: var(--vcsl-ss-muted);
}

.vcsl-single-store__reviews-link {
	font-weight: 600;
	color: var(--vcsl-ss-black);
	text-decoration: underline;
}

.vcsl-single-store__find-more {
	margin: 0;
	font-size: 0.9375rem;
}

.vcsl-single-store__find-more a {
	font-weight: 600;
	color: var(--vcsl-ss-black);
	text-decoration: underline;
}

/* Map — fills right column height on desktop (aligns with left stack) */
.vcsl-single-store__map {
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.vcsl-single-store__map .wpsl-gmap-canvas,
.vcsl-single-store__map .vcsl-wpsl-compat-map {
	position: relative;
	width: 100%;
	flex: 1 1 auto;
	min-height: min(70vw, 420px);
	border: 1px solid var(--vcsl-ss-border);
	border-radius: var(--vcsl-ss-radius);
	overflow: hidden;
	background: #e8eaed;
}

@media (min-width: 960px) {
	.vcsl-single-store__grid--top .vcsl-single-store__map {
		align-self: stretch;
		min-height: 0;
	}

	.vcsl-single-store__grid--top .vcsl-single-store__map .wpsl-gmap-canvas,
	.vcsl-single-store__grid--top .vcsl-single-store__map .vcsl-wpsl-compat-map {
		flex: 1 1 auto;
		min-height: min(680px, 85vh);
		height: 100% !important;
		max-height: none;
	}
}

.vcsl-single-store__map .vcsl-wpsl-compat-map iframe,
.vcsl-single-store__map .wpsl-gmap-canvas iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.vcsl-single-store__map .wpsl-gmap-canvas {
	position: relative;
}

/* Services */
.vcsl-single-store__service-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcsl-single-store__service-list > li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--vcsl-ss-border);
	flex-wrap: wrap;
}

.vcsl-single-store__service-list > li:first-child {
	padding-top: 0;
}

.vcsl-single-store__service-list > li:last-child {
	border-bottom: 0;
}

.vcsl-single-store__svc-icon {
	flex-shrink: 0;
	color: var(--vcsl-ss-black);
	margin-top: 2px;
}

.vcsl-single-store__svc-text {
	flex: 1;
	min-width: 140px;
	font-size: 0.9375rem;
	font-weight: 500;
}

.vcsl-single-store__svc-sub {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--vcsl-ss-muted);
	margin-top: 4px;
}

/* Gallery */
.vcsl-single-store__gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-content: start;
}

.vcsl-single-store__gallery-item {
	margin: 0;
	border-radius: var(--vcsl-ss-radius);
	overflow: hidden;
	border: 1px solid var(--vcsl-ss-border);
	background: #f5f5f5;
	min-width: 0;
}

.vcsl-single-store__gallery-item:first-child:last-child {
	grid-column: 1 / -1;
	max-height: 320px;
}

.vcsl-single-store__gallery-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Tips */
.vcsl-single-store__tip-list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 0.9375rem;
	color: #333;
}

.vcsl-single-store__tip-list li {
	margin-bottom: 10px;
}

.vcsl-single-store__tip-list--icons {
	list-style: none;
	padding: 0;
}

.vcsl-single-store__tip-list--icons > li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.vcsl-single-store__tip-list--icons > li:last-child {
	margin-bottom: 0;
}

.vcsl-single-store__tip-icon {
	flex-shrink: 0;
	color: var(--vcsl-ss-black);
	margin-top: 2px;
}

.vcsl-single-store__tip-text {
	flex: 1;
	min-width: 0;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: #333;
}

.vcsl-single-store__visit > .vcsl-single-store__section-title--panel,
.vcsl-single-store__tips > .vcsl-single-store__section-title--panel {
	margin-bottom: 14px;
}

.vcsl-single-store__entry {
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid var(--vcsl-ss-border);
}

.vcsl-single-store__entry > *:first-child {
	margin-top: 0;
}
