/* ── White House Residences — section and component styles ──────────────────
   Ported from the comp's rendered output. Every value here comes from the
   design system's custom properties; nothing is a hard-coded hex, font stack,
   radius or duration. Where the comp inlined a literal, the token that literal
   came from is used instead.

   Order: primitives → chrome → components → sections → overlays.           */

/* ── Layout primitives ──────────────────────────────────────────────────── */

/* Every cropped photograph sits in a ratio box. The image fills it and is
   cover-cropped; the box owns the shape. Putting aspect-ratio on the <img>
   does nothing once it carries width and height attributes. */
.wh-ratio {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
}
.wh-ratio > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Uncropped images keep their own shape without shifting the layout. */
.wh-img { max-width: 100%; }
img.wh-img:not(.wh-hero__img):not(.wh-oval) { height: auto; }

.wh-section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 160px) var(--gutter);
  background: var(--surface-page);
}
.wh-section--tight  { padding: clamp(72px, 9vw, 128px) var(--gutter); }
.wh-section--slim   { padding: clamp(56px, 7vw, 88px) var(--gutter); }
.wh-section--flush  { padding-top: 0; padding-bottom: clamp(72px, 9vw, 128px); }
.wh-section--cream  { background: var(--surface-warm); border-top: 1px solid rgba(50, 50, 50, .06); }
.wh-section--forest { background: var(--surface-brand); color: var(--text-on-dark); }
.wh-section--deep   { background: var(--surface-deep); color: var(--text-on-dark); }

.wh-section--forest :is(h1, h2, h3, h4),
.wh-section--deep   :is(h1, h2, h3, h4) { color: var(--text-on-dark); }

.wh-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* The ghost mark — the system's only background decoration, at 3%. */
.wh-underlay {
  position: absolute;
  z-index: 0;
  opacity: .03;
  pointer-events: none;
  user-select: none;
  top: 50%;
  width: 100%;
  height: auto;
}
.wh-underlay--left   { left: 0;   transform: translate(-25%, -50%); }
.wh-underlay--right  { right: 0;  transform: translate(25%, -50%); }
.wh-underlay--centre { left: 50%; width: 50%; transform: translate(-50%, -50%); }

/* ── Reveal ─────────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y-lg));
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.wh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    height var(--dur-slow) var(--ease-out),
    background var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}
.wh-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter-lg);
}
.wh-header.is-scrolled,
.wh-header.is-solid {
  height: var(--nav-height-scrolled);
  background: rgba(253, 251, 246, .88);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom-color: var(--border-hairline);
}

/* Brand — badge hangs over the bar, wordmark takes over on scroll. */
.wh-brand {
  position: relative;
  display: block;
  width: 232px;
  height: 100%;
  flex-shrink: 0;
}
.wh-brand__wordmark,
.wh-brand__badge {
  position: absolute;
  left: 0;
  display: block;
  object-fit: contain;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.wh-brand__wordmark {
  height: 30px;
  width: auto;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.wh-brand__badge {
  height: var(--badge-size);
  width: var(--badge-size);
  top: -24px;
  border-radius: var(--radius-badge);
  box-shadow: var(--shadow-badge);
  transform-origin: left top;
  opacity: 1;
}
.wh-header.is-scrolled .wh-brand__wordmark,
.wh-header.is-solid   .wh-brand__wordmark { opacity: 1; }
.wh-header.is-scrolled .wh-brand__badge,
.wh-header.is-solid   .wh-brand__badge { opacity: 0; transform: scale(.72); }

/* Nav */
.wh-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.wh-nav__link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  white-space: nowrap;
  text-decoration: none;
  color: var(--white);
  transition: color var(--dur-base) var(--ease-out);
}
.wh-nav__link:hover { color: var(--gold-400); }
.wh-header.is-scrolled .wh-nav__link,
.wh-header.is-solid   .wh-nav__link { color: var(--ink-800); }
.wh-header.is-scrolled .wh-nav__link:hover,
.wh-header.is-solid   .wh-nav__link:hover,
.wh-header.is-scrolled .wh-nav__link.is-current,
.wh-header.is-solid   .wh-nav__link.is-current { color: var(--gold-700); }
.wh-nav__link.is-current { color: var(--gold-400); }

.wh-nav__socials {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-left: var(--space-6);
  border-left: 1px solid var(--white-a20);
}
.wh-nav__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white-a60);
  transition: color var(--dur-base) var(--ease-out);
}
.wh-nav__socials a:hover { color: var(--gold-500); }
.wh-header.is-scrolled .wh-nav__socials,
.wh-header.is-solid   .wh-nav__socials { border-left-color: var(--border-hairline); }
.wh-header.is-scrolled .wh-nav__socials a,
.wh-header.is-solid   .wh-nav__socials a { color: var(--ink-a60); }
.wh-header.is-scrolled .wh-nav__socials a:hover,
.wh-header.is-solid   .wh-nav__socials a:hover { color: var(--gold-700); }

.wh-header.is-scrolled .wh-nav__cta,
.wh-header.is-solid   .wh-nav__cta {
  color: var(--ink-800);
  border-color: var(--ink-800);
}
.wh-header.is-scrolled .wh-nav__cta:hover,
.wh-header.is-solid   .wh-nav__cta:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}

/* Burger — hidden above the breakpoint, see mobile.css. */
.wh-burger { display: none; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.wh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}
.wh-btn--sm { padding: .6875rem 1.5rem; font-size: var(--text-xs); }
.wh-btn--md { padding: .875rem 1.75rem; font-size: var(--text-xs); }
.wh-btn--lg { padding: 1rem 2rem;       font-size: var(--text-sm); }
.wh-btn--full { width: 100%; }

.wh-btn--solid { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.wh-btn--solid:hover { background: var(--green-600); border-color: var(--green-600); color: var(--white); }

.wh-btn--accent { background: var(--gold-500); color: var(--green-700); border-color: var(--gold-500); }
.wh-btn--accent:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--green-700); }

.wh-btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.wh-btn--outline:hover { background: var(--green-700); color: var(--white); }

.wh-btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.wh-btn--outline-light:hover { background: var(--white); color: var(--green-700); }

.wh-btn--glass {
  background: var(--surface-glass);
  color: var(--white);
  border-color: var(--white-a30);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
}
.wh-btn--glass:hover { background: var(--white-a20); color: var(--white); }

/* ── Type gestures ──────────────────────────────────────────────────────── */

.wh-eyebrow {
  display: block;
  color: var(--text-accent);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  line-height: var(--leading-normal);
}
.wh-eyebrow--dark { color: var(--text-accent-on-dark); }

.wh-display  { font-family: var(--font-display); font-weight: var(--weight-light); line-height: 1.08; text-wrap: balance; margin: 0; }
.wh-display-1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); }
.wh-display-2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.1; }
.wh-display-3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }

.wh-cat-title--ruled {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-hairline);
}
.wh-section--forest .wh-cat-title--ruled,
.wh-section--deep   .wh-cat-title--ruled { border-bottom-color: var(--border-on-dark); }
.wh-cat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  color: var(--text-heading);
}

.wh-lead   { font-size: var(--text-body); line-height: var(--leading-relaxed); color: var(--text-muted); margin: 0; }
.wh-prose  { display: flex; flex-direction: column; gap: 20px; font-size: var(--text-body); line-height: var(--leading-relaxed); color: var(--text-muted); max-width: 34rem; }
.wh-prose p { margin: 0; }
.wh-section--forest .wh-lead,
.wh-section--forest .wh-prose,
.wh-section--deep   .wh-lead,
.wh-section--deep   .wh-prose { color: var(--white-a85); }

.wh-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-accent);
}
.wh-divider::before {
  content: "";
  width: var(--rule-length);
  height: var(--rule-width);
  background: var(--border-accent);
  flex: none;
}

.wh-heading { max-width: 34rem; }
.wh-heading--center { max-width: 44rem; margin-inline: auto; text-align: center; }
.wh-heading > :is(h1, h2) { margin-top: var(--space-6); }

.wh-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent-soft);
  padding-bottom: 4px;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.wh-link:hover { color: var(--green-700); border-bottom-color: var(--green-700); }
.wh-section--forest .wh-link,
.wh-section--deep   .wh-link { color: var(--text-accent-on-dark); }
.wh-section--forest .wh-link:hover,
.wh-section--deep   .wh-link:hover { color: var(--white); border-bottom-color: var(--white); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.wh-hero {
  position: relative;
  height: clamp(560px, 92vh, 860px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(88px, 12vh, 128px);
}
/* Measured: 522px at a 900px viewport, 490px at 844px — 58vh either way. */
.wh-hero--page { height: clamp(420px, 58vh, 620px); padding-bottom: clamp(56px, 8vh, 88px); }
.wh-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wh-hero::before,
.wh-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wh-hero::before { background: var(--scrim-top); }
.wh-hero::after  { background: var(--scrim-bottom); }
.wh-hero__body {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 56rem;
}
.wh-hero__kicker {
  display: block;
  color: var(--gold-500);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-brand);
  line-height: 1.9;
}
.wh-hero__body h1 {
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: clamp(2.5rem, 6.4vw, 4.5rem);
  line-height: 1.08;
  color: var(--white);
  text-wrap: balance;
}
.wh-hero__body p {
  margin: 28px auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .78);
  text-wrap: pretty;
}
.wh-hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

/* ── Editorial split ────────────────────────────────────────────────────── */

.wh-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.wh-split--media { gap: clamp(40px, 6vw, 80px); grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); }
.wh-split__body > * + * { margin-top: var(--space-8); }
.wh-split__body .wh-eyebrow + :is(h2, h3) { margin-top: var(--space-6); }

/* Measured from the comp: a fixed 300x400 at 1440, 1024 and 390 alike,
   centred in its column. Not fluid — do not "improve" it to a percentage. */
.wh-oval-frame > .wh-ratio {
  width: 300px;
  max-width: 100%;
  margin-inline: auto;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='50%25' cy='50%25' rx='50%25' ry='50%25' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='50%25' cy='50%25' rx='50%25' ry='50%25' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* The design system documents an offset gold ring beside the oval; the comp
   does not use it on any of these pages, so it is not drawn here. */
.wh-oval-frame { position: relative; display: flex; justify-content: center; }

.wh-figure { border-radius: var(--radius-lg); overflow: hidden; }
.wh-figure > .wh-ratio { height: 100%; }

/* ── Grids ──────────────────────────────────────────────────────────────── */

.wh-grid { display: grid; gap: var(--grid-gap); margin-top: var(--space-16); }
.wh-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.wh-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* The hairline-separated highlight grid — 1px gaps over an ink field. */
.wh-hairgrid {
  margin-top: var(--space-16);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: var(--ink-a10);
  border: 1px solid var(--ink-a10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.wh-hairgrid__cell {
  background: var(--surface-card);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.wh-hairgrid__cell .wh-icon { color: var(--text-accent); }
.wh-hairgrid__cell p { margin: 0; font-size: .95rem; line-height: 1.7; color: rgba(50, 50, 50, .75); }

.wh-headrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
}

/* ── Cards ──────────────────────────────────────────────────────────────── */

.wh-card {
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.wh-section--cream .wh-card { background: var(--white); }
.wh-section--forest .wh-card,
.wh-section--deep   .wh-card { background: transparent; border-color: var(--border-on-dark); }

/* Residence card — the serif name turning gold is the entire hover affordance. */
.wh-unit {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: left;
  padding: 0;
  cursor: pointer;
  width: 100%;
  font: inherit;
  color: inherit;
}
.wh-unit__media { display: block; overflow: hidden; border-radius: var(--radius-md); }
.wh-unit__media img { transition: transform var(--dur-image) var(--ease-out); }
.wh-unit:hover .wh-unit__media img { transform: scale(var(--hover-image-scale)); }
.wh-unit__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-5) 0 0; }
.wh-unit__name {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  color: var(--text-heading);
  transition: color var(--dur-base) var(--ease-out);
}
.wh-unit:hover .wh-unit__name { color: var(--text-accent); }
.wh-unit__loc {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-accent);
}
.wh-unit__specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.wh-unit__specs li + li::before { content: "• "; color: var(--text-accent); }
.wh-unit__foot {
  margin-top: var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
}
.wh-unit__foot .wh-price__amt { font-size: var(--text-xl); }
.wh-unit__foot .wh-price__cur,
.wh-unit__foot .wh-price__per { font-size: var(--text-xs); }
.wh-unit__foot .wh-link { border-bottom: 0; padding-bottom: 0; }

.wh-price {
  font-family: var(--font-display);
  color: var(--text-heading);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.wh-price__cur { font-size: var(--text-lg); color: var(--text-accent); }
.wh-price__amt { font-size: var(--text-3xl); font-weight: var(--weight-regular); line-height: 1; }
.wh-price__per { font-family: var(--font-sans); font-size: var(--text-xs); color: var(--text-subtle); letter-spacing: var(--tracking-label); text-transform: uppercase; }
.wh-section--forest .wh-price,
.wh-section--deep   .wh-price { color: var(--white); }

/* Amenity row — cream disc fills gold on hover, glyph goes forest. */
.wh-amenity { display: flex; align-items: center; gap: var(--space-4); }
.wh-amenity__disc {
  flex: none;
  width: var(--icon-chip);
  height: var(--icon-chip);
  border-radius: var(--radius-pill);
  background: var(--surface-warm);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.wh-amenity:hover .wh-amenity__disc { background: var(--gold-500); color: var(--green-700); }
.wh-amenity__label { font-size: .95rem; line-height: 1.6; color: var(--text-muted); }
.wh-section--forest .wh-amenity__disc,
.wh-section--deep   .wh-amenity__disc { background: var(--white-a10); color: var(--gold-500); }
.wh-section--forest .wh-amenity__label,
.wh-section--deep   .wh-amenity__label { color: var(--white-a85); }

.wh-detail { display: flex; align-items: flex-start; gap: var(--space-3); font-size: .95rem; line-height: 1.6; color: var(--text-muted); }
.wh-detail .wh-icon { flex: none; color: var(--text-accent); margin-top: 2px; }
.wh-section--forest .wh-detail,
.wh-section--deep   .wh-detail { color: var(--white-a85); }
.wh-section--forest .wh-detail .wh-icon,
.wh-section--deep   .wh-detail .wh-icon { color: var(--gold-500); }

.wh-detail-list { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.wh-detail-list--2 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-4) var(--space-8); }

.wh-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.wh-bullets li { position: relative; padding-left: var(--space-6); font-size: var(--text-body); line-height: var(--leading-relaxed); color: var(--text-muted); }
.wh-bullets li::before { content: ""; position: absolute; left: 0; top: var(--space-3); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wh-section--forest .wh-bullets li,
.wh-section--deep   .wh-bullets li { color: var(--white-a85); }

.wh-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: .04em;
  background: var(--gold-100);
  color: var(--gold-800);
  border: 1px solid var(--border-accent-soft);
}
.wh-pill--pending { background: var(--ink-50); color: var(--ink-600); border-color: var(--ink-a10); }

/* ── Gallery ────────────────────────────────────────────────────────────── */

.wh-gallery {
  margin-top: var(--space-16);
  columns: 3;
  column-gap: var(--space-4);
}
.wh-gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.wh-gallery__item img { transition: transform var(--dur-image) var(--ease-out); }
.wh-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hover-veil);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.wh-gallery__item:hover img { transform: scale(var(--hover-image-scale)); }
.wh-gallery__item:hover::after { opacity: 1; }

/* ── Overlays: lightbox and modal ───────────────────────────────────────── */

.wh-lightbox,
.wh-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.wh-lightbox[hidden],
.wh-modal[hidden] { display: none; }
.wh-lightbox { background: rgba(6, 24, 12, .95); backdrop-filter: blur(var(--blur-veil)); }
.wh-modal    { background: rgba(6, 24, 12, .6);  backdrop-filter: blur(var(--blur-veil)); overflow-y: auto; align-items: flex-start; padding-block: clamp(24px, 6vh, 72px); }

.wh-lightbox__img { max-width: min(1100px, 92vw); max-height: 84vh; object-fit: contain; border-radius: var(--radius-md); }
.wh-lightbox__btn,
.wh-modal__close {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--white-a20);
  background: transparent;
  color: var(--white-a60);
  cursor: pointer;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.wh-lightbox__btn:hover,
.wh-modal__close:hover { color: var(--white); border-color: var(--white); }
.wh-lightbox__btn--prev  { left: var(--space-6); top: 50%; transform: translateY(-50%); }
.wh-lightbox__btn--next  { right: var(--space-6); top: 50%; transform: translateY(-50%); }
.wh-lightbox__btn--close { right: var(--space-6); top: var(--space-6); }
.wh-lightbox__count {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--white-a60);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
}

.wh-modal__panel {
  position: relative;
  width: min(820px, 100%);
  background: var(--surface-page);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.wh-modal__close { color: var(--ink-a60); border-color: var(--border-hairline); top: var(--space-4); right: var(--space-4); position: absolute; }
.wh-modal__close:hover { color: var(--ink-900); border-color: var(--ink-800); }
.wh-modal__title { margin: 0; font-family: var(--font-display); font-size: var(--text-3xl); font-weight: var(--weight-regular); color: var(--text-heading); }
.wh-modal__sub   { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--text-subtle); }
.wh-modal__body  { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-8); }
.wh-modal__strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: var(--space-3); }
.wh-modal__strip .wh-ratio { border-radius: var(--radius-md); }
.wh-modal__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-hairline);
}

body.wh-locked { overflow: hidden; }

/* ── Enquiry form ───────────────────────────────────────────────────────── */

.wh-form {
  background: var(--surface-warm);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.wh-form__title {
  margin: 0 0 var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--ink-a10);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  color: var(--text-heading);
}
.wh-field { display: flex; flex-direction: column; gap: var(--space-2); }
.wh-field__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-subtle);
}
.wh-field input,
.wh-field select,
.wh-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-a20);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-weight: var(--weight-light);
  font-size: 1rem;
  color: var(--ink-800);
  transition: border-color var(--dur-base) var(--ease-out);
}
.wh-field input:focus,
.wh-field select:focus,
.wh-field textarea:focus { border-color: var(--border-accent); outline: none; }
.wh-field textarea { resize: vertical; min-height: 120px; }
.wh-field__error { font-size: var(--text-xs); color: var(--danger-strong); }
.wh-field.has-error input,
.wh-field.has-error select,
.wh-field.has-error textarea { border-color: var(--danger); }

.wh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.wh-form__grid { display: flex; flex-direction: column; gap: var(--space-5); }
.wh-form__nights { font-size: var(--text-xs); color: var(--text-subtle); letter-spacing: .04em; }
.wh-form__sent { text-align: center; padding: var(--space-10) var(--space-4); }
.wh-form__sent .wh-icon { color: var(--success-strong); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.wh-footer {
  position: relative;
  overflow: hidden;
  background: var(--surface-deep);
  color: var(--text-on-dark);
  padding: clamp(64px, 8vw, 96px) var(--gutter) 32px;
  border-top: 1px solid var(--white-a20);
}
.wh-footer__cols {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-12);
  align-items: start;
}
.wh-footer__brand p { margin: var(--space-6) 0 0; max-width: 24rem; font-size: var(--text-sm); line-height: 1.7; color: var(--white-a60); }
.wh-footer__mark { height: 15px; width: auto; }
.wh-footer__col ul,
.wh-footer__know ul { margin: var(--space-6) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: var(--text-sm); color: var(--white-a60); }
.wh-footer a { color: var(--white-a60); transition: color var(--dur-base) var(--ease-out); }
.wh-footer a:hover { color: var(--gold-500); }
.wh-footer__know {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--white-a20);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-4) var(--space-10);
}
.wh-footer__know ul { flex: 1; flex-direction: row; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin-top: 0; }
.wh-footer__legal {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: var(--space-8) auto 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--white-a20);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}
.wh-footer__legal p { margin: 0; font-size: var(--text-xs); color: var(--white-a40); }

.wh-socials { display: flex; gap: var(--space-3); }
.wh-socials--circle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--white-a20);
  color: var(--white-a60);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.wh-socials--circle a:hover { color: var(--gold-500); border-color: var(--gold-500); }

/* ── Floating chrome ────────────────────────────────────────────────────── */

.wh-fab {
  position: fixed;
  right: var(--gutter);
  bottom: 92px;   /* measured from the comp — clear of the booking bar */
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: var(--shadow-raised);
  transition: background var(--dur-base) var(--ease-out);
}
.wh-fab:hover { background: var(--whatsapp-light); color: var(--white); }

.wh-bookbar { display: none; }

/* ── Focus ──────────────────────────────────────────────────────────────── */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Every page begins under the fixed header. */
.wh-page-top { padding-top: var(--nav-height); }

/* ── Residence detail rows (the /residences/ page) ──────────────────────── */

.wh-unit-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 96px);
}
.wh-unit-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: var(--space-16);
  align-items: center;
}
.wh-unit-row.is-reversed .wh-figure { order: 2; }
.wh-unit-row__promise {
  margin: var(--space-6) 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: var(--leading-snug);
  font-weight: var(--weight-light);
  color: var(--text-heading);
}
.wh-unit-row__body > p.wh-lead { margin-top: var(--space-6); }
.wh-unit-row__amenities {
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: var(--space-3) var(--space-8);
}
.wh-unit-row__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.wh-unit-row__actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.wh-unit-row__actions button.wh-link { background: none; border-width: 0 0 1px; cursor: pointer; font: inherit; }

/* ── Reviews ───────────────────────────────────────────────────────────── */

.wh-quote { display: flex; flex-direction: column; gap: var(--space-6); margin: 0; }
.wh-quote blockquote { margin: 0; }
.wh-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-light);
  line-height: 1.45;
  color: var(--text-heading);
}
.wh-quote figcaption {
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-subtle);
}

.wh-score { display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface-warm); border-color: transparent; }
.wh-score__num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--weight-light);
  line-height: 1;
  color: var(--text-heading);
}
.wh-score__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-accent);
}
.wh-score__meta { margin: 0; font-size: var(--text-xs); color: var(--text-subtle); }
.wh-score__cats { list-style: none; margin: var(--space-4) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--ink-a10); display: grid; gap: var(--space-2); }
.wh-score__cats li { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--text-muted); }
.wh-score__cats li span:last-child { font-family: var(--font-display); color: var(--text-heading); }

/* ── Location cards ────────────────────────────────────────────────────── */

.wh-near { display: flex; flex-direction: column; gap: var(--space-3); }
.wh-near .wh-icon { color: var(--text-accent); }
.wh-near__name { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: var(--weight-regular); color: var(--text-heading); }
.wh-near__dist {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-subtle);
}

.wh-step {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: 1;
  color: var(--gold-500);
}

/* The honeypot. Off-screen rather than display:none — some bots skip hidden
   fields, and none of them read this one's label. */
.wh-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cards carrying an icon then a title want the icon to sit on its own line. */
.wh-card > .wh-icon { display: block; color: var(--text-accent); }
.wh-section--forest .wh-card > .wh-icon,
.wh-section--deep   .wh-card > .wh-icon { color: var(--gold-500); }
.wh-section--forest .wh-card .wh-lead,
.wh-section--deep   .wh-card .wh-lead { color: var(--white-a85); }
.wh-section--forest .wh-near__dist,
.wh-section--deep   .wh-near__dist { color: var(--white-a60); }

/* Sections stack their direct children on the section rhythm. */
.wh-section .wh-wrap > * + .wh-grid,
.wh-section .wh-wrap > * + .wh-split { margin-top: var(--space-16); }

/* ── The distances card (Location) ──────────────────────────────────────── */

.wh-distances__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.wh-distances__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.wh-distances__km {
  flex: none;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--text-heading);
  white-space: nowrap;
}
.wh-distances__note {
  margin: var(--space-5) 0 0;
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-subtle);
}
