/* =========================================================
   Villa Lumière | Single property showcase (Demonstration)
   Offered by Sophia Bennett, The Corcoran Group Miami
   ========================================================= */

:root {
  --ivory: #f6f1e9;
  --paper: #fbf9f5;
  --sand: #e8dfcf;
  --sand-deep: #d8c9b0;
  --gold: #a07f4a;
  --gold-soft: #c9ad7a;
  --charcoal: #2a2825;
  --ink: #15140f;
  --muted: #6a655d;
  --line: rgba(21, 20, 15, .12);
  --line-light: rgba(255, 255, 255, .24);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(56px, 6.5vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-light { color: rgba(255,255,255,.9); }
.eyebrow-gold { color: var(--gold-soft); }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 5.4vw, 5.2rem); line-height: 1.02; letter-spacing: -.015em;
}
.display em { font-style: italic; color: var(--gold); }
.display-sm { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; }
.h-sm { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 20px; }

.section-head { margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 470px; line-height: 1.8; }
.section-head .link-arrow { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 30px;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover-bg, var(--gold));
  transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--hover-fg, #fff); border-color: var(--hover-bd, var(--gold)); }
.btn:active { transform: translateY(1px); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-gold { --bg: var(--gold); --fg: #fff; --bd: var(--gold); --hover-bg: var(--ink); --hover-bd: var(--ink); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); --hover-bg: var(--ink); --hover-bd: var(--ink); }
.btn-block { width: 100%; }
.btn-wide { min-width: 300px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 0;
  background: none; border: 0; cursor: pointer; text-decoration: none; color: var(--ink);
  font-size: 11.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.link-arrow::after { content: ""; width: 36px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.link-arrow:hover::after, .link-arrow:focus-visible::after { width: 64px; }
.link-arrow:hover { color: var(--gold); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.3); }
.linklike:hover { color: #fff; }

/* ---------- Media + fallback ---------- */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #ddd0bb 0%, #bcad92 55%, #928268 100%); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.img-fallback img, .img-fallback > img { opacity: 0; }
.media.img-fallback::after {
  content: attr(data-label); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(255,255,255,.92);
}
.hero-media.img-fallback::after, .showing-media.img-fallback::after { content: none !important; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease); }
.js .site-header { position: fixed; }
.header-inner { max-width: 1600px; margin: 0 auto; height: 88px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 40px; transition: height .45s var(--ease); }
.site-header.is-solid { background: rgba(251,249,245,.94); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .header-inner { height: 70px; }
.brand { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; }
.brand-sub { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .8; margin-top: 4px; }
.main-nav ul { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.main-nav a { position: relative; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.main-nav a:hover::after, .main-nav a:focus-visible::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header-cta { min-height: 44px; padding: 0 22px; font-size: 10.5px; --bg: transparent; --fg: currentColor; --bd: currentColor; }
.site-header:not(.is-solid) .header-cta { --fg: #fff; --bd: rgba(255,255,255,.6); --hover-bg: #fff; --hover-fg: var(--ink); --hover-bd: #fff; }
.site-header.is-solid .header-cta { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }

.menu-toggle { display: none; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease), top .45s var(--ease); }
.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 28px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
body.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: #fff; display: flex; padding: 110px var(--gutter) 36px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.mobile-menu[hidden] { display: flex; }
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu-inner { width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; overflow-y: auto; }
.mobile-menu ol li { border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.mobile-menu ol a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; font-family: var(--serif); font-size: clamp(1.9rem, 7.5vw, 2.6rem); line-height: 1.1; text-decoration: none; transform: translateY(100%); transition: transform .7s var(--ease-out), color .3s; }
.mobile-menu ol a span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold-soft); }
.mobile-menu ol a:hover { color: var(--gold-soft); }
.mobile-menu.is-open ol a { transform: none; }
.mobile-menu.is-open ol li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open ol li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open ol li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open ol li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu.is-open ol li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu-foot p { margin-top: 22px; color: rgba(255,255,255,.7); line-height: 2; }
.mobile-menu-foot a { text-decoration: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { animation: heroZoom 24s var(--ease) forwards; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.14); } to { transform: scale(1.02) translate3d(-1%, -.5%, 0); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,9,.38) 0%, rgba(12,11,9,0) 20%, rgba(12,11,9,0) 58%, rgba(12,11,9,.45) 100%); }
.hero-title, .hero-address, .hero-tag, .hero-top .eyebrow { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-top { position: relative; z-index: 2; padding-top: 128px; }
.hero-bottom { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 88px); }
.hero-title { font-family: var(--serif); font-weight: 400; font-size: clamp(4.2rem, 13vw, 13rem); line-height: .82; letter-spacing: -.025em; }
.hero-title span { display: block; }
.hero-title span:last-child { padding-left: .5em; }
.hero-address { margin-top: 28px; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero-tag { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: rgba(255,255,255,.9); }

.hero-card { flex: none; width: 360px; background: var(--paper); color: var(--ink); padding: 30px 30px 24px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.hero-card-label { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.hero-card-price { font-family: var(--serif); font-size: 2.6rem; line-height: 1.1; margin: 4px 0 18px; }
.hero-card-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.hero-card-facts div { padding: 12px 0; }
.hero-card-facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.hero-card-facts dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hero-card-facts dd { font-family: var(--serif); font-size: 1.35rem; }
.hero-card-form { display: grid; gap: 10px; }
.hero-card-form input { width: 100%; border: 1px solid var(--line); background: #fff; padding: 13px 14px; font-size: 15px; border-radius: 0; }
.hero-card-form input:focus { outline: none; border-color: var(--gold); }
.hero-card-hint { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

.js .hero-line { opacity: 0; transform: translateY(28px); animation: rise 1.2s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; }
.scroll-cue-line { width: 1px; height: 48px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { top: -50%; } 100% { top: 100%; } }


/* =========================================================
   PRICE BAR (full width, directly under the hero)
   ========================================================= */
.price-bar { background: var(--ink); color: #fff; }
.price-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(24px, 3.5vw, 56px); padding-top: 28px; padding-bottom: 28px; }
.pb-label { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.pb-value { font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.05; white-space: nowrap; }
.pb-facts { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; gap: 0; border-left: 1px solid var(--line-light); padding-left: clamp(20px, 3vw, 48px); }
.pb-facts div { padding-right: 16px; }
.pb-facts dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.pb-facts dd { font-family: var(--serif); font-size: 1.55rem; white-space: nowrap; }
.pb-form { display: flex; gap: 10px; }
.pb-form input { width: 170px; border: 1px solid var(--line-light); background: transparent; color: #fff; padding: 0 14px; min-height: 54px; font-size: 15px; border-radius: 0; color-scheme: dark; }
.pb-form input:focus { outline: none; border-color: var(--gold-soft); }
@media (max-width: 1200px) {
  .price-inner { grid-template-columns: auto 1fr; }
  .pb-form { grid-column: 1 / -1; }
  .pb-form input { flex: 1; width: auto; }
}
@media (max-width: 760px) {
  .price-inner { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; padding-bottom: 24px; }
  .pb-facts { grid-template-columns: repeat(3, 1fr); border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 14px; row-gap: 12px; }
  .pb-facts dd { font-size: 1.3rem; }
  .pb-form { flex-direction: column; }
  .pb-form input { width: 100%; }
}

/* =========================================================
   STORY + FACTS
   ========================================================= */
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.story-text { margin: 24px 0 22px; display: grid; gap: 18px; font-size: 1.08rem; color: var(--charcoal); max-width: 580px; }
.story-sign { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.story-sign span { display: block; font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.story-img { aspect-ratio: 4 / 5; }
.story-media figcaption { margin-top: 14px; font-family: var(--serif); font-style: italic; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(72px, 9vw, 130px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column-reverse; padding: 30px 20px; text-align: center; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dd { font-family: var(--serif); font-size: clamp(2.4rem, 4.4vw, 4rem); line-height: 1; }
.facts dt { margin-top: 12px; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.count { font-variant-numeric: tabular-nums; }

/* =========================================================
   ROOMS
   ========================================================= */
.rooms { background: var(--ivory); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: transparent; cursor: pointer; padding: 11px 22px; border-radius: 999px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(14px, 1.8vw, 24px); }
.room.is-hidden { display: none; }
.room-media { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; aspect-ratio: 4 / 5; text-align: left; color: #fff; }
.room-media img { transition: transform 1.4s var(--ease-out); }
.room-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,9,0) 50%, rgba(12,11,9,.62) 100%); transition: opacity .5s var(--ease); }
.room-media:hover img, .room-media:focus-visible img { transform: scale(1.06); }
.room-label { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 24px; display: flex; flex-direction: column; }
.room-num { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.room-name { font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 2.5vw, 2.5rem); line-height: 1.1; }
.room-media::before {
  content: "View Room"; position: absolute; z-index: 2; right: 22px; top: 22px;
  background: rgba(251,249,245,.94); color: var(--ink); padding: 10px 16px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  opacity: 0; transform: translateY(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.room-media:hover::before, .room-media:focus-visible::before { opacity: 1; transform: none; }
.room-meta { display: flex; justify-content: space-between; padding-top: 14px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* =========================================================
   VIEW BAND
   ========================================================= */
.band { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--ink); }
.band-media { position: absolute; inset: -12% 0; }
.band-media img { will-change: transform; }
.band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,11,9,.7) 0%, rgba(12,11,9,.25) 60%, rgba(12,11,9,.1) 100%); }
.band-inner { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.band-quote { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.15; max-width: 880px; margin-bottom: 40px; }

/* =========================================================
   GALLERY MOSAIC
   ========================================================= */
.mosaic {
  display: grid; gap: clamp(10px, 1.2vw, 18px);
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "a a b" "c d b" "e f f";
}
.tile { padding: 0; border: 0; cursor: zoom-in; min-height: 0; }
.tile img { transition: transform 1.4s var(--ease-out); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }
.t-a { grid-area: a; aspect-ratio: 16 / 9.2; }
.t-b { grid-area: b; }
.t-c { grid-area: c; aspect-ratio: 4 / 3; }
.t-d { grid-area: d; aspect-ratio: 4 / 3; }
.t-e { grid-area: e; aspect-ratio: 4 / 3; }
.t-f { grid-area: f; }

/* =========================================================
   PLANS + DETAILS
   ========================================================= */
.plans { background: var(--paper); padding-top: 0; }
.plan-wrap { margin-bottom: clamp(40px, 5vw, 64px); }
.plan-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.plan-tab { background: none; border: 0; cursor: pointer; padding: 14px 0; margin-right: 36px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.plan-tab.is-active { color: var(--ink); border-color: var(--gold); }
.plan-panel[hidden] { display: none; }
.plan-svg { width: 100%; height: auto; background: var(--ivory); }
.p-shell { fill: none; stroke: var(--ink); stroke-width: 4; }
.p-room rect { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; transition: fill .3s var(--ease); }
.p-room text { font-family: var(--serif); font-size: 21px; text-anchor: middle; fill: var(--ink); pointer-events: none; }
.p-room text.p-dim { font-family: var(--sans); font-size: 11px; letter-spacing: 2px; fill: var(--muted); }
.p-room:not(.p-static) { cursor: pointer; }
.p-room:not(.p-static):hover rect, .p-room:not(.p-static):focus rect { fill: #efe3cc; }
.p-room:not(.p-static):focus { outline: none; }
.p-room:not(.p-static):focus-visible rect { stroke: var(--gold); stroke-width: 3; }
.p-static rect { fill: #f1ece2; }
.plan-note { margin-top: 12px; font-size: 12px; color: var(--muted); font-style: italic; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.detail-list div:first-child { border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 14px; }
.detail-list dd { font-weight: 500; text-align: right; }
.amen-list { columns: 2; column-gap: 36px; }
.amen-list li { position: relative; padding: 12px 0 12px 22px; break-inside: avoid; border-bottom: 1px solid var(--line); font-size: .97rem; }
.amen-list li::before { content: ""; position: absolute; left: 0; top: 24px; width: 10px; height: 1px; background: var(--gold); }

/* =========================================================
   LOCATION
   ========================================================= */
.location { background: var(--ivory); }
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; margin-bottom: clamp(36px, 5vw, 60px); }
.location-copy .section-intro { margin-top: 26px; }
.drive-list { margin-top: 36px; border-top: 1px solid var(--line); }
.drive-list li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); }
.drive-list li span:last-child { font-family: var(--serif); font-size: 1.3rem; }
.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; }
.map-label { position: absolute; left: 20px; bottom: 20px; background: var(--paper); padding: 12px 16px; font-size: 12.5px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.3); }
.map-label strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.place-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.place .media { aspect-ratio: 4 / 3; }
.place img { transition: transform 1.4s var(--ease-out); }
.place:hover img { transform: scale(1.05); }
.place figcaption { padding-top: 14px; font-size: 14px; color: var(--muted); }
.place figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--ink); }

/* =========================================================
   ESTIMATOR
   ========================================================= */
.estimate { padding: clamp(48px, 6vw, 80px) 0; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.estimate .section-intro { margin-top: 20px; }
.calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.calc .ff span { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.calc-out { grid-column: 1 / -1; margin-top: 34px; padding: 30px 34px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 30px; }
.calc-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.calc-value { grid-row: span 2; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: 1; }
.calc-value span { font-size: .4em; color: rgba(255,255,255,.7); margin-left: 6px; }
.calc-note { font-size: 12.5px; color: rgba(255,255,255,.62); }

/* =========================================================
   AGENT
   ========================================================= */
.agent { background: var(--ivory); }
.agent-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.agent-portrait { aspect-ratio: 4 / 5; }
.agent-media { position: relative; }
.agent-media::before { content: ""; position: absolute; left: -28px; top: 40px; bottom: -28px; width: 60%; background: var(--sand); z-index: 0; }
.agent-portrait { z-index: 1; }
.agent-role { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 18px 0 34px; }
.agent-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.4; border-left: 1px solid var(--gold); padding-left: 28px; margin-bottom: 40px; color: var(--charcoal); }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-bottom: 40px; }
.creds li { display: flex; flex-direction: column; padding: 16px 0; border-top: 1px solid var(--line); }
.cred-k { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.cred-v { font-size: 13px; color: var(--muted); }

/* =========================================================
   SHOWING FORM
   ========================================================= */
.showing { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--paper); }
.showing-media { min-height: 560px; }
.showing-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,11,9,.1) 30%, rgba(12,11,9,.78) 100%); }
.showing-card { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 5vw, 64px); color: #fff; }
.showing-name { font-family: var(--serif); font-style: italic; font-size: clamp(2.4rem, 3.6vw, 3.4rem); line-height: 1.05; margin-bottom: 14px; }
.showing-lines { color: rgba(255,255,255,.85); line-height: 1.9; margin-top: 12px; }
.showing-lines a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.showing-lines a:hover { border-color: var(--gold-soft); }
.showing-body { padding: var(--section) var(--gutter); display: flex; align-items: center; }
.showing-inner { width: 100%; max-width: 720px; }
.showing-inner .section-intro { margin: 24px 0 44px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.ff { display: flex; flex-direction: column; min-width: 0; }
.ff-full { grid-column: 1 / -1; }
.ff > label:not(.check) { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ff input:not([type="checkbox"]), .ff select, .ff textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(21,20,15,.22); background: transparent;
  padding: 10px 0 12px; font-size: 16px; border-radius: 0; transition: border-color .3s, box-shadow .3s;
}
.ff select { appearance: none; -webkit-appearance: none; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a07f4a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right 2px center; padding-right: 18px; }
.ff textarea { resize: vertical; min-height: 96px; }
.ff input:focus, .ff select:focus, .ff textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.ff.has-error input, .ff.has-error select { border-color: #a4402f; }
.err { min-height: 22px; font-size: 12.5px; color: #a4402f; padding-top: 4px; }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--charcoal); margin-top: 10px; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--gold); flex: none; }
.form-status { margin: 8px 0 22px; font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status.ok { padding: 18px 20px; background: #eef1e8; border-left: 2px solid #5d7a4a; color: #34482a; }
.form-status.bad { padding: 18px 20px; background: #f6e9e5; border-left: 2px solid #a4402f; color: #7b2e21; }
.form-status:focus { outline: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 72px) 0 32px; font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-logo { font-family: var(--serif); font-size: 2.6rem; color: #fff; line-height: 1; margin-bottom: 18px; }
.footer-desc { max-width: 400px; }
.footer-place { margin-top: 18px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-h { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; font-weight: 600; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a, .footer-nav a:visited { color: rgba(255,255,255,.72); text-decoration: none; transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 26px 0; font-size: 12.5px; }
.eho { display: flex; align-items: center; gap: 12px; }
.legal { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.demo-notice { font-size: 12px; color: rgba(255,255,255,.5); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.credit { margin-top: 10px; font-size: 12px; color: rgba(255,255,255,.5); }
.credit a { color: var(--gold-soft); text-decoration: none; border-bottom: 1px solid rgba(201,173,122,.4); }
.credit a:hover { color: #fff; border-color: #fff; }

/* =========================================================
   FLOATING
   ========================================================= */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); box-shadow: 0 14px 30px -12px rgba(21,20,15,.4); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, background .3s, color .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); color: #fff; }
.mobile-cta { display: none; }

/* =========================================================
   LIGHTBOX + MODAL
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: clamp(0px, 3vw, 40px); opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.modal[hidden] { display: flex; }
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,11,9,.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(251,249,245,.94); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0,0,0,.35); transition: transform .4s var(--ease), background .3s, color .3s; }
.modal-close:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }

.lb-panel { position: relative; z-index: 2; width: 100%; max-width: 1400px; max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--paper); overflow: hidden; transform: translateY(24px); transition: transform .6s var(--ease-out); }
.modal.is-open .lb-panel { transform: none; }
.lb-panel:focus { outline: none; }
.lb-stage { aspect-ratio: 16 / 9; max-height: 72vh; width: 100%; background: #1c1b17; }
.lb-stage img { object-fit: cover; transition: opacity .4s var(--ease); }
.lb-stage img.is-swapping { opacity: 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(251,249,245,.92); color: var(--ink); display: grid; place-items: center; transition: background .3s, color .3s; }
.lb-nav:hover { background: var(--ink); color: #fff; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-info { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 28px clamp(24px, 4vw, 48px) 32px; }
.lb-count { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lb-title { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; margin: 6px 0; }
.lb-meta { font-size: 13px; color: var(--muted); }
.lb-detail p { color: var(--charcoal); line-height: 1.8; }
.lb-feats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.lb-feats li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--charcoal); }
.lb-feats:empty, .lb-detail p:empty { display: none; }

.modal-panel { position: relative; z-index: 2; width: 100%; max-width: 720px; max-height: 100%; overflow-y: auto; background: var(--paper); transform: translateY(24px); transition: transform .6s var(--ease-out); }
.modal.is-open .modal-panel { transform: none; }
.modal-panel:focus { outline: none; }
.cm-body { padding: clamp(40px, 6vw, 72px); }
.cm-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; margin-bottom: 20px; }
.cm-body p { color: var(--charcoal); margin-bottom: 14px; line-height: 1.85; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .room-grid .reveal:nth-child(3n+2) { transition-delay: .1s; }
.js .room-grid .reveal:nth-child(3n) { transition-delay: .2s; }
.js .place-strip .reveal:nth-child(2) { transition-delay: .1s; }
.js .place-strip .reveal:nth-child(3) { transition-delay: .2s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}

@media (max-width: 1024px) {
  .section-head.split { grid-template-columns: 1fr; gap: 20px; }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .hero-card { width: 100%; max-width: 520px; }
  .story-grid, .agent-grid, .location-grid, .estimate-grid { grid-template-columns: 1fr; }
  .story-media { max-width: 560px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts div:nth-child(4) { border-left: 0; }
  .facts div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr 1fr; gap: 16px 28px; }
  .showing { grid-template-columns: 1fr; }
  .showing-media { min-height: 0; aspect-ratio: 16 / 10; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .lb-info { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .header-inner { height: 72px; }
  .brand-name { font-size: 1.45rem; }
  .brand-sub { font-size: 8.5px; }

  .hero-top { padding-top: 104px; }
  .hero-title { font-size: clamp(4rem, 22vw, 6.4rem); }
  .hero-title span:last-child { padding-left: .35em; }
  .hero-address { font-size: 10px; letter-spacing: .24em; line-height: 1.8; }
  .hero-bottom { padding-bottom: 48px; }
  .hero-card { padding: 22px 20px 18px; }
  .hero-card-price { font-size: 2.2rem; }
  .scroll-cue { display: none; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 24px 10px; }
  .facts div:nth-child(odd) { border-left: 0; }
  .facts div:nth-child(even) { border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts div:last-child { grid-column: 1 / -1; }

  .filter-bar { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 32px; padding: 2px var(--gutter) 8px; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .room-grid { grid-template-columns: 1fr; gap: 40px; }
  .room-media { aspect-ratio: 4 / 4.3; }
  .room-media::before { opacity: 1; transform: none; }

  .band { min-height: 80vh; align-items: flex-end; }
  .band-overlay { background: linear-gradient(180deg, rgba(12,11,9,.1) 0%, rgba(12,11,9,.75) 70%); }
  .band .btn { width: 100%; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "b d" "e e" "f f"; margin: 0 calc(-1 * var(--gutter)); gap: 6px; }
  .t-a, .t-e, .t-f { aspect-ratio: 4 / 3; }
  .t-c, .t-d { aspect-ratio: 1 / 1; }

  .plan-wrap { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .plan-tabs, .plan-note { margin-left: var(--gutter); margin-right: var(--gutter); }
  .p-room text { font-size: 26px; }
  .p-room text.p-dim { display: none; }
  .amen-list { columns: 1; }

  .place-strip { grid-template-columns: 1fr; gap: 36px; }
  .map-label { left: 12px; bottom: 12px; }

  .calc { grid-template-columns: 1fr; }
  .calc-out { grid-template-columns: 1fr; padding: 26px 22px; }
  .calc-value { grid-row: auto; }

  .agent-media { margin: 0 28px; }
  .creds { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }

  .form-grid { grid-template-columns: 1fr; }
  .btn-wide { width: 100%; min-width: 0; }
  .showing-media { aspect-ratio: 4 / 4.2; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 100px; }

  .modal { padding: 0; }
  .lb-panel { height: 100%; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lb-stage { aspect-ratio: 4 / 3.4; max-height: none; }
  .lb-nav { width: 44px; height: 44px; }
  .lb-prev { left: 12px; } .lb-next { right: 12px; }
  .modal-panel { height: 100%; max-width: none; }

  .to-top { bottom: 90px; right: 16px; width: 46px; height: 46px; }
  .mobile-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 39;
    min-height: 58px; padding: 0 22px;
    background: var(--ink); color: #fff; text-decoration: none;
    font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
    box-shadow: 0 16px 36px -14px rgba(0,0,0,.55);
    transform: translateY(140%); transition: transform .5s var(--ease-out);
  }
  .mobile-cta span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--gold-soft); }
  .mobile-cta.is-visible { transform: none; }
  html:not(.js) .mobile-cta { display: none; }
}

@media (max-width: 380px) {
  .hero-card-facts dd { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-media img { animation: none; }
  .js .hero-line { opacity: 1; transform: none; animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-cue-line::after { animation: none; top: 25%; }
}

@media print {
  .site-header, .mobile-menu, .to-top, .mobile-cta, .scroll-cue, .modal { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
