/* ==========================================================================
   Long Crested Destinations — front-end styles
   ========================================================================== */

:root {
	--lct-brown: #3B2418;
	--lct-cream: #F6F2EB;
}

.lct-dest-content,
.lct-dest-hub-grid,
.lct-dest-showcase {
	color: var(--lct-brown);
	font-family: 'AvertaStd-Regular', sans-serif;
}

.lct-dest-content h2,
.lct-dest-content h3,
.lct-dest-hub-card h3,
.lct-dest-showcase__text h2 {
	font-family: 'Wasted Vindey', serif;
	font-weight: normal;
	color: var(--lct-brown);
}

.lct-dest-content img,
.lct-dest-hub-grid img,
.lct-dest-showcase img {
	border-radius: 0; /* sharp corners throughout — deliberate brand choice */
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Underlined text-link CTA style used throughout, unless noted otherwise */
.lct-dest-hub-card__cta,
.lct-dest-showcase__cta,
.lct-dest-ways__card-title,
.lct-dest-ways__card--fallback {
	font-family: 'AvertaStd-Semibold', sans-serif;
	color: var(--lct-brown);
	text-decoration: underline;
	background: none;
	border: none;
	display: inline-block;
}

/* --------------------------------------------------------------------
   Hero-facing shortcodes: [lct_destination_short_description] / [lct_destination_quick_facts]
   -------------------------------------------------------------------- */

.lct-dest-short-description {
	font-size: 1.15rem;
	max-width: 42em;
}

.lct-dest-quick-facts {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 1.5rem;
}

.lct-dest-quick-facts__label {
	display: block;
	font-family: 'AvertaStd-Semibold', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.lct-dest-quick-facts__value {
	display: block;
	font-family: 'AvertaStd-Semibold', sans-serif;
	font-size: 1.1rem;
}

/* --------------------------------------------------------------------
   Overview
   -------------------------------------------------------------------- */

.lct-dest-overview {
	max-width: 960px;
	margin: 0 auto;
	padding: 5rem 1.5rem;
	text-align: center;
	background: var(--lct-cream);
}

.lct-dest-overview h2 {
	font-size: 2.25rem;
	margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------
   Gallery — asymmetric single-row grid
   -------------------------------------------------------------------- */

.lct-dest-gallery {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
	gap: 1rem;
	padding: 0 1.5rem 5rem;
}

.lct-dest-gallery .lct-dest-image-wrap {
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

@media (max-width: 782px) {
	.lct-dest-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* --------------------------------------------------------------------
   Highlights — full-width horizontal rows, not a card grid
   -------------------------------------------------------------------- */

.lct-dest-highlights {
	background: #fff;
	padding: 5rem 1.5rem;
}

.lct-dest-highlights__intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.lct-dest-highlights__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 0;
	border-top: 1px solid rgba(59, 36, 24, 0.15);
}

.lct-dest-highlights__row:first-of-type {
	border-top: none;
}

.lct-dest-highlights__row-image .lct-dest-image-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

@media (max-width: 782px) {
	.lct-dest-highlights__row {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------
   Ways to Experience
   -------------------------------------------------------------------- */

.lct-dest-ways {
	background: var(--lct-cream);
	padding: 5rem 1.5rem;
	text-align: center;
}

.lct-dest-ways__card {
	display: inline-flex;
	align-items: center;
	gap: 1.5rem;
	margin-top: 2rem;
	background: transparent;
	text-decoration: none;
}

.lct-dest-ways__card .lct-dest-image-wrap {
	width: 100px;
	height: 70px;
	overflow: hidden;
	flex-shrink: 0;
}

.lct-dest-ways__card-title {
	font-size: 1.1rem;
}

/* --------------------------------------------------------------------
   Explore Other Destinations — horizontally scrollable strip
   -------------------------------------------------------------------- */

.lct-dest-other {
	padding: 5rem 1.5rem;
}

.lct-dest-other h2 {
	text-align: center;
	margin-bottom: 2rem;
}

.lct-dest-other__strip {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 0.5rem;
}

.lct-dest-other__card {
	flex: 0 0 220px;
	scroll-snap-align: start;
	text-decoration: none;
	color: var(--lct-brown);
}

.lct-dest-other__card .lct-dest-image-wrap {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.lct-dest-other__card-title {
	font-family: 'AvertaStd-Semibold', sans-serif;
}

/* ==========================================================================
   Destinations Hub — [lct_destinations_hub]
   ========================================================================== */

.lct-dest-hub-grid {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 2rem;
	padding: 3rem 1.5rem;
}

.lct-dest-hub-card .lct-dest-image-wrap {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin-bottom: 1rem;
}

/* Break grid monotony: first two cards get intentionally different ratios */
.lct-dest-hub-card:nth-child(1) .lct-dest-image-wrap {
	aspect-ratio: 4 / 3;
}

.lct-dest-hub-card:nth-child(2) .lct-dest-image-wrap {
	aspect-ratio: 4 / 5;
}

.lct-dest-hub-card h3 {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.lct-dest-hub-card p {
	margin: 0 0 0.75rem;
}

@media (max-width: 782px) {
	.lct-dest-hub-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Homepage Showcase — [lct_destinations_showcase]

   Fixed single-viewport section, arrow-controlled crossfade. Deliberately
   NOT scroll-pinned — see the long history comment in includes/shortcodes.php
   before attempting to change this to a scroll-driven pin effect.
   ========================================================================== */

.lct-dest-showcase {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.lct-dest-showcase__slides {
	position: relative;
	width: 100%;
	height: 100%;
}

.lct-dest-showcase__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease;
}

.lct-dest-showcase__slide.is-active {
	opacity: 1;
	z-index: 1;
}

.lct-dest-showcase__slide .lct-dest-showcase__image,
.lct-dest-showcase__slide .lct-dest-showcase__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Ken Burns settle effect, pure CSS, triggered by the same .is-active toggle */
.lct-dest-showcase__slide .lct-dest-showcase__image img {
	transform: scale(1.08);
	transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lct-dest-showcase__slide.is-active .lct-dest-showcase__image img {
	transform: scale(1);
}

.lct-dest-showcase__text {
	position: absolute;
	left: 3rem;
	bottom: 6rem;
	z-index: 2;
	max-width: 480px;
	color: var(--lct-cream);
}

.lct-dest-showcase__text h2 {
	color: var(--lct-cream);
	font-size: 2.5rem;
	margin: 0 0 0.75rem;
}

.lct-dest-showcase__text p {
	margin: 0 0 1rem;
}

.lct-dest-showcase__cta {
	color: var(--lct-cream);
}

.lct-dest-showcase__arrows {
	position: absolute;
	left: 3rem;
	bottom: 2.5rem;
	z-index: 2;
	display: flex;
	gap: 0.75rem;
}

.lct-dest-showcase__arrow {
	width: 44px;
	height: 44px;
	border: 1px solid var(--lct-cream);
	background: transparent;
	color: var(--lct-cream);
	font-size: 1.1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.lct-dest-showcase__arrow:hover {
	background: var(--lct-cream);
	color: var(--lct-brown);
}

/* --------------------------------------------------------------------
   Defensive override: the showcase sits nested inside Elementor's own
   container tree, and even without any scroll logic a plain 100vh section
   can be clipped by an ancestor's own overflow behavior. This targets
   #lctDestShowcase's ancestor chain generically (not a specific Elementor
   class name, since container class names vary by Elementor version/build)
   using :has() as a CSS-only layer for browsers that support it.
   showcase.js applies the same fix via JS for browsers that don't.
   -------------------------------------------------------------------- */

body *:has(#lctDestShowcase) {
	overflow: visible !important;
}
