/**
 * Haven Homepage — Look Book (Section 4 / #s04)
 *
 * Styles for the [haven_signature_stays] shortcode. Includes the chapter
 * scaffolding (.chapter, .chapter__shell, .folio, .eyebrow) because the
 * existing homepage stylesheet does not define those selectors. The s04
 * panel + list layout follows the mockup at
 *   _workspace/mockups/homepage-bottom-three-sections/FULL-homepage-compact.html
 * exactly so the look-book JS can drive it without selector changes.
 */

:root {
	/* Look-book token aliases — do not collide with existing theme tokens. */
	--haven-lb-warm-linen: #faf7f1;
	--haven-lb-linen-deep: #f1ebde;
	--haven-lb-sand-dune: #c4a078;
	--haven-lb-sand-deep: #a07f55;
	--haven-lb-rule: #d8cdb8;
	--haven-lb-ink: #1a1612;
	--haven-lb-ink-soft: #5a4f43;
	--haven-lb-ink-mute: #8a7f70;
	--haven-lb-serif: 'Cormorant Garamond', Georgia, serif;
	--haven-lb-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	--haven-lb-ease-out: cubic-bezier(.16, 1, .3, 1);
	--haven-lb-r-card: 14px;
	--haven-lb-r-pill: 999px;
}

/* ─── Chapter shell (shared scaffolding) ────────────────── */
.chapter {
	position: relative;
	min-height: 100svh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}
.chapter--linen {
	background: var(--haven-lb-warm-linen);
	color: var(--haven-lb-ink);
}
.chapter__inner {
	padding: clamp(96px, 12vh, 140px) clamp(28px, 5vw, 80px) clamp(60px, 8vh, 90px);
	width: 100%;
	position: relative;
	z-index: 3;
}
.chapter__shell {
	max-width: 1280px;
	margin: 0 auto;
	width: 100%;
}
.chapter__frame {
	position: absolute;
	inset: 24px;
	border: 1px solid rgba(196, 160, 120, .16);
	pointer-events: none;
	z-index: 2;
}
.chapter--linen .chapter__frame {
	border-color: rgba(26, 22, 18, .06);
}

/* ─── Folio markers ───────────────────────────────────────
 * Sand-dune on warm-linen had the worst contrast on the page —
 * 11px / weight 500 was rendering as a barely-there whisper.
 * Bumped to 12.5px / weight 700, and the .chapter--linen override
 * below already deepens the color to sand-deep for linen sections.
 */
.folio {
	position: absolute;
	top: 60px;
	left: clamp(40px, 6vw, 100px);
	font-family: var(--haven-lb-sans);
	font-size: 12.5px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--haven-lb-sand-dune);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 14px;
	z-index: 5;
}
.folio::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: var(--haven-lb-sand-dune);
}
.folio--right {
	left: auto;
	right: clamp(40px, 6vw, 100px);
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 13px;
	color: rgba(196, 160, 120, .65);
	letter-spacing: .18em;
}
.folio--right::before {
	display: none;
}
.chapter--linen .folio {
	color: var(--haven-lb-sand-deep);
}
.chapter--linen .folio::before {
	background: var(--haven-lb-sand-deep);
}
.chapter--linen .folio--right {
	color: var(--haven-lb-ink-mute);
}

/* ─── Reveal engine ────────────────────────────────────── */
[data-reveal] {
	opacity: 0;
	transform: translate3d(0, 28px, 0);
	transition:
		opacity 1.05s var(--haven-lb-ease-out) var(--delay, 0ms),
		transform 1.05s var(--haven-lb-ease-out) var(--delay, 0ms);
	will-change: opacity, transform;
}
.is-revealed [data-reveal],
[data-chapter].is-revealed [data-reveal] {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
	[data-reveal] {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* ─── Eyebrow utility ───────────────────────────────────
 * Generic eyebrow used across linen and dark chapters. Bumped
 * size + weight so it lands as a confident category marker on
 * either background. Dark-chapter color override (chapter--earth /
 * chapter--dark) is handled in compact.css. */
.eyebrow {
	font-family: var(--haven-lb-sans);
	font-size: 12.5px;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--haven-lb-sand-dune);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 14px;
}
.eyebrow--centered {
	justify-content: center;
}
.eyebrow::before {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}
.eyebrow--centered::after {
	content: "";
	display: inline-block;
	width: 32px;
	height: 1px;
	background: currentColor;
	flex-shrink: 0;
}
.chapter--linen .eyebrow {
	color: var(--haven-lb-sand-deep);
}

/* ═══════════════════════════════════════════════════════════
   04 · SIGNATURE STAYS
   ═════════════════════════════════════════════════════════ */
.s04__head {
	text-align: center;
	margin-bottom: clamp(28px, 4vh, 44px);
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
}
.s04__head .eyebrow {
	justify-content: center;
	margin-bottom: 18px;
}
.s04__title {
	font-family: var(--haven-lb-serif);
	font-weight: 300;
	font-size: clamp(34px, 3.8vw, 52px);
	line-height: 1.05;
	letter-spacing: -.012em;
	color: var(--haven-lb-ink);
	margin: 0 0 14px;
}
.s04__title em {
	font-style: italic;
	color: var(--haven-lb-sand-deep);
}
.s04__sub {
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 17px;
	color: var(--haven-lb-ink-soft);
	max-width: none;
	margin: 0 auto;
	white-space: nowrap;
}

.s04__shell {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: clamp(28px, 4vw, 60px);
	max-width: 1320px;
	margin: 0 auto;
	align-items: start;
}

/* ─── Feature panel ──────────────────────────────────── */
.s04__feature {
	display: flex;
	flex-direction: column;
	border-radius: var(--haven-lb-r-card);
	overflow: hidden;
	background: var(--haven-lb-warm-linen);
	box-shadow: 0 18px 38px rgba(26, 22, 18, .08);
}
.s04__feature-gallery {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #2a241c;
}
.s04__feature-track {
	display: flex;
	height: 100%;
	transition: transform .7s var(--haven-lb-ease-out);
}
.s04__feature-slide {
	flex: 0 0 100%;
	height: 100%;
}
.s04__feature-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.94);
}
.s04__feature-loc {
	position: absolute;
	left: 18px;
	top: 18px;
	font-family: var(--haven-lb-sans);
	font-size: 10px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--haven-lb-warm-linen);
	font-weight: 500;
	background: rgba(15, 12, 8, .6);
	padding: 8px 14px;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-radius: var(--haven-lb-r-pill);
	z-index: 3;
}
.s04__feature-counter {
	position: absolute;
	right: 18px;
	top: 18px;
	font-family: var(--haven-lb-sans);
	font-size: 10px;
	letter-spacing: .18em;
	color: var(--haven-lb-warm-linen);
	background: rgba(15, 12, 8, .6);
	padding: 6px 12px;
	border-radius: var(--haven-lb-r-pill);
	font-weight: 500;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	z-index: 3;
}
.s04__feature-gnav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(15, 12, 8, .6);
	color: var(--haven-lb-warm-linen);
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .25s, background .2s;
	z-index: 4;
	border: 0;
	cursor: pointer;
}
.s04__feature-gallery:hover .s04__feature-gnav,
.s04__feature-gallery:focus-within .s04__feature-gnav {
	opacity: 1;
}
.s04__feature-gnav:hover {
	background: var(--haven-lb-sand-dune);
	color: var(--haven-lb-ink);
}
.s04__feature-gnav--prev {
	left: 14px;
}
.s04__feature-gnav--next {
	right: 14px;
}
.s04__feature-dots {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
	z-index: 4;
}
.s04__feature-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
	transition: all .3s ease;
}
.s04__feature-dot.is-active {
	background: var(--haven-lb-sand-dune);
	width: 22px;
	border-radius: var(--haven-lb-r-pill);
}
.s04__feature-body {
	padding: 22px 30px 26px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 20px;
	flex-wrap: wrap;
	background: var(--haven-lb-warm-linen);
}
.s04__feature-name {
	font-family: var(--haven-lb-serif);
	font-weight: 400;
	font-size: 24px;
	color: var(--haven-lb-ink);
	line-height: 1.2;
	letter-spacing: -.005em;
	margin-bottom: 6px;
}
.s04__feature-meta {
	font-family: var(--haven-lb-sans);
	font-size: 13px;
	letter-spacing: .06em;
	color: var(--haven-lb-ink-mute);
}
.s04__feature-link {
	font-family: var(--haven-lb-sans);
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--haven-lb-ink);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--haven-lb-ink);
	transition: gap .25s, color .25s, border-color .25s;
	text-decoration: none;
}
.s04__feature-link:hover {
	gap: 18px;
	color: var(--haven-lb-sand-deep);
	border-color: var(--haven-lb-sand-deep);
}
.s04__feature-link::after {
	content: "→";
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 16px;
	letter-spacing: 0;
}

/* ─── Property list ──────────────────────────────────── */
.s04__list {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	max-height: calc(100svh - 280px);
	max-height: calc(100vh - 280px);
}
.s04__list-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 0 4px 14px;
	border-bottom: 1px solid var(--haven-lb-rule);
	margin-bottom: 6px;
}
.s04__list-label {
	font-family: var(--haven-lb-sans);
	font-size: 10px;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--haven-lb-ink-mute);
	font-weight: 500;
}
.s04__list-count {
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 13px;
	color: var(--haven-lb-ink-mute);
}
.s04__list-scroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 6px 4px 6px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--haven-lb-sand-dune) rgba(196, 160, 120, .15);
	position: relative;
}
.s04__list-scroll::-webkit-scrollbar {
	width: 6px;
}
.s04__list-scroll::-webkit-scrollbar-track {
	background: rgba(196, 160, 120, .12);
	border-radius: 3px;
}
.s04__list-scroll::-webkit-scrollbar-thumb {
	background: var(--haven-lb-sand-dune);
	border-radius: 3px;
}
.s04__list-fade {
	position: absolute;
	left: 0;
	right: 0;
	height: 24px;
	pointer-events: none;
	z-index: 2;
}
.s04__list-fade--top {
	top: 0;
	background: linear-gradient(180deg, var(--haven-lb-warm-linen) 0%, rgba(250, 247, 241, 0) 100%);
}
.s04__list-fade--bottom {
	bottom: 0;
	background: linear-gradient(0deg, var(--haven-lb-warm-linen) 0%, rgba(250, 247, 241, 0) 100%);
}

.s04__row {
	position: relative;
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 12px 16px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--haven-lb-r-card);
	cursor: pointer;
	transition: all .35s var(--haven-lb-ease-out);
	text-align: left;
	width: 100%;
	margin-bottom: 6px;
	outline: none;
	font: inherit;
	color: inherit;
}
.s04__row:hover,
.s04__row:focus-visible {
	background: rgba(196, 160, 120, .08);
	border-color: rgba(196, 160, 120, .2);
}
.s04__row.is-active {
	background: var(--haven-lb-linen-deep);
	border-color: var(--haven-lb-ink);
}
.s04__row-thumb {
	width: 80px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	background: #2a241c;
	flex-shrink: 0;
}
.s04__row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--haven-lb-ease-out);
	display: block;
}
.s04__row:hover .s04__row-thumb img {
	transform: scale(1.08);
}
.s04__row-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}
.s04__row-name {
	font-family: var(--haven-lb-serif);
	font-weight: 400;
	font-size: 16px;
	color: var(--haven-lb-ink);
	line-height: 1.25;
	letter-spacing: -.005em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.s04__row-meta {
	font-family: var(--haven-lb-sans);
	font-size: 11.5px;
	letter-spacing: .04em;
	color: var(--haven-lb-ink-mute);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.s04__row-num {
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 17px;
	color: var(--haven-lb-sand-deep);
	line-height: 1;
	font-weight: 300;
}
.s04__row.is-active .s04__row-num {
	color: var(--haven-lb-ink);
}

.s04__list-foot {
	padding-top: 14px;
	text-align: right;
	border-top: 1px solid var(--haven-lb-rule);
	margin-top: 6px;
}
.s04__list-foot-link {
	font-family: var(--haven-lb-sans);
	font-size: 11px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--haven-lb-ink);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--haven-lb-ink);
	transition: gap .25s, color .25s, border-color .25s;
	text-decoration: none;
}
.s04__list-foot-link::after {
	content: "→";
	font-family: var(--haven-lb-serif);
	font-style: italic;
	font-size: 16px;
	letter-spacing: 0;
}
.s04__list-foot-link:hover {
	gap: 18px;
	color: var(--haven-lb-sand-deep);
	border-color: var(--haven-lb-sand-deep);
}

@media (max-width: 980px) {
	.s04__sub {
		max-width: 46ch;
		white-space: normal;
	}
	.s04__shell {
		grid-template-columns: 1fr;
	}
	.s04__list {
		max-height: none;
	}
	.s04__list-scroll {
		max-height: 380px;
	}
}

/* ═══════════════════════════════════════════════════════════
   LINK STATE NORMALIZATION  ·  S04 Look Book
   ─────────────────────────────────────────────────────────
   The global `a:hover, a:focus` rule in style.css adds an
   underline + --haven-primary-700 (blue) on every link state
   the class doesn't redeclare. The S04 link classes only set
   `text-decoration: none` on their base state, so the global
   underline + blue color leaks through on hover/focus.

   Affected links:
     · "View this home"           (.s04__feature-link)
     · "Explore all 40+ stays"    (.s04__list-foot-link)
   ═════════════════════════════════════════════════════════ */
.s04__feature-link:link,
.s04__feature-link:visited,
.s04__feature-link:hover,
.s04__feature-link:focus,
.s04__feature-link:focus-visible,
.s04__feature-link:active,
.s04__list-foot-link:link,
.s04__list-foot-link:visited,
.s04__list-foot-link:hover,
.s04__list-foot-link:focus,
.s04__list-foot-link:focus-visible,
.s04__list-foot-link:active {
	text-decoration: none;
}

/* Lock brand colors on EVERY state — :link, :visited, :hover,
   :focus, :focus-visible, :active. The previous patch only
   suppressed text-decoration; the actual blue Samuel saw on the
   homepage links was a *color* leak (most likely from
   `a:visited { color: var(--haven-primary, ...); }` in
   haven-foundation.css winning at specificity 0,1,1 over the
   class's 0,1,0). Class+pseudo-class (0,2,0) defeats it. */
.s04__feature-link:link,
.s04__feature-link:visited,
.s04__feature-link:active {
	color: var(--haven-lb-ink);
	border-bottom-color: var(--haven-lb-ink);
}
.s04__feature-link:hover,
.s04__feature-link:focus,
.s04__feature-link:focus-visible {
	color: var(--haven-lb-sand-deep);
	border-bottom-color: var(--haven-lb-sand-deep);
}

.s04__list-foot-link:link,
.s04__list-foot-link:visited,
.s04__list-foot-link:active {
	color: var(--haven-lb-ink);
	border-bottom-color: var(--haven-lb-ink);
}
.s04__list-foot-link:hover,
.s04__list-foot-link:focus,
.s04__list-foot-link:focus-visible {
	color: var(--haven-lb-sand-deep);
	border-bottom-color: var(--haven-lb-sand-deep);
}
