/* Site styles. Tokens follow the design system note (Strategy/04 - Design System). */
:root {
  --color-primary: #012169;
  --color-primary-hover: #0040CB;
  --color-primary-active: #00003E;
  --color-primary-subtle: #E1EBFF;
  --color-on-primary: #FFFFFF;
  --color-primary-text: #012169;
  --color-accent-on-inverse: #8FB4FF;
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F7F8F9;
  --color-surface: #FFFFFF;
  --color-surface-muted: #EFF1F3;
  --color-surface-inverse: #00003E;
  --color-border: #E3E6E9;
  --color-border-strong: #76808B;
  --color-border-hover: #C9CFD5;
  --color-text: #111418;
  --color-text-muted: #59626D;
  --color-text-inverse: #FFFFFF;
  --color-text-inverse-muted: #A9B3BD;
  --color-success: #166534;
  --color-success-subtle: #E3F5E9;
  --color-warning: #8A4A06;
  --color-warning-subtle: #FDF1D8;
  --color-error: #B42318;
  --color-error-subtle: #FDE8E6;
  --color-info: #075985;
  --color-info-subtle: #E1F0F9;
  --color-neutral: #3B434D;
  --color-neutral-subtle: #EDEFF2;
  --color-focus-ring: #1F69FF;
  --color-focus-halo: rgb(31 105 255 / 0.3);
  --color-overlay: rgb(0 0 62 / 0.55);
  --font-sans: "ColdwellSans", "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --text-display: clamp(2.125rem, 5vw, 3.75rem);
  --text-hero-inner: clamp(2.25rem, 5.5vw, 3.25rem);
  --container-site: 73.75rem;
  --container-narrow: 48rem;
  --container-prose: 42rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-pill: 9999px;
  --shadow-card: 0 2px 12px rgb(0 0 0 / 0.04);
  --shadow-popover: 0 10px 30px -12px rgb(24 24 27 / 0.25);
  --shadow-modal: 0 24px 60px -28px rgb(24 24 27 / 0.35);
  --shadow-focus: 0 0 0 3px var(--color-focus-halo);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-nav: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 150ms;
  --duration-slow: 300ms;
  --press-scale: 0.97;
  --navbar-height: 4rem;
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
  :root { --duration-fast: 0.01ms; --duration-slow: 0.01ms; --press-scale: 1; }
  * { scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary-text); }
a:hover { color: var(--color-primary-active); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.025em; }
h1 { font-size: var(--text-hero-inner); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; font-weight: 700; line-height: 1.15; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; }
@media (min-width: 40rem) { h2 { font-size: 2.125rem; } }
::selection { background: #CFE8EA; }
:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; box-shadow: var(--shadow-focus); border-radius: 4px; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--color-text-muted); }
.small { font-size: 0.875rem; line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--color-text); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-md); }
.skip-link:focus { top: 1rem; }
.icon { width: 1rem; height: 1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
p > .icon, p > a > .icon, .small > .icon, .row > a:not(.btn) > .icon { display: inline-block; vertical-align: -0.15em; }
.row > a:not(.btn) { white-space: nowrap; }

/* Layout */
.container { width: 100%; max-width: calc(var(--container-site) + 2rem); margin: 0 auto; padding: 0 1rem; }
.container-narrow { max-width: calc(var(--container-narrow) + 2rem); }
.container-prose { max-width: calc(var(--container-prose) + 2rem); }
@media (min-width: 40rem) { .container { padding: 0 1.5rem; max-width: calc(var(--container-site) + 3rem); } .container-narrow { max-width: calc(var(--container-narrow) + 3rem); } .container-prose { max-width: calc(var(--container-prose) + 3rem); } }
.section { padding: 3.5rem 0; }
.section-alt { background: var(--color-bg-subtle); }
@media (min-width: 40rem) { .section { padding: 5rem 0; } }
.section-head { display: grid; gap: 1rem; margin-bottom: 2rem; max-width: 46rem; }
@media (min-width: 40rem) { .section-head { margin-bottom: 3rem; } }
.overline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary-text); }
.lead { font-size: 1.0625rem; font-weight: 500; line-height: 1.65; letter-spacing: -0.015em; color: var(--color-text-muted); }
@media (min-width: 40rem) { .lead { font-size: 1.1875rem; } }
.grid { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .grid { gap: 1.5rem; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stack { display: grid; gap: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0 1.5rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  font: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out-quad), color var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.btn:active { transform: scale(var(--press-scale)); }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-secondary { background: var(--color-text); color: var(--color-bg); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { border-color: var(--color-text); color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-primary-text); }
.btn-ghost:hover { background: var(--color-primary-subtle); }
.btn-sm { min-height: 2.25rem; padding: 0 1rem; font-size: 0.8125rem; white-space: nowrap; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--color-primary-text); }
.btn-white:hover { background: var(--color-primary-subtle); }
.btn-outline-white { border-color: rgb(255 255 255 / 0.6); color: #fff; background: transparent; }
.btn-outline-white:hover { border-color: #fff; color: #fff; }

/* Utility bar */
.utility-bar { background: var(--color-surface-inverse); color: var(--color-text-inverse-muted); font-size: 0.8125rem; }
.utility-bar .row { min-height: 2.25rem; gap: 1rem; }
.utility-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.25rem; }
.utility-bar a:hover { text-decoration: underline; color: #fff; }
.utility-bar .push { margin-left: auto; }
@media (max-width: 39.99rem) { .hide-sm { display: none; } }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.9); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--color-border); }
.navbar-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--navbar-height); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; color: var(--color-text); text-decoration: none; white-space: nowrap; }
.logo-mark { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; background: var(--color-primary); color: #fff; display: grid; place-items: center; }
.logo-mark .icon { width: 1rem; height: 1rem; }
/* Text wordmark until the office logo files arrive from the Coldwell Banker brand portal */
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-primary); }
.wordmark .wm-top { font-weight: 800; font-size: 1rem; }
.wordmark .wm-sub { font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.32em; margin-top: 0.2rem; color: var(--color-text-muted); }
.footer .wordmark, .footer .wordmark .wm-sub { color: #fff; }
/* Rotating state in the home headline */
.state-cycle { display: block; color: var(--color-primary-hover); white-space: nowrap; min-height: 1.1em; }
.typewriter-cursor { color: var(--color-primary-hover); font-weight: 400; animation: tw-blink 0.9s step-end infinite; }
@keyframes tw-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typewriter-cursor { display: none; } }
.nav-links { display: none; gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav-links a { color: var(--color-text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.5rem 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--duration-fast), color var(--duration-fast); }
.nav-links a:hover { color: var(--color-text); background-size: 100% 1px; }
.nav-links a[aria-current="page"] { color: var(--color-text); font-weight: 600; background-size: 100% 2px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-signin { display: none; font-size: 0.875rem; font-weight: 500; color: var(--color-text); text-decoration: none; }
.nav-signin:hover { text-decoration: underline; color: var(--color-text); }
.nav-cta { display: none; }
.menu-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: #fff; cursor: pointer; color: var(--color-text); }
@media (min-width: 64rem) {
  .navbar-inner { height: 4.25rem; }
  .nav-links, .nav-signin { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--color-bg); padding: 1rem; overflow-y: auto; }
[hidden] { display: none !important; }
.mobile-menu[hidden] { display: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 3rem; margin-bottom: 1rem; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: flex; align-items: center; min-height: 3.5rem; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-size: 1.125rem; font-weight: 600; }
.mobile-menu .stack { margin-top: 1.5rem; }

/* Footer */
.footer { background: var(--color-surface-inverse); color: var(--color-text-inverse-muted); padding: 3.5rem 0 2rem; font-size: 0.875rem; line-height: 1.5; }
@media (min-width: 40rem) { .footer { padding-top: 5rem; } }
.footer a { color: var(--color-text-inverse-muted); text-decoration: none; transition: color var(--duration-fast); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; }
.footer-top { display: grid; gap: 2.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.footer-cols h2 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 64rem) { .footer-top { grid-template-columns: 1.2fr 3fr; } .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); display: grid; gap: 1rem; }
.footer-legal .row { gap: 0.75rem 1.25rem; }
.footer-legal .row > * { min-width: 0; }
.footer-legal .row > a:not(.btn) { white-space: normal; }
.eho { display: inline-flex; align-items: center; gap: 0.625rem; color: #fff; }
.eho svg { width: 2rem; height: 2rem; }

/* Hero */
.hero { padding: 4rem 0; background: var(--color-bg-subtle); }
@media (min-width: 40rem) { .hero { padding: 6rem 0; } }
.hero h1.display { font-size: var(--text-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; max-width: 15ch; }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64rem) { .hero-inner.split { grid-template-columns: 1.1fr 1fr; } }
.page-hero { padding: 3.5rem 0; background: var(--color-bg-subtle); border-bottom: 1px solid var(--color-border); }
@media (min-width: 40rem) { .page-hero { padding: 5rem 0 4rem; } }
.page-hero .stack { max-width: 46rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.875rem; color: var(--color-text-muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 0.375rem; }
.trust-row .icon { color: var(--color-primary); }

/* Search box (home hero) */
.searchbox { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-popover); padding: 0.75rem; display: grid; gap: 0.75rem; max-width: 44rem; }
.searchbox-row { display: grid; gap: 0.5rem; }
@media (min-width: 40rem) { .searchbox-row { grid-template-columns: 1fr auto; } }
.segmented { display: inline-flex; background: var(--color-surface-muted); border-radius: var(--radius-pill); padding: 0.25rem; gap: 0.25rem; }
.segmented button, .segmented a { min-height: 2.25rem; padding: 0 1rem; border: 0; border-radius: var(--radius-pill); background: transparent; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.segmented [aria-pressed="true"], .segmented [aria-current="page"] { background: #fff; color: var(--color-text); box-shadow: var(--shadow-card); }

/* Forms */
.field { display: grid; gap: 0.375rem; }
.field label, .label { font-size: 0.875rem; font-weight: 600; }
.field .help { font-size: 0.8125rem; color: var(--color-text-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 3rem; padding: 0 0.75rem; font: inherit; font-size: 1rem; color: var(--color-text);
  background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast);
}
.textarea { padding: 0.75rem; min-height: 7rem; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--shadow-focus); }
.check { display: flex; gap: 0.625rem; align-items: flex-start; font-size: 0.9375rem; min-height: 2.75rem; padding-top: 0.6rem; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--color-primary); flex: none; }
.form-grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .full { grid-column: 1 / -1; } }
.fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.fieldset legend { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; padding: 0; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 1.5rem; transition: border-color var(--duration-fast); }
@media (min-width: 40rem) { .card { padding: 1.75rem; } }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--color-border-hover); transform: translateY(-1px); }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); background: var(--color-primary-subtle); color: var(--color-primary); display: grid; place-items: center; margin-bottom: 1rem; }
.feature-icon .icon { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { color: var(--color-text-muted); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 1.5rem; padding: 0 0.625rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.badge .icon { width: 0.75rem; height: 0.75rem; }
.badge-success { background: var(--color-success-subtle); color: var(--color-success); }
.badge-warning { background: var(--color-warning-subtle); color: var(--color-warning); }
.badge-info { background: var(--color-info-subtle); color: var(--color-info); }
.badge-neutral { background: var(--color-neutral-subtle); color: var(--color-neutral); }
.badge-brand { background: var(--color-primary-subtle); color: var(--color-primary-text); }
.badge-error { background: var(--color-error-subtle); color: var(--color-error); }
.badge-solid { background: rgb(255 255 255 / 0.95); color: var(--color-text); box-shadow: var(--shadow-card); }

/* Photo placeholder: stands in for real property photos in the prototype */
.ph { position: relative; background: linear-gradient(135deg, #DCE3E8, #C7D2DA); color: #3B434D; display: grid; place-items: center; overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; left: 0.75rem; bottom: 0.625rem; font-size: 0.75rem; font-weight: 600; background: rgb(255 255 255 / 0.85); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); }
.ph .icon { width: 2rem; height: 2rem; opacity: 0.45; }
.ph.t1 { background: linear-gradient(135deg, #DCE5F5, #BFCDE8); }
.ph.t2 { background: linear-gradient(135deg, #E6E0D6, #D2C7B6); }
.ph.t3 { background: linear-gradient(135deg, #DCE1EC, #C2CADB); }
.ph.t4 { background: linear-gradient(135deg, #E4E7E1, #CBD2C6); }
.agent-photo { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 1rem; }
.agent-initials { font-size: 2rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0.7; }
.agent-photo.ph::after { display: none; }

/* Listing card */
.listing-card { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; transition: border-color var(--duration-fast); display: flex; flex-direction: column; }
.listing-card:hover { border-color: var(--color-border-hover); }
.listing-card .ph { aspect-ratio: 3 / 2; }
.listing-card .ph::after { display: none; }
.listing-card .ph-inner { transition: transform 500ms var(--ease-out-quad); width: 100%; height: 100%; display: grid; place-items: center; }
.listing-card:hover .ph-inner { transform: scale(1.02); }
.listing-card .chips { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.375rem; flex-wrap: wrap; z-index: 2; }
.save-btn { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / 0.92); display: grid; place-items: center; cursor: pointer; color: var(--color-text); }
.save-btn[aria-pressed="true"] { color: var(--color-error); }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }
.listing-card .body { padding: 1rem 1.125rem 1.125rem; display: grid; gap: 0.375rem; }
.listing-card .price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.listing-card .price span { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); }
.listing-card .addr { font-size: 0.875rem; color: var(--color-text); }
.listing-card .addr a { color: inherit; text-decoration: none; }
.listing-card .addr a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.listing-card .addr a:focus-visible { outline: none; box-shadow: none; }
.listing-card:has(.addr a:focus-visible) { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.specs { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.875rem; color: var(--color-text-muted); }
.specs span { display: inline-flex; align-items: center; gap: 0.375rem; }
.listing-card .meta { font-size: 0.8125rem; color: var(--color-text-muted); display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; }

/* Search page */
.search-bar { position: sticky; top: var(--navbar-height); z-index: 30; background: #fff; border-bottom: 1px solid var(--color-border); padding: 0.75rem 0; }
@media (min-width: 64rem) { .search-bar { top: 4.25rem; } }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filters .loc { flex: 1 1 14rem; min-width: 0; position: relative; }
.filters .loc .icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.filters .loc .input { padding-left: 2.5rem; min-height: 2.75rem; border-radius: var(--radius-pill); }
.chip-btn, .filters .select { min-height: 2.75rem; border-radius: var(--radius-pill); border: 1px solid var(--color-border-strong); background: #fff; font: inherit; font-size: 0.875rem; font-weight: 600; padding: 0 0.875rem; color: var(--color-text); cursor: pointer; display: inline-flex; align-items: center; gap: 0.375rem; width: auto; }
.chip-btn[aria-expanded="true"], .chip-btn.active { background: var(--color-primary-subtle); border-color: var(--color-primary); color: var(--color-primary-text); }
.popover { position: absolute; z-index: 60; margin-top: 0.5rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-popover); padding: 1rem; min-width: 16rem; display: grid; gap: 0.75rem; }
.popover[hidden] { display: none; }
.pop-wrap { position: relative; }
.pill-group { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.pill-group button { min-height: 2.5rem; min-width: 3rem; padding: 0 0.75rem; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); background: #fff; font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.pill-group button[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.active-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }
.active-chips:empty { display: none; }
.active-chips button { min-height: 2rem; border-radius: var(--radius-pill); border: 1px solid var(--color-primary); background: var(--color-primary-subtle); color: var(--color-primary-text); font: inherit; font-size: 0.8125rem; font-weight: 600; padding: 0 0.625rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.25rem; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 1.25rem 0 1rem; }
.results-head h1 { font-size: 1.5rem; }
.results-layout { display: grid; gap: 1.5rem; padding-bottom: 3rem; }
.results-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); align-content: start; }
.mapbox { position: relative; min-height: 26rem; border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; background:
  linear-gradient(90deg, rgb(255 255 255 / 0.55) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(rgb(255 255 255 / 0.55) 1px, transparent 1px) 0 0 / 48px 48px,
  linear-gradient(160deg, #E3EBE6 0%, #DCE6EC 60%, #E8E4DA 100%); }
.mapbox .map-note { position: absolute; left: 0.75rem; bottom: 0.75rem; right: 0.75rem; font-size: 0.75rem; background: rgb(255 255 255 / 0.9); padding: 0.375rem 0.625rem; border-radius: var(--radius-sm); color: var(--color-text-muted); }
.pin { position: absolute; transform: translate(-50%, -100%); background: var(--color-text); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: var(--radius-pill); text-decoration: none; white-space: nowrap; box-shadow: var(--shadow-popover); font-variant-numeric: tabular-nums; }
.pin:hover, .pin.hot { background: var(--color-primary); color: #fff; z-index: 3; }
.results-layout[data-view="list"] .mapbox { display: none; }
.results-layout[data-view="map"] .results-list { display: none; }
.results-layout[data-view="map"] .mapbox { min-height: 70vh; }
@media (min-width: 64rem) {
  .results-layout[data-view="split"] { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .results-layout[data-view="split"] .mapbox { position: sticky; top: 10rem; height: calc(100vh - 12rem); }
}
@media (max-width: 63.99rem) { .results-layout[data-view="split"] .mapbox { display: none; } }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); grid-column: 1 / -1; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(26rem, 100%); background: #fff; z-index: 80; box-shadow: var(--shadow-modal); display: flex; flex-direction: column; }
.drawer[hidden], .overlay[hidden] { display: none; }
.drawer-head, .drawer-foot { padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.drawer-foot { border-top: 1px solid var(--color-border); border-bottom: 0; margin-top: auto; }
.drawer-body { padding: 1.25rem; overflow-y: auto; display: grid; gap: 1.5rem; }
.overlay { position: fixed; inset: 0; background: var(--color-overlay); z-index: 75; }
.icon-btn { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border-radius: var(--radius-md); border: 1px solid var(--color-border); background: #fff; cursor: pointer; color: var(--color-text); }

/* Listing detail */
.breadcrumb { font-size: 0.875rem; color: var(--color-text-muted); padding: 1rem 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.375rem; color: var(--color-border-strong); }
.breadcrumb a { color: var(--color-text-muted); }
.gallery { display: grid; gap: 0.5rem; border-radius: var(--radius-2xl); overflow: hidden; position: relative; }
.gallery .ph { min-height: 10rem; }
.gallery .lead-ph { aspect-ratio: 3 / 2; }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: 30rem; }
  .gallery .lead-ph { grid-row: 1 / 3; aspect-ratio: auto; }
}
@media (max-width: 47.99rem) { .gallery .ph:not(.lead-ph) { display: none; } }
.gallery-actions { position: absolute; right: 0.75rem; bottom: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; z-index: 2; }
.gallery-actions .btn { background: rgb(255 255 255 / 0.95); color: var(--color-text); border-color: var(--color-border); }
.gallery-chips { position: absolute; left: 0.75rem; top: 0.75rem; display: flex; gap: 0.375rem; z-index: 2; }
.detail-layout { display: grid; gap: 2.5rem; padding: 2rem 0 4rem; }
@media (min-width: 64rem) { .detail-layout { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; } .side-panel { position: sticky; top: 6rem; align-self: start; } }
.title-block { display: grid; gap: 0.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-border); }
.title-block .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.title-block .price span { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.title-block h1 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; }
.title-block .specs { font-size: 1rem; color: var(--color-text); gap: 0.5rem 1.5rem; }
.detail-section { padding: 2rem 0; border-bottom: 1px solid var(--color-border); display: grid; gap: 1rem; }
.detail-section h2 { font-size: 1.375rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.75rem 1.5rem; margin: 0; }
.facts div { display: flex; gap: 0.625rem; align-items: flex-start; }
.facts dt { font-size: 0.8125rem; color: var(--color-text-muted); }
.facts dd { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.facts .icon { margin-top: 0.25rem; color: var(--color-primary); }
.amenities { columns: 2 12rem; gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.amenities li { display: flex; gap: 0.5rem; align-items: center; padding: 0.25rem 0; break-inside: avoid; }
.amenities .icon { color: var(--color-success); }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cost-table th, .cost-table td { text-align: left; padding: 0.75rem 0; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.cost-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.cost-table tfoot td, .cost-table tfoot th { font-weight: 700; border-bottom: 0; }
.cost-table th { font-weight: 500; }
.tour-embed { aspect-ratio: 16 / 9; border-radius: var(--radius-xl); border: 1px solid var(--color-border); }
.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--color-border); overflow-x: auto; }
.tabs button { min-height: 2.75rem; padding: 0 1rem; border: 0; background: none; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--color-text-muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--color-text); border-bottom-color: var(--color-primary); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 0 1.25rem 3rem; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-primary-subtle); color: var(--color-primary-text); font-weight: 700; display: grid; place-items: center; font-size: 0.875rem; }
.steps li::after { content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: 0.25rem; width: 1px; background: var(--color-border); }
.steps li:last-child::after { display: none; }
.steps strong { display: block; }
.side-card { border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 1.25rem; display: grid; gap: 1rem; background: #fff; box-shadow: var(--shadow-card); }
.lister { display: flex; gap: 0.875rem; align-items: center; }
.avatar { width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--color-primary-subtle); color: var(--color-primary-text); display: grid; place-items: center; font-weight: 800; flex: none; }
.notice { display: flex; gap: 0.75rem; padding: 1rem; border-radius: var(--radius-lg); font-size: 0.875rem; line-height: 1.5; }
.notice .icon { margin-top: 0.15rem; }
.notice-info { background: var(--color-info-subtle); color: var(--color-info); }
.notice-warning { background: var(--color-warning-subtle); color: var(--color-warning); }
.notice-neutral { background: var(--color-bg-subtle); color: var(--color-text); border: 1px solid var(--color-border); }
.notice p + p { margin-top: 0.375rem; }
.modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-panel { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-modal); width: min(34rem, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; position: relative; z-index: 1; }
.modal-backdrop { position: fixed; inset: 0; background: var(--color-overlay); }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.25rem; }
.stepper li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: var(--color-text-muted); white-space: nowrap; padding-right: 0.5rem; }
.stepper .dot { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; font-size: 0.75rem; background: #fff; }
.stepper [aria-current="step"] { color: var(--color-text); }
.stepper [aria-current="step"] .dot { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.stepper .done .dot { background: var(--color-success-subtle); color: var(--color-success); border-color: var(--color-success); }
.apply-shell { display: grid; gap: 1.5rem; padding: 1.5rem 0 4rem; }
.prop-strip { display: flex; gap: 1rem; align-items: center; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: #fff; }
.prop-strip .ph { width: 5.5rem; height: 4rem; border-radius: var(--radius-md); flex: none; }
.prop-strip .ph::after { display: none; }
.dropzone { border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: 0.5rem; justify-items: start; }

/* FAQ */
.faq { max-width: var(--container-narrow); border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.125rem 0; font: inherit; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--color-text); min-height: 3rem; }
.faq-item .plus { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--color-border-strong); display: grid; place-items: center; flex: none; transition: transform var(--duration-slow) var(--ease-nav); }
.faq-item button[aria-expanded="true"] .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 2rem 1.25rem 0; color: var(--color-text-muted); }

/* Bands */
.cta-band { background: var(--color-surface-inverse); color: #fff; padding: 4rem 0; text-align: center; }
@media (min-width: 40rem) { .cta-band { padding: 6rem 0; } }
.cta-band h2 { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band p { color: var(--color-text-inverse-muted); margin-bottom: 2rem; }
.cta-band .row { justify-content: center; }
.cta-band.brand { background: var(--color-primary); }
.cta-band.brand p { color: rgb(255 255 255 / 0.85); }
.two-path { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .two-path { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.path-card { border-radius: var(--radius-xl); padding: 2rem; display: grid; gap: 1rem; align-content: start; border: 1px solid var(--color-border); background: #fff; }
.path-card.dark { background: var(--color-surface-inverse); color: #fff; border-color: transparent; }
.path-card.dark p { color: var(--color-text-inverse-muted); }
.numbers { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64rem) { .numbers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.numbers strong { display: block; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.placeholder-note { font-size: 0.75rem; color: var(--color-warning); background: var(--color-warning-subtle); padding: 0.125rem 0.5rem; border-radius: var(--radius-sm); font-weight: 600; display: inline-block; }

/* Blog and prose */
.blog-card .ph { aspect-ratio: 16 / 9; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.blog-card .ph::after { display: none; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card .body { padding: 1.25rem; display: grid; gap: 0.5rem; }
a.blog-card:hover h3 { text-decoration: underline; }
.blog-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; }
.article-layout { display: grid; gap: 2rem; padding: 2.5rem 0 4rem; }
@media (min-width: 64rem) { .article-layout { grid-template-columns: 15rem minmax(0, 42rem); gap: 4rem; justify-content: center; } .toc { position: sticky; top: 6rem; align-self: start; } }
.toc { font-size: 0.875rem; }
.toc ol { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; border-left: 1px solid var(--color-border); }
.toc a { color: var(--color-text-muted); text-decoration: none; padding-left: 0.875rem; display: block; border-left: 2px solid transparent; margin-left: -1px; }
.toc a:hover { color: var(--color-text); }
.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.625rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--color-primary); font-weight: 500; }
.author-box { display: flex; gap: 1rem; padding: 1.5rem; border: 1px solid var(--color-border); background: var(--color-bg-subtle); border-radius: var(--radius-lg); }
.author-box .avatar { width: 4rem; height: 4rem; border-radius: 50%; }

/* Review page */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { padding-left: 1.25rem; border-left: 1px solid var(--color-border); margin: 0.25rem 0 0.5rem 0.5rem; }
.tree li { padding: 0.25rem 0; }
.tree code { font-size: 0.8125rem; color: var(--color-text-muted); }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 40rem; }
.data-table th { background: var(--color-surface-muted); text-align: left; font-weight: 600; font-size: 0.8125rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }

/* Mobile contact bar on listing pages */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--color-border); padding: 0.75rem 1rem; display: flex; gap: 0.5rem; box-shadow: var(--shadow-popover); }
.mobile-cta .btn { flex: 1; }
@media (min-width: 64rem) { .mobile-cta { display: none; } }
@media (max-width: 63.99rem) { body.has-mobile-cta { padding-bottom: 4.5rem; } }
.city-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.city-links a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-pill); color: var(--color-text); text-decoration: none; font-weight: 600; font-size: 0.875rem; background: #fff; }
.city-links a:hover { border-color: var(--color-primary); color: var(--color-primary-text); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.price-table thead th { font-size: 0.875rem; background: var(--color-surface-muted); }
@media (max-width: 39.99rem) { .price-table { font-size: 0.875rem; } .price-table th, .price-table td { padding: 0.625rem 0.625rem; overflow-wrap: anywhere; } }

