/* Sales Portal Template — styles.
 * Apple-style system: system type, translucent chrome, spring motion, inset grouped rows.
 * Brand values come from config.js via 4 CSS variables (--primary, --secondary, --surface, --page).
 */

:root {
  --primary: #8c6d36;
  --secondary: #1a3a2f;
  --surface: #8f877c;
  --page: #f4f0e9;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;

  /* Derived brand scales */
  --primary-50: color-mix(in oklab, var(--primary) 8%, white);
  --primary-600: color-mix(in oklab, var(--primary) 84%, black);
  --primary-700: color-mix(in oklab, var(--primary) 66%, black);
  --secondary-600: color-mix(in oklab, var(--secondary) 82%, black);
  --page-2: color-mix(in oklab, var(--page) 88%, var(--surface));

  /* Neutrals (Apple greys, slightly warmed) */
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --faint: #86868b;
  --hair: rgb(0 0 0 / .08);
  --hair-2: rgb(0 0 0 / .13);
  --fill: rgb(118 118 128 / .14);
  --fill-2: rgb(118 118 128 / .08);
  --card: #fff;
  --bg: color-mix(in oklab, var(--page) 55%, white);

  /* Status */
  --ok: #248a3d;
  --ok-bg: #e7f4ea;
  --warn: #b25f00;
  --warn-bg: #fff1dc;
  --sold: #8e8e93;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .04), 0 4px 14px rgb(0 0 0 / .05);
  --shadow-2: 0 2px 6px rgb(0 0 0 / .05), 0 22px 48px rgb(0 0 0 / .11);
  --shadow-3: 0 40px 100px rgb(0 0 0 / .32);
  --glass-light: rgb(255 255 255 / .74);
  --blur: blur(24px) saturate(180%);

  /* Springs as easing curves (damping 1.0 critically damped; 0.85 sheet; 0.8 momentum).
     Critically damped: response .4s settles in ~.57s; response .3s in ~.43s. */
  --spring: linear(0, .0414, .1351, .2493, .3657, .4747, .5715, .6547, .7244, .7819, .8285, .8659, .8957, .9193, .9377, .9521, .9633, .972, .9786, .9837, .9877, .9906, .9929, .9947, .996, .997, .9977, .9983, 1);
  --spring-sheet: linear(0, .0398, .1336, .2526, .3778, .4975, .6052, .698, .775, .8371, .8859, .9231, .9508, .9708, .9848, .9942, 1.0002, 1.0037, 1.0056, 1.0062, 1.0062, 1.0057, 1.005, 1.0042, 1.0034, 1.0027, 1.0021, 1.0016, 1);
  --spring-bounce: linear(0, .0377, .1283, .2455, .371, .4929, .6041, .7009, .7819, .8474, .8988, .9378, .9664, .9865, 1, 1.0083, 1.0129, 1.0149, 1.0151, 1.0141, 1.0126, 1.0107, 1.0088, 1.007, 1.0054, 1.004, 1.0029, 1.002, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);

  --nav-h: 60px;
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}
@supports not (transition-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(.2, .8, .2, 1); --spring-sheet: cubic-bezier(.2, .9, .25, 1.02); --spring-bounce: cubic-bezier(.3, 1.25, .5, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 84px); scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--font-body);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--primary) 55%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0;
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--spring), background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn .i { width: 18px; height: 18px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-dark { background: var(--secondary); color: #fff; }
.btn-dark:hover { background: var(--secondary-600); }
.btn-soft { background: var(--fill); color: var(--ink); }
.btn-soft:hover { background: rgb(118 118 128 / .2); }
.btn-glass { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .32); }
.btn-glass:hover { background: rgb(255 255 255 / .26); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link {
  display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; padding: 6px 0;
  color: var(--primary-700); font-size: 16px; font-weight: 500; text-decoration: none;
}
.btn-link .i { width: 16px; height: 16px; stroke-width: 2; transition: transform .45s var(--spring); }
.btn-link:hover .i { transform: translateX(3px); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; flex: none;
  background: var(--fill); color: var(--ink); transition: transform .45s var(--spring), background-color .2s;
}
.icon-btn:active { transform: scale(.9); transition-duration: .1s; }
.icon-btn .i { width: 18px; height: 18px; }

/* ---------- Announcement + navbar ---------- */
.announce {
  background: var(--page-2); color: var(--ink-2);
  text-align: center; font-size: 13px; font-weight: 500; padding: 8px 16px; letter-spacing: 0;
}
.nav {
  position: sticky; top: 0; z-index: 50; color: #f5f3ee;
  background: color-mix(in srgb, var(--secondary) 88%, transparent);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  transition: box-shadow .3s ease;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 10px 30px rgb(0 0 0 / .12); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--nav-h); padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav-logo { justify-self: start; display: flex; align-items: center; }
.nav-logo img { height: 50px; width: auto; margin-bottom: -9px; } /* logo.png has ~19% empty space under the artwork; the negative margin keeps it optically centred */
.nav-logo img.on-dark-invert { filter: brightness(0) invert(1); }
.nav-counter { display: grid; justify-items: center; gap: 6px; font-size: 13px; color: rgb(255 255 255 / .78); letter-spacing: 0; }
.nav-counter b { color: #fff; font-weight: 600; }
.ctr-bar { width: 200px; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .18); overflow: hidden; }
.ctr-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #d8c08f, #fff); transition: width 1.2s var(--spring); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 6px; position: relative; }
.btn-nav { height: 34px; padding: 0 16px; font-size: 14px; background: rgb(255 255 255 / .14); color: #fff; }
.btn-nav:hover { background: rgb(255 255 255 / .22); }
.nav-menu {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  background: none; border: 0; color: inherit; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: background-color .2s, transform .4s var(--spring);
}
.nav-menu:active { transform: scale(.95); }
.nav-menu .i { width: 20px; height: 20px; }
.nav-menu:hover, .nav-menu[aria-expanded="true"] { background: rgb(255 255 255 / .12); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 270px; display: grid; padding: 8px;
  background: rgb(255 255 255 / .86); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--ink); border-radius: 18px; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 60px rgb(0 0 0 / .22);
  transform-origin: top right; animation: popIn .5s var(--spring) both;
}
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  text-align: left; padding: 11px 14px; border-radius: 11px; border: 0; background: none;
  text-decoration: none; font-weight: 500; font-size: 16px;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--fill-2); }
.menu-panel .i { width: 16px; height: 16px; color: var(--faint); }
.menu-contact { border-top: 1px solid var(--hair); margin: 6px 6px 0; padding: 10px 8px 4px; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.menu-contact div { display: flex; justify-content: space-between; gap: 12px; }
.menu-contact a { padding: 0 !important; font-size: 14px !important; color: var(--primary-700); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(480px, 76svh, 820px); overflow: hidden; background: #2a2f2b; color: #fff; isolation: isolate; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: heroSettle 2.4s var(--spring) both; }
@keyframes heroSettle { from { transform: scale(1.06); } }
/* config hero.position "bottom": a taller photo box anchored to the bottom lifts the middle of the photo above the text */
.hero-bottom img { top: auto; bottom: 0; height: 135%; object-position: 50% 100%; }
@media (max-width: 760px) and (max-height: 700px) { .hero-bottom img { height: 160%; } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / .18) 0%, rgb(0 0 0 / 0) 26%, rgb(0 0 0 / .14) 46%, rgb(10 18 14 / .5) 72%, rgb(10 18 14 / .74) 100%);
}
.hero-content { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(44px, 8vh, 88px); }
.eyebrow { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.hero .eyebrow { color: rgb(255 255 255 / .86); }
.hero h1 {
  margin: 10px 0 16px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 6.6vw, 92px); line-height: 1.02; letter-spacing: -0.022em; max-width: 13ch;
  text-shadow: 0 2px 30px rgb(0 0 0 / .18);
}
.hero-sub { margin: 0; max-width: 36ch; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.4; color: rgb(255 255 255 / .92); letter-spacing: -0.01em; text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
/* Frosted glass panel behind the hero text: keeps the white text readable over any photo (same material as the nav) */
.hero-card {
  display: inline-block; max-width: 100%; padding: 26px 30px 30px; border-radius: 28px;
  background: rgb(14 24 19 / .4); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14), 0 24px 60px -24px rgb(0 0 0 / .5);
  animation: heroCardIn .9s var(--spring) .15s both;
}
.hero-card .hero-cta { margin-top: 24px; }
@keyframes heroCardIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Stats band ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--hair); }
.stats-inner { max-width: var(--wrap); margin: 0 auto; padding: 26px var(--gutter); display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat {
  display: grid; gap: 4px; text-align: left; padding: 6px 24px; border: 0; background: none;
  border-left: 1px solid var(--hair); color: inherit; transition: transform .45s var(--spring);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat span { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.stat b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
button.stat { cursor: pointer; }
button.stat:hover b { color: var(--primary-700); }
button.stat:active { transform: scale(.97); }

/* ---------- Browse section ---------- */
.browse { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gutter) 104px; }
.browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.browse-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -0.022em; }
.live { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; position: relative; }
.live-dot.is-snapshot { background: var(--faint); }
.live-dot.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.4s var(--ease-in) 2; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.live .btn-link { font-size: 15px; padding: 0; }

/* Segmented control (Grid / Plan / List) */
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: var(--fill); flex: none; }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 9px; background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .12), 0 1px 1px rgb(0 0 0 / .04); transition: transform .57s var(--spring);
}
.seg[data-active="plan"] .seg-thumb { transform: translateX(100%); }
.seg[data-active="list"] .seg-thumb { transform: translateX(200%); }
.view-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 18px; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.view-btn .i { width: 17px; height: 17px; }
.view-btn[aria-selected="true"] { color: var(--ink); }

/* ---------- Filter toolbar (floating glass capsule) ---------- */
.toolbar { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 30; margin-bottom: 28px; }
.filters {
  display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 22px;
  background: var(--glass-light); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 10px 30px rgb(0 0 0 / .07);
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.filters::-webkit-scrollbar { display: none; }
.f-search, .f-btn, .f-mine {
  height: 38px; border: 0; border-radius: 999px; background: var(--fill-2); color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; white-space: nowrap; flex: none;
  font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s, transform .4s var(--spring);
}
.f-btn:hover, .f-mine:hover { background: var(--fill); }
.f-btn:active, .f-mine:active { transform: scale(.95); }
.f-search { width: 148px; padding: 0 12px 0 14px; cursor: text; }
.f-search input { border: 0; outline: 0; width: 100%; min-width: 0; background: none; font-size: 15px; }
.f-search input::placeholder { color: var(--faint); }
.f-search input::-webkit-search-cancel-button { display: none; }
.f-search .i { width: 17px; height: 17px; color: var(--faint); }
.f-search:focus-within { background: #fff; box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 45%, transparent); }
.f-btn .i { width: 15px; height: 15px; stroke-width: 2; color: var(--faint); transition: transform .45s var(--spring); }
.f-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
.f-btn.is-active, .f-mine.is-active { background: var(--secondary); color: #fff; }
.f-btn.is-active .i { color: rgb(255 255 255 / .7); }
.f-mine .i { width: 16px; height: 16px; }
.f-mine.is-active .i { fill: currentColor; }
.f-end { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: none; padding-left: 4px; }
.f-matches, .f-reset {
  height: 38px; border: 0; background: none; border-radius: 999px; padding: 0 12px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500;
}
.f-matches { color: var(--ink-2); }
.f-matches .i { width: 17px; height: 17px; color: var(--primary-700); }
.f-matches:hover, .f-reset:hover { background: var(--fill-2); }
.f-reset { color: var(--primary-700); }

/* Filter popovers */
.popover {
  position: fixed; z-index: 60; min-width: 240px; max-width: min(360px, calc(100vw - 24px)); padding: 8px;
  background: rgb(255 255 255 / .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-radius: 18px; box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 24px 60px rgb(0 0 0 / .2);
  transform-origin: top left; animation: popIn .5s var(--spring) both;
}
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
.popover .opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; font-size: 16px; cursor: pointer; }
.popover .opt:hover { background: var(--fill-2); }
.popover .opt input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--secondary); }
.popover .opt small { margin-left: auto; color: var(--faint); font-size: 13px; }
.popover .opt.is-selected { font-weight: 600; }
.popover .opt-radio.is-selected::after {
  content: ""; margin-left: auto; width: 18px; height: 18px; background: var(--primary-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.popover .pop-scroll { max-height: 300px; overflow: auto; }
.popover .done { margin-top: 8px; width: 100%; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 6px 0; }
.price-row label { font-size: 13px; font-weight: 500; color: var(--muted); display: grid; gap: 6px; }
.price-row input { height: 42px; border: 0; border-radius: 11px; padding: 0 12px; width: 100%; background: var(--fill-2); font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-row input:focus { outline: 0; box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 45%, transparent); background: #fff; }
.dual { position: relative; height: 32px; margin: 14px 12px 4px; }
.dual input[type=range] { position: absolute; inset: 0; width: 100%; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; margin: 0; }
.dual input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 3px 8px rgb(0 0 0 / .18); cursor: grab; }
.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 .5px rgb(0 0 0 / .08), 0 3px 8px rgb(0 0 0 / .18); cursor: grab; }
.dual .track { position: absolute; left: 0; right: 0; top: 14px; height: 4px; background: var(--fill); border-radius: 2px; }
.dual .fill { position: absolute; top: 14px; height: 4px; background: var(--secondary); border-radius: 2px; }

/* ---------- Units: shared ---------- */
.units { min-height: 50vh; }
.loading { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 96px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--fill); border-top-color: var(--ink-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.list-note { margin: -8px 0 20px; font-size: 15px; color: var(--muted); }
.list-note .btn-link { font-size: 15px; padding: 0; }
.empty { text-align: center; padding: 72px 16px; color: var(--muted); }
.empty p { margin: 0 0 6px; }
.empty .btn { margin-top: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 9px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0; white-space: nowrap; background: var(--fill-2); color: var(--ink);
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--sold); flex: none; }
.badge.available i { background: var(--ok); }
.badge.reserved i, .badge.pending i { background: var(--warn); }
.badge.held i { background: var(--faint); }
.badge.available { background: var(--ok-bg); color: color-mix(in oklab, var(--ok) 70%, black); }
.badge.reserved, .badge.pending { background: var(--warn-bg); color: color-mix(in oklab, var(--warn) 78%, black); }

/* ---------- Grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-1); transition: transform .57s var(--spring), box-shadow .57s var(--spring);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .card:hover .card-media img { transform: scale(1.035); }
}
.card:has(.card-media:active) { transform: scale(.985); transition-duration: .15s; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: #fff; cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--spring), opacity .3s; }
.card-media img.fit-contain { object-fit: contain; padding: 8px; }
.card-media .badge { position: absolute; top: 14px; left: 14px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.card-media .badge:not(.available):not(.reserved):not(.pending) { background: rgb(255 255 255 / .88); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.card.s-sold .card-media img { opacity: .5; filter: grayscale(.5); }
.fav {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--ink-2);
  background: rgb(255 255 255 / .82); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .06), 0 2px 8px rgb(0 0 0 / .08); transition: transform .5s var(--spring-bounce), color .2s;
}
.fav .i { width: 19px; height: 19px; }
.fav:active { transform: scale(.85); transition-duration: .1s; }
.fav.is-on { color: var(--primary); }
.fav.is-on .i { fill: currentColor; }
.pop { animation: favPop .6s var(--spring-bounce); }
@keyframes favPop { 40% { transform: scale(1.22); } }
.card-body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; border-top: 1px solid var(--hair); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-title { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card-sub { margin: 3px 0 0; font-size: 15px; color: var(--muted); letter-spacing: -0.005em; }
.card-price { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-price.is-status { font-size: 15px; font-weight: 500; color: var(--muted); }
.specs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.specs li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--fill-2); font-size: 13.5px; color: var(--ink-2); letter-spacing: -0.01em; }
.specs .i { width: 15px; height: 15px; color: var(--muted); }
.card-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.card-actions .btn-link:only-child { margin-left: auto; }
.card.is-updated { animation: updated 2.4s ease; }
@keyframes updated { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary) 55%, transparent), var(--shadow-2); } }

/* Plan tile used when a unit type has no image */
.plan-tile {
  width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center;
  background: linear-gradient(var(--hair) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--hair) 1px, transparent 1px) 0 0 / 22px 22px, #fbfaf8;
  color: var(--secondary);
}
.plan-tile .pt-no { font-family: var(--font-display); font-size: 56px; line-height: 1; }
.plan-tile .pt-type { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-tile .pt-line { width: 40px; height: 1px; background: var(--primary); }

/* Collection (promo) tile */
.collection {
  grid-column: span 2; position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 320px;
  border-radius: var(--r-lg); overflow: hidden; background: var(--secondary); color: #fff; box-shadow: var(--shadow-1);
}
.collection-text { padding: 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.collection .eyebrow { color: #d8c08f; font-size: 14px; }
.collection h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; letter-spacing: -0.02em; }
.collection p { margin: 0; color: rgb(255 255 255 / .8); font-size: 16px; max-width: 36ch; }
.collection .btn { align-self: flex-start; margin-top: 6px; background: #fff; color: var(--secondary); }
.collection .btn:hover { background: #f2efe8; }
.collection-img { position: relative; background: var(--secondary-600); }
.collection-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .32); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.collection-x .i { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- List view ---------- */
.table-wrap { overflow: auto; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); max-height: 78vh; }
table.units-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; min-width: 820px; }
.units-table th {
  position: sticky; top: 0; z-index: 1; background: rgb(255 255 255 / .92); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-size: 13px; font-weight: 600; color: var(--muted); text-align: left; padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--hair); letter-spacing: 0;
}
.units-table td { padding: 13px 16px; border-bottom: 1px solid var(--hair); white-space: nowrap; font-variant-numeric: tabular-nums; }
.units-table tbody tr { cursor: pointer; transition: background-color .15s; }
.units-table tbody tr:hover { background: #faf9f6; }
.units-table tbody tr:last-child td { border-bottom: 0; }
.units-table td:first-child { font-weight: 600; }
.units-table .t-price { font-weight: 600; }
.units-table .t-star { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill-2); display: inline-grid; place-items: center; color: var(--ink-2); }
.units-table .t-star .i { width: 17px; height: 17px; }
.units-table .t-star.is-on { color: var(--primary); }
.units-table .t-star.is-on .i { fill: currentColor; }

/* ---------- Plan view ---------- */
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px; }
.ftabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.ftabs::-webkit-scrollbar { display: none; }
.ftab {
  flex: none; display: grid; text-align: left; gap: 0; padding: 9px 16px; border: 0; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px var(--hair); color: var(--ink); transition: background-color .2s, color .2s, transform .4s var(--spring);
}
.ftab b { font-size: 15px; font-weight: 600; }
.ftab small { font-size: 13px; color: var(--muted); }
.ftab:active { transform: scale(.96); }
.ftab[aria-selected="true"] { background: var(--secondary); color: #fff; box-shadow: none; }
.ftab[aria-selected="true"] small { color: rgb(255 255 255 / .72); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.plan-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #fff; box-shadow: 0 0 0 1px var(--hair-2); }
.plan-legend i.available { background: var(--ok); box-shadow: none; }
.plan-legend i.reserved { background: var(--warn-bg); box-shadow: inset 0 0 0 2px var(--warn); }
.plan-legend i.held { background: var(--fill); box-shadow: none; }
.plan-wrap { display: grid; gap: 24px; }
.plan-card { position: relative; background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-1); padding: 20px; }
.plan-card header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 6px 14px; }
.plan-card h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.plan-card h3 small { display: block; font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 4px; letter-spacing: -0.01em; }
.plan-card .plan-count { font-size: 15px; color: var(--muted); }
.pins { display: flex; flex-wrap: wrap; gap: 10px; }
.pin {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; padding: 0;
  box-shadow: 0 0 0 1px var(--hair-2), 0 2px 6px rgb(0 0 0 / .12);
  display: grid; place-content: center; text-align: center; line-height: 1.05; transition: transform .45s var(--spring), opacity .3s;
}
.pin b { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pin small { font-size: 8.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0; }
.pin:hover { transform: scale(1.1); }
.pin:active { transform: scale(.94); }
.pin.available { background: var(--ok); box-shadow: 0 0 0 2px #fff, 0 3px 8px rgb(0 0 0 / .25); }
.pin.available b, .pin.available small { color: #fff; }
.pin.reserved, .pin.pending { background: var(--warn-bg); box-shadow: inset 0 0 0 2px var(--warn), 0 2px 6px rgb(0 0 0 / .14); }
.pin.held { background: var(--fill); }
.pin.sold b { color: var(--muted); }
.pin.is-dim { opacity: .28; }
.plan-image { position: relative; overflow: auto; border-radius: var(--r-md); background: #fff; overscroll-behavior-x: contain; }
.plan-image .plan-stage { position: relative; width: 100%; transition: width .5s var(--spring); }
.plan-image .plan-stage img { width: 100%; filter: grayscale(1) contrast(1.08) brightness(1.03); opacity: .78; }
.plan-image .pin { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; }
.plan-image .pin b { font-size: 11px; }
.plan-image .pin small { font-size: 7px; }
.plan-image .pin:hover { transform: translate(-50%, -50%) scale(1.16); z-index: 2; }
.plan-image .pin:active { transform: translate(-50%, -50%) scale(.94); }
.plan-frame { position: relative; }
.zoom {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; overflow: hidden; border-radius: 14px;
  background: rgb(255 255 255 / .86); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 0 0 1px rgb(0 0 0 / .06), 0 8px 20px rgb(0 0 0 / .12);
}
.zoom button { width: 42px; height: 42px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); }
.zoom button + button { border-top: 1px solid var(--hair); }
.zoom button:hover { background: var(--fill-2); }
.zoom .i { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- Dialogs: shared ---------- */
.modal {
  border: 0; padding: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-3); overflow: hidden;
  max-width: none; max-height: none; border-radius: var(--r-xl);
}
.modal::backdrop { background: rgb(14 18 16 / calc(.46 * var(--bd, 1))); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: dlgIn .57s var(--spring) both; }
.modal[open]::backdrop { animation: fadeIn .35s ease both; }
.modal.is-closing { animation: dlgOut .24s var(--ease-in) both; pointer-events: none; }
.modal.is-closing::backdrop { animation: fadeOut .24s ease both; }
.modal.no-anim, .modal.no-anim::backdrop { animation: none !important; }
@keyframes dlgIn { from { opacity: 0; transform: scale(.9); } }
@keyframes dlgOut { to { opacity: 0; transform: scale(.94); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal-x {
  position: absolute; top: 16px; right: 16px; z-index: 6; width: 34px; height: 34px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--ink-2); background: rgb(240 240 242 / .86);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: transform .4s var(--spring), background-color .2s;
}
.modal-x:hover { background: rgb(228 228 232 / .92); }
.modal-x:active { transform: scale(.88); }
.modal-x .i { width: 16px; height: 16px; stroke-width: 2.4; }
.grabber { display: none; }

/* ---------- Unit sheet ---------- */
.unit-modal { width: min(1180px, calc(100vw - 48px)); height: min(840px, calc(100dvh - 48px)); }
.um { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); height: 100%; }
.gal { position: relative; min-height: 0; background: #fbfbfa; border-right: 1px solid var(--hair); overflow: hidden; }
.gal-track { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gal-track::-webkit-scrollbar { display: none; }
.gal-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 28px 28px 64px; min-width: 0; }
.gal-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; mix-blend-mode: multiply; }
.gal-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 20px; pointer-events: none; }
.gal-cap { margin: 0; font-size: 14px; color: var(--muted); letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-dots { display: flex; gap: 6px; flex: none; }
.gal-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgb(0 0 0 / .18); transition: width .5s var(--spring), background-color .3s; }
.gal-dots i.on { width: 20px; background: var(--ink-2); }
.gal-arrow {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -32px; border-radius: 50%; border: 0;
  display: grid; place-items: center; color: var(--ink); background: rgb(240 240 242 / .82);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); transition: opacity .3s, transform .4s var(--spring);
}
.gal-arrow:active { transform: scale(.9); }
.gal-arrow .i { width: 20px; height: 20px; stroke-width: 2; }
.gal-arrow.prev { left: 18px; }
.gal-arrow.next { right: 18px; }
.gal-arrow[disabled] { opacity: 0; pointer-events: none; }
.um-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.um-info { flex: 1; min-height: 0; overflow-y: auto; padding: 40px 36px 28px; overscroll-behavior: contain; }
.um-eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.um-title { margin: 6px 0 4px; font-size: 36px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; padding-right: 40px; }
.um-sub { margin: 0; font-size: 16px; color: var(--muted); }
.um-price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.um-price { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin-top: 24px; }
.tile { background: var(--fill-2); border-radius: 14px; padding: 12px 12px 13px; min-width: 0; }
.tile .i { width: 20px; height: 20px; color: var(--muted); }
.tile b { display: block; margin-top: 10px; font-size: 17px; white-space: nowrap; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.tile span { display: block; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.um-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--primary-50); color: var(--primary-700); font-size: 14px; line-height: 1.4; }
.um-note .i { width: 18px; height: 18px; margin-top: 1px; }
.group { margin-top: 30px; }
.group h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.group-sub { margin: 2px 0 12px; font-size: 14px; color: var(--muted); }
.rows { margin: 0; background: #f6f5f2; border-radius: var(--r-md); overflow: hidden; }
.r { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; font-size: 15px; position: relative; }
.r + .r::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--hair); }
.r dt { color: var(--ink-2); }
.r dd { margin: 0; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r dd small { color: var(--muted); font-weight: 400; font-size: 13px; }
.r-total dt, .r-total dd { color: var(--ink); font-weight: 600; }
.r-total dd { font-size: 17px; }
.assume { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.assume summary { cursor: pointer; color: var(--primary-700); font-weight: 500; font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.assume summary::-webkit-details-marker { display: none; }
.assume summary .i { width: 14px; height: 14px; stroke-width: 2; transition: transform .45s var(--spring); }
.assume[open] summary .i { transform: rotate(90deg); }
.assume p { margin: 8px 0 0; }
.links { margin: 0; padding: 0; list-style: none; background: #f6f5f2; border-radius: var(--r-md); overflow: hidden; }
.links li + li { position: relative; }
.links li + li::before { content: ""; position: absolute; top: 0; left: 54px; right: 0; height: 1px; background: var(--hair); }
.links li > button, .links li > a {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 0; background: none;
  text-align: left; text-decoration: none; font-size: 16px; color: var(--ink); transition: background-color .15s;
}
.links li > button:hover, .links li > a:hover { background: rgb(0 0 0 / .03); }
.links li > button:active, .links li > a:active { background: rgb(0 0 0 / .06); }
.links .ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--secondary); color: #fff; flex: none; }
.links .ico.wa { background: #25d366; }
.links .ico .i { width: 17px; height: 17px; }
.links .chev { margin-left: auto; width: 16px; height: 16px; color: var(--faint); stroke-width: 2; }
.links li > button[disabled] { cursor: progress; color: var(--muted); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; margin-left: auto; }
.pdf-ready { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 16px; font-size: 16px; }
.pdf-ready > span:nth-child(2) { margin-right: auto; font-weight: 500; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pdf-ready .btn { flex: none; }
.pdf-ready .btn { height: 34px; padding: 0 13px; font-size: 14px; }
.um-disclaimer { margin: 22px 0 0; font-size: 12px; line-height: 1.45; color: var(--faint); }
.um-bar {
  flex: none; display: flex; gap: 10px; align-items: center; padding: 14px 36px 18px;
  border-top: 1px solid var(--hair); background: rgb(255 255 255 / .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.um-bar .btn { flex: 1; height: 50px; font-size: 17px; }
.um-bar .icon-btn { width: 50px; height: 50px; }
.um-bar .icon-btn.is-on { color: var(--primary); }
.um-bar .icon-btn.is-on .i { fill: currentColor; }
.um-bar .icon-btn .i { width: 20px; height: 20px; }

/* ---------- Form sheet ---------- */
.form-modal { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.fm { padding: 40px 32px 28px; display: grid; gap: 14px; }
.fm h2 { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; padding-right: 30px; }
.fm .fm-sub { margin: -4px 0 8px; color: var(--muted); font-size: 16px; }
.fm .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fm label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.005em; }
.fm input, .fm select, .fm textarea {
  height: 48px; border: 0; border-radius: 12px; padding: 0 14px; font-size: 17px; background: #f2f1ee; width: 100%; color: var(--ink);
  transition: box-shadow .2s, background-color .2s; -webkit-appearance: none; appearance: none;
}
.fm select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.fm input:focus, .fm select:focus, .fm textarea:focus { outline: 0; background-color: #fff; box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 50%, transparent), 0 0 0 6px color-mix(in oklab, var(--primary) 12%, transparent); }
.fm textarea { height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.fm .consent { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); line-height: 1.4; }
.fm .consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--primary); -webkit-appearance: checkbox; appearance: auto; }
.fm .btn { height: 52px; font-size: 17px; margin-top: 4px; }
.fm .fm-alt { text-align: center; font-size: 15px; color: var(--muted); margin: 0; }
.fm .fm-alt a { color: var(--primary-700); font-weight: 500; text-decoration: none; }
.fm .fm-privacy { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.fm .fm-privacy a { color: var(--primary-700); }
.fm .err { color: #c4291c; font-size: 14px; margin: -2px 0 0; }
.fm .ok { text-align: center; padding: 20px 0 4px; display: grid; justify-items: center; gap: 10px; }
.fm .ok h2 { padding: 0; }
.fm .ok p { margin: 0 0 8px; color: var(--muted); max-width: 32ch; }
.fm .ok .btn { width: 100%; }
.check { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: checkIn .6s var(--spring-bounce) both; }
.check .i { width: 34px; height: 34px; stroke-width: 2.6; }
.check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .18s ease-out forwards; }
@keyframes checkIn { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fm .hp { position: absolute; left: -9999px; }
.fm .preview-note { font-size: 13px; color: var(--warn); text-align: center; margin: 0; }

/* ---------- Plan your move (tools band) ---------- */
.move { max-width: var(--wrap); margin: 0 auto; padding: 64px var(--gutter) 0; }
.move-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.move-head h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -0.022em; }
.move-head p { margin: 0; max-width: 40ch; color: var(--muted); font-size: 16px; }
.move-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.move-tile {
  display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; align-content: start; text-align: left;
  padding: 24px 26px 22px; border: 0; border-radius: var(--r-lg); background: #fff; color: inherit; box-shadow: var(--shadow-1);
  transition: transform .57s var(--spring), box-shadow .57s var(--spring);
}
@media (hover: hover) { .move-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.move-tile:active { transform: scale(.985); transition-duration: .15s; }
.mt-ico { grid-row: 1 / span 3; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--secondary); color: #fff; }
.mt-ico .i { width: 26px; height: 26px; }
.move-tile b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mt-text { color: var(--muted); font-size: 16px; line-height: 1.4; }
.move-tile em { margin-top: 8px; font-style: normal; color: var(--primary-700); font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
.move-tile em .i { width: 16px; height: 16px; stroke-width: 2; transition: transform .45s var(--spring); }
.move-tile:hover em .i { transform: translateX(3px); }
.tool-links { margin-top: 14px; }

/* ---------- Tool sheet ---------- */
.tool-modal { width: min(1100px, calc(100vw - 48px)); height: min(860px, calc(100dvh - 48px)); }
.tool { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, 1fr); height: 100%; }
.tool-main { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 40px 36px 36px; }
.tool-title { margin: 6px 0 18px; font-size: 34px; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; padding-right: 40px; }
.tool-tabs { margin-bottom: 6px; }
.tool-side { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 44px 34px 36px; background: #f7f6f2; border-left: 1px solid var(--hair); }
.tool-bar { display: none; }

/* Generic segmented control: --n segments, --i selected */
.segc { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 3px; border-radius: 12px; background: var(--fill); }
.segc-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 9px; background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .12), 0 1px 1px rgb(0 0 0 / .04); transform: translateX(calc(100% * var(--i, 0))); transition: transform .57s var(--spring);
}
.segc button { position: relative; z-index: 1; height: 34px; padding: 0 12px; border: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.segc button[aria-selected="true"] { color: var(--ink); }
.fr .segc { min-width: 210px; }
.fr .segc button { height: 32px; font-size: 14px; }

/* Inset grouped form rows */
.form-rows { background: #f6f5f2; border-radius: var(--r-md); overflow: hidden; }
.fr { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 9px 12px 9px 16px; font-size: 16px; }
.fr + .fr::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--hair); }
.fr-l { display: grid; gap: 1px; min-width: 0; }
.fr-l small { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.fr-l small .btn-link { font-size: 12.5px; padding: 0; }
.fr-block { display: block; padding: 10px 12px; }
.fr-select select {
  min-width: 0; max-width: 62%; height: 38px; border: 0; border-radius: 10px; padding: 0 34px 0 12px; font-size: 15px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  box-shadow: inset 0 0 0 1px var(--hair); -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
}
.money-in {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 10px; border-radius: 10px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s;
}
.money-in:focus-within { box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 50%, transparent); }
.money-in i { font-style: normal; color: var(--muted); font-size: 15px; }
.money-in input { width: 104px; border: 0; outline: 0; background: none; text-align: right; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
.money-in input::placeholder { color: #b8b8bd; }
.money-in em { font-style: normal; color: var(--muted); font-size: 13px; }
.money-in.is-auto input { color: var(--muted); }
.money-in.pct input { width: 44px; }
.switch {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0; border-radius: 31px; cursor: pointer;
  background: rgb(120 120 128 / .2); transition: background-color .25s ease;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 3px 8px rgb(0 0 0 / .15), 0 1px 1px rgb(0 0 0 / .16); transition: transform .5s var(--spring-bounce);
}
.switch:checked { background: #34c759; }
.switch:checked::after { transform: translateX(20px); }

/* Results */
.res-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.bars { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.bar-row span { font-size: 15px; color: var(--ink-2); }
.bar-row b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 12px; border-radius: 6px; background: rgb(0 0 0 / .06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: #a7a29a; transition: width .7s var(--spring); }
.bar-row.z .bar i { background: var(--secondary); }
.res-headline { margin: 26px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; text-wrap: balance; }
.res-headline.sm { margin-top: 6px; font-size: 19px; letter-spacing: -0.015em; }
.res-headline b.good { color: var(--ok); }
.res-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.res-big { margin: 0; font-size: 72px; font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--ok); font-variant-numeric: tabular-nums; }
.res-big.muted { color: var(--faint); }
.res-freed { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.res-freed span { display: block; font-size: 14px; color: var(--muted); }
.res-freed b { display: block; margin-top: 2px; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.res-freed small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.res-break { margin-top: 22px; }
.res-break h4, .res-h { margin: 18px 0 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.res-break h4:first-child { margin-top: 0; }
.tool-side .rows { background: #fff; }
.res-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.res-cta .btn { flex: 1 1 auto; }
.res-cta .btn .i { width: 16px; height: 16px; stroke-width: 2; }
.tool-side .fine { margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: var(--faint); }
.tool-side .fine a { color: inherit; }
.bands { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: #fff; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--hair); }
.bands th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.bands td { padding: 8px 14px; font-variant-numeric: tabular-nums; }
.bands td:last-child, .bands th:last-child { text-align: right; }
.bands tr + tr td { border-top: 1px solid var(--hair); }
.bands tr.on td { background: var(--ok-bg); color: color-mix(in oklab, var(--ok) 72%, black); font-weight: 600; }
.elig { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- Buyer mode + investment analysis ---------- */
.buyer-seg { margin-top: 28px; display: grid; gap: 8px; }
.buyer-seg p { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.move-head > div:first-child { display: grid; gap: 8px; }
.move-mode { display: grid; gap: 6px; justify-items: end; flex: none; }
.move-mode span { font-size: 13px; font-weight: 600; color: var(--muted); }
.move-mode .segc { min-width: 290px; }
.move-tile.wide { grid-column: 1 / -1; }
.btn-block { width: 100%; }
.analysis-btn { margin-top: 18px; height: 52px; font-size: 17px; }
.analysis-btn .i { width: 20px; height: 20px; }
.fr-v { font-weight: 600; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.text-in { height: 38px; width: 180px; max-width: 55%; border: 0; border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.text-in:focus { outline: 0; box-shadow: 0 0 0 2px color-mix(in oklab, var(--primary) 50%, transparent); }
.money-in.pct em { min-width: 14px; }
.ia-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ia-tile { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--hair); min-width: 0; }
.ia-tile span { display: block; font-size: 12.5px; color: var(--muted); }
.ia-tile b { display: block; margin-top: 3px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ia-tile small { display: block; font-size: 12px; color: var(--faint); margin-top: 1px; }
.ia-tile.good b { color: var(--ok); }
.ia-chart { width: 100%; height: auto; margin-top: 22px; display: block; overflow: visible; }
.ia-chart .grid line { stroke: rgb(0 0 0 / .07); stroke-width: 1; }
.ia-chart text { font-size: 11px; fill: var(--faint); font-family: var(--font-body); }
.ia-chart .eq { fill: color-mix(in oklab, var(--secondary) 14%, white); }
.ia-chart .val { fill: none; stroke: var(--secondary); stroke-width: 2.5; stroke-linejoin: round; }
.ia-chart .bal { fill: none; stroke: #a7a29a; stroke-width: 2; stroke-dasharray: 5 4; }
.ia-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.ia-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ia-legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ia-legend i.val { background: var(--secondary); }
.ia-legend i.bal { background: #a7a29a; }
.ia-legend i.eq { height: 10px; background: color-mix(in oklab, var(--secondary) 14%, white); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.split { height: 12px; border-radius: 6px; background: rgb(0 0 0 / .07); overflow: hidden; }
.split i { display: block; height: 100%; border-radius: inherit; background: var(--secondary); transition: width .7s var(--spring); }
.split-l { display: flex; justify-content: space-between; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.ia-years { margin-top: 22px; }
.ia-years summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; }
.ia-years summary::-webkit-details-marker { display: none; }
.ia-years summary .i { width: 15px; height: 15px; stroke-width: 2; transition: transform .45s var(--spring); }
.ia-years[open] summary .i { transform: rotate(90deg); }
.ia-table { margin-top: 10px; overflow-x: auto; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--hair); }
.ia-table table { border-collapse: collapse; font-size: 12.5px; min-width: 760px; width: 100%; }
.ia-table th { text-align: right; font-weight: 600; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.ia-table td { text-align: right; padding: 7px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ia-table th:first-child, .ia-table td:first-child { text-align: left; }
.ia-table tr + tr td { border-top: 1px solid var(--hair); }
.ia-report-state { margin: 10px 0 0; min-height: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.ia-report-state .spinner.sm { margin-left: 0; }
.ia-report-state .btn { height: 32px; }

/* ---------- Toast, FAB, footer ---------- */
.toast {
  position: fixed; inset: auto auto calc(28px + env(safe-area-inset-bottom)) 50%; margin: 0; z-index: 100; border: 0; overflow: visible;
  transform: translateX(-50%); max-width: calc(100vw - 32px);
  background: rgb(36 36 38 / .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); color: #fff;
  padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; text-align: center;
  box-shadow: 0 12px 32px rgb(0 0 0 / .25); animation: toastIn .55s var(--spring-bounce) both;
}
.toast.is-out { animation: toastOut .25s var(--ease-in) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 18px) scale(.94); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 10px) scale(.97); } }
.fab-wa {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: #25d366;
  box-shadow: 0 10px 26px rgb(37 211 102 / .38), 0 2px 6px rgb(0 0 0 / .14); transition: transform .5s var(--spring-bounce);
}
.fab-wa:hover { transform: scale(1.06); }
.fab-wa:active { transform: scale(.92); transition-duration: .1s; }
.fab-wa .i { width: 30px; height: 30px; stroke-width: 1.5; }
.footer { background: var(--page-2); color: var(--ink-2); font-size: 14px; letter-spacing: -0.005em; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) calc(100px + env(safe-area-inset-bottom)); }
.f-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--hair-2); }
.f-brand img { height: 46px; width: auto; margin-bottom: 14px; }
.f-brand p { margin: 0; color: var(--muted); max-width: 30ch; }
.footer h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li span { display: block; color: var(--ink); }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--primary-700); text-decoration: underline; }
.footer .disclaimer { margin: 22px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 960px; }
.footer .data-source:empty { display: none; }
.footer .data-source { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.footer .credit { margin: 14px 0 0; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.noscript { text-align: center; padding: 40px; }

/* ---------- Sales consultants: cards in the unit sheet, WhatsApp chooser ---------- */
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--fill); }
.avatar.sm { width: 40px; height: 40px; }
.avatar-i { display: grid; place-items: center; font-size: 15px; font-weight: 600; color: #fff; background: var(--secondary); }
.agents { display: grid; gap: 8px; margin-bottom: 10px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: #f6f5f2; border-radius: var(--r-md); }
.agent-id { flex: 1; min-width: 0; display: grid; gap: 1px; }
.agent-id b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.agent-id span { font-size: 13px; color: var(--muted); line-height: 1.3; }
.agent-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; background: var(--secondary);
  transition: transform .4s var(--spring);
}
.agent-btn.wa { background: #25d366; }
button.agent-btn { border: 0; padding: 0; cursor: pointer; font: inherit; }
.agent-btn.msg { background: var(--primary-700); }
.agent-btn:active { transform: scale(.88); transition-duration: .1s; }
.agent-btn .i { width: 19px; height: 19px; }
.wa-modal { width: min(420px, calc(100vw - 32px)); }

/* ---------- Guide film: tile in the Plan your move / investment band, and its player ---------- */
.move-tile.guide-tile { grid-template-columns: minmax(220px, 320px) 1fr; column-gap: 28px; align-items: center; padding: 16px 26px 16px 16px; }
.gt-poster {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--secondary);
}
.gt-poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--spring); }
@media (hover: hover) { .guide-tile:hover .gt-poster img { transform: scale(1.035); } }
.gt-play {
  position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--secondary); background: rgb(255 255 255 / .92);
  box-shadow: 0 6px 22px rgb(0 0 0 / .28); transition: transform .5s var(--spring);
}
.gt-play .i { width: 26px; height: 26px; margin-left: 3px; }
@media (hover: hover) { .guide-tile:hover .gt-play { transform: scale(1.08); } }
.gt-len {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: #fff; background: rgb(0 0 0 / .6); font-variant-numeric: tabular-nums;
}
.gt-copy { display: grid; row-gap: 6px; }
.video-modal { width: min(1120px, calc(100vw - 48px)); background: #101613; color: #fff; }
.vm-title { margin: 0; padding: 20px 70px 16px 26px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: rgb(255 255 255 / .92); }
.vm-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.wa-pick { padding: 34px 24px 24px; }
.wa-pick h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.022em; padding-right: 36px; }
.wa-pick p { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.wa-list li + li::before { left: 68px; }
.wa-list .wa-who { flex: 1; min-width: 0; display: grid; }
.wa-list .wa-who b { font-weight: 600; }
.wa-list .wa-who small { font-size: 13px; color: var(--muted); }
.footer li span small { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }

/* ---------- Rental management (investors) ---------- */
.rent-intro { margin: -6px 0 22px; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.rent-why { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.rent-why li { display: grid; gap: 2px; padding: 14px 16px 14px 18px; border-radius: var(--r-md); background: var(--primary-50); box-shadow: inset 3px 0 0 var(--primary); }
.rent-why b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rent-why span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.rent-h { margin: 30px 0 12px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.rent-p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { display: grid; row-gap: 2px; align-content: start; padding: 16px; border-radius: var(--r-md); background: #f6f5f2; }
.svc-ico { width: 34px; height: 34px; margin-bottom: 8px; border-radius: 10px; display: grid; place-items: center; background: var(--secondary); color: #fff; }
.svc-ico .i { width: 18px; height: 18px; }
.svc b { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.svc p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--hair-2); }
.step-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #fff; background: var(--primary); }
.steps b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 4px; }
.steps p { margin: 2px 0 0; font-size: 14px; color: var(--muted); line-height: 1.4; }
.faqs { border-radius: var(--r-md); background: #f6f5f2; overflow: hidden; }
.faq + .faq { border-top: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { width: 16px; height: 16px; flex: none; color: var(--faint); stroke-width: 2; transition: transform .45s var(--spring); }
.faq[open] summary .i { transform: rotate(90deg); }
.faq p { margin: -4px 16px 14px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.rent-side-h { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.rent-est { margin: 18px 0 16px; padding: 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); }
.rent-est > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.rent-est > b { display: block; margin-top: 2px; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; color: var(--secondary); }
.rent-est > b small { font-size: 15px; font-weight: 500; color: var(--muted); }
.rent-est .rows { margin: 8px 0 0; background: none; }
.rent-est p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.rent-cta { height: 52px; font-size: 17px; }
.rent-contact { margin-top: 18px; padding: 16px; border-radius: var(--r-md); background: #fff; display: grid; gap: 1px; }
.rent-contact .rc-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.rent-contact b { font-size: 16px; font-weight: 600; }
.rent-contact span:not(.rc-label) { font-size: 13px; color: var(--muted); }
.rent-contact p { margin: 8px 0 0; font-size: 15px; }
.rent-contact a { color: var(--primary-700); text-decoration: none; font-weight: 500; }
.rent-more { margin: 16px 0 0; }
.rent-more .btn-link .i:first-child { width: 17px; height: 17px; margin-right: 4px; }
.rent-side .fine { margin-top: 16px; }
.ia-rent { margin: 14px 0 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: #fff; font-size: 15px; color: var(--ink-2); }
.ia-rent > .i { width: 20px; height: 20px; flex: none; color: var(--secondary); margin-top: 1px; }
.ia-rent .btn-link { font-size: 15px; }

/* ---------- Partner logos (RentalProp, House of Realtors) ---------- */
.rent-logo { display: block; height: 58px; width: auto; margin: 0 0 16px; }
.fm .fm-logo { height: 44px; width: auto; justify-self: start; margin-bottom: 2px; }
.rb-logo { display: grid; place-items: center; padding: 12px 16px; border-radius: 16px; background: #fff; }
.rb-logo img { display: block; height: 52px; width: auto; }
.f-partners { display: flex; align-items: flex-end; gap: 28px; margin-top: 18px; }
.f-partners figure { margin: 0; display: grid; gap: 6px; }
.f-partners img { display: block; height: 52px; width: auto; }
.f-partners figcaption { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Legal notices ---------- */
.legal-note { margin-top: 12px; }
.legal-note a, .um-disclaimer a, .footer .disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }

/* ---------- Tenant rental list band (everyone) ---------- */
.rent-band { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.rent-band-inner {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px 30px; border-radius: var(--r-lg);
  background: var(--secondary); color: #fff; box-shadow: var(--shadow-1);
}
.rb-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgb(255 255 255 / .12); }
.rb-ico .i { width: 28px; height: 28px; }
.rb-text h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.1; }
.rb-text p { margin: 6px 0 0; color: rgb(255 255 255 / .82); font-size: 16px; line-height: 1.45; max-width: 60ch; }
.rb-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.rb-cta .btn { height: 48px; padding: 0 20px; }
.fm .fm-note { margin: -4px 0 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-bg); color: var(--warn); font-size: 14px; line-height: 1.4; }

@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc { grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px; }
  .svc-ico { grid-row: 1 / span 2; margin-bottom: 0; }
  .rent-intro { font-size: 16px; }
  .rent-band { padding-bottom: 56px; }
  .rent-band-inner { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
  .rb-ico { width: 48px; height: 48px; border-radius: 14px; }
  .rb-logo { justify-self: start; padding: 10px 14px; }
  .rb-logo img { height: 44px; }
  .rent-logo { height: 46px; margin-bottom: 12px; }
  .rb-cta { justify-content: stretch; }
  .rb-cta .btn { flex: 1 1 auto; }
  .wa-pick { padding: 30px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .collection { grid-column: 1 / -1; }
  .um { grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  .um-info { padding: 36px 26px 24px; }
  .um-bar { padding: 12px 26px 16px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; --gutter: 16px; }
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
  .nav-logo img { height: 40px; margin-bottom: -7px; }
  .nav-counter { justify-items: end; font-size: 12px; }
  .ctr-bar { display: none; }
  .btn-nav { display: none; }
  .nav-menu span { display: none; }
  .nav-menu { width: 38px; padding: 0; justify-content: center; }
  .hero { height: clamp(500px, 78svh, 680px); }
  .hero-content { padding-bottom: 36px; }
  .hero-card { display: block; padding: 18px 16px 20px; border-radius: 22px; }
  .hero-card h1 { font-size: clamp(30px, 9.9vw, 44px); max-width: none; margin: 8px 0 12px; } /* two lines inside the panel on any phone */
  .hero-card .hero-cta { margin-top: 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .stats-inner { grid-template-columns: 1fr 1fr; padding: 8px var(--gutter); }
  .stat { padding: 16px 0 16px 16px; border-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--hair); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .browse { padding: 48px var(--gutter) 88px; }
  .browse-head { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 16px; }
  .seg { display: grid; }
  .toolbar { top: calc(var(--nav-h) + 8px); margin: 0 calc(var(--gutter) * -1 + 8px) 22px; }
  .filters { border-radius: 20px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .collection { grid-template-columns: 1fr; min-height: 0; }
  .collection-img { min-height: 210px; order: -1; }
  .collection-text { padding: 26px 24px 28px; }
  .plan-card { padding: 12px; border-radius: var(--r-lg); }
  .plan-card header { padding: 8px 6px 12px; }
  .plan-card h3 { font-size: 26px; }
  .pin { width: 50px; height: 50px; }
  .plan-image .plan-stage { width: 240%; }
  .plan-image { max-height: 70vh; }
  .f-grid { grid-template-columns: 1fr; gap: 26px; }

  .move { padding-top: 44px; }
  .move-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .move-mode { justify-items: stretch; }
  .move-mode .segc { min-width: 0; }
  .move-tiles { grid-template-columns: 1fr; gap: 14px; }
  .move-tile { padding: 20px; column-gap: 14px; }
  .mt-ico { width: 44px; height: 44px; border-radius: 13px; }
  .move-tile.guide-tile { grid-template-columns: 1fr; row-gap: 14px; padding: 12px 12px 18px; }
  .guide-tile .gt-copy { padding: 0 8px; }
  .gt-play { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .vm-title { padding: 30px 60px 14px 20px; font-size: 16px; }
  .video-modal { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* Dialogs become bottom sheets */
  .modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; touch-action: auto; }
  .modal[open] { animation: sheetIn .48s var(--spring-sheet) both; }
  .modal.is-closing { animation: sheetOut .28s var(--ease-in) both; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .grabber { display: block; position: absolute; top: 0; left: 0; right: 0; height: 26px; z-index: 5; touch-action: none; cursor: grab; }
  .grabber::after { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgb(0 0 0 / .22); }
  .modal-x { top: 14px; right: 14px; }
  .unit-modal { height: calc(100dvh - 28px); }
  .um { display: flex; flex-direction: column; }
  .gal { flex: none; height: min(44dvh, 82vw); border-right: 0; border-bottom: 1px solid var(--hair); touch-action: pan-x; }
  .gal-track { touch-action: pan-x; }
  .gal-slide { padding: 26px 14px 44px; }
  .gal-foot { padding: 10px 16px 12px; }
  .gal-cap { font-size: 13px; }
  .gal-arrow { display: none; }
  .um-info { padding: 22px 20px 20px; }
  .um-title { font-size: 30px; }
  .um-price { font-size: 26px; }
  .um-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .form-modal { width: 100%; max-height: calc(100dvh - 28px); }
  .tool-modal { height: calc(100dvh - 28px); }
  .tool { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .tool-main, .tool-side { overflow: visible; }
  .tool-main { padding: 30px 16px 8px; }
  .tool-title { font-size: 28px; }
  .tool-side { border-left: 0; border-top: 1px solid var(--hair); padding: 26px 16px 24px; scroll-margin-top: 0; }
  .tool-bar {
    position: sticky; bottom: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair);
    background: rgb(255 255 255 / .9); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
    font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  }
  .fr { gap: 10px; padding-right: 10px; }
  .fr-l { flex: 1 1 auto; }
  .fr-select { flex-wrap: wrap; }
  .fr-select select { max-width: 100%; flex: 1 1 100%; }
  .money-in { padding: 0 8px; }
  .fr .segc { min-width: 0; flex: 1 1 auto; }
  .money-in input { width: 84px; }
  .money-in.pct input { width: 40px; }
  .res-big { font-size: 60px; }
  .fm { padding: 34px 20px calc(22px + env(safe-area-inset-bottom)); }
  .fm h2 { font-size: 26px; }
  .fm .row { grid-template-columns: 1fr; }
  .popover { border-radius: 22px; padding: 10px; background: rgb(255 255 255 / .97); transform-origin: bottom center; animation: popUp .5s var(--spring-sheet) both; }
  @keyframes popUp { from { opacity: 0; transform: translateY(24px); } }
  .fab-wa { width: 54px; height: 54px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .footer-inner { padding-top: 44px; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .modal[open], .modal.is-closing { animation: fadeIn .2s ease both !important; }
  .modal.is-closing { animation-name: fadeOut !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--secondary); }
  .filters, .popover, .menu-panel, .um-bar, .units-table th, .fav, .zoom, .toast { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .toast { background: #242426; }
  .hero-card { background: rgb(14 24 19 / .55); backdrop-filter: none; -webkit-backdrop-filter: none; } /* still see-through (Pieter prefers it); text stays above 6:1 */
}
@media (prefers-contrast: more) {
  :root { --muted: #3a3a3c; --faint: #555; --hair: rgb(0 0 0 / .25); }
  .filters, .popover, .menu-panel { background: #fff; box-shadow: 0 0 0 1.5px #000; }
  .hero-card { background: rgb(10 16 13 / .62); box-shadow: inset 0 0 0 1.5px #fff; }
}

/* Small phones: a slightly smaller logo keeps the sales counter on one line */
@media (max-width: 380px) {
  .nav-logo img { height: 35px; margin-bottom: -6px; }
}
