/* Meridian Estates Demo Site */

:root {
  --bg: #faf8f4;
  --paper: #ffffff;
  --stone: #f2eee7;
  --stone-2: #e8e2d7;
  --line: #e3dccf;
  --line-strong: #cfc6b5;
  --ink: #1b1d21;
  --ink-2: #3d4047;
  --muted: #6f6a61;
  --gold: #b08d57;
  --gold-2: #c9a96e;
  --gold-soft: #efe5d3;
  --gold-ink: #7d6237;
  --navy: #13213a;
  --navy-2: #1c2e4d;
  --navy-3: #2a3f63;
  --on-dark: #f5f1ea;
  --on-dark-muted: rgba(245, 241, 234, .68);
  --line-dark: rgba(245, 241, 234, .16);
  --danger: #a3402f;
  --success: #3f6b55;

  --seg-pi: #c9a96e;
  --seg-tax: #8ea3c0;
  --seg-ins: #e6dccb;
  --seg-hoa: #6f978b;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 16px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(19, 33, 58, .06), 0 2px 8px rgba(19, 33, 58, .04);
  --shadow: 0 2px 6px rgba(19, 33, 58, .05), 0 18px 40px -12px rgba(19, 33, 58, .18);
  --shadow-lg: 0 30px 80px -20px rgba(10, 16, 28, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.meridian-site {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.meridian-site.no-scroll { overflow: hidden; }
:where(.meridian-site) img { max-width: 100%; height: auto; display: block; }
:where(.meridian-site) a { color: inherit; text-decoration: none; }
:where(.meridian-site) button, :where(.meridian-site) input, :where(.meridian-site) select, :where(.meridian-site) textarea { font: inherit; color: inherit; }
:where(.meridian-site) button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(.meridian-site) h1, :where(.meridian-site) h2, :where(.meridian-site) h3, :where(.meridian-site) h4 { margin: 0; font-weight: 500; }
:where(.meridian-site) p { margin: 0; }
:where(.meridian-site) ul, :where(.meridian-site) ol { margin: 0; padding: 0; list-style: none; }
:where(.meridian-site) dl, :where(.meridian-site) dd, :where(.meridian-site) figure, :where(.meridian-site) blockquote { margin: 0; }
:where(.meridian-site) fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(.meridian-site) legend { padding: 0; }
:where(.meridian-site) [hidden] { display: none !important; }
:where(.meridian-site) :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
:where(.meridian-site) ::selection { background: var(--gold-soft); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type ---------- */
.meridian-site :where(h1, h2) { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.04; }
:where(.meridian-site h2) { font-size: clamp(36px, 5vw, 60px); }
.meridian-site h1 em, .meridian-site h2 em { font-style: italic; font-weight: 500; color: var(--gold); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.eyebrow-light { color: var(--gold-2); }
.section-intro { color: var(--muted); font-size: 17px; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius); border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--gold);
}
.link-btn .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-btn:hover .i { transform: translateX(4px); }
.round-btn {
  width: 52px; height: 52px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--on-dark); transition: background .25s, border-color .25s;
}
.round-btn:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-2); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: #fff;
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.is-solid {
  background: rgba(250, 248, 244, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -18px rgba(19, 33, 58, .35);
}
.header-bar { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid currentColor; border-radius: 50%;
  font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; padding-bottom: 2px;
}
.site-header .logo-mark { border-color: var(--gold-2); color: inherit; }
.logo-text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.logo-text small { font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 5px; }
.main-nav { display: none; margin-left: auto; gap: 30px; }
.main-nav a { position: relative; font-size: 14px; font-weight: 500; letter-spacing: .02em; padding: 8px 0; opacity: .92; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-phone { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-phone .i { width: 17px; height: 17px; color: var(--gold-2); }
.site-header.is-solid .header-phone .i { color: var(--gold); }
.header-cta { display: none; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.menu-toggle .i { width: 26px; height: 26px; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (min-width: 1180px) {
  .main-nav { display: flex; }
  .header-actions { margin-left: 32px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1360px) { .header-phone { display: inline-flex; } }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--navy); color: var(--on-dark); overflow-y: auto; animation: fadeIn .3s var(--ease); }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; padding: 0 var(--gutter) 32px; }
.mobile-menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.mobile-menu .logo-mark { border-color: var(--gold-2); }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -10px; }
.menu-close .i { width: 26px; height: 26px; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 20px 0; }
.mobile-menu nav a { font-family: var(--serif); font-size: 34px; line-height: 1.2; padding: 8px 0; border-bottom: 1px solid var(--line-dark); }
.mobile-menu nav a:hover { color: var(--gold-2); }
.mobile-menu-foot { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.mobile-menu-foot a:not(.btn) { display: flex; gap: 12px; align-items: center; color: var(--on-dark-muted); overflow-wrap: anywhere; }
.mobile-menu-foot .i { color: var(--gold-2); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: clamp(680px, 100vh, 980px); min-height: clamp(680px, 100svh, 980px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); animation: heroZoom 16s var(--ease) forwards; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 15, 27, .62) 0%, rgba(9, 15, 27, .12) 26%, rgba(9, 15, 27, .18) 52%, rgba(9, 15, 27, .78) 100%),
    linear-gradient(90deg, rgba(9, 15, 27, .66) 0%, rgba(9, 15, 27, .4) 38%, rgba(9, 15, 27, 0) 68%);
}
.hero-inner { padding-top: calc(var(--header-h) + 64px); padding-bottom: 40px; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(48px, 8.4vw, 104px); line-height: .98; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero h1 em { color: var(--gold-2); display: inline-block; }
.hero-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: rgba(255, 255, 255, .88); max-width: 600px; }

.search-panel {
  margin-top: 40px; background: rgba(250, 248, 244, .98); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 1080px;
}
.search-tabs { display: flex; gap: 28px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.search-tab { position: relative; padding: 16px 2px 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.search-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.search-tab.is-active { color: var(--ink); }
.search-tab.is-active::after { transform: scaleX(1); }
.search-fields { display: grid; grid-template-columns: 1fr; gap: 0; padding: 8px 12px 12px; }
.sf { display: flex; flex-direction: column; padding: 10px 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.sf span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sf select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 6px 24px 6px 0; font-size: 16px; font-weight: 500; cursor: pointer; width: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b08d57' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 16px;
}
.sf select:focus-visible { outline-offset: 4px; }
.search-submit { margin-top: 12px; min-height: 56px; }
.search-submit .i { width: 18px; height: 18px; }
.search-submit:hover .i { transform: none; }
@media (min-width: 600px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .sf:nth-child(odd) { border-right: 1px solid var(--line); }
  .search-submit { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: center; padding: 12px; }
  .sf { border-bottom: 0; border-right: 1px solid var(--line); padding: 6px 20px; }
  .sf:nth-child(4) { border-right: 0; }
  .search-submit { grid-column: auto; margin: 0 0 0 8px; padding: 0 30px; }
}

.hero-feature {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 64px);
  display: none; flex-direction: column; gap: 4px; max-width: 290px;
  padding: 18px 22px; border-left: 1px solid var(--gold-2);
  background: rgba(9, 15, 27, .34); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: 0 var(--radius) var(--radius) 0; transition: background .3s;
}
.hero-feature:hover { background: rgba(9, 15, 27, .5); }
.hero-feature-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.hero-feature-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.hero-feature-meta { font-size: 13px; color: rgba(255, 255, 255, .8); }
@media (min-width: 1180px) { .hero-feature { display: flex; } }
@media (min-width: 1180px) and (min-height: 760px) { .hero-inner { padding-bottom: 56px; } }

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-row { display: grid; grid-template-columns: 1fr 1fr; }
.stat { padding: 28px 12px 26px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 16px; }
.stat:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: clamp(38px, 4vw, 52px); font-weight: 500; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.stat strong em { font-style: italic; color: var(--gold); margin-left: 4px; font-size: .62em; }
.stat span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (min-width: 900px) {
  .stats-row { grid-template-columns: repeat(5, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even), .stat:last-child { grid-column: auto; padding: 40px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; padding-right: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 880px; }
.section-head h2 { margin-bottom: 0; }
.section-head .section-intro { margin-top: 20px; }
.section-head-split { max-width: none; display: flex; flex-direction: column; gap: 20px; }
.section-head-split .section-intro { margin-top: 0; }
@media (min-width: 960px) {
  .section-head-split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 64px; }
  .section-head-split > div:first-child { max-width: 760px; }
  .section-head-split .section-intro { max-width: 460px; padding-bottom: 6px; }
}
.grid { display: grid; gap: 28px; }

/* ---------- Listings ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .i { width: 16px; height: 16px; }
.saved-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.chip.is-active .saved-count { background: var(--gold); color: #fff; }
.toolbar-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.select-wrap select, .field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a61' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.select-wrap select { min-height: 42px; padding: 0 40px 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; background-color: var(--paper); font-size: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 16px; }
.filter-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px 0 14px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; font-size: 13px; font-weight: 500; }
.filter-pill .i { width: 14px; height: 14px; }
.filter-pill:hover { background: var(--stone-2); }
.filter-clear { font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); padding: 6px; }
.result-count { font-size: 14px; color: var(--muted); margin: 18px 0 26px; }

.listing-grid { grid-template-columns: 1fr; gap: 40px 28px; }
@media (min-width: 680px) { .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.listing-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.listing-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(0deg, rgba(9, 15, 27, .35), transparent); pointer-events: none; }
.badge {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(250, 248, 244, .95); color: var(--ink);
}
.card-media .badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.card-media .badge-second { top: 48px; }
.badge-new { background: var(--gold); color: #fff; }
.badge-reduced { background: #fff; color: var(--danger); }
.badge-offer { background: var(--navy); color: var(--on-dark); }
.badge-rent { background: #fff; color: var(--navy-3); }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(250, 248, 244, .92); color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), color .2s, background .2s;
}
.fav:hover { transform: scale(1.08); }
.fav .i { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: #b4463a; }
.fav[aria-pressed="true"] .i { fill: currentColor; }
.fav.pop { animation: pop .4s var(--ease); }
.photo-count { position: absolute; z-index: 2; right: 14px; bottom: 12px; font-size: 12px; font-weight: 500; color: #fff; letter-spacing: .04em; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.card-price { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.card-price small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: -10px; }
.card-price s { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
.card-title { font-family: var(--sans); font-size: 16px; font-weight: 600; line-height: 1.4; margin: 6px 0 6px; letter-spacing: 0; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:focus-visible { outline: none; }
.listing-card:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.card-addr { display: flex; gap: 6px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.card-addr .i { width: 16px; height: 16px; margin-top: 2px; color: var(--gold); }
.card-specs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.card-specs li { display: inline-flex; align-items: center; gap: 7px; }
.card-specs .i { width: 19px; height: 19px; color: var(--gold); }
.card-specs b { font-weight: 600; color: var(--ink); }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.card-note { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink); font-weight: 600; }
.card-note .i { width: 15px; height: 15px; }
.card-open-house { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 110px); padding: 6px 10px; border-radius: 2px; background: rgba(9, 15, 27, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; }
.card-open-house .i { width: 14px; height: 14px; color: var(--gold-2); }
.listing-card.is-hidden { display: none; }
.empty-state { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); max-width: 520px; margin: 0 auto 22px; }

/* ---------- Services ---------- */
.services { background: var(--stone); }
.service-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-strong); }
.service { padding: 36px 0; border-bottom: 1px solid var(--line-strong); }
.service-icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-ink); display: grid; place-items: center; margin-bottom: 22px; }
.service-icon .i { width: 24px; height: 24px; }
.service h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: 15px; max-width: 380px; }
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 40px 32px 40px 0; }
  .service:nth-child(even) { padding: 40px 0 40px 32px; border-left: 1px solid var(--line-strong); }
}
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service, .service:nth-child(even) { padding: 48px 40px; border-left: 1px solid var(--line-strong); }
  .service:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .service:nth-child(3n) { padding-right: 0; }
}

/* ---------- Sell ---------- */
.sell { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.sell::before { content: ""; position: absolute; width: 760px; height: 760px; right: -280px; top: -320px; border: 1px solid var(--line-dark); border-radius: 50%; pointer-events: none; }
.sell::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border: 1px solid var(--line-dark); border-radius: 50%; pointer-events: none; }
.sell-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: start; }
@media (min-width: 1024px) { .sell-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; } }
.sell h2 { color: #fff; }
.sell h2 em { color: var(--gold-2); }
.sell-lead { margin: 22px 0 36px; color: var(--on-dark-muted); font-size: 17px; max-width: 560px; }
.sell-steps { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.sell-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line-dark); }
.sell-steps .step-num { font-family: var(--serif); font-size: 26px; color: var(--gold-2); line-height: 1.1; }
.sell-steps h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: #fff; }
.sell-steps p { font-size: 15px; color: var(--on-dark-muted); }
.fee-note { display: flex; gap: 14px; margin-top: 32px; padding: 20px 22px; border: 1px solid rgba(201, 169, 110, .4); border-radius: var(--radius); background: rgba(201, 169, 110, .07); font-size: 14px; color: var(--on-dark); line-height: 1.6; }
.fee-note .i { color: var(--gold-2); margin-top: 2px; }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.form-card-plain { box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card-media { height: 150px; overflow: hidden; }
.form-card-media img { width: 100%; height: 100%; object-fit: cover; }
.demo-form { padding: 28px 22px; }
@media (min-width: 600px) { .demo-form { padding: 36px; } }
.form-title { font-family: var(--serif); font-size: 32px; line-height: 1.1; margin-bottom: 6px; }
.form-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
@media (min-width: 520px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}
@media (min-width: 900px) { .field-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .field > legend { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0; }
.field > legend { margin-bottom: 6px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .calc input[type="number"], .calc input[type="text"] {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background-color: var(--bg); font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select { padding-right: 40px; }
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .calc input[type="number"]:focus, .calc input[type="text"]:focus { outline: none; border-color: var(--gold); background-color: var(--paper); box-shadow: 0 0 0 3px rgba(176, 141, 87, .2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 64, 47, .12); }
.field-msg { font-size: 12px; color: var(--danger); }
.form-error { color: var(--danger); font-size: 14px; margin: -6px 0 16px; }
.form-fine { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-success { padding: 48px 28px; text-align: center; outline: none; }
.form-success h3 { font-family: var(--serif); font-size: 34px; margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0 auto 22px; max-width: 360px; }
.success-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-ink); animation: pop .5s var(--ease); }
.success-icon .i { width: 28px; height: 28px; stroke-width: 1.8; }

.segmented { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.segmented label { flex: 1; position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; min-height: 46px; padding: 0 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; border-left: 1px solid var(--line-strong); text-align: center; }
.segmented label:first-child span { border-left: 0; }
.segmented input:checked + span { background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: -3px; }

/* ---------- Neighborhoods ---------- */
.hood-grid { grid-template-columns: 1fr; gap: 32px 28px; }
@media (min-width: 680px) { .hood-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hood-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hood { display: flex; flex-direction: column; }
.hood-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius-lg); background: var(--stone); }
.hood-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hood:hover .hood-media img { transform: scale(1.06); }
.hood-overlay { position: absolute; inset: auto 0 0 0; padding: 60px 24px 22px; color: #fff; background: linear-gradient(0deg, rgba(9, 15, 27, .78), rgba(9, 15, 27, 0)); }
.hood-overlay h3 { font-family: var(--serif); font-size: 36px; line-height: 1; margin-bottom: 8px; }
.hood-overlay p { font-size: 14px; color: rgba(255, 255, 255, .85); }
.hood-overlay b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--gold-2); margin: 0 4px; }
.hood-overlay span { white-space: nowrap; }
.hood-body { padding: 22px 2px 0; display: flex; flex-direction: column; flex: 1; }
.hood-vibe { font-family: var(--serif); font-size: 21px; line-height: 1.35; color: var(--ink); margin-bottom: 16px; }
.hood-facts { display: grid; gap: 10px; margin-bottom: 20px; }
.hood-facts div { display: grid; grid-template-columns: 82px 1fr; gap: 12px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.hood-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); padding-top: 2px; }
.hood-facts dd { color: var(--ink-2); }
.hood .link-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Mortgage ---------- */
.mortgage { background: var(--stone); }
.calc { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 1024px) { .calc { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.calc-inputs { background: var(--paper); padding: 28px 20px; display: grid; grid-template-columns: 1fr; gap: 22px 28px; }
@media (min-width: 600px) { .calc-inputs { grid-template-columns: 1fr 1fr; padding: 44px; } }
.calc-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.calc-field-price { grid-column: 1 / -1; }
.calc-field > label, .calc-field > legend { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.calc-field > legend { margin-bottom: 8px; }
.input-affix { position: relative; display: flex; align-items: center; }
.input-affix > span { position: absolute; left: 14px; color: var(--muted); font-size: 15px; pointer-events: none; }
.calc .input-affix input { padding-left: 30px; -moz-appearance: textfield; appearance: textfield; font-variant-numeric: tabular-nums; }
.input-affix-end > span { left: auto; right: 14px; font-size: 13px; }
.calc .input-affix-end input { padding-left: 14px; padding-right: 64px; }
.calc .calc-pair .input-affix-end input { padding-right: 30px; }
.calc input::-webkit-outer-spin-button, .calc input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc .calc-field-price .input-affix input { font-family: var(--serif); font-size: 26px; font-weight: 600; min-height: 58px; padding-left: 34px; }
.calc-field-price .input-affix > span { font-family: var(--serif); font-size: 24px; }
.calc-pair { display: grid; grid-template-columns: 104px 1fr; gap: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; margin: 6px 0 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--gold) var(--fill, 10%), var(--line-strong) var(--fill, 10%)); border-radius: 2px; }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-strong); border-radius: 2px; }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); box-shadow: var(--shadow-sm); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.calc-result { background: var(--navy); color: var(--on-dark); padding: 32px 20px; display: flex; flex-direction: column; }
@media (min-width: 600px) { .calc-result { padding: 44px; } }
.calc-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.calc-total { font-family: var(--serif); font-size: clamp(52px, 6vw, 72px); line-height: 1; margin: 10px 0 26px; color: #fff; }
.calc-total::after { content: "/mo"; font-size: .32em; color: var(--on-dark-muted); margin-left: 6px; font-family: var(--sans); }
.calc-chart { display: grid; grid-template-columns: 128px 1fr; gap: 24px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.donut { width: 128px; height: 128px; transform: rotate(0deg); }
.donut circle { fill: none; stroke-width: 5; }
.donut-track { stroke: rgba(255, 255, 255, .08); }
.donut-seg { transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.donut .seg-pi { stroke: var(--seg-pi); }
.donut .seg-tax { stroke: var(--seg-tax); }
.donut .seg-ins { stroke: var(--seg-ins); }
.donut .seg-hoa { stroke: var(--seg-hoa); }
.calc-legend { display: grid; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
.calc-legend li { display: flex; align-items: center; gap: 10px; }
.calc-legend b { margin-left: auto; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.seg-pi { background: var(--seg-pi); }
.dot.seg-tax { background: var(--seg-tax); }
.dot.seg-ins { background: var(--seg-ins); }
.dot.seg-hoa { background: var(--seg-hoa); }
.calc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 22px 0; }
.calc-summary dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 4px; }
.calc-summary dd { font-family: var(--serif); font-size: 22px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.calc-note { margin-top: auto; font-size: 12px; line-height: 1.6; color: var(--on-dark-muted); }
@media (max-width: 420px) {
  .calc-chart { grid-template-columns: 1fr; justify-items: center; }
  .calc-legend { width: 100%; }
  .calc-summary { grid-template-columns: 1fr 1fr; }
  .calc-summary div:last-child { grid-column: 1 / -1; }
}
.calc.flash .calc-total { animation: flash .9s var(--ease); }

/* ---------- Agents ---------- */
.agent-grid { grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent { display: grid; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 560px) { .agent { grid-template-columns: 170px 1fr; } }
.agent-mono {
  position: relative; display: grid; place-items: center; min-height: 160px;
  background: radial-gradient(120% 90% at 30% 20%, var(--navy-3), var(--navy) 70%);
}
.agent-mono::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(201, 169, 110, .45); border-radius: 2px; }
.agent-mono span { font-family: var(--serif); font-size: 64px; font-style: italic; font-weight: 500; color: var(--gold-2); letter-spacing: .02em; line-height: 1; }
.agent-body { padding: 26px 24px 24px; display: flex; flex-direction: column; min-width: 0; }
.agent h3 { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.agent-title { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin: 6px 0 14px; }
.agent-bio { font-size: 15px; color: var(--ink-2); margin-bottom: 18px; }
.agent-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.agent-meta-wide { grid-column: 1 / -1; }
.agent-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.agent-meta dd { font-size: 14px; color: var(--ink); }
.agent-contact { display: grid; gap: 8px; margin-bottom: 18px; font-size: 14px; }
.agent-contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.agent-contact a:hover { color: var(--gold-ink); }
.agent-contact .i { width: 17px; height: 17px; color: var(--gold); }
.agent .link-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.testimonials h2 { color: #fff; }
.testimonials h2 em { color: var(--gold-2); }
.slider-nav { display: flex; gap: 10px; }
.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; overscroll-behavior-x: contain;
}
.review-track::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .review-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 1100px) { .review-track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; } }
.review { scroll-snap-align: start; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .025); }
.stars { display: flex; gap: 3px; margin-bottom: 20px; color: rgba(255, 255, 255, .2); }
.stars .i { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.stars .on { color: var(--gold-2); }
.review blockquote { font-family: var(--serif); font-size: 23px; line-height: 1.4; color: #fff; margin-bottom: 26px; }
.review figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review figcaption b { font-weight: 600; color: #fff; }
.review figcaption span { color: var(--on-dark-muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: s; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } }
.step { position: relative; padding: 30px 0 34px; border-top: 1px solid var(--line-strong); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--gold); }
.step .step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }
.step-time { float: right; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: var(--stone); padding: 5px 10px; border-radius: 999px; }
.step h3 { font-family: var(--serif); font-size: 28px; margin: 14px 0 8px; }
.step p { color: var(--ink-2); font-size: 15px; max-width: 360px; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 80px; align-items: start; } .faq-side { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq-side h2 { margin-bottom: 18px; }
.faq-side p { color: var(--muted); max-width: 420px; }
.faq-contact { display: grid; gap: 10px; margin-top: 26px; font-size: 15px; }
.faq-contact a { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.faq-contact .i { color: var(--gold); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.3; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-ink); }
.faq-plus { position: relative; width: 32px; height: 32px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform .3s var(--ease), background .3s, border-color .3s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] .faq-plus { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { padding: 0 48px 26px 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.faq-item[open] .faq-answer { animation: fadeUp .4s var(--ease); }

/* ---------- Contact ---------- */
.contact { background: var(--stone); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.contact-info > p { color: var(--muted); margin: 18px 0 28px; max-width: 520px; }
.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); margin-bottom: 32px; }
@media (min-width: 600px) { .contact-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.contact-list li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); min-width: 0; }
.contact-list .i { color: var(--gold); margin-top: 3px; }
.contact-list span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--gold-ink); }
.map-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.map { width: 100%; height: auto; display: block; }
.map-water { fill: #dfe5ea; }
.map-land { fill: #f6f2eb; stroke: #d8cfbf; stroke-width: 1; }
.map-street { stroke: #ebe4d8; stroke-width: 1; }
.map-road { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.map-road-main { stroke: #ece4d4; stroke-width: 5; }
.map-water-label { font-family: var(--serif); font-style: italic; font-size: 17px; fill: #7b8da1; letter-spacing: .04em; }
.map-places circle { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.map-places text { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: rgba(246, 242, 235, .9); stroke-width: 4px; stroke-linejoin: round; }
.map-office path { fill: var(--gold); }
.map-office-dot { fill: #fff; }
.map-pulse { fill: rgba(176, 141, 87, .25); transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.map-office-label { font-family: var(--serif); font-size: 17px; font-weight: 600; fill: var(--navy); paint-order: stroke; stroke: rgba(223, 229, 234, .9); stroke-width: 4px; }
@media (max-width: 600px) {
  .map-places text { font-size: 19px; stroke-width: 5px; }
  .map-office-label { font-size: 22px; }
  .map-water-label { font-size: 20px; }
}
.map-card figcaption { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.map-card figcaption .i { color: var(--gold); width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: clamp(64px, 8vw, 96px) 0 32px; font-size: 15px; }
.footer-news { display: grid; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 960px) { .footer-news { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
.footer-news h2 { font-size: clamp(32px, 4vw, 46px); color: #fff; margin-bottom: 12px; }
.footer-news h2 em { color: var(--gold-2); }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.news-form input { flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 0 18px; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .05); color: #fff; font-size: 16px; }
.news-form input::placeholder { color: rgba(245, 241, 234, .5); }
.news-form input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201, 169, 110, .25); }
.news-form input[aria-invalid="true"] { border-color: #e08a78; }
.news-form .btn { min-height: 54px; flex: 0 0 auto; }
.news-form .form-error { flex-basis: 100%; margin: 4px 0 0; color: #f0a596; }
.form-success-inline { display: flex; align-items: center; gap: 14px; padding: 0; text-align: left; color: #fff; }
.form-success-inline .success-icon { margin: 0; width: 48px; height: 48px; flex: none; }
.form-success-inline p { margin: 0; color: var(--on-dark); max-width: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; padding: 56px 0; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-brand { grid-column: auto; } }
.footer-brand .logo { color: #fff; margin-bottom: 18px; }
.footer-brand .logo-mark { border-color: var(--gold-2); }
.footer-brand p { max-width: 320px; }
.site-footer h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a:hover { color: #fff; }
.footer-office { grid-column: 1 / -1; }
.footer-grid > div:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid > div:last-child { grid-column: auto; } }
.footer-office li { overflow-wrap: anywhere; }
.footer-bottom { display: grid; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: 1.4fr 1fr; gap: 48px; } .footer-bottom p:last-child { text-align: right; } }
.eho { display: flex; gap: 10px; align-items: flex-start; }
.eho .i { color: var(--gold-2); width: 18px; height: 18px; margin-top: 1px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 0; overscroll-behavior: contain; }
@media (min-width: 900px) { .modal { padding: 40px 24px; } }
.modal-scrim { position: fixed; inset: 0; background: rgba(9, 15, 27, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fadeIn .3s var(--ease); }
.modal-panel { position: relative; width: 100%; max-width: 1120px; min-height: 100%; background: var(--bg); box-shadow: var(--shadow-lg); animation: modalIn .45s var(--ease); outline: none; }
@media (min-width: 900px) { .modal-panel { min-height: 0; border-radius: var(--radius-lg); overflow: hidden; } }
.modal-close { position: absolute; z-index: 5; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 248, 244, .95); color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.modal-close .i { width: 22px; height: 22px; }

.gallery { background: var(--ink); }
.gallery-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
@media (min-width: 900px) { .gallery-stage { aspect-ratio: 16 / 8; } }
.gallery-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.gallery-img.is-active { opacity: 1; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(250, 248, 244, .92); color: var(--ink); box-shadow: var(--shadow-sm); transition: background .2s; }
.gallery-btn:hover { background: #fff; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-count { position: absolute; left: 16px; bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: #fff; background: rgba(9, 15, 27, .55); padding: 5px 10px; border-radius: 999px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumb { width: 96px; flex: none; aspect-ratio: 3 / 2; border-radius: 3px; overflow: hidden; opacity: .5; transition: opacity .2s; border: 1px solid transparent; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--gold-2); }

.detail-head { display: grid; gap: 18px; padding: 28px 20px 20px; }
@media (min-width: 600px) { .detail-head { padding: 36px 40px 24px; } }
@media (min-width: 900px) { .detail-head { grid-template-columns: 1fr auto; align-items: end; gap: 40px; } }
.detail-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.detail-kicker .badge { background: var(--stone-2); }
.detail-kicker .badge-new { background: var(--gold); color: #fff; }
.detail-kicker .badge-offer { background: var(--navy); color: #fff; }
.detail-kicker .badge-reduced { background: #f6e3de; }
.detail-title { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin-bottom: 10px; }
.detail-addr { display: flex; gap: 8px; color: var(--ink-2); font-size: 15px; }
.detail-addr .i { color: var(--gold); width: 18px; height: 18px; margin-top: 2px; }
.detail-price { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 900px) { .detail-price { text-align: right; align-items: flex-end; } }
.detail-price strong { font-family: var(--serif); font-size: clamp(36px, 4vw, 48px); font-weight: 600; line-height: 1; }
.detail-price strong small { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); }
.detail-price s { font-size: 14px; color: var(--muted); }
.detail-price span { font-size: 14px; color: var(--gold-ink); font-weight: 500; }
.detail-keys { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .detail-keys { grid-template-columns: repeat(4, 1fr); margin: 0 40px; } }
.detail-keys li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 18px 12px 18px 0; }
.detail-keys .i { grid-row: span 2; width: 26px; height: 26px; color: var(--gold); }
.detail-keys b { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.detail-keys span { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.detail-grid { display: grid; gap: 32px; padding: 32px 20px 40px; }
@media (min-width: 600px) { .detail-grid { padding: 36px 40px 44px; } }
@media (min-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; } }
.detail-main h3 { font-family: var(--serif); font-size: 26px; margin: 0 0 14px; }
.detail-main h3:not(:first-child) { margin-top: 34px; }
.detail-desc { font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.feature-list { display: grid; gap: 10px; }
@media (min-width: 600px) { .feature-list { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.feature-list .i { width: 18px; height: 18px; color: var(--gold); margin-top: 2px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table th { width: 40%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.spec-table td { color: var(--ink); }
.detail-side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .detail-side { position: sticky; top: 24px; } }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 10px; }
.side-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); }
.side-total { font-family: var(--serif); font-size: 40px; font-weight: 600; line-height: 1; }
.side-total small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.side-rows { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.side-rows li { display: flex; justify-content: space-between; gap: 12px; }
.side-rows b { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.side-fine { font-size: 12px; color: var(--muted); line-height: 1.55; }
.side-card .link-btn { justify-self: start; }
.agent-mini a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.agent-mini a .i { width: 16px; height: 16px; color: var(--gold); }
.agent-mini a:hover { color: var(--gold-ink); }
.agent-mini-top { display: flex; gap: 14px; align-items: center; padding-bottom: 6px; }
.agent-mini-top b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.agent-mini-top div span { display: block; font-size: 12px; color: var(--muted); }
.mono-sm { width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); font-family: var(--serif); font-style: italic; font-size: 24px; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px rgba(201, 169, 110, .6); }
.detail-side .btn .i { width: 18px; height: 18px; }
.detail-side .btn:hover .i { transform: none; }
.viewing { background: var(--stone); border-top: 1px solid var(--line); }
.viewing .form-wrap { max-width: none; }
.viewing .demo-form { padding: 32px 20px 40px; }
@media (min-width: 600px) { .viewing .demo-form { padding: 40px; } }
.viewing .form-success { padding: 48px 24px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; box-shadow: var(--shadow-lg);
  transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1.02); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes flash { 0% { color: var(--gold-2); } 100% { color: #fff; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
  .listing-card:hover .card-media img, .hood:hover .hood-media img, .listing-card:hover { transform: none; }
}

@media print {
  .site-header, .mobile-menu, .modal, .toast, .search-panel { display: none !important; }
  .hero { min-height: 0; color: var(--ink); }
}
