/* ==========================================================================
   Marlowe Estates — design system
   Dark editorial luxury: near-black and ivory, champagne gold accents,
   hairlines instead of shadows, square corners, generous space.
   Cormorant Garamond (display) + Jost (body).
   Same class inventory as the other demo sites; the look is all here.
   ========================================================================== */

:root {
  --black: #111111;
  --black-2: #1a1a1a;
  --black-3: #242424;
  --ivory: #f4f1ea;
  --ivory-2: #ebe6dc;
  --paper: #f4f1ea;
  --line: rgba(17, 17, 17, .14);
  --line-light: rgba(244, 241, 234, .18);
  --text: #2a2a2a;
  --muted: #6f6a62;
  --gold: #b8975a;
  --gold-dark: #9a7d47;
  --gold-light: #e6d7b5;
  --danger: #9e3b32;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;

  --radius: 0px;
  --radius-sm: 0px;
  --shadow-sm: none;
  --shadow: 0 30px 60px rgba(17, 17, 17, .18);
  --shadow-lg: 0 40px 90px rgba(17, 17, 17, .35);

  --container: 1280px;
  --gutter: 28px;
  --header-h: 92px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (max-width: 720px) { :root { --gutter: 18px; --header-h: 70px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-weight: 300; font-size: 16.5px; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.05; margin: 0; color: var(--black); letter-spacing: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }
.container--wide { max-width: 1440px; }

.display-1 { font-size: clamp(50px, 7.6vw, 108px); font-weight: 300; letter-spacing: -.01em; line-height: 1; }
.display-2 { font-size: clamp(38px, 4.8vw, 66px); font-weight: 300; letter-spacing: -.005em; }
.h2 { font-size: clamp(34px, 3.8vw, 52px); font-weight: 300; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 400; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); line-height: 1.75; max-width: 60ch; font-weight: 300; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.muted { color: var(--muted); }
.serif-i { font-family: var(--font-display); font-style: italic; font-weight: 300; }

/* ---------- buttons: square, tracked, quiet ---------- */
.btn {
  --bg: var(--black); --fg: var(--ivory); --bd: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px; border-radius: 0; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 500 11.5px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.btn:hover { --bg: var(--gold); --bd: var(--gold); --fg: var(--black); }
.btn--tide { --bg: var(--gold); --bd: var(--gold); --fg: var(--black); }
.btn--tide:hover { --bg: var(--gold-dark); --bd: var(--gold-dark); --fg: var(--ivory); }
.btn--light { --bg: var(--ivory); --fg: var(--black); --bd: var(--ivory); }
.btn--light:hover { --bg: var(--gold); --bd: var(--gold); --fg: var(--black); }
.btn--ghost { --bg: transparent; --fg: var(--black); --bd: rgba(17,17,17,.4); }
.btn--ghost:hover { --bg: var(--black); --fg: var(--ivory); --bd: var(--black); }
.btn--ghost-light { --bg: transparent; --fg: var(--ivory); --bd: rgba(244,241,234,.45); }
.btn--ghost-light:hover { --bg: var(--ivory); --fg: var(--black); --bd: var(--ivory); }
.btn--lg { padding: 20px 38px; font-size: 12px; }
.btn--sm { padding: 12px 20px; font-size: 10.5px; }
.btn svg { width: 15px; height: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--black); border-bottom: 1px solid var(--gold); padding-bottom: 6px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- header: transparent over the hero, black on scroll ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); display: flex; align-items: center; color: var(--ivory); transition: background .4s, height .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(17,17,17,.6), rgba(17,17,17,0)); transition: opacity .4s; }
.site-header.is-solid, .site-header.is-static { background: rgba(17,17,17,.96); border-bottom: 1px solid var(--line-light); }
.site-header.is-solid::before, .site-header.is-static::before { opacity: 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 27px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); line-height: 1; }
.brand svg { width: 40px; height: 40px; flex: 0 0 40px; color: var(--gold); }
.brand small { display: block; font-family: var(--font-body); font-size: 9px; font-weight: 400; letter-spacing: .34em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; opacity: .85; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-actions .phone { font-size: 12px; letter-spacing: .12em; opacity: .85; }
.header-actions .btn { --bg: transparent; --fg: var(--ivory); --bd: rgba(244,241,234,.45); }
.header-actions .btn:hover { --bg: var(--ivory); --fg: var(--black); --bd: var(--ivory); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ivory); cursor: pointer; padding: 0; margin-right: -8px; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 6px auto; transition: transform .3s, opacity .3s; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1180px) { .header-actions .phone { display: none; } .nav { gap: 22px; } }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-actions { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--black); color: var(--ivory); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding: 28px var(--gutter) 40px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); overflow: auto; }
  .nav a { font-family: var(--font-display); font-size: 40px; font-weight: 300; letter-spacing: 0; text-transform: none; padding: 10px 0; opacity: 1; }
  .nav .nav-cta { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; width: 100%; }
  .nav .nav-cta a { font: 500 11.5px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; }
  body.nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { background: var(--black); }
}
@media (min-width: 961px) { .nav .nav-cta { display: none; } }

/* ---------- hero: full-bleed, centered, cinematic ---------- */
.hero { position: relative; min-height: min(100svh, 1040px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ivory); overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 40px) 0 80px; background: var(--black); }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(17,17,17,.55) 0%, rgba(17,17,17,.25) 45%, rgba(17,17,17,.85) 100%); }
.hero__inner { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero__inner > div[style*="display:flex"] { justify-content: center; }
.hero__title { color: var(--ivory); max-width: 16ch; margin-bottom: 22px; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--gold-light); }
.hero__sub { font-size: clamp(16px, 1.3vw, 19px); max-width: 54ch; color: rgba(244,241,234,.8); margin: 0 auto 40px; font-weight: 300; line-height: 1.8; }
.hero--short { min-height: min(72svh, 760px); padding-bottom: 88px; }
.hero--short .hero__title { max-width: 18ch; }
.hero__scroll { position: absolute; left: 50%; transform: translateX(-50%); bottom: 30px; display: none; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(244,241,234,.6); }
@media (min-width: 1100px) { .hero__scroll { display: flex; flex-direction: column; } }
.hero__scroll i { width: 1px; height: 54px; background: rgba(244,241,234,.35); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: scrollLine 2.6s var(--ease) infinite; }
@keyframes scrollLine { 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.breadcrumb { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,234,.65); margin-bottom: 26px; }
.breadcrumb a:hover { color: var(--ivory); }
.breadcrumb span { opacity: .5; }

/* ---------- search card: dark glass, hairline fields ---------- */
.search-card { width: 100%; background: rgba(17,17,17,.62); color: var(--ivory); border: 1px solid rgba(244,241,234,.22); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 16px 16px; max-width: none; text-align: left; }
.search-card__tabs { display: flex; gap: 22px; padding: 4px 8px 10px; border-bottom: 1px solid rgba(244,241,234,.14); margin-bottom: 8px; }
.search-card__tabs button { border: 0; background: transparent; padding: 8px 0; font: 500 11px/1 var(--font-body); letter-spacing: .26em; text-transform: uppercase; color: rgba(244,241,234,.55); cursor: pointer; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.search-card__tabs button.is-active { color: var(--gold-light); border-bottom-color: var(--gold); }
.search-card__row { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1fr .8fr auto; gap: 10px; padding: 4px 0; }
.field { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 6px 10px; border-bottom: 1px solid rgba(244,241,234,.28); background: transparent; transition: border-color .25s; }
.field:focus-within { border-bottom-color: var(--gold); }
.field label { font-size: 9.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.field select, .field input { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; margin: 0; font: 400 15px/1.3 var(--font-body); color: var(--ivory); width: 100%; outline: none; }
.field select option { color: var(--black); }
.field select { padding-right: 18px; cursor: pointer; }
.field--select::after { content: ""; position: absolute; right: 8px; bottom: 18px; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); pointer-events: none; opacity: .7; }
.search-card__submit { align-self: stretch; padding: 0 30px; --bg: var(--gold); --bd: var(--gold); --fg: var(--black); }
.search-card__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(244,241,234,.3); font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory); background: transparent; transition: background .25s, border-color .25s, color .25s; }
.chip:hover { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.chip svg { width: 13px; height: 13px; opacity: .8; }
@media (max-width: 1000px) { .search-card__row { grid-template-columns: 1fr 1fr 1fr; } .search-card__submit { grid-column: 1 / -1; padding: 18px; } }
@media (max-width: 600px) { .search-card__row { grid-template-columns: 1fr 1fr; } .search-card__row .field:first-child { grid-column: 1 / -1; } .search-card__chips { display: none; } }

/* ---------- sections: ivory and black bands ---------- */
.section { padding: clamp(84px, 10vw, 150px) 0; }
.section--tight { padding: clamp(52px, 6vw, 88px) 0; }
.section--sand { background: var(--black); color: rgba(244,241,234,.82); }
.section--sand h1, .section--sand h2, .section--sand h3, .section--sand h4 { color: var(--ivory); }
.section--sand .lead, .section--sand .muted, .section--sand .split__body p, .section--sand .prose p { color: rgba(244,241,234,.62); }
.section--sand .btn { --bg: var(--ivory); --fg: var(--black); --bd: var(--ivory); }
.section--sand .btn:hover, .section--sand .btn--tide { --bg: var(--gold); --bd: var(--gold); --fg: var(--black); }
.section--sand .btn--ghost { --bg: transparent; --fg: var(--ivory); --bd: rgba(244,241,234,.4); }
.section--sand .btn--ghost:hover { --bg: var(--ivory); --fg: var(--black); --bd: var(--ivory); }
.section--sand .link-arrow { color: var(--ivory); }
.section--ink { background: var(--black); color: rgba(244,241,234,.85); }
.section--ink h2, .section--ink h3 { color: var(--ivory); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .lead { margin-top: 14px; }
.section-head > a, .section-head > .scroller-nav { flex-shrink: 0; margin-bottom: 8px; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; gap: 18px; } }

/* stats band */
.stats { background: var(--black); color: var(--ivory); border-top: 1px solid var(--line-light); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 44px 32px; border-left: 1px solid var(--line-light); text-align: center; }
.stats__item:first-child { border-left: 0; }
.stats__value { font-family: var(--font-display); font-size: clamp(38px, 3.6vw, 56px); font-weight: 300; line-height: 1; color: var(--ivory); }
.stats__value sup { font-size: .45em; vertical-align: top; top: .35em; position: relative; color: var(--gold); }
.stats__label { margin-top: 12px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,234,.55); }
@media (max-width: 860px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } .stats__item { padding: 30px 20px; } .stats__item:nth-child(3) { border-left: 0; } .stats__item:nth-child(n+3) { border-top: 1px solid var(--line-light); } }

/* ---------- listing cards: gallery style ---------- */
.grid { display: grid; gap: 30px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; gap: 22px; } }

.card { display: flex; flex-direction: column; background: #fff; overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s; color: var(--text); }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); filter: saturate(.92); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(17,17,17,.5), transparent); }
.card__badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 8px 12px; background: rgba(17,17,17,.82); color: var(--ivory); font-size: 9.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.card__badge--new { background: var(--gold); color: var(--black); }
.card__save { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(17,17,17,.5); border: 1px solid rgba(244,241,234,.3); display: grid; place-items: center; color: var(--ivory); transition: background .25s; cursor: pointer; }
.card__save svg { width: 16px; height: 16px; }
.card__save:hover { background: var(--gold); color: var(--black); }
.card__photos { position: absolute; z-index: 2; bottom: 12px; right: 14px; color: var(--ivory); font-size: 11px; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; opacity: .9; }
.card__photos svg { width: 14px; height: 14px; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.card__price { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--black); line-height: 1; }
.card__price small { font: 400 12px var(--font-body); letter-spacing: .1em; color: var(--muted); margin-left: 6px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); margin-top: 6px; }
.card__meta b { color: var(--text); font-weight: 500; }
.card__address { margin-top: 10px; font-size: 14.5px; font-weight: 400; color: var(--black); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__city { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card--skeleton .card__media { background: linear-gradient(90deg, var(--ivory-2) 25%, #f7f4ee 50%, var(--ivory-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.card--skeleton .card__media::after { display: none; }
.card--skeleton .card__body > span { display: block; height: 14px; background: var(--ivory-2); margin: 6px 0; }
.card--skeleton .card__body > span:first-child { height: 26px; width: 45%; }
.card--skeleton .card__body > span:nth-child(2) { width: 70%; }
.card--skeleton .card__body > span:nth-child(3) { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-state { grid-column: 1 / -1; padding: 60px 24px; text-align: center; color: var(--muted); border: 1px solid var(--line); }
.section--sand .empty-state { color: rgba(244,241,234,.6); border-color: var(--line-light); }

/* horizontal scroller */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin: -8px calc(var(--gutter) * -1) 0; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1300px) { .scroller { grid-auto-columns: 360px; } }
.scroller-nav { display: flex; gap: 10px; }
.scroller-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--black); transition: background .25s, color .25s, border-color .25s; }
.scroller-nav button:hover { background: var(--black); color: var(--ivory); border-color: var(--black); }
.scroller-nav svg { width: 18px; height: 18px; }
.section--sand .scroller-nav button { color: var(--ivory); border-color: var(--line-light); }
.section--sand .scroller-nav button:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

/* ---------- community cards: tall, quiet, serif ---------- */
.community { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; color: var(--ivory); background: var(--black); transition: transform .5s var(--ease); }
.community:hover { transform: translateY(-4px); }
.community img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease), opacity .6s; filter: saturate(.85); }
.community:hover img { transform: scale(1.06); opacity: .8; }
.community::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.9) 0%, rgba(17,17,17,.25) 55%, rgba(17,17,17,.1) 100%); }
.community__body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 30px 28px; }
.community__name { font-family: var(--font-display); font-size: 34px; font-weight: 300; color: var(--ivory); line-height: 1.05; }
.community__tag { margin-top: 8px; font-size: 13px; color: rgba(244,241,234,.7); }
.community__cta { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.community__cta svg { width: 14px; height: 14px; }
.community:hover .community__cta { opacity: 1; transform: none; }
@media (hover: none) { .community__cta { opacity: 1; transform: none; } }
.community--wide { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .community { aspect-ratio: 4 / 3; } }

/* ---------- split editorial ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.split__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media--landscape { aspect-ratio: 5 / 4; }
.split__badge { position: absolute; left: 0; bottom: 0; background: var(--black); color: var(--ivory); padding: 22px 26px; max-width: 280px; border-top: 1px solid var(--gold); }
.split__badge b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 300; color: var(--ivory); line-height: 1; margin-bottom: 6px; }
.split__badge span { font-size: 12.5px; color: rgba(244,241,234,.65); }
.split__body .h2, .split__body .display-2 { margin-bottom: 24px; }
.split__body p { color: var(--muted); font-size: 16.5px; }
.split__body .btn { margin-top: 32px; }
.split--reverse .split__media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } .split__media { aspect-ratio: 4 / 3; } }

.feature-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 0; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 15px; padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before { content: ""; flex: 0 0 6px; height: 6px; background: var(--gold); margin-top: 10px; transform: rotate(45deg); }
.section--sand .feature-list li { border-color: var(--line-light); color: rgba(244,241,234,.85); }

/* ---------- map band ---------- */
.map-band { position: relative; overflow: hidden; color: var(--ivory); isolation: isolate; background: var(--black); }
.map-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; filter: saturate(.6); }
.map-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,17,17,.95) 0%, rgba(17,17,17,.75) 50%, rgba(17,17,17,.4) 100%); }
.map-band .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: clamp(90px, 11vw, 160px); padding-bottom: clamp(90px, 11vw, 160px); }
.map-band h2 { color: var(--ivory); }
.map-band p { color: rgba(244,241,234,.72); font-size: 16.5px; max-width: 52ch; }
.map-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.map-band__panel { border: 1px solid var(--line-light); padding: 34px; background: rgba(17,17,17,.4); backdrop-filter: blur(8px); }
.map-band__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.map-band__panel li { display: flex; gap: 16px; align-items: flex-start; font-size: 14.5px; color: rgba(244,241,234,.75); }
.map-band__panel li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold); stroke-width: 1.5; }
.map-band__panel li b { display: block; color: var(--ivory); font-weight: 500; letter-spacing: .04em; margin-bottom: 3px; }
@media (max-width: 860px) { .map-band .container { grid-template-columns: 1fr; } }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.quote { background: transparent; padding: 42px 36px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 22px; }
.quote:first-child { border-left: 0; }
.quote__mark { font-family: var(--font-display); font-size: 72px; line-height: .5; color: var(--gold); font-weight: 300; }
.quote p { font-family: var(--font-display); font-size: 22px; font-style: italic; font-weight: 300; line-height: 1.45; color: var(--black); flex: 1; }
.quote footer { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--muted); }
.quote footer b { display: block; color: var(--black); font-weight: 500; letter-spacing: .04em; }
.quote__avatar { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 400 12px var(--font-body); letter-spacing: .1em; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 12px; }
.section--sand .quotes { border-color: var(--line-light); }
.section--sand .quote { border-color: var(--line-light); }
.section--sand .quote p { color: var(--ivory); }
.section--sand .quote footer b { color: var(--ivory); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote { border-left: 0; border-top: 1px solid var(--line); } .quote:first-child { border-top: 0; } }

/* ---------- lead form / CTA band ---------- */
.cta-band { background: var(--black-2); color: var(--ivory); position: relative; overflow: hidden; border-top: 1px solid var(--line-light); }
.cta-band::before { content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px; right: -25vw; top: -35vw; border-radius: 50%; background: radial-gradient(circle, rgba(184,151,90,.22), transparent 62%); pointer-events: none; }
.cta-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: center; position: relative; }
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(244,241,234,.7); font-size: 16.5px; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; position: relative; }
.form .field { border-bottom-color: rgba(244,241,234,.3); }
.form .field:focus-within { border-bottom-color: var(--gold); }
.form .field label { color: var(--gold-light); }
.form .field input, .form .field select, .form .field textarea { color: var(--ivory); }
.form .field select option { color: var(--black); }
.form .field textarea { border: 0; background: transparent; resize: vertical; min-height: 90px; font: 400 15px/1.5 var(--font-body); outline: none; width: 100%; padding: 0; }
.form .field input::placeholder, .form .field textarea::placeholder { color: rgba(244,241,234,.35); }
.form .span-2 { grid-column: 1 / -1; }
.form .btn { grid-column: 1 / -1; margin-top: 14px; justify-self: start; }
.form__note { grid-column: 1 / -1; font-size: 12px; color: rgba(244,241,234,.45); letter-spacing: .02em; }
.form--light .field { border-bottom-color: rgba(17,17,17,.3); }
.form--light .field:focus-within { border-bottom-color: var(--gold); }
.form--light .field label { color: var(--gold-dark); }
.form--light .field input, .form--light .field select, .form--light .field textarea { color: var(--black); }
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: #a39d93; }
.form--light .form__note { color: var(--muted); }
.section--sand .form--light .field { border-bottom-color: rgba(244,241,234,.3); }
.section--sand .form--light .field label { color: var(--gold-light); }
.section--sand .form--light .field input, .section--sand .form--light .field select, .section--sand .form--light .field textarea { color: var(--ivory); }
.section--sand .form--light .field input::placeholder { color: rgba(244,241,234,.35); }
.section--sand .form--light .form__note { color: rgba(244,241,234,.45); }
.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status { grid-column: 1 / -1; font-size: 14px; padding: 12px 16px; display: none; border: 1px solid transparent; }
.form-status.is-ok { display: block; border-color: var(--gold); color: var(--gold-light); }
.form--light .form-status.is-ok { border-color: var(--gold); color: var(--gold-dark); }
.form-status.is-err { display: block; border-color: rgba(158,59,50,.6); color: #e9a9a2; }
.form--light .form-status.is-err { border-color: var(--danger); color: var(--danger); }
@media (max-width: 520px) { .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: rgba(244,241,234,.65); padding: 88px 0 40px; font-size: 14px; border-top: 1px solid var(--gold); }
.site-footer .brand { margin-bottom: 22px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer__grid h4 { font: 500 10px var(--font-body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__grid a:hover { color: var(--ivory); }
.footer__about { max-width: 38ch; line-height: 1.8; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 4px; color: var(--gold); }
.footer__legal { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding-top: 34px; font-size: 12px; line-height: 1.7; color: rgba(244,241,234,.4); }
.footer__legal svg { width: 44px; height: 44px; color: rgba(244,241,234,.5); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 34px; font-size: 11.5px; letter-spacing: .06em; color: rgba(244,241,234,.4); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } .footer__legal { grid-template-columns: 1fr; } }

.footer__sites { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,234,.35); }
.footer__sites a:hover { color: var(--gold-light); }
.footer__sites [aria-current] { color: rgba(244,241,234,.75); }

/* ---------- page-specific helpers ---------- */
.page-intro { max-width: 760px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: stretch; background: transparent; padding: 0 0 22px; border-bottom: 1px solid var(--line-light); margin-bottom: 40px; }
.filters .field { min-width: 150px; flex: 1; }
.filters .field--select::after { bottom: 17px; }
.filters .btn { align-self: center; }
.results-count { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244,241,234,.55); margin-bottom: 26px; }
.results-count b { color: var(--ivory); font-weight: 500; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-light); }
.step { position: relative; padding: 40px 32px 36px; background: transparent; border-left: 1px solid var(--line-light); }
.step:first-child { border-left: 0; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 52px; font-weight: 300; color: var(--gold); line-height: 1; display: block; margin-bottom: 22px; }
.step h3 { font-size: 26px; font-weight: 400; margin-bottom: 10px; color: var(--ivory); }
.step p { font-size: 14.5px; color: rgba(244,241,234,.62); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line-light); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { border-left: 0; border-top: 1px solid var(--line-light); } .step:first-child { border-top: 0; } }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.pillar { padding: 44px 36px; background: transparent; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: 0; }
.pillar svg { width: 32px; height: 32px; color: var(--gold); margin-bottom: 24px; stroke-width: 1.4; }
.pillar h3 { font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 15px; }
.section--sand .pillars { border-color: var(--line-light); }
.section--sand .pillar { border-color: var(--line-light); }
.section--sand .pillar p { color: rgba(244,241,234,.62); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } .pillar { border-left: 0; border-top: 1px solid var(--line); } .pillar:first-child { border-top: 0; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 40px 0 0; border: 1px solid var(--line); }
.stat-row div { padding: 24px; background: transparent; border-left: 1px solid var(--line); }
.stat-row div:first-child { border-left: 0; }
.stat-row b { display: block; font-family: var(--font-display); font-size: 36px; font-weight: 300; color: var(--black); line-height: 1; }
.stat-row span { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat-row b.is-loading { color: var(--ivory-2); }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } .stat-row div { border-left: 0; border-top: 1px solid var(--line); } .stat-row div:first-child { border-top: 0; } }
.contact-info { display: grid; gap: 26px; }
.contact-info div { display: flex; gap: 18px; align-items: flex-start; }
.contact-info svg { width: 22px; height: 22px; color: var(--gold); flex: 0 0 22px; margin-top: 3px; stroke-width: 1.5; }
.contact-info b { display: block; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--black); margin-bottom: 4px; }
.contact-info span { color: var(--muted); font-size: 15px; }
.notice { padding: 22px 26px; border: 1px solid var(--gold); color: var(--text); font-size: 14.5px; }
.section--sand .notice { color: rgba(244,241,234,.8); }
.prose p { font-size: 16.5px; color: var(--muted); line-height: 1.85; }
.prose p:first-of-type { color: var(--text); font-family: var(--font-display); font-size: 22px; line-height: 1.5; }

/* IDX hosted page wrapper */
body.idx-wrapper-page { background: var(--ivory); }
.idx-shell { padding-top: calc(var(--header-h) + 32px); min-height: 50vh; }
.idx-shell .container { background: #fff; border: 1px solid var(--line); padding: 28px; margin-bottom: 64px; }
@media (max-width: 720px) { .idx-shell .container { padding: 12px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; } .reveal[data-delay="2"] { transition-delay: .24s; } .reveal[data-delay="3"] { transition-delay: .36s; } .reveal[data-delay="4"] { transition-delay: .48s; } .reveal[data-delay="5"] { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__media img { animation: none; transform: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- IDX hosted page overrides (styles.css loads after IDX's own CSS inside the wrapper) ---------- */
body.idx-wrapper-page #IDX-main, body.idx-wrapper-page .IDX-wrapper-standard { font-family: var(--font-body); color: var(--text); }
body.idx-wrapper-page #IDX-main a { color: var(--gold-dark); }
body.idx-wrapper-page .IDX-btn-primary, body.idx-wrapper-page .IDX-btn-primary:hover, body.idx-wrapper-page .IDX-btn-primary:focus,
body.idx-wrapper-page #IDX-main input[type="submit"], body.idx-wrapper-page #IDX-main button[type="submit"],
body.idx-wrapper-page .IDX-btn__PL { background: var(--black) !important; border-color: var(--black) !important; color: var(--ivory) !important; border-radius: 0 !important; text-transform: uppercase !important; letter-spacing: .18em !important; font-weight: 500 !important; font-size: 11px !important; }
body.idx-wrapper-page .IDX-btn-primary:hover, body.idx-wrapper-page #IDX-main input[type="submit"]:hover { background: var(--gold) !important; border-color: var(--gold) !important; color: var(--black) !important; }
body.idx-wrapper-page .IDX-btn--link, body.idx-wrapper-page .IDX-btn-link { color: var(--black) !important; border-color: rgba(17,17,17,.35) !important; border-radius: 0 !important; text-transform: uppercase !important; letter-spacing: .14em !important; }
body.idx-wrapper-page .IDX-btn--link:hover, body.idx-wrapper-page .IDX-btn-link:hover { background: var(--black) !important; color: var(--ivory) !important; border-color: var(--black) !important; }
body.idx-wrapper-page #IDX-main h1, body.idx-wrapper-page #IDX-main h2, body.idx-wrapper-page #IDX-main h3,
body.idx-wrapper-page .IDX-detailsAddress, body.idx-wrapper-page #IDX-detailsAddress { font-family: var(--font-display); font-weight: 400; color: var(--black); }
body.idx-wrapper-page #IDX-main .IDX-panel-heading, body.idx-wrapper-page #IDX-main .IDX-panel-title { background: var(--ivory) !important; color: var(--black) !important; border-color: var(--line) !important; }
body.idx-wrapper-page #IDX-main .IDX-newSearchLink, body.idx-wrapper-page #IDX-detailsNewSearch, body.idx-wrapper-page .IDX-navHeader { background: var(--black) !important; }
body.idx-wrapper-page #IDX-main .IDX-resultsPrice, body.idx-wrapper-page #IDX-main .IDX-price { color: var(--black); font-family: var(--font-display); }
body.idx-wrapper-page .IDX-resultsCell, body.idx-wrapper-page .IDX-panel { border-radius: 0; }
body.idx-wrapper-page .idx-nav-button-container { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
body.idx-wrapper-page #IDX-main a.idx-nav-button { background: transparent !important; color: var(--black) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; padding: 10px 18px !important; font: 500 10.5px/1 var(--font-body) !important; letter-spacing: .18em !important; text-transform: uppercase !important; text-decoration: none !important; opacity: 1 !important; }
body.idx-wrapper-page #IDX-main a.idx-nav-button:hover { background: var(--black) !important; color: var(--ivory) !important; border-color: var(--black) !important; }
body.idx-wrapper-page #IDX-main a.idx-nav-button__active { background: var(--gold) !important; color: var(--black) !important; border-color: var(--gold) !important; }
body.idx-wrapper-page .no-gap-hr { border: 0; border-top: 1px solid var(--line); }
body.idx-wrapper-page .idx-filter-button { border-radius: 0 !important; border-color: var(--line) !important; }

/* Map search: full-bleed, full-height. Other hosted pages stay in the contained card. */
body.idx-wrapper-page .idx-shell:has(.IDX-page-mapsearch) { padding-top: var(--header-h); }
body.idx-wrapper-page .idx-shell .container:has(.IDX-page-mapsearch) { max-width: none; padding: 0; border: 0; margin-bottom: 0; background: #fff; }
body.idx-wrapper-page .IDX-page-mapsearch #navigation-container, body.idx-wrapper-page .IDX-page-mapsearch #prime-map-search--filter-bar { padding-left: var(--gutter); padding-right: var(--gutter); }
body.idx-wrapper-page .IDX-page-mapsearch .idx-nav-button-container { margin-top: 14px; }
body.idx-wrapper-page #prime-map-search-page { min-height: calc(100vh - var(--header-h) - 60px); display: flex; flex-direction: column; }
body.idx-wrapper-page #prime-map-search-page > *:last-child { flex: 1; }
body.idx-wrapper-page .IDX-page-mapsearch .leaflet-container, body.idx-wrapper-page .IDX-page-mapsearch #prime-map-search--map, body.idx-wrapper-page .IDX-page-mapsearch [id*="map-container"] { min-height: calc(100vh - var(--header-h) - 150px); }

/* Search results with the map: full-bleed too, so the map and listing column use the whole screen. */
body.idx-wrapper-page .idx-shell:has(.IDX-page-listings.IDX-category-results) { padding-top: var(--header-h); }
body.idx-wrapper-page .idx-shell .container:has(.IDX-page-listings.IDX-category-results) { max-width: none; padding: 16px var(--gutter) 24px; border-radius: 0; border: 0; margin-bottom: 0; }
/* Results pages: give the map + listing grid an explicit height so the map fills the viewport and the listing column scrolls inside it. */
/* IDX caps the results wrapper at a fixed height and lets the grid shrink to fit; release both so the grid height below wins. */
body.idx-wrapper-page #IDX-main.IDX-page-listings, body.idx-wrapper-page #IDX-main.IDX-page-listings .idx-results { height: auto !important; max-height: none !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) { flex: 0 0 auto !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) { height: calc(100vh - var(--header-h) - 200px) !important; min-height: 560px !important; max-height: none !important; overflow: hidden !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) #IDX-map, body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) .idx-map { height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: none !important; }
body.idx-wrapper-page #idx-results-content:not(.idx-map--toggle) .idx-results__listings { max-height: 100% !important; overflow-y: auto !important; scrollbar-width: thin; padding-right: 4px; }
body.idx-wrapper-page .IDX-page-listings .idx-results { padding-bottom: 28px; }
body.idx-wrapper-page .idx-listing-card { border-radius: 0; }
