/* ==========================================================================
   Crown Oark Property — public site
   Palette: ink, ivory, stone, brass, oak green. Type: Instrument Serif + Geist.
   ========================================================================== */

:root {
  --ink: #0c0e11;
  --ink-2: #15181d;
  --ink-3: #20242b;
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --paper-3: #e2dbcf;
  --white: #fff;
  --stone: #857e72;
  --stone-2: #a59d90;
  --line: rgba(12, 14, 17, .12);
  --line-strong: rgba(12, 14, 17, .22);
  --line-inv: rgba(245, 242, 236, .14);
  --brass: #a4835a;
  --brass-2: #c6ab82;
  --oak: #23382f;
  --oak-2: #2f4a3f;
  --danger: #a3402f;
  --ok: #3d6b4f;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 3px;
  --r-lg: 6px;
  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.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: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 999; border-radius: var(--r); }
.skip-link:focus { top: 16px; }

.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 880px; }
.wrap--mid { max-width: 1120px; }

/* ── Type ─────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.2vw, 112px); line-height: .98; letter-spacing: -.025em; }
.h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -.02em; }
.h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 54px); line-height: 1.05; letter-spacing: -.015em; }
.h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; }
.h4 { font-size: 18px; font-weight: 500; letter-spacing: -.005em; line-height: 1.3; }
.italic { font-style: italic; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-3); max-width: 60ch; }
.muted { color: var(--stone); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12.5px/1 var(--sans); color: var(--stone); letter-spacing: .02em; }
.eyebrow .num { font-family: var(--mono); font-size: 11.5px; color: var(--brass); }
.eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow--plain::after { display: none; }
.num-mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: var(--r); background: var(--bg); color: var(--fg);
  font: 500 14.5px/1 var(--sans); letter-spacing: .005em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ico--arrow { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light::before { background: var(--white); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn--ghost-light { --bg: transparent; --fg: var(--paper); border: 1px solid rgba(245, 242, 236, .4); }
.btn--ghost-light::before { background: var(--paper); }
.btn--ghost-light:hover { color: var(--ink); }
.btn--brass { --bg: var(--brass); --fg: var(--ink); }
.btn--brass::before { background: var(--paper); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn--lg { height: 58px; padding: 0 32px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: gap .35s var(--ease), border-color .35s; }
.link-arrow:hover { gap: 14px; border-color: var(--ink); }
.link-arrow .ico { width: 16px; height: 16px; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); transition: background .3s, border-color .3s, color .3s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.icon-btn.is-on { background: var(--ink); color: var(--paper); }
.icon-btn.is-on .ico { fill: currentColor; }

/* ── Badges ───────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 2px; font: 500 12px/1 var(--sans); background: var(--paper-2); color: var(--ink); letter-spacing: .01em; }
.badge--sale { background: var(--ink); color: var(--paper); }
.badge--rent { background: var(--oak); color: var(--paper); }
.badge--active { background: #e6efe7; color: #2d5a3c; }
.badge--pending { background: #f3ead9; color: #7a5a23; }
.badge--sold, .badge--rented { background: #ece4e2; color: #7b3a2f; }
.badge--draft { background: var(--paper-2); color: var(--stone); }
.badge--demo { background: transparent; border: 1px dashed var(--stone-2); color: var(--stone); }
.badge--glass { background: rgba(12, 14, 17, .55); color: var(--paper); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ── Reveal animations ───────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-img] { clip-path: inset(12% 6% 12% 6%); transition: clip-path 1.4s var(--ease-io); }
.js [data-reveal-img] img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.js [data-reveal-img].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal-img].is-in img { transform: scale(1); }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; }
.split-line > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.no-js .split-line > span { transform: none; }

/* ── Header (shared) ─────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s, height .4s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo img { width: auto; }
.brand-mark { width: auto; height: 100%; aspect-ratio: 1; color: var(--ink); }
.brand-mark .bm-bg { fill: currentColor; }
.brand-mark .bm-fg { stroke: var(--paper); }
.brand-mark .bm-dot { fill: var(--brass-2); }
.brand-logo.is-inverse .brand-mark { color: var(--paper); }
.brand-logo.is-inverse .brand-mark .bm-fg { stroke: var(--ink); }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 400 calc(var(--lh) * .5)/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand-word small { font: 500 calc(var(--lh) * .19)/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; margin-top: calc(var(--lh) * .08); opacity: .7; }
.brand-logo--front_header { --lh: var(--logo-front-header); height: var(--logo-front-header); }
.brand-logo--front_header img { height: var(--logo-front-header); }
.site-header.is-solid .brand-logo--front_header { --lh: var(--logo-front-header-sticky); height: var(--logo-front-header-sticky); }
.site-header.is-solid .brand-logo--front_header img { height: var(--logo-front-header-sticky); }
.brand-logo--front_footer { --lh: var(--logo-front-footer); height: var(--logo-front-footer); }
.brand-logo--front_footer img { height: var(--logo-front-footer); }
.brand-logo--mobile_menu { --lh: var(--logo-mobile-menu); height: var(--logo-mobile-menu); }
.brand-logo--mobile_menu img { height: var(--logo-mobile-menu); }
.brand-logo--auth { --lh: var(--logo-auth); height: var(--logo-auth); }
.brand-logo--auth img { height: var(--logo-auth); }
.brand-logo--client_dashboard { --lh: var(--logo-client-dashboard); height: var(--logo-client-dashboard); }
.brand-logo--client_dashboard img { height: var(--logo-client-dashboard); }
.brand-logo--maintenance { --lh: var(--logo-maintenance); height: var(--logo-maintenance); }
.brand-logo--maintenance img { height: var(--logo-maintenance); }
.brand-logo--invoice { --lh: var(--logo-invoice); height: var(--logo-invoice); }
.brand-logo--invoice img { height: var(--logo-invoice); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-link { position: relative; padding: 10px 14px; font-size: 14.5px; font-weight: 450; display: inline-flex; align-items: center; gap: 6px; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav .ico { width: 14px; height: 14px; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--mono); letter-spacing: -.01em; }
.header-phone .ico { width: 16px; height: 16px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; place-items: center; opacity: .9; }

/* Transparent-over-hero state */
.has-hero .site-header:not(.is-solid) { color: var(--paper); }
.has-hero .site-header:not(.is-solid) .brand-mark { color: var(--paper); }
.has-hero .site-header:not(.is-solid) .brand-mark .bm-fg { stroke: var(--ink); }
.has-hero .site-header:not(.is-solid) .btn--ghost { --fg: var(--paper); border-color: rgba(245, 242, 236, .4); }
.has-hero .site-header:not(.is-solid) .btn--ghost::before { background: var(--paper); }
.has-hero .site-header:not(.is-solid) .btn--ghost:hover { color: var(--ink); }
.has-hero .site-header:not(.is-solid) .btn:not(.btn--ghost) { --bg: var(--paper); --fg: var(--ink); }
.site-header.is-solid { background: rgba(245, 242, 236, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
body:not(.has-hero) .site-header { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
body:not(.has-hero) main { padding-top: var(--header-h); }

/* Header 2: centered */
.header--2 .utility { height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; border-bottom: 1px solid var(--line-inv); transition: height .4s, opacity .3s; overflow: hidden; }
.header--2:not(.is-solid) .utility { border-color: rgba(245, 242, 236, .18); }
body:not(.has-hero) .header--2 .utility, .header--2.is-solid .utility { border-color: var(--line); }
.header--2.is-solid .utility { height: 0; opacity: 0; border: 0; }
.header--2 .utility span { display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.header--2 .utility .ico { width: 14px; height: 14px; }
.header--2 .bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.header--2 .nav--left { justify-self: start; }
.header--2 .nav--right { justify-self: end; }
.header--2 .brand { justify-self: center; }
body.header-2:not(.has-hero) main { padding-top: calc(var(--header-h) + 38px); }

/* Header 3: minimal + overlay */
.header--3 .menu-toggle { display: inline-grid; border-color: currentColor; }
.header--3 .menu-toggle-label { font-size: 13.5px; font-weight: 500; margin-right: 6px; }
.header--3 .menu-btn { display: inline-flex; align-items: center; gap: 4px; }

/* Header 4: bar with search */
.header--4 .topbar { background: var(--ink); color: var(--paper); font-size: 12.5px; }
.header--4 .topbar .wrap { height: 36px; display: flex; align-items: center; gap: 24px; }
.header--4 .topbar a { opacity: .8; transition: opacity .2s; display: inline-flex; gap: 6px; align-items: center; }
.header--4 .topbar a:hover { opacity: 1; }
.header--4 .topbar .ico { width: 14px; height: 14px; }
.header--4 .topbar .sp { margin-left: auto; }
.header--4 { background: var(--paper) !important; color: var(--ink) !important; box-shadow: 0 1px 0 var(--line); }
.header--4 .brand-mark { color: var(--ink) !important; }
.header--4 .brand-mark .bm-fg { stroke: var(--paper) !important; }
.header--4.is-solid .topbar { display: none; }
.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input { width: 100%; height: 44px; border-radius: 40px; border: 1px solid var(--line-strong); background: var(--white); padding: 0 46px 0 18px; font-size: 14px; }
.header-search button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.header-search .ico { width: 16px; height: 16px; }
body.header-4 main { padding-top: calc(var(--header-h) + 36px) !important; }
body.header-4.has-hero .hero { margin-top: 0; }

/* Mega menu */
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 14px); left: 50%; width: 640px; transform: translate(-50%, 10px); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 30px 80px -30px rgba(12, 14, 17, .35); padding: 22px; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 22px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega h6 { margin: 0 0 10px; font: 500 12px/1 var(--sans); color: var(--stone); }
.mega a { display: block; padding: 7px 0; font-size: 14.5px; }
.mega a::after { display: none; }
.mega a:hover { color: var(--brass); }
.mega .mega-feature { border-radius: var(--r); overflow: hidden; position: relative; min-height: 180px; color: var(--paper); padding: 0 !important; }
.mega .mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega .mega-feature:hover img { transform: scale(1.05); }
.mega .mega-feature span { position: absolute; left: 14px; bottom: 12px; right: 14px; font-family: var(--serif); font-size: 20px; line-height: 1.1; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }

/* Mobile / overlay navigation */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 14, 17, .5); opacity: 0; transition: opacity .5s var(--ease); }
.drawer-panel { position: absolute; inset: 0; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1.1fr .9fr; clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-io); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { clip-path: inset(0 0 0 0); }
.drawer-main { padding: 28px var(--gutter) 40px; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6vh; }
.drawer-close { width: 48px; height: 48px; border: 1px solid var(--line-inv); border-radius: 50%; display: grid; place-items: center; }
.drawer-links { display: flex; flex-direction: column; gap: 2px; }
.drawer-links a { font: 400 clamp(36px, 5.4vw, 72px)/1.08 var(--serif); letter-spacing: -.02em; display: flex; align-items: baseline; gap: 18px; opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .9s var(--ease), color .3s; transition-delay: calc(var(--i) * 60ms + 300ms); }
.drawer-links a small { font: 500 12px/1 var(--mono); color: var(--brass-2); }
.drawer-links a:hover { color: var(--brass-2); }
.drawer.is-open .drawer-links a { opacity: 1; transform: none; }
.drawer-foot { margin-top: auto; padding-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 14px; color: var(--stone-2); }
.drawer-foot a { color: var(--paper); }
.drawer-aside { position: relative; overflow: hidden; }
.drawer-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.drawer.is-open .drawer-aside img { transform: scale(1); }
.drawer-aside .cap { position: absolute; left: 32px; right: 32px; bottom: 32px; background: rgba(12, 14, 17, .6); backdrop-filter: blur(10px); padding: 18px 20px; border-radius: var(--r); }
.drawer-aside .cap b { font: 400 22px/1.15 var(--serif); display: block; margin-bottom: 4px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards; will-change: transform; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 17, .55) 0%, rgba(12, 14, 17, .1) 32%, rgba(12, 14, 17, .25) 60%, rgba(12, 14, 17, .82) 100%); }
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(36px, 6vh, 72px); padding-top: calc(var(--header-h) + 60px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: end; margin-bottom: 44px; }
.hero h1 { max-width: 13ch; }
.hero .lead { color: rgba(245, 242, 236, .82); margin-top: 22px; }
.hero-meta { display: flex; flex-direction: column; gap: 18px; padding-bottom: 8px; }
.hero-meta-row { display: flex; justify-content: space-between; border-top: 1px solid rgba(245, 242, 236, .25); padding-top: 12px; font-size: 13.5px; color: rgba(245, 242, 236, .75); }
.hero-meta-row b { font: 400 26px/1 var(--serif); color: var(--paper); }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 500 11px/1 var(--mono); writing-mode: vertical-rl; color: rgba(245, 242, 236, .7); }
.scroll-cue::after { content: ""; width: 1px; height: 54px; background: linear-gradient(rgba(245, 242, 236, .7), transparent); animation: cue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Search panel */
.search-panel { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: 8px; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .6); }
.search-tabs { display: flex; gap: 4px; padding: 6px 6px 10px; }
.search-tab { height: 34px; padding: 0 16px; border-radius: 40px; font-size: 13.5px; font-weight: 500; color: var(--stone); transition: background .3s, color .3s; }
.search-tab.is-active { background: var(--ink); color: var(--paper); }
.search-fields { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.search-field { padding: 12px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.search-field:last-of-type { border-right: 0; }
.search-field label { font-size: 11.5px; font-weight: 500; color: var(--stone); letter-spacing: .01em; }
.search-field input, .search-field select { border: 0; background: transparent; padding: 0; font-size: 15px; outline: 0; width: 100%; appearance: none; -webkit-appearance: none; }
.search-fields .btn { height: auto; margin: 6px; border-radius: var(--r); }

/* ── Sections ────────────────────────────────────────── */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted, .section--dark .eyebrow { color: var(--stone-2); }
.section--dark .lead { color: rgba(245, 242, 236, .75); }
.section--paper2 { background: var(--paper-2); }
.section--oak { background: var(--oak); color: var(--paper); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .eyebrow { margin-bottom: 22px; }
.section-head p { margin: 18px 0 0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Intro split */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-figure { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; }
.intro-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-figure .tag { position: absolute; left: 16px; bottom: 16px; }
.intro-text .h2 { margin: 22px 0 28px; }
.intro-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.intro-points h3 { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.intro-points h3 .ico { color: var(--brass); }
.intro-points p { margin: 0; color: var(--stone); font-size: 15px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-inv); }
.stat { padding: 32px 24px 8px 0; border-right: 1px solid var(--line-inv); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 400 clamp(44px, 5vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
.stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--stone-2); }

/* ── Listing cards ───────────────────────────────────── */
.grid-listings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.grid-listings--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lcard { position: relative; display: flex; flex-direction: column; }
.lcard-media { position: relative; aspect-ratio: 4/3.1; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.lcard-media img.alt { position: absolute; inset: 0; opacity: 0; }
.lcard:hover .lcard-media img { transform: scale(1.045); }
.lcard:hover .lcard-media img.alt { opacity: 1; }
.lcard-badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2; }
.lcard-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(245, 242, 236, .9); transition: transform .3s var(--ease), background .3s; }
.lcard-fav:hover { transform: scale(1.08); }
.lcard-fav .ico { width: 18px; height: 18px; }
.lcard-fav.is-on { background: var(--ink); color: var(--paper); }
.lcard-fav.is-on .ico { fill: currentColor; }
.lcard-compare { position: absolute; bottom: 12px; right: 12px; z-index: 2; height: 32px; padding: 0 12px; border-radius: 30px; background: rgba(245, 242, 236, .92); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease), background .3s; }
.lcard:hover .lcard-compare, .lcard-compare.is-on { opacity: 1; transform: none; }
.lcard-compare.is-on { background: var(--brass); }
.lcard-compare .ico { width: 14px; height: 14px; }
.lcard-body { padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.lcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lcard-price { font: 400 26px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.lcard-price .per, .price .per { font: 400 14px var(--sans); color: var(--stone); margin-left: 2px; }
.lcard-area { font-size: 12.5px; color: var(--stone); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-title { font-size: 16.5px; font-weight: 500; line-height: 1.35; }
.lcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.lcard-specs { display: flex; gap: 18px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.lcard-specs span { display: inline-flex; align-items: center; gap: 7px; }
.lcard-specs .ico { width: 17px; height: 17px; color: var(--stone); }

.cursor-label { position: fixed; left: 0; top: 0; z-index: 90; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 500 13px/1 var(--sans); pointer-events: none; transform: scale(0); transition: transform .45s var(--ease); }
.cursor-label.is-on { transform: scale(1); }

/* Feature carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(380px, 30%); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; cursor: grab; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-progress { height: 1px; background: var(--line); margin-top: 36px; position: relative; overflow: hidden; }
.carousel-progress span { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 20%; transition: transform .2s linear; }

/* Split showcase (rent / sale) */
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--ink); }
.showcase-item { position: relative; min-height: 640px; overflow: hidden; color: var(--paper); display: flex; align-items: flex-end; padding: clamp(28px, 4vw, 56px); }
.showcase-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.showcase-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 17, 0) 30%, rgba(12, 14, 17, .85)); }
.showcase-item:hover img { transform: scale(1.04); }
.showcase-item > div { position: relative; z-index: 1; max-width: 460px; }
.showcase-item .num-mono { color: var(--brass-2); font-size: 12px; }
.showcase-item h3 { font: 400 clamp(40px, 4.4vw, 64px)/1 var(--serif); margin: 14px 0 14px; }
.showcase-item p { color: rgba(245, 242, 236, .78); margin: 0 0 24px; }

/* Services list */
.services { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 1.4fr) 56px; gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.service-row::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: 0; }
.service-row > * { position: relative; z-index: 1; transition: color .5s var(--ease); }
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover > * { color: var(--paper); }
.service-row:hover .muted { color: var(--stone-2); }
.service-row .num-mono { color: var(--brass); font-size: 13px; padding-left: 4px; }
.service-row h3 { font: 400 clamp(28px, 3vw, 44px)/1 var(--serif); }
.service-row p { margin: 0; }
.service-row .go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .6; transition: transform .5s var(--ease), opacity .3s; }
.service-row:hover .go { transform: rotate(-45deg); opacity: 1; }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; gap: 56px; animation: marquee 48s linear infinite; padding-left: 56px; }
.marquee-track span { font: 400 clamp(30px, 3.6vw, 52px)/1 var(--serif); display: inline-flex; align-items: center; gap: 56px; color: var(--ink-3); }
.marquee-track span::after { content: ""; width: 10px; height: 10px; border: 1px solid var(--brass); transform: rotate(45deg); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Testimonial / quote */
.quote-block { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: center; }
.quote-block blockquote { margin: 0; font: 400 clamp(28px, 3.2vw, 46px)/1.15 var(--serif); letter-spacing: -.01em; }
.quote-block cite { display: block; margin-top: 28px; font: 500 14px var(--sans); font-style: normal; color: var(--stone-2); }

/* Journal cards */
.grid-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.pcard { display: flex; flex-direction: column; gap: 16px; position: relative; }
.pcard-media { aspect-ratio: 16/11; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--stone); align-items: center; }
.pcard-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pcard h3 { font: 400 26px/1.15 var(--serif); letter-spacing: -.005em; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard p { margin: 0; color: var(--stone); font-size: 15px; }
.pcard--feature { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.pcard--feature .pcard-media { aspect-ratio: 16/10.5; }
.pcard--feature h3 { font-size: clamp(30px, 3vw, 42px); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: var(--paper); background: var(--ink); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta-band .wrap { position: relative; padding-block: clamp(80px, 10vw, 150px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Page hero (inner pages) ────────────────────────── */
.page-hero { padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero p { margin: 22px 0 0; }
.page-hero--image { position: relative; color: var(--paper); border: 0; padding: 0; min-height: 62vh; display: flex; align-items: flex-end; background: var(--ink); overflow: hidden; }
.page-hero--image img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.06); animation: heroZoom 12s var(--ease) forwards; }
.page-hero--image .wrap { position: relative; padding-top: calc(var(--header-h) + 80px); padding-bottom: 56px; }
.page-hero--image .lead { color: rgba(245, 242, 236, .82); }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--stone); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero--image .crumbs { color: rgba(245, 242, 236, .7); }
.page-hero--image .crumbs a:hover { color: var(--paper); }

/* ── Prose (CMS content, blog) ──────────────────────── */
.prose { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font: 400 clamp(30px, 3vw, 40px)/1.12 var(--serif); margin-top: 1.9em; color: var(--ink); letter-spacing: -.01em; }
.prose h3 { font: 500 21px/1.3 var(--sans); margin-top: 1.6em; color: var(--ink); }
.prose p { margin-block: 0; }
.prose a { border-bottom: 1px solid var(--brass); transition: color .2s; }
.prose a:hover { color: var(--brass); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--brass); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--brass); font: 400 26px/1.35 var(--serif); color: var(--ink); }
.prose figure { margin: 2.2em 0; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { margin-top: 12px; font-size: 14px; color: var(--stone); }
.prose img { border-radius: var(--r); }
.prose .lead { font-size: 22px; color: var(--ink); }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th, .table th { font-weight: 500; color: var(--stone); font-size: 13px; }
.prose details { border-top: 1px solid var(--line); padding: 18px 0; }
.prose details:last-of-type { border-bottom: 1px solid var(--line); }
.prose summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.prose summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--brass); transition: transform .4s var(--ease); }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details p { margin-top: 12px; color: var(--stone); }
.prose summary::-webkit-details-marker { display: none; }
.prose .cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 2em 0; }
.prose .cols-3 h3 { margin-top: 0; font-size: 18px; }
.prose .cols-3 p { font-size: 16px; color: var(--stone); margin-top: 8px; }
.prose .steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 0; }
.prose .steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.prose .steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/2 var(--mono); color: var(--brass); }
.prose .steps li h3 { margin: 0 0 4px; grid-column: 2; }
.prose .steps li p { grid-column: 2; margin: 0; color: var(--stone); font-size: 16px; }
.prose .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; margin: 2em 0; }
.prose .guide-grid figure { margin: 0 0 16px; }
.prose .guide-grid figure img { aspect-ratio: 16/10; object-fit: cover; }
.prose .guide-grid h3 { margin-top: 0; font: 400 28px/1.1 var(--serif); }
.prose .guide-grid p { font-size: 16px; margin-top: 8px; }
.prose .legal-meta { font-size: 14px; color: var(--stone); font-family: var(--mono); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r); }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 100px); align-items: start; }
.page-aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--white); }
.aside-card h4 { font: 400 22px/1.2 var(--serif); margin-bottom: 10px; }
.aside-card p { font-size: 14.5px; color: var(--stone); margin: 0 0 16px; }
.aside-links a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.aside-links a:last-child { border: 0; }
.aside-links a.is-active, .aside-links a:hover { color: var(--brass); }

/* ── Listings index ─────────────────────────────────── */
.listings-head { padding: 48px 0 28px; }
.listings-head h1 { margin-top: 18px; }
.filters-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(245, 242, 236, .95); backdrop-filter: blur(12px); border-block: 1px solid var(--line); transition: top .5s var(--ease); }
.site-header.is-hidden ~ main .filters-bar { top: 0; }
.filters { display: flex; gap: 10px; align-items: center; padding-block: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 40px; padding: 3px; background: var(--white); }
.seg a, .seg button { height: 34px; padding: 0 16px; border-radius: 40px; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; color: var(--stone); transition: background .3s, color .3s; }
.seg .is-active { background: var(--ink); color: var(--paper); }
.fselect, .finput { height: 42px; border: 1px solid var(--line-strong); border-radius: 40px; background: var(--white); padding: 0 36px 0 16px; font-size: 13.5px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857e72' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.finput { background-image: none; padding-right: 16px; min-width: 220px; }
.filters .sp { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.results-meta { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; font-size: 14px; color: var(--stone); }
.view-toggle { display: inline-flex; gap: 4px; }
.view-toggle button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--stone); }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }
.listings-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.listings-split.with-map { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.listings-split.with-map .grid-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-pane { position: sticky; top: calc(var(--header-h) + 80px); height: calc(100vh - var(--header-h) - 110px); border-radius: var(--r-lg); overflow: hidden; display: none; background: var(--paper-2); }
.with-map .map-pane { display: block; }
#map, .map-box { width: 100%; height: 100%; }
.map-pin { background: var(--ink); color: var(--paper); font: 500 12px/1 var(--sans); padding: 7px 10px; border-radius: 30px; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .5); transform: translate(-50%, -100%); position: relative; transition: background .2s, transform .2s; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.map-pin.is-hot { background: var(--brass); color: var(--ink); transform: translate(-50%, -100%) scale(1.08); z-index: 1000; }
.leaflet-popup-content-wrapper { border-radius: var(--r) !important; padding: 0 !important; overflow: hidden; }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; font-family: var(--sans); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; }
.map-pop div { padding: 12px 14px; }
.map-pop b { font: 400 20px/1 var(--serif); display: block; }
.map-pop span { font-size: 12.5px; color: var(--stone); }
.empty { padding: 80px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty h3 { font: 400 32px/1.1 var(--serif); margin-bottom: 10px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 64px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--mono); border: 1px solid var(--line); }
.pagination .is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pagination a:hover { border-color: var(--ink); }

/* Compare tray */
.compare-tray { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 70; background: var(--ink); color: var(--paper); border-radius: 60px; padding: 8px 8px 8px 22px; display: flex; gap: 16px; align-items: center; font-size: 14px; transition: transform .6s var(--ease); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6); }
.compare-tray.is-on { transform: translate(-50%, 0); }
.compare-tray .btn { height: 40px; }
.compare-thumbs { display: flex; }
.compare-thumbs img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); margin-left: -8px; }

/* ── Listing detail ─────────────────────────────────── */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: min(78vh, 760px); margin-top: 20px; }
.gallery button { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-3); }
.gallery button:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; right: 16px; bottom: 16px; }
.listing-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.listing-actions { display: flex; gap: 8px; }
.listing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.listing-head h1 { margin: 16px 0 14px; }
.listing-head .addr { display: flex; align-items: center; gap: 8px; color: var(--stone); }
.listing-head .addr .ico { width: 18px; height: 18px; }
.price-block { text-align: right; }
.price-block .price { font: 400 clamp(38px, 4vw, 58px)/1 var(--serif); letter-spacing: -.02em; }
.price-block .sub { margin-top: 10px; font-size: 14px; color: var(--stone); }
.keyfacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.keyfact { padding: 26px 0; display: flex; gap: 14px; align-items: center; }
.keyfact .ico { width: 26px; height: 26px; color: var(--brass); }
.keyfact b { display: block; font: 400 26px/1 var(--serif); }
.keyfact span { font-size: 13px; color: var(--stone); }
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 6vw, 96px); padding: 56px 0 100px; align-items: start; }
.listing-section { padding: 40px 0; border-top: 1px solid var(--line); }
.listing-section:first-child { border-top: 0; padding-top: 0; }
.listing-section > h2 { font: 400 34px/1.1 var(--serif); margin-bottom: 24px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feature-list .ico { width: 18px; height: 18px; color: var(--brass); margin-top: 3px; }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts-table th { color: var(--stone); font-weight: 400; width: 45%; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.amenity-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity-chips span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 40px; font-size: 14px; }
.amenity-chips .ico { width: 16px; height: 16px; color: var(--brass); }
.map-box { height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); }
.media-embed { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.media-embed iframe { width: 100%; height: 100%; border: 0; }
.demo-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border: 1px dashed var(--stone-2); border-radius: var(--r); font-size: 14px; color: var(--stone); margin-top: 18px; }
.demo-note .ico { width: 18px; height: 18px; margin-top: 2px; }

.sticky-card { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); overflow: hidden; }
.sticky-card .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.sticky-card .tabs button { height: 54px; font-size: 14px; font-weight: 500; color: var(--stone); position: relative; }
.sticky-card .tabs button.is-active { color: var(--ink); }
.sticky-card .tabs button.is-active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--ink); }
.sticky-card .panel { padding: 24px; display: none; }
.sticky-card .panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agent-row { display: flex; gap: 14px; align-items: center; padding: 20px 24px; background: var(--paper); border-top: 1px solid var(--line); }
.agent-row .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 400 20px var(--serif); flex: none; }
.agent-row b { display: block; font-weight: 500; font-size: 15px; }
.agent-row span { font-size: 13px; color: var(--stone); }
.agent-row a { margin-left: auto; }
.date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 66px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.date-strip label { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 10px 0; text-align: center; cursor: pointer; transition: all .25s; }
.date-strip input { display: none; }
.date-strip small { display: block; font-size: 11.5px; color: var(--stone); }
.date-strip b { display: block; font: 400 24px/1.1 var(--serif); }
.date-strip input:checked + span { color: var(--paper); }
.date-strip label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.date-strip label:has(input:checked) small { color: var(--stone-2); }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-grid label { border: 1px solid var(--line-strong); border-radius: var(--r); padding: 9px 0; text-align: center; font-size: 13.5px; cursor: pointer; }
.time-grid input { display: none; }
.time-grid label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Calculator */
.calc { display: grid; gap: 18px; }
.calc-result { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.donut { width: 140px; height: 140px; }
.donut circle { fill: none; stroke-width: 14; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease); }
.calc-result .total { font: 400 44px/1 var(--serif); }
.calc-legend { display: grid; gap: 8px; margin-top: 16px; font-size: 13.5px; }
.calc-legend span { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.calc-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 8px; }
.range-row { display: grid; gap: 8px; }
.range-row .top { display: flex; justify-content: space-between; font-size: 14px; }
.range-row .top b { font-family: var(--mono); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-strong); outline: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 14, 17, .97); display: none; flex-direction: column; color: var(--paper); }
.lightbox.is-open { display: flex; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-family: var(--mono); font-size: 13px; }
.lightbox-stage { flex: 1; display: grid; place-items: center; position: relative; min-height: 0; padding: 0 80px; }
.lightbox-stage img { max-height: calc(100vh - 180px); max-width: 100%; object-fit: contain; border-radius: var(--r); animation: fadeIn .5s var(--ease); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; color: var(--paper); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-cap { text-align: center; padding: 16px; font-size: 14px; color: var(--stone-2); }
.lightbox .icon-btn { background: transparent; color: var(--paper); border-color: var(--line-inv); }

/* ── Forms ──────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field-label { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.field .req { color: var(--brass); }
.field .help { font-size: 13px; color: var(--stone); margin: 0; }
.input, .select, .textarea { width: 100%; height: 50px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); padding: 0 16px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 130px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857e72' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(164, 131, 90, .18); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, .field.has-error .choices { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border-radius: var(--r); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 40px; font-size: 14px; background: var(--white); cursor: pointer; transition: all .25s var(--ease); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin-top: 2px; flex: none; }
.form-section { padding: 36px 0 12px; border-top: 1px solid var(--line); margin-top: 18px; }
.form-section h3 { font: 400 30px/1.1 var(--serif); }
.form-section p { margin: 8px 0 0; color: var(--stone); font-size: 14.5px; }
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--paper-2); font-size: 14.5px; line-height: 1.55; }
.notice .ico { color: var(--oak); margin-top: 2px; }
.notice b { display: block; margin-bottom: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { margin-top: 14px; font-size: 14px; padding: 12px 14px; border-radius: var(--r); display: none; }
.form-msg.ok { display: block; background: #e6efe7; color: #2d5a3c; }
.form-msg.err { display: block; background: #f6e5e1; color: var(--danger); }

/* Flash */
.flash-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 95; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); font-size: 14.5px; animation: flashIn .6s var(--ease); }
.flash .ico { width: 18px; height: 18px; margin-top: 1px; }
.flash--success .ico { color: #8fc2a0; }
.flash--error .ico { color: #e59a8a; }
.flash--info .ico { color: var(--brass-2); }
.flash button { margin-left: auto; opacity: .6; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Apply page ─────────────────────────────────────── */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: start; padding-top: 56px; padding-bottom: 120px; }
.apply-progress { height: 2px; background: var(--line); position: sticky; top: var(--header-h); z-index: 20; }
.apply-progress span { display: block; height: 100%; background: var(--brass); width: 0; transition: width .4s var(--ease); }
.apply-aside .lcard { margin-bottom: 24px; }
.steps-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps-mini li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.steps-mini li span { font: 500 12px/1.6 var(--mono); color: var(--brass); }
.steps-mini b { display: block; font-weight: 500; }
.steps-mini p { margin: 4px 0 0; color: var(--stone); font-size: 13.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); padding-top: 64px; padding-bottom: 120px; }
.contact-cards { display: grid; gap: 0; }
.contact-cards a, .contact-cards div { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; }
.contact-cards .ico { width: 24px; height: 24px; color: var(--brass); }
.contact-cards small { display: block; font-size: 13px; color: var(--stone); margin-bottom: 4px; }
.contact-cards b { font: 400 24px/1.2 var(--serif); }

/* Blog */
.blog-cats { display: flex; gap: 8px; flex-wrap: wrap; padding: 24px 0 48px; }
.blog-cats a { height: 38px; padding: 0 16px; border-radius: 40px; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; transition: all .25s; }
.blog-cats a small { font-family: var(--mono); font-size: 11.5px; color: var(--stone); }
.blog-cats a.is-active, .blog-cats a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blog-cats a.is-active small, .blog-cats a:hover small { color: var(--stone-2); }
.post-hero { padding-top: 56px; }
.post-hero h1 { margin: 22px 0 22px; max-width: 18ch; }
.post-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--stone); align-items: center; }
.post-meta .author { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 500; }
.post-meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--oak); color: var(--paper); display: grid; place-items: center; font: 400 16px var(--serif); }
.post-cover { margin-top: 48px; aspect-ratio: 21/9; border-radius: var(--r); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px) 1fr; gap: clamp(32px, 5vw, 72px); padding-top: 64px; padding-bottom: 100px; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; font-size: 14px; }
.toc b { display: block; font-weight: 500; margin-bottom: 14px; font-size: 13px; color: var(--stone); }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); color: var(--stone); transition: color .2s, border-color .2s; line-height: 1.35; }
.toc a.is-active, .toc a:hover { color: var(--ink); border-color: var(--brass); }
.share-row { display: flex; gap: 8px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); align-items: center; }
.share-row span { font-size: 14px; color: var(--stone); margin-right: 8px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .3s, background .3s; }
.post-nav a:hover { border-color: var(--ink); background: var(--white); }
.post-nav small { color: var(--stone); font-size: 12.5px; }
.post-nav b { display: block; font: 400 21px/1.2 var(--serif); margin-top: 6px; }
.post-nav .next { text-align: right; }
.reading-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--brass); z-index: 70; width: 0; }

/* Compare page */
.compare-table { width: 100%; border-collapse: collapse; margin: 40px 0 100px; table-layout: fixed; }
.compare-table th, .compare-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.compare-table th { color: var(--stone); font-weight: 400; width: 200px; }
.compare-table img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); margin-bottom: 12px; }

/* Error */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 20px; }
.error-page .code { font: 400 clamp(120px, 20vw, 260px)/.8 var(--serif); color: var(--paper-3); letter-spacing: -.04em; }

/* Maintenance overlay (live) */
.mx-overlay { position: fixed; inset: 0; z-index: 1000; background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center; padding: 32px; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.mx-overlay.is-on { opacity: 1; pointer-events: auto; }
.mx-inner { max-width: 620px; }
.mx-inner h1 { font: 400 clamp(40px, 6vw, 72px)/1 var(--serif); margin: 36px 0 20px; }
.mx-inner p { color: var(--stone-2); font-size: 17px; }
.mx-pulse { display: inline-flex; gap: 10px; align-items: center; margin-top: 30px; font: 500 12.5px var(--mono); color: var(--brass-2); }
.mx-pulse i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.mx-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .5; }
.mx-lines span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-inv); }
.admin-maint-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; background: var(--brass); color: var(--ink); padding: 10px 18px; border-radius: 40px; font-size: 13.5px; font-weight: 500; display: flex; gap: 10px; align-items: center; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4); }

/* Cookie banner */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 85; max-width: 420px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .35); font-size: 14px; transform: translateY(150%); transition: transform .7s var(--ease); }
.cookie.is-on { transform: none; }
.cookie p { margin: 0 0 14px; color: var(--ink-3); }
.cookie .row { display: flex; gap: 8px; }

/* ── Footers ────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--brass-2); }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-col h5 { margin: 0 0 18px; font: 500 12.5px/1 var(--sans); color: var(--stone-2); letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 14.5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line-inv); font-size: 13px; color: var(--stone-2); }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-inv); display: grid; place-items: center; }
.socials a:hover { background: var(--paper); color: var(--ink) !important; }
.socials .ico { width: 17px; height: 17px; }
.newsletter { display: flex; border-bottom: 1px solid rgba(245, 242, 236, .35); padding-bottom: 6px; margin-top: 16px; }
.newsletter input { flex: 1; background: transparent; border: 0; color: var(--paper); font-size: 15px; outline: 0; padding: 8px 0; }
.newsletter input::placeholder { color: var(--stone-2); }
.newsletter button { color: var(--paper); display: grid; place-items: center; width: 40px; }
.newsletter-msg { font-size: 13px; color: var(--brass-2); margin-top: 8px; min-height: 18px; }
.eho { display: inline-flex; gap: 8px; align-items: center; }
.eho svg { width: 18px; height: 18px; }

/* Footer 1: editorial */
.footer--1 .footer-cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; padding: clamp(72px, 9vw, 130px) 0 clamp(56px, 6vw, 90px); border-bottom: 1px solid var(--line-inv); }
.footer--1 .footer-cta h2 { font: 400 clamp(48px, 7vw, 108px)/.95 var(--serif); letter-spacing: -.03em; }
.footer--1 .footer-cta h2 em { color: var(--brass-2); }
.footer--1 .footer-cta .contact-line { display: grid; gap: 14px; justify-items: end; text-align: right; }
.footer--1 .footer-cta .contact-line a.big { font: 400 clamp(26px, 2.6vw, 38px)/1 var(--serif); }
.footer--1 .footer-main { padding: 64px 0; }
/* Footer 2: compact */
.footer--2 .footer-main { padding: 56px 0 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 56px; align-items: start; }
.footer--2 .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Footer 3: statement wordmark */
.footer--3 .footer-main { padding: 80px 0 32px; }
.footer--3 .wordmark { font: 400 clamp(64px, 15.5vw, 260px)/.82 var(--serif); letter-spacing: -.045em; white-space: nowrap; margin: 40px 0 0; color: var(--paper); opacity: .95; user-select: none; display: flex; justify-content: space-between; }
.footer--3 .wordmark span { display: inline-block; transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.footer--3 .wordmark.is-in span { transform: none; opacity: 1; }
/* Footer 4: split */
.footer--4 { background: var(--paper-2); color: var(--ink); }
.footer--4 .footer-split { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 520px; }
.footer--4 .footer-card { position: relative; background: var(--ink); color: var(--paper); padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.footer--4 .footer-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.footer--4 .footer-card > * { position: relative; }
.footer--4 .footer-card h3 { font: 400 clamp(36px, 4vw, 58px)/1 var(--serif); margin: 18px 0; }
.footer--4 .footer-right { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 48px; }
.footer--4 .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer--4 .footer-col h5 { color: var(--stone); }
.footer--4 .footer-bottom { border-color: var(--line); color: var(--stone); }
.footer--4 .newsletter { border-color: var(--line-strong); }
.footer--4 .newsletter input, .footer--4 .newsletter button { color: var(--ink); }
.footer--4 .socials a { border-color: var(--line-strong); }
.footer--4 .socials a:hover { background: var(--ink); color: var(--paper) !important; }
.footer--4 a:hover { color: var(--brass); }

/* ── Account / auth shells ──────────────────────────── */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-media { position: relative; background: var(--ink); color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.auth-media img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; animation: heroZoom 16s var(--ease) forwards; transform: scale(1.1); }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 14, 17, .35), rgba(12, 14, 17, .1) 40%, rgba(12, 14, 17, .85)); }
.auth-media > * { position: relative; z-index: 1; }
.auth-media blockquote { margin: 0; font: 400 clamp(28px, 2.8vw, 40px)/1.15 var(--serif); max-width: 18ch; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 7vw, 120px); }
.auth-form .inner { max-width: 420px; width: 100%; }
.auth-form h1 { font: 400 48px/1 var(--serif); margin: 0 0 12px; }
.auth-form .sub { color: var(--stone); margin: 0 0 36px; }
.auth-form form { display: grid; gap: 18px; }
.auth-alt { margin-top: 28px; font-size: 14.5px; color: var(--stone); }
.auth-alt a { color: var(--ink); border-bottom: 1px solid var(--brass); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--stone); font-size: 12.5px; font-weight: 500; }
.pw-meter { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .3s, background .3s; }

.account-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; background: var(--paper); }
.account-side { background: var(--ink); color: var(--paper); padding: 28px 20px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.account-side nav { display: grid; gap: 2px; }
.account-side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r); font-size: 14.5px; color: var(--stone-2); transition: background .2s, color .2s; }
.account-side nav a:hover { color: var(--paper); background: var(--ink-3); }
.account-side nav a.is-active { background: var(--paper); color: var(--ink); }
.account-side nav a .ico { width: 18px; height: 18px; }
.account-side nav .count { margin-left: auto; font: 500 11px/1 var(--mono); background: var(--brass); color: var(--ink); padding: 4px 7px; border-radius: 20px; }
.account-side .side-foot { margin-top: auto; display: grid; gap: 12px; }
.account-user { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--ink-3); }
.account-user .avatar, .avatar-lg { width: 40px; height: 40px; border-radius: 50%; background: var(--brass); color: var(--ink); display: grid; place-items: center; font: 400 18px var(--serif); overflow: hidden; flex: none; }
.account-user .avatar img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.account-user b { display: block; font-size: 14px; font-weight: 500; }
.account-user span { font-size: 12px; color: var(--stone-2); }
.account-main { padding: 28px clamp(20px, 4vw, 56px) 80px; min-width: 0; }
.account-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 36px; }
.account-top h1 { font: 400 clamp(34px, 3.4vw, 48px)/1 var(--serif); }
.account-top .greet { font-size: 14px; color: var(--stone); margin-bottom: 8px; }
.account-mobile-bar { display: none; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .4s var(--ease); }
.kpi:hover { border-color: var(--ink); transform: translateY(-2px); }
.kpi .top { display: flex; justify-content: space-between; align-items: center; color: var(--stone); font-size: 13.5px; }
.kpi .top .ico { width: 18px; height: 18px; }
.kpi b { font: 400 40px/1 var(--serif); }
.panel-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel-card + .panel-card { margin-top: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-head h2 { font: 400 24px/1.1 var(--serif); }
.panel-body { padding: 22px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.list-rows { display: grid; }
.list-row { display: flex; gap: 16px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.list-row:last-child { border-bottom: 0; }
.list-row .thumb { width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; flex: none; background: var(--paper-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .grow span { font-size: 13px; color: var(--stone); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline li:last-child::before { display: none; }
.timeline i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--white); margin-top: 4px; }
.timeline li.done i { background: var(--ink); border-color: var(--ink); }
.timeline li.now i { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 4px rgba(164, 131, 90, .2); }
.timeline b { font-weight: 500; display: block; }
.timeline span { font-size: 13px; color: var(--stone); }
.status-pill { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 20px; font-size: 12.5px; font-weight: 500; background: var(--paper-2); }
.status-pill--received, .status-pill--new, .status-pill--sent { background: #e9eef6; color: #2f4d78; }
.status-pill--reviewing, .status-pill--contacted, .status-pill--scheduled { background: #f3ead9; color: #7a5a23; }
.status-pill--approved, .status-pill--paid, .status-pill--closed { background: #e6efe7; color: #2d5a3c; }
.status-pill--declined, .status-pill--overdue, .status-pill--void { background: #f6e5e1; color: #8e3a2b; }
.status-pill--withdrawn, .status-pill--draft { background: var(--paper-2); color: var(--stone); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1180px) {
  .grid-listings--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header--1 .nav, .header--4 .nav { display: none; }
  .header--1 .menu-toggle, .header--4 .menu-toggle { display: inline-grid; }
  .header--2 .nav { display: none; }
  .header--2 .bar { grid-template-columns: auto 1fr auto; }
  .header--2 .brand { justify-self: start; }
  .header--2 .menu-toggle { display: inline-grid; justify-self: end; }
  .listings-split.with-map { grid-template-columns: 1fr; }
  .map-pane { position: relative; top: 0; height: 420px; }
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .keyfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .hero-top, .intro, .quote-block, .cta-band .wrap, .footer--1 .footer-cta, .listing-layout, .apply-layout, .contact-grid, .page-layout, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { display: none; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-field { border-bottom: 1px solid var(--line); }
  .search-field:nth-child(2n) { border-right: 0; }
  .search-fields .btn { grid-column: 1 / -1; height: 50px; }
  .grid-listings, .grid-listings--4, .grid-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listings-split.with-map .grid-listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard--feature { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-item { min-height: 480px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .service-row { grid-template-columns: 48px 1fr 48px; }
  .service-row p { display: none; }
  .footer-cols, .footer--2 .footer-cols, .footer--4 .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer--2 .footer-main { grid-template-columns: 1fr; }
  .footer--4 .footer-split { grid-template-columns: 1fr; }
  .footer--1 .footer-cta .contact-line { justify-items: start; text-align: left; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 70vh; }
  .gallery button:first-child { grid-column: span 2; grid-row: auto; }
  .gallery button:nth-child(n+4) { display: none; }
  .listing-head { grid-template-columns: 1fr; }
  .price-block { text-align: left; }
  .sticky-card, .page-aside { position: static; }
  .drawer-panel { grid-template-columns: 1fr; }
  .drawer-aside { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-media { min-height: 260px; }
  .auth-media blockquote { display: none; }
  .account-shell { grid-template-columns: 1fr; }
  .account-side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 90; transform: translateX(-100%); transition: transform .5s var(--ease); }
  .account-side.is-open { transform: none; }
  .account-mobile-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: var(--paper); position: sticky; top: 0; z-index: 50; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-listings, .grid-listings--4, .grid-posts, .listings-split.with-map .grid-listings { grid-template-columns: minmax(0, 1fr); }
  .carousel-track { grid-auto-columns: 86%; }
  .form-grid, .feature-list, .facts-grid, .intro-points, .prose .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .keyfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-phone span, .header-actions .btn--ghost { display: none; }
  .search-fields { grid-template-columns: 1fr; }
  .search-field { border-right: 0; }
  .footer-cols, .footer--2 .footer-cols, .footer--4 .footer-cols { grid-template-columns: 1fr 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .lightbox-stage { padding: 0 12px; }
  .lightbox-prev, .lightbox-next { display: none; }
  .filters .finput { min-width: 0; width: 100%; }
  .cta-band .actions { justify-content: flex-start; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-img], .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
@media print {
  .site-header, .site-footer, .sticky-card, .listing-actions, .compare-tray, .cookie, .flash-stack, .gallery .more, .lcard-fav { display: none !important; }
  body { background: #fff; }
  main { padding-top: 0 !important; }
  .listing-layout { grid-template-columns: 1fr; }
}

/* ── Account extras ─────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table td .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.answers { display: grid; margin: 0; }
.answers > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.answers dt { color: var(--stone); }
.answers dd { margin: 0; white-space: pre-wrap; }
.panel-card .facts-grid dt { font-size: 12.5px; color: var(--stone); }
.panel-card .facts-grid dd { margin: 4px 0 16px; font-size: 15px; }
.list-row > .ico { width: 18px; height: 18px; color: var(--stone); flex: none; }
.is-account .grid-listings { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 640px) { .answers > div { grid-template-columns: 1fr; gap: 4px; } .account-top { flex-direction: column; align-items: flex-start; } }

/* Gallery layouts for fewer than five photos */
@media (min-width: 981px) {
  .gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
  .gallery--n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
  .gallery--n2 button:first-child { grid-row: auto; }
  .gallery--n3 { grid-template-columns: 2fr 1fr; }
  .gallery--n4 { grid-template-columns: 2fr 1fr 1fr; }
  .gallery--n4 button:last-child { grid-column: span 2; }
}
.panel-card, .account-grid > * { min-width: 0; }
.list-row > .status-pill, .list-row > .pill { flex: none; }
.list-rows > * { min-width: 0; }
