/* Location Tabs — matches theme tokens (Quincy / Jost / Source Sans 3,
   navy #000d26 text, blue #0b5cff accent), mirroring text-columns / amenities. */

.location-tabs {
	background: #fff;
	padding-top:    var( --lt-pt, 3rem );
	padding-bottom: var( --lt-pb, 3rem );
	margin-top:     var( --lt-mt, 0rem );
	margin-bottom:  var( --lt-mb, 0rem );
	overflow-x: clip;   /* contain the full-bleed galleries — no horizontal scroll */
}

.location-tabs__inner {
	max-width: 90rem;
	margin: 0 auto;
	padding: 0 5rem;
	text-align: center;
}

.location-tabs__eyebrow {
	font-family: 'Jost', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	line-height: 1.35;
	color: rgba( 0, 13, 38, 0.7 );
	margin: 0 0 0.75rem;
}

.location-tabs__heading {
	font-family: 'Quincy', Georgia, serif;
	font-size: clamp( 2.5rem, 5vw, 3.5rem );
	font-weight: 400;
	line-height: clamp( 2.875rem, 5.75vw, 4.025rem );
	color: #000d26;
	margin: 0 0 1.25rem;
}

.location-tabs__body {
	max-width: 48rem;
	margin: 0 auto 3.5rem;
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.55;
	color: rgba( 0, 13, 38, 0.8 );
}

.location-tabs__group {
	margin-bottom: 4rem;
}

.location-tabs__group:last-child {
	margin-bottom: 0;
}

/* Groups marked "Half (50%)" in the Global Section are wrapped in a row and
   shown two-per-row on desktop; on mobile they stack (see the media query). */
.location-tabs__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4rem;
	margin-bottom: 4rem;
}
.location-tabs__row:last-child { margin-bottom: 0; }
.location-tabs__row .location-tabs__group {
	flex: 0 0 calc( 50% - 2rem );
	max-width: calc( 50% - 2rem );
	min-width: 0;
	margin-bottom: 0;
}

.location-tabs__group-heading {
	font-family: 'Quincy', Georgia, serif;
	font-size: 2.25rem;
	font-weight: 400;
	line-height: 2.8125rem;
	color: #000d26;
	margin: 0 0 1.5rem;
	text-align: center;
}

.location-tabs__tabbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 2.25rem;
}

.location-tabs__tab {
	font-family: 'Source Sans 3', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	background: #fff;
	border: 1px solid rgba( 0, 13, 38, 0.15 );
	border-radius: 999px;
	padding: 0.625rem 1.5rem;
	cursor: pointer;
	color: #000d26;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.location-tabs__tab:hover {
	border-color: #0b5cff;
	color: #0b5cff;
}

.location-tabs__tab.is-active {
	background: #0b5cff;
	border-color: #0b5cff;
	color: #fff;
}

.location-tabs__panels {
	/* Fill the group's width — full-width groups (multi-house + a lone single)
	   get a truly full-width gallery like the standalone photo-carousel blocks;
	   paired single-house groups fill their 50% column. */
	margin: 0 auto;
}

/* Galleries reuse the photo-carousel block with no heading/caption — tighten
   the padding and collapse the unused caption so the dots sit close to the
   images with minimal space below them. Two visual treatments below. */
.location-tabs__panel .photo-carousel {
	padding-top: 2rem;
	padding-bottom: 2rem;
}
.location-tabs__panel .photo-carousel__caption { display: none; }
.location-tabs__panel .photo-carousel__dots { margin-top: 1.25rem; }

/* Half-width galleries (in a 50/50 row): compact GRAY ROUNDED panel. */
.location-tabs__row .location-tabs__group .photo-carousel {
	border-radius: 1rem;
}

/* photo-carousel's slide is 40% of ITS OWN container -- fine when that
   container is the full ~80rem page width, but here the carousel's
   container is already only half that (this is a 50/50 row), so the same
   40% comes out much smaller in absolute pixels than everywhere else the
   carousel appears. Widen the slide back up within this specific nested
   context so it reads at a comparable size to a full-width carousel,
   instead of shrinking twice. */
.location-tabs__row .location-tabs__group .photo-carousel__slide {
	flex-basis: 70%;
}
.location-tabs__row .location-tabs__group .photo-carousel__viewport {
	aspect-ratio: 2.331 / 1;
}
@media (max-width: 900px) {
	.location-tabs__row .location-tabs__group .photo-carousel__slide {
		flex-basis: 78%;
	}
	.location-tabs__row .location-tabs__group .photo-carousel__viewport {
		aspect-ratio: 2.092 / 1;
	}
}

/* Full-width galleries (direct children of the inner, i.e. not in a 50/50 row):
   truly full width with NO gray box — images sit directly on the section like
   the standalone photo-carousel galleries elsewhere on the site. */
.location-tabs__inner > .location-tabs__group .photo-carousel {
	background: transparent;
	border-radius: 0;
}

/* …and break the gallery out of the max-90rem padded container so it spans the
   FULL viewport width edge-to-edge. The group is centered in the viewport, so
   the standard 100vw full-bleed offset lands the gallery flush to both edges.
   Only the gallery bleeds — the heading/tabs/dots stay in the centered column. */
.location-tabs__inner > .location-tabs__group .location-tabs__panels {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc( 50% - 50vw );
	margin-right: calc( 50% - 50vw );
}

.location-tabs__panel {
	display: none;
}

.location-tabs__panel.is-active {
	display: block;
}

.location-tabs__single-house-name {
	font-family: 'Jost', system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0.25rem;
	text-transform: uppercase;
	color: #000d26;
	text-align: center;
	margin: 0 0 1.25rem;
}

@media (max-width: 1200px) {
	.location-tabs__inner { padding: 0 3rem; }
}

@media (max-width: 900px) {
	.location-tabs__inner { padding: 0 1.5rem; }
	.location-tabs__group-heading { font-size: 2rem; line-height: 2.5rem; }
	/* Stack the 50/50 galleries on narrow screens. */
	.location-tabs__row { gap: 2.5rem; }
	.location-tabs__row .location-tabs__group {
		flex-basis: 100%;
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.location-tabs {
		padding-top:    var( --lt-pt-m, var( --lt-pt, 3rem ) );
		padding-bottom: var( --lt-pb-m, var( --lt-pb, 3rem ) );
		margin-top:     var( --lt-mt-m, var( --lt-mt, 0rem ) );
		margin-bottom:  var( --lt-mb-m, var( --lt-mb, 0rem ) );
	}
	.location-tabs__inner { padding: 0 1rem; }
	.location-tabs__tab { font-size: 0.9375rem; padding: 0.5rem 1.125rem; }
}
