
  :root {
    --sand:       #EEF3F8;
    --sand-deep:  #D6E3EF;
    --terra:      #0D7A7A;
    --terra-lt:   #14A3A3;
    --terra-pale: #D6F0F0;
    --bark:       #1A2B4A;
    --bark-mid:   #2C4A7A;
    --bark-lt:    #475B7A;
    --sage:       #14A3A3;
    --sage-lt:    #5ECECE;
    --sky:        #0D7A7A;
    --cream:      #F4F8FB;
    --border:     rgba(26,43,74,0.12);
    --shadow:     0 4px 24px rgba(13,26,60,0.09);
    --shadow-lg:  0 12px 48px rgba(13,26,60,0.16);
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--sand);
    color: var(--bark);
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
  }
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: 0.6;
  }

  /* ── CONFIDENTIAL LISTING CARD ── */
  .listing-card.confidential {
    border: 1.5px solid var(--terra);
    background: linear-gradient(135deg, var(--cream) 0%, #e8f2f8 100%);
    position: relative;
    overflow: hidden;
  }
  .listing-card.confidential::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terra), var(--terra-lt));
  }
  .confidential-img {
    background: linear-gradient(135deg, var(--bark) 0%, var(--bark-mid) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; padding: 1.5rem;
    min-height: 120px;
  }
  .confidential-lock { font-size: 28px; }
  .confidential-img-label {
    font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7);
    letter-spacing: 0.12em; text-transform: uppercase;
  }
  .confidential-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
    margin-bottom: 6px;
  }
  /* 2026-10-01 (founder direction): mock/QA test listings (Mock MLS) stay visible in real consumer
     search but must never be mistaken for a real property -- shown unconditionally, including when
     the listing is ranked in search results, on its card AND its detail page. */
  .mock-listing-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: #eceae4; color: #2f2f2a; border: 1px solid #8a8a80;
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    padding: 3px 9px; border-radius: 100px;
    margin: 0 6px 6px 0; vertical-align: middle; line-height: 1.3;
  }
  .market-more-addr:has(.mock-listing-badge), .rmap-popup-addr:has(.mock-listing-badge), .second-look-addr:has(.mock-listing-badge), .acct-saved-addr:has(.mock-listing-badge) { white-space: normal; }
  .btn-inquire {
    width: 100%; padding: 10px; border-radius: 8px;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600;
    border: none; cursor: pointer; margin-top: 10px;
    transition: background 0.2s, transform 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
  }
  .btn-inquire:hover { background: var(--ch-fill-teal,var(--terra)); transform: translateY(-1px); }

  /* ── INQUIRY MODAL ── */
  .modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(26,43,74,0.55); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  /* Opened from the shared Sign in button (?signin=1): the page behind the dialog is blank brand colour, not the search wizard (founder 2026-11-01). Cleared when the dialog closes. */
  /* Wizard focus (founder 2026-11-01): a signed-out visitor inside the search steps sees the logo and "Save and finish later" only: no menu, no Sign in, no footer.
     The way out is finishing the search (the results page lifts this) or saving by email. */
  #ch-wizard-bar { display: none; }
  html.ch-wizard-lock #ch-wizard-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: var(--ch-surface,#fff); border-bottom: 1px solid var(--border); }
  #ch-wizard-bar .ch-wb-logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--bark); cursor: default; }
  #ch-wizard-bar .ch-wb-later { background: none; border: 0; color: #0D7A7A; font: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px 4px; min-height: 44px; }
  #ch-wizard-bar .ch-wb-later:focus-visible { outline: 3px solid #0D7A7A; outline-offset: 2px; }
  html.ch-wizard-lock header.site-header, html.ch-wizard-lock nav[data-legacy-header], html.ch-wizard-lock .mobile-nav-menu, html.ch-wizard-lock [data-site-header], html.ch-wizard-lock [data-site-header-host],
  html.ch-wizard-lock [data-site-footer], html.ch-wizard-lock [data-site-footer-host], html.ch-wizard-lock footer { display: none !important; }
  html.ch-signin-backdrop body { background: var(--sand); }
  html.ch-signin-backdrop body > *:not([data-site-header]):not([data-site-header-host]):not(.site-header):not(.modal-overlay):not(script):not(style):not(link) { visibility: hidden; }
  .modal-box {
    background: var(--cream); border-radius: 18px;
    padding: 2rem; width: 90%; max-width: 420px;
    box-shadow: var(--shadow-lg); position: relative;
    animation: modalIn 0.25s ease;
    /* 2026-09-21: added for view-results-gate-success, whose real card-based confirmation content
       (matching the Mailchimp-connected waitlist success page) is taller than a typical
       sign-in/create-account view and can exceed viewport height on shorter screens. */
    max-height: 85vh; overflow-y: auto;
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; font-size: 20px; color: var(--bark-lt);
    cursor: pointer; line-height: 1;
  }
  .modal-close:hover { color: var(--bark); }
  .modal-eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--terra); margin-bottom: 6px;
  }
  .modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px; color: var(--bark); margin-bottom: 4px;
  }
  .modal-sub {
    font-size: 13px; color: var(--bark-mid); margin-bottom: 1.5rem; line-height: 1.5;
  }
  .modal-specs {
    display: flex; gap: 12px; flex-wrap: wrap;
    background: var(--sand); border-radius: 10px;
    padding: 12px 14px; margin-bottom: 1.25rem;
  }
  .modal-spec {
    font-size: 12px; color: var(--bark-mid); display: flex; align-items: center; gap: 4px;
  }
  .modal-field { margin-bottom: 1rem; }
  .modal-field label {
    display: block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--bark-mid);
    margin-bottom: 6px;
  }
  .modal-field input {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Figtree', sans-serif; font-size: 14px; color: var(--bark);
    background: var(--ch-surface,#fff); outline: none; transition: border-color 0.2s;
  }
  .modal-field input:focus { border-color: var(--terra); }
  .btn-modal-submit {
    width: 100%; padding: 12px; border-radius: 100px;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; margin-top: 4px;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-modal-submit:hover { background: var(--terra-lt); transform: translateY(-1px); }
  .modal-disclaimer {
    font-size: 11px; color: var(--bark-lt); text-align: center;
    margin-top: 12px; line-height: 1.5;
  }
  .modal-success { display: none; text-align: center; padding: 1rem 0; }
  .modal-success-icon { font-size: 40px; margin-bottom: 12px; }
  .modal-success-title {
    font-family: 'Playfair Display', serif; font-size: 20px; color: var(--bark); margin-bottom: 8px;
  }
  .modal-success-sub { font-size: 13px; color: var(--bark-mid); line-height: 1.5; }

  /* ── MY TOURS (real Agent Integrity flow) ── */
  .survey-box { max-width: 480px !important; max-height: 88vh; overflow-y: auto; }
  .survey-q { margin-bottom: 1.4rem; }
  .survey-q:last-of-type { margin-bottom: 1rem; }
  .survey-q-text { font-size: 14px; font-weight: 600; color: var(--bark); margin-bottom: 10px; line-height: 1.4; }

  .opt-row { display: flex; gap: 8px; }
  .opt-btn {
    flex: 1; padding: 10px 8px; border-radius: 10px; border: 1.5px solid var(--border);
    background: var(--ch-surface,#fff); font-family: 'Figtree', sans-serif; font-size: 12.5px; font-weight: 600;
    color: var(--bark-mid); cursor: pointer; text-align: center; transition: all 0.15s;
  }
  .opt-btn:hover { border-color: var(--terra-lt); }
  .opt-btn.selected { border-color: var(--terra); color: var(--terra); }
  .ch-edit-answer { margin-left: 6px; font-weight: 600; color: var(--terra); text-decoration: underline; cursor: pointer; }

  .survey-select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-family: 'Figtree', sans-serif; font-size: 13.5px; color: var(--bark); background: var(--ch-surface,#fff);
    outline: none; cursor: pointer;
  }
  .survey-select:focus { border-color: var(--terra); }

  /* ── NAV ── */
  /* Sticky header keeps nav + progress together in normal flow, so the two
     bars stack naturally and can never overlap (no hardcoded top offsets). */
  .site-header {
    position: sticky; top: calc(60px + var(--ch-demo-h, 0px)); z-index: 100; /* sits under the shared top bar (site-header.js, 60px) and, in the demo, under the sticky demo bar (--ch-demo-h) */
  }
  nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 2.5rem;
    background: rgba(245,239,230,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }
  .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
  .logo-text { display: flex; flex-direction: column; line-height: 1; }
  /* Wordmark switched terra -> bark (navy #1A2B4A) 2026-09-22, per founder direction and
     CoverHome-Brand-Assets/how-to-use.html's own documented "Production — navy/teal" pairing
     (navy wordmark + teal icon) -- terracotta is that doc's SOCIAL variant only, not production.
     Icon color (#0D7A7A, inline in the SVG below) and the empty tagline are both unchanged. */
  .logo-wordmark { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 500; color: #1A2B4A; letter-spacing: 0.01em; } /* 2026-10-05 founder: website logo = teal icon + navy name */
  /* Real tagline, per CoverHome-Brand-Assets/how-to-use.html's production decision (navy/teal
     surfaces, consumer-facing copy = "Your home search, covered.") -- this span/class already
     existed (display:none) with .logo-text already laid out in a column ready for it; it was just
     never filled in. Kept small and muted so it reads as a caption under the wordmark, not a
     second headline, consistent with the brand doc's "five-word pitch" framing rather than a
     persistent shout on every screen. */
  .logo-tagline { display: block; font-size: 10px; font-weight: 500; color: var(--bark-lt); letter-spacing: 0.02em; margin-top: 1px; }
  @media (max-width: 700px) { .logo-tagline { display: none; } }
  .nav-right { display: flex; gap: 1.5rem; align-items: center; }
  .nav-link { font-size: 13px; font-weight: 500; color: var(--bark-mid); text-decoration: none; transition: color 0.2s; }
  .nav-link:hover { color: var(--terra); }
  .nav-btn { font-size: 13px; font-weight: 600; background: var(--ch-fill-teal,var(--terra)); color: white; border: none; padding: 9px 20px; border-radius: 100px; cursor: pointer; transition: background 0.2s, transform 0.15s; }
  .nav-btn:hover { background: var(--terra-lt); transform: translateY(-1px); }
  .nav-account { position: relative; }
  .nav-account-menu {
    display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    background: var(--ch-surface,#fff); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26,43,74,0.18); min-width: 200px; padding: 6px; overflow: hidden;
  }
  .nav-account-menu.open { display: block; }
  .nav-account-item {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
    background: none; border: none; border-radius: 8px; padding: 10px 12px; cursor: pointer;
    font-family: 'Figtree', sans-serif; font-size: 13.5px; font-weight: 600; color: var(--bark);
  }
  .nav-account-item:hover { background: var(--cream); }
  .nav-account-divider { height: 1px; background: var(--border); margin: 4px 2px; }

  /* ── PROGRESS BAR ── */
  .progress-wrap {
    background: rgba(245,239,230,0.95);
    padding: 0.75rem 2.5rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .progress-wrap.visible { display: block; }
  .progress-steps {
    display: flex; align-items: center; gap: 0;
    max-width: 920px; margin: 0 auto;
  }
  .progress-step {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; color: var(--bark-lt);
    transition: color 0.3s; white-space: nowrap;
  }
  .progress-step.active { color: var(--terra); }
  .progress-step.done { color: var(--sage); }
  .step-dot {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1.5px solid var(--bark-lt);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; transition: all 0.3s;
    background: var(--ch-surface,#fff); flex-shrink: 0;
  }
  .progress-step.active .step-dot { border-color: var(--terra); color: var(--terra); }
  .progress-step.done .step-dot { border-color: var(--sage); background: var(--sage); color: white; }
  .step-line { flex: 1; height: 1px; background: var(--border); margin: 0 8px; min-width: 16px; }
  .step-line.done { background: var(--sage); }
  /* Clickable steps (once reachable) */
  .progress-step.clickable { cursor: pointer; }
  .progress-step.clickable:hover { color: var(--terra); }
  .progress-step.clickable:hover .step-dot { border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-pale); }
  .progress-step.done.clickable:hover .step-dot { border-color: var(--terra); background: var(--ch-fill-teal,var(--terra)); }
  .ps-results {
    margin-left: 14px; flex-shrink: 0; border: none; cursor: pointer;
    background: var(--ch-fill-teal,var(--terra)); color: #fff; font-size: 12px; font-weight: 700;
    padding: 7px 14px; border-radius: 100px; white-space: nowrap;
    box-shadow: var(--shadow); transition: background .15s, transform .15s;
  }
  .ps-results:hover { background: var(--terra-lt); transform: translateY(-1px); }

  /* ── SCREENS ── */
  .screen {
    display: none; min-height: 100vh;
    padding-top: 1.25rem;
    position: relative; z-index: 1;
    align-items: center; justify-content: center;
    flex-direction: column;
  }
  .screen.active { display: flex; }
  .screen.results-screen { align-items: stretch; padding-top: 1.5rem; }
  /* Step wizard screens (household/budget/area/location/features) should size to their own
     content instead of always reserving a full viewport -- forcing min-height:100vh plus
     centering left a large empty gap below short steps (e.g. Budget) that scrolled to nothing.
     screen-home (both the signed-out landing intake and the signed-in "My CoverHome" return
     screen) gets the same fix 2026-09-30 -- same forced full-viewport gap complaint. */
  #screen-1, #screen-2, #screen-area, #screen-3, #screen-4, #screen-home {
    min-height: 0; justify-content: flex-start; padding-bottom: 2rem;
  }

  /* ── STEP CARD WRAPPER ── */
  .step-wrap {
    width: 100%; max-width: 560px;
    padding: 0 1.5rem 1.5rem;
    animation: riseIn 0.45s ease forwards;
  }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── STEP HEADING ── */
  .step-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--terra); margin-bottom: 0.75rem;
  }
  .step-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4.5vw, 38px);
    font-weight: 400; line-height: 1.2; color: var(--bark); margin-bottom: 0.6rem;
  }
  .step-heading em { font-style: italic; color: var(--terra); }
  .step-sub {
    font-size: 14px; line-height: 1.7; color: var(--bark-mid); margin-bottom: 2rem;
  }

  /* ── QUICK SEARCH BAR ── */
  .quick-search-wrap {
    margin-bottom: 1.75rem;
  }
  .quick-search-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--cream); border: 1.5px solid var(--border);
    border-radius: 100px; padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow); transition: border-color 0.2s, box-shadow 0.2s;
  }
  .quick-search-box:focus-within { border-color: var(--terra); box-shadow: var(--shadow-lg); }
  .quick-search-icon { font-size: 16px; color: var(--bark-lt); flex-shrink: 0; }
  .quick-search-input {
    flex: 1; border: none; outline: none; background: none;
    font-family: 'Figtree', sans-serif; font-size: 16px; color: var(--bark);
    padding: 10px 0; min-width: 0;
  }
  .quick-search-input::placeholder { color: var(--bark-lt); }
  .quick-search-btn {
    flex-shrink: 0; font-family: 'Figtree', sans-serif;
    font-size: 13px; font-weight: 600; color: white;
    background: var(--ch-fill-teal,var(--terra)); border: none; border-radius: 100px;
    padding: 10px 20px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
  }
  .quick-search-btn:hover { background: var(--terra-lt); transform: translateY(-1px); }
  .quick-search-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 1.25rem 0; color: var(--bark-lt);
    font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .quick-search-divider::before, .quick-search-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }

  /* ── CARD BASE ── */
  .card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 20px; padding: 1.75rem 2rem;
    box-shadow: var(--shadow); margin-bottom: 1.25rem;
  }
  .card-title {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--bark-lt); margin-bottom: 1.25rem;
  }

  /* ── STEPPER ROWS ── */
  .stepper-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 0; border-bottom: 1px solid var(--border);
  }
  .stepper-row:last-child { border-bottom: none; padding-bottom: 0; }
  .stepper-row:first-of-type { padding-top: 0; }
  .stepper-info { display: flex; align-items: center; gap: 12px; }
  .stepper-icon {
    width: 38px; height: 38px; background: var(--terra-pale);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; flex-shrink: 0;
  }
  .stepper-label { font-size: 15px; font-weight: 500; color: var(--bark); line-height: 1.2; }
  .stepper-desc { font-size: 12px; color: var(--bark-lt); margin-top: 1px; }
  .stepper-ctrl { display: flex; align-items: center; gap: 12px; }
  .stepper-btn {
    width: 34px; height: 34px; background: var(--ch-surface,#fff);
    border: 1.5px solid var(--border); border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 300; color: var(--bark);
    transition: all 0.15s; line-height: 1; user-select: none;
  }
  .stepper-btn:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-pale); }
  .stepper-btn:active { transform: scale(0.92); }
  .stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .stepper-btn:disabled:hover { border-color: var(--border); color: var(--bark); background: var(--ch-surface,#fff); transform: none; }
  .stepper-val {
    font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 500;
    color: var(--bark); min-width: 24px; text-align: center; transition: transform 0.15s;
  }

  /* ── PETS ── */
  .pets-row { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0 0; flex-wrap: wrap; gap: 8px; }
  .pets-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .pet-chip {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 100px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff); cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--bark-mid);
    transition: all 0.15s; user-select: none;
  }
  .pet-chip:hover { border-color: var(--terra-lt); color: var(--terra); }
  .pet-chip.active { background: var(--terra-pale); border-color: var(--terra); color: var(--terra); }

  /* ── COMPOSITION PILL ── */
  .composition-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--terra-pale); border: 1px solid rgba(13,122,122,0.2);
    border-radius: 100px; padding: 8px 16px;
    font-size: 13px; font-weight: 500; color: var(--terra);
    margin-bottom: 1.5rem; transition: all 0.3s; min-height: 36px;
  }

  /* ── BUDGET SLIDER ── */
  .budget-display {
    text-align: center; margin-bottom: 2rem;
  }
  .budget-range-label {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 500; color: var(--bark);
    line-height: 1; margin-bottom: 4px;
    transition: all 0.2s;
  }
  .budget-range-sub {
    font-size: 13px; color: var(--bark-lt);
  }

  .slider-wrap { padding: 0.5rem 0 1.5rem; position: relative; }
  /* Home-price chart above the price slider (founder 2026-11-03): one bar per slice of the slider's own scale, teal inside the chosen range. */
  .price-hist { display: flex; align-items: flex-end; gap: 2px; height: 40px; margin: 0 11px 2px; border-bottom: 1px solid #CBD5E1; }
  .price-hist[hidden] { display: none; }
  .price-hist i { flex: 1 1 0; min-width: 0; border-radius: 2px 2px 0 0; background: #CBD5E1; }
  .price-hist i.in { background: #14A3A3; }

  .dual-slider { position: relative; height: 40px; }
  .dual-slider input[type=range] {
    position: absolute; width: 100%; height: 4px;
    -webkit-appearance: none; appearance: none;
    background: transparent; pointer-events: none;
    outline: none; top: 50%; transform: translateY(-50%);
  }
  .dual-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ch-fill-teal,var(--terra)); border: 3px solid white;
    box-shadow: 0 2px 8px rgba(13,122,122,0.4);
    cursor: pointer; pointer-events: all;
    transition: transform 0.15s;
  }
  .dual-slider input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
  .dual-slider input[type=range]::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ch-fill-teal,var(--terra)); border: 3px solid white;
    box-shadow: 0 2px 8px rgba(13,122,122,0.4);
    cursor: pointer; pointer-events: all;
  }

  .slider-track {
    position: absolute; top: 50%; transform: translateY(-50%);
    left: 0; right: 0; height: 4px;
    border-radius: 4px; background: var(--sand-deep);
    pointer-events: none;
  }
  .slider-fill {
    position: absolute; height: 100%;
    background: linear-gradient(to right, var(--terra-lt), var(--terra));
    border-radius: 4px; transition: left 0.05s, width 0.05s;
  }

  .slider-labels {
    display: flex; justify-content: space-between;
    font-size: 11px; color: var(--bark-lt); margin-top: 8px;
    font-weight: 500;
  }

  /* ── BUY/RENT TOGGLE ── */
  .toggle-row {
    display: flex; gap: 8px; margin-bottom: 1.5rem;
  }
  .toggle-btn {
    flex: 1; padding: 12px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 500;
    color: var(--bark-mid); cursor: pointer; transition: all 0.2s;
    text-align: center;
  }
  .toggle-btn:hover { border-color: var(--terra-lt); color: var(--terra); }
  .toggle-btn.active { background: var(--terra-pale); border-color: var(--terra); color: var(--terra); font-weight: 600; }

  /* ── LOCATION INPUT ── */
  .location-field {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 0;
  }
  .location-field label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--bark-lt);
  }
  .location-field input {
    width: 100%; padding: 13px 16px;
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border);
    border-radius: 12px; font-family: 'Figtree', sans-serif;
    font-size: 15px; font-weight: 500; color: var(--bark);
    outline: none; transition: border-color 0.2s;
  }
  .location-field input::placeholder { color: var(--bark-lt); font-weight: 400; }
  .location-field input:focus { border-color: var(--terra); }

  /* ── PRIORITY GRID (lifestyle) ── */
  /* ── INTENT-SPECIFIC STEP PANELS (screen-3 and screen-4) ── */
  .budget-suggest { display: inline-block; margin-top: 4px; font: 600 11.5px 'Figtree', sans-serif; color: var(--bark-mid); background: var(--cream, #f6f2ea); border: 1px solid var(--border); border-radius: 100px; padding: 2px 9px; }
  .budget-suggest[hidden] { display: none; }
  .intent-panel-primary, .intent-panel-investment, .intent-panel-land { display: none; }
  .intent-panel-primary.intent-active,
  .intent-panel-investment.intent-active,
  .intent-panel-land.intent-active { display: block; }
  .invest-priority-grid, .land-priority-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  @media (max-width: 560px) {
    .invest-priority-grid, .land-priority-grid { grid-template-columns: 1fr; }
  }
  .priority-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 0;
  }
  .priority-card {
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 1rem 1.1rem;
    cursor: pointer; transition: all 0.2s; user-select: none;
    position: relative; overflow: hidden;
  }
  .priority-card:hover { border-color: var(--terra-lt); transform: translateY(-2px); box-shadow: var(--shadow); }
  .priority-card.selected { border-color: var(--terra); background: var(--terra-pale); }
  .priority-card.selected::after {
    content: '✓';
    position: absolute; top: 8px; right: 10px;
    font-size: 11px; font-weight: 700; color: var(--terra);
  }
  .priority-emoji { font-size: 24px; margin-bottom: 6px; display: block; }
  .priority-label { font-size: 13px; font-weight: 600; color: var(--bark); margin-bottom: 2px; }
  .priority-desc { font-size: 11px; color: var(--bark-lt); line-height: 1.4; }
  /* "How CoverHome measures this" -- filled from /api/listings/public/location-facts, the same
     definition the listing agent's form shows (docs/LOCATION_CRITERIA_STANDARD.md s2 rule 5).
     2026-09-21: collapsed from an always-visible sentence per card down to a small info glyph --
     9 full paragraphs stacked across this grid was too much text, per founder direction.
     FIX same day: a bare native `title` tooltip turned out unreliable in practice (inconsistent
     hover delay, no touch support, easy to mistake the `cursor:help` question-mark cursor for the
     tooltip itself never having appeared) -- switched to an explicit click-to-reveal popover so
     showing the text is a real, visible action instead of a hover that may or may not fire.
     FIX same day (2nd pass): that popover was `position: absolute`, which got silently clipped by
     .priority-card's own `overflow: hidden` (added for the corner checkmark/hover effects, not
     related to this) -- confirmed live, the text was cut off mid-sentence. Made it a normal
     in-flow block instead: the card just grows to fit it, no positioning or clipping to fight. */
  .priority-source { display: block; margin-top: 6px; }
  .priority-source:empty { display: none; }
  .priority-source-glyph {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--cream); color: var(--bark-lt); font-size: 10px; font-style: normal;
    cursor: pointer;
  }
  .priority-source-glyph:hover { background: var(--border); }
  .priority-source-popover {
    display: none; margin-top: 6px; background: var(--ch-fill-navy,var(--bark)); color: #fff;
    font-size: 11px; line-height: 1.45; padding: 8px 10px; border-radius: 8px;
  }
  .priority-source.open .priority-source-popover { display: block; }
  .priority-card.selected .priority-label { color: var(--terra); }

  /* ── FEATURE GRID (home features) ── */
  .feature-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #screen-4 .card + .card { margin-top: 12px; }
  .feature-chip {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    cursor: pointer; transition: all 0.18s; user-select: none;
    font-size: 13px; font-weight: 500; color: var(--bark-mid);
  }
  .feature-chip:hover { border-color: var(--terra-lt); color: var(--terra); }
  .feature-chip.selected { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); font-weight: 600; }
  .feature-chip .f-icon { font-size: 17px; flex-shrink: 0; }
  .feature-chip.style-chip-disabled { opacity: 0.4; pointer-events: none; }
  /* Click-to-reveal examples glyph (2026-09-21) -- same pattern as .priority-source on the
     location-priority chips: a short list of examples ("attic, loft, nook, bonus room...") was
     previously always shown inline after the chip label, making the chip text-heavy. Collapsed to
     a small "i" glyph; clicking it reveals the examples without toggling the chip's own selection
     (stopPropagation on the wrapping .feature-info span). */
  .feature-info { position: relative; display: inline-flex; }
  .feature-info-glyph {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--cream); color: var(--bark-lt); font-size: 9.5px; font-style: normal;
    cursor: pointer;
  }
  .feature-info-glyph:hover { background: var(--border); }
  .feature-info-popover {
    display: none; position: absolute; z-index: 5; top: calc(100% + 6px); left: 0;
    width: 200px; max-width: 60vw; background: var(--ch-fill-navy,var(--bark)); color: #fff;
    font-size: 11px; font-weight: 500; line-height: 1.45; padding: 8px 10px; border-radius: 8px;
    box-shadow: var(--shadow); white-space: normal;
  }
  .feature-info.open .feature-info-popover { display: block; }
  .region-cap-note.cap-warn { background: #FBEAEA; color: #B3261E; }


  /* ── CONFIRMED FIT REVIEW / FAIR-HOUSING SAFEGUARDS ── */
  .fit-review-card {
    border: 1.5px solid var(--terra);
    background: linear-gradient(135deg, var(--cream), var(--terra-pale));
  }
  .fit-review-intro { font-size: 13px; line-height: 1.6; color: var(--bark-mid); margin-bottom: 14px; }
  .fit-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .fit-review-item { background: var(--ch-surface,#fff); border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
  .fit-review-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bark-lt); margin-bottom: 9px; }
  .fit-review-stepper { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .fit-review-stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--ch-surface,#fff); color: var(--bark); font-size: 18px; cursor: pointer; }
  .fit-review-stepper button:hover { border-color: var(--terra); color: var(--terra); }
  .fit-review-value { font-family: 'Playfair Display', serif; font-size: 23px; min-width: 26px; text-align: center; }
  .ranking-toggle { display: flex; align-items: flex-start; gap: 9px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--bark-mid); line-height: 1.5; }
  .ranking-toggle input { margin-top: 2px; accent-color: var(--terra); }
  .ranking-help { margin: 6px 0 0 26px; font-size: 12.5px; color: var(--bark-mid); }
  .ranking-help summary { cursor: pointer; color: var(--terra); font-weight: 600; width: max-content; }
  .ranking-help p { margin: 6px 0 0; line-height: 1.5; }
  .defense-note { background: rgba(13,122,122,.08); border: 1px solid rgba(13,122,122,.24); border-radius: 11px; padding: 11px 13px; color: var(--bark-mid); font-size: 12px; line-height: 1.55; margin-bottom: 1.25rem; }
  .defense-note strong { color: var(--bark); }
  @media (max-width: 640px) { .fit-review-grid { grid-template-columns: 1fr; } }

  /* ── NAV BUTTONS ── */
  .step-nav {
    display: flex; gap: 10px; margin-top: 1.5rem;
  }
  .btn-back {
    padding: 14px 20px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    font-family: 'Figtree', sans-serif; font-size: 14px;
    font-weight: 500; color: var(--bark-mid); cursor: pointer;
    transition: all 0.2s;
  }
  .btn-back:hover { border-color: var(--terra); color: var(--terra); }
  .btn-next {
    flex: 1; padding: 15px; border-radius: 12px;
    background: var(--ch-fill-navy,var(--bark)); color: var(--sand);
    border: none; font-family: 'Figtree', sans-serif;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; display: flex;
    align-items: center; justify-content: center; gap: 10px;
    letter-spacing: 0.01em;
  }
  .btn-next:hover { background: var(--ch-fill-teal,var(--terra)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
  .btn-next .arrow { transition: transform 0.2s; font-size: 18px; }
  .btn-next:hover .arrow { transform: translateX(4px); }
  .btn-next.final { background: var(--ch-fill-teal,var(--terra)); }
  .btn-skip { padding: 10px 16px; align-self: center; border-radius: 10px; border: 1.5px solid var(--border); background: transparent; font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500; color: var(--bark-mid); cursor: pointer; transition: all 0.2s; }
  .btn-skip:hover { border-color: var(--terra); color: var(--terra); }
  .skip-note { font-size: 12px; color: var(--bark-lt); line-height: 1.5; margin-top: 10px; }
  .btn-next.final:hover { background: var(--terra-lt); }

  /* ── SKIP LINK ── */
  .skip-link {
    text-align: center; margin-top: 0.75rem;
    font-size: 12px; color: var(--bark-lt);
  }
  .skip-link a { color: var(--bark-lt); cursor: pointer; text-decoration: underline; }
  .skip-link a:hover { color: var(--terra); }

  /* ── RESULTS ── */
  /* Addendum C (2026-09-19): the standalone dash-hero bar (greeting + subtitle) was cut as its
     own full-width row -- the breadcrumb + results-header above it already establish context, so
     "Welcome / New homes..." was purely decorative. Its pulse chips (strong fit count, saved
     homes) were tried in .household-strip too, then removed entirely per founder direction
     (2026-09-19) -- see the household-strip markup. */

  .second-look-section { padding: 1rem 2rem 0.25rem; }
  .second-look-section[hidden] { display: none; }
  body.ch-zb .second-look-section:not([hidden]) { position: fixed; top: var(--pd-top, 140px); left: var(--pd-left, 16px); z-index: 100001; width: min(580px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 14px 16px; background: #fff; border: 1px solid rgba(26,43,74,.14); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
  .second-look-chip[hidden] { display: none; }
  .second-look-chip-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 100px; background: #D92D20; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
  .second-look-chip.open { border-color: var(--terra); }
  .second-look-heading { font-size: 15px; font-weight: 700; color: var(--bark); }
  .second-look-sub { font-size: 12px; color: var(--bark-lt); margin-top: 2px; margin-bottom: 10px; }
  .second-look-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
  .second-look-card {
    flex: 0 0 200px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    background: var(--ch-surface,#fff); cursor: pointer;
  }
  .second-look-img { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--sand-deep); }
  .second-look-body { padding: 10px 12px; }
  .second-look-drop { display: inline-block; font-size: 10.5px; font-weight: 700; color: #1a7a4c; background: #e3f6ec; border-radius: 100px; padding: 2px 8px; margin-bottom: 5px; }
  .second-look-price { font-size: 14px; font-weight: 700; color: var(--bark); }
  .second-look-addr { font-size: 11.5px; color: var(--bark-lt); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .results-header {
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    position: sticky; top: 120px; z-index: 50;
  }
  .results-context { display: flex; align-items: center; gap: 10px; flex: 1; flex-wrap: wrap; }
  .results-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--terra-pale); border: 1px solid rgba(13,122,122,0.25);
    border-radius: 100px; padding: 5px 13px;
    font-size: 12px; font-weight: 600; color: var(--terra);
  }
  .results-count { font-size: 13px; color: var(--bark-mid); }
  /* Overrides .results-count's default dark-on-light styling for its new home inside the dark
     .household-strip (2026-09-19) -- same element/id, just a different background to sit on. */
  .household-strip .results-count { color: rgba(255,255,255,0.85); font-weight: 600; white-space: nowrap; }
  /* Reused search (2026-10-15): Price and Location come pre-selected and highlighted until confirmed or changed. */
  .reuse-confirm { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin:0 0 14px; padding:11px 16px; border:1.5px solid var(--border); border-radius:12px; background:var(--ch-surface,#fff); font-size:14px; color:var(--bark); }
  .reuse-confirm.need { border-color:var(--terra); background:var(--terra-pale); box-shadow:0 0 0 3px rgba(20,163,163,.18); }
  .reuse-confirm[hidden] { display:none; }
  .reuse-confirm button { min-height:44px; padding:0 18px; border:0; border-radius:100px; background:var(--ch-fill-navy,var(--bark)); color:#fff; font:700 14px Figtree,sans-serif; cursor:pointer; }
  .reuse-confirm button[hidden] { display:none; }
  /* Saved-search switcher banner, results screen (2026-09-19) -- reuses .mch-switcher-tab's visual
     language from the My CoverHome landing page (same tab styling, active state, new-match dot). */
  .results-saved-search-row-wrap {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    padding: 12px 20px 0; background: var(--cream); border-bottom: 2px solid var(--border);
  }
  .results-saved-search-row {
    display: flex; gap: 2px; flex-wrap: wrap; align-items: flex-end;
  }
  .results-saved-search-row .mch-switcher-tab { margin: 0; }
  /* Same [hidden]-override bug as the other display:flex rules, found in the same pass. */
  .results-saved-search-row[hidden] { display: none; }

  /* ═══════════════════════════════════════════════════════════
     HOUSEHOLD STRIP — current personalized-order summary.
     Shows what the ranking is based on + an Edit affordance.
     ═══════════════════════════════════════════════════════════ */
  .household-strip {
    display: flex; align-items: center; gap: 14px;
    padding: 11px 20px;
    background: linear-gradient(90deg, var(--bark) 0%, var(--bark-mid) 100%);
    color: #fff;
    flex-wrap: wrap;
    /* 2026-09-20: 2 direct children (left group, "More home fits") + space-between -- left group
       (Best fit/Standard order + info glyph) anchors the extreme left, "More home fits" the extreme
       right, and degrades cleanly to left-only when the button is hidden. */
    justify-content: space-between;
  }
  .hh-strip-left-group { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
  .hh-strip-disclosure {
    display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
    font-size: 11px; color: rgba(255,255,255,0.82); line-height: 1.4;
  }
  .hh-strip-disclosure .info-icon { color: rgba(255,255,255,0.7); }
  .hh-strip-disclosure .info-icon:hover, .hh-strip-disclosure .info-icon:focus { color: #fff; }
  /* Glyph, always right-aligned within its row (2026-09-19 standing convention). Explains the
     current Best fit / Standard order state instead of a permanently-visible text summary. */
  .hh-strip-info-wrap { position: relative; display: flex; align-items: center; }
  .hh-strip-info-icon { color: rgba(255,255,255,0.75); font-size: 17px; }
  .hh-strip-info-icon:hover, .hh-strip-info-icon:focus { color: #fff; }
  .hh-strip-info-pop {
    position: absolute; top: 28px; right: 0; width: 260px; z-index: 30;
    background: var(--ch-surface,#fff); color: var(--bark); border-radius: 12px; box-shadow: var(--shadow-lg);
    padding: 14px 16px; font-size: 12.5px; line-height: 1.55;
  }
  .hh-strip-info-pop .hh-info-title {
    font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--terra); margin-bottom: 6px;
  }
  .hh-strip-info-pop .hh-info-note { margin-top: 8px; color: var(--bark-lt); }
  /* Best fit / Standard order toggle, moved into the household strip (2026-09-19) -- replaces both
     the old text-link "View standard order" here AND the separate Best fit/Standard order button
     pair in results-header (removed; this is now the one place that toggle lives). Two segments in
     one pill so the current state is always visible, not just the action to leave it. */
  .hh-strip-fit-toggle {
    display: flex; background: rgba(255,255,255,0.14); border-radius: 100px; padding: 3px; flex-shrink: 0;
  }
  .hh-strip-fit-toggle button {
    font-size: 11.5px; font-weight: 700; color: rgba(255,255,255,0.75); background: none; border: none;
    border-radius: 100px; padding: 6px 13px; cursor: pointer; white-space: nowrap; transition: all 0.15s;
  }
  .hh-strip-fit-toggle button.active { background: var(--ch-surface,#fff); color: var(--bark); }

  /* ── Results page: Home features (the Step 5 items) ── */
  .rf-btn {
    display: inline-flex; align-items: center; gap: 7px; font: inherit;
    font-size: 13px; font-weight: 600; color: var(--bark);
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 9px; padding: 8px 13px; cursor: pointer; min-height: 38px;
    transition: border-color 0.12s;
  }
  .rf-btn:hover { border-color: var(--terra); }
  .rf-btn.has-value { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); }
  .rf-btn .rf-caret { font-size: 9px; opacity: 0.6; }
  .rf-btn[aria-expanded="true"] .rf-caret { transform: rotate(180deg); }
  .rf-panel { flex: 1 1 100%; width: 100%; max-height: 60vh; overflow-y: auto; padding: 4px 0 2px; }
  .rf-panel[hidden] { display: none; }
  .rf-panel .card { padding: 14px 16px; border-radius: 14px; box-shadow: none; margin: 0 0 10px; }
  .rf-panel .card-title { margin-bottom: 10px; }
  .rf-panel .feature-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
  .rf-panel .feature-chip { padding: 8px 10px; font-size: 12.5px; min-height: 44px; }
  .rf-done { display: none; }
  @media (max-width: 700px) {
    /* Small screens: the panel is a bottom sheet over the results, with a Done button. */
    .rf-panel:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; width: auto; max-height: 78vh; background: var(--cream); padding: 14px 14px 76px; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.28); }
    .rf-panel:not([hidden]) .rf-done { display: block; position: fixed; left: 14px; right: 14px; bottom: 14px; min-height: 48px; border: 0; border-radius: 100px; background: var(--ch-fill-navy,var(--bark)); color: #fff; font: 600 15px 'Figtree', sans-serif; cursor: pointer; }
    body.rf-sheet-open::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 2400; }
  }
  .rf-panel .priority-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .rf-panel .priority-card { padding: 10px; border-radius: 11px; }
  .rf-panel .priority-card:hover { transform: none; }
  .rf-panel .priority-desc { font-size: 10.5px; }
  .rf-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
  .rf-step { background: var(--cream); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
  .rf-step .fit-review-label { margin-bottom: 6px; }
  .rf-step .fit-review-value { font-size: 20px; }
  .rf-step .fit-review-stepper button { width: 44px; height: 44px; }

  /* ── Filters toolbar: wraps the filter-bar/proptype-row/keyword-row trio into one bite-sized
       bar (Addendum C, 2026-09-19) -- the shared background/border/padding lives here now; the
       three inner rows below are transparent, unpadded flex groups. ── */
  .filters-toolbar {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
    padding: 10px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
  }
  /* ── Filter bar: price + beds/baths dropdowns ── */
  .filter-bar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
  }
  .filter-bar-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--bark-lt);
    margin-right: 2px;
  }
  .fbtn {
    position: relative;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 600; color: var(--bark);
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 9px; padding: 8px 13px; cursor: pointer;
    transition: border-color 0.12s;
  }
  .fbtn:hover { border-color: var(--terra); }
  .fbtn.has-value { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); }
  .fbtn .fbtn-caret { font-size: 9px; opacity: 0.6; }
  .fbtn-clear-all {
    font-size: 12.5px; font-weight: 600; color: var(--bark-lt);
    background: none; border: none; cursor: pointer; padding: 8px 6px;
    text-decoration: underline; text-underline-offset: 2px;
  }
  .fbtn-clear-all:hover { color: var(--terra); }

  /* Dropdown popovers for price / beds */
  .fpop {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: var(--shadow-lg);
    padding: 16px; min-width: 240px;
    display: none;
  }
  .fpop.open { display: block; }
  .fpop-title { font-size: 12px; font-weight: 700; color: var(--bark); margin-bottom: 10px; letter-spacing: 0.03em; }
  .fpop-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .fpop-input {
    flex: 1; font-size: 13px; font-family: 'Figtree', sans-serif;
    padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px;
    color: var(--bark); width: 100%;
  }
  .fpop-input:focus { outline: none; border-color: var(--terra); }
  .fpop-dash { color: var(--bark-lt); font-size: 13px; }
  .fpop-seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
  .fpop-seg-btn {
    font-size: 13px; font-weight: 600; color: var(--bark-mid);
    background: var(--sand); border: 1px solid transparent; border-radius: 8px;
    padding: 7px 12px; cursor: pointer; transition: all 0.12s;
  }
  .fpop-seg-btn:hover { border-color: var(--terra); }
  .fpop-seg-btn.active { background: var(--ch-fill-teal,var(--terra)); color: #fff; }
  .fpop-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
  .fpop-apply {
    font-size: 13px; font-weight: 700; color: #fff; background: var(--ch-fill-teal,var(--terra));
    border: none; border-radius: 8px; padding: 8px 18px; cursor: pointer;
  }
  .fpop-reset { font-size: 12.5px; color: var(--bark-lt); background: none; border: none; cursor: pointer; text-decoration: underline; }

  /* ═══════════════════════════════════════════════════════════
     HOUSEHOLD QUICK-EDIT OVERLAY
     ═══════════════════════════════════════════════════════════ */
  .qe-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(26,43,74,0.55); backdrop-filter: blur(4px);
    display: none; align-items: flex-start; justify-content: center;
    padding: 40px 20px; overflow-y: auto;
  }
  .qe-overlay.open { display: flex; }
  .qe-modal {
    background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-lg);
    width: 100%; max-width: 560px; overflow: hidden;
    animation: qeIn 0.22s ease;
  }
  @keyframes qeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  .qe-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 22px 24px 14px;
  }
  .qe-head h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; color: var(--bark); }
  .qe-head p { font-size: 13px; color: var(--bark-mid); margin-top: 4px; }
  .qe-close {
    font-size: 20px; color: var(--bark-lt); background: none; border: none;
    cursor: pointer; line-height: 1; padding: 4px;
  }
  .qe-body { padding: 4px 24px 8px; }
  .qe-section { margin-bottom: 18px; }
  .qe-section-label {
    font-size: 12px; font-weight: 700; color: var(--bark);
    letter-spacing: 0.03em; margin-bottom: 10px; display: block;
  }
  .qe-stepper-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--border);
  }
  .qe-stepper-row:last-child { border-bottom: none; }
  .qe-stepper-name { font-size: 14px; font-weight: 600; color: var(--bark); }
  .qe-stepper-sub { font-size: 12px; color: var(--bark-lt); margin-top: 1px; }
  .qe-stepper { display: flex; align-items: center; gap: 12px; }
  .qe-step-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--ch-surface,#fff); color: var(--bark);
    font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.12s;
  }
  .qe-step-btn:hover:not(:disabled) { border-color: var(--terra); color: var(--terra); }
  .qe-step-btn:disabled { opacity: 0.35; cursor: default; }
  .qe-step-val { font-size: 15px; font-weight: 700; color: var(--bark); min-width: 20px; text-align: center; }
  .qe-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .qe-chip {
    font-size: 13px; font-weight: 600; color: var(--bark-mid);
    background: var(--ch-surface,#fff); border: 1px solid var(--border); border-radius: 100px;
    padding: 8px 15px; cursor: pointer; transition: all 0.12s;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .qe-chip:hover { border-color: var(--terra); }
  .qe-chip.active { background: var(--terra-pale); border-color: var(--terra); color: var(--terra); }
  .qe-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px 22px; gap: 12px;
  }
  .qe-apply {
    flex: 1; font-size: 15px; font-weight: 700; color: #fff;
    background: var(--ch-fill-teal,var(--terra)); border: none; border-radius: 12px;
    padding: 13px; cursor: pointer; transition: background 0.12s;
  }
  .qe-apply:hover { background: var(--terra-lt); }
  .qe-full-link {
    font-size: 13px; font-weight: 600; color: var(--bark-mid);
    background: none; border: none; cursor: pointer; white-space: nowrap;
    text-decoration: underline; text-underline-offset: 2px;
  }
  .qe-full-link:hover { color: var(--terra); }

  .filter-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .filter-chip {
    padding: 6px 14px; border-radius: 100px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    font-size: 12px; font-weight: 500; color: var(--bark-mid);
    cursor: pointer; transition: all 0.15s;
  }
  .filter-chip:hover { border-color: var(--terra); color: var(--terra); }
  .filter-chip.active { background: var(--terra-pale); border-color: var(--terra); color: var(--terra); }

  /* ── PROPERTY TYPE FILTER ROW ── */
  .proptype-row {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  }
  .proptype-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--bark-lt);
    white-space: nowrap; margin-right: 4px;
  }
  /* "More of my fits" — moved into the household strip 2026-09-19, next to the homes count instead
     of the Type dropdown (see household-strip markup). Styled to sit on that strip's dark
     background now, not the light filters toolbar. */
  .more-of-my-fits-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12.5px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3);
    border-radius: 100px; padding: 6px 13px; cursor: pointer; white-space: nowrap;
    transition: all 0.15s; flex-shrink: 0;
  }
  .more-of-my-fits-link:hover { background: rgba(255,255,255,0.28); }
  /* Same [hidden]-override bug as the saved-search row above (author `display` beats the UA
     default), found in the same pass 2026-09-21. */
  .more-of-my-fits-link[hidden] { display: none; }
  .pin-boundary-bar { margin: 10px 0 4px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--ch-surface,#fff); font-size: 13px; color: var(--bark-mid); }
  .pin-boundary-bar[hidden] { display: none; }
  .pin-bar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .pin-bar-steps { display: inline-flex; gap: 6px; }
  .pin-step { padding: 5px 12px; border-radius: 100px; border: 1.5px solid var(--border); background: transparent; font: 600 12.5px 'Figtree', sans-serif; color: var(--bark-mid); cursor: pointer; }
  .pin-step:hover { border-color: var(--terra); color: var(--terra); }
  .pin-step.active { background: var(--ch-fill-teal,var(--terra)); border-color: var(--terra); color: #fff; }
  .pin-remove, .pin-link { margin-left: auto; background: none; border: none; font: 600 12.5px 'Figtree', sans-serif; color: var(--terra); text-decoration: underline; cursor: pointer; padding: 0; }
  .pin-link { margin-left: 4px; }
  .pin-bar-note { margin-top: 8px; font-size: 12.5px; color: var(--bark-lt); }
  .type-divider { margin: 18px 0 8px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bark-lt); }
  .more-homes-overlay { position: fixed; inset: 0; z-index: 100002; background: rgba(26,43,74,.55); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 4vh 16px; }
  .more-homes-overlay[hidden] { display: none; }
  .more-homes-panel { width: 100%; max-width: 880px; background: var(--sand, #EEF3F8); border-radius: 18px; padding: 22px 22px 28px; }
  .more-homes-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .more-homes-head h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--bark); margin: 0; }
  .more-homes-head button { border: 1.5px solid var(--border); background: var(--ch-surface,#fff); border-radius: 100px; padding: 7px 16px; font: 600 13px 'Figtree', sans-serif; cursor: pointer; }
  .more-homes-group { margin-bottom: 22px; }
  .more-homes-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 14px; margin-bottom: 10px; }
  .more-homes-group-head h3 { margin: 0; font: 700 16px 'Figtree', sans-serif; color: var(--bark); }
  .more-homes-group-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--bark-lt); }
  .more-homes-add { border: none; background: var(--ch-fill-teal,var(--terra)); color: #fff; border-radius: 100px; padding: 8px 16px; font: 600 12.5px 'Figtree', sans-serif; cursor: pointer; }
  .more-reasons { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
  .more-reason { display: inline-block; font: 600 11.5px 'Figtree', sans-serif; color: var(--bark); background: var(--ch-surface,#fff); border: 1.5px solid var(--terra); border-radius: 100px; padding: 3px 10px; }
  .more-homes-empty { padding: 28px 8px; text-align: center; color: var(--bark-mid); font-size: 14px; }
  .proptype-step-chip { cursor: pointer; }
  .ch-rank-reason { margin: 2px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--teal, #0D7A7A); line-height: 1.35; }
  .proptype-chip {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 13px; border-radius: 100px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    font-size: 12px; font-weight: 500; color: var(--bark-mid);
    cursor: pointer; transition: all 0.15s; user-select: none;
  }
  .proptype-chip:hover { border-color: var(--terra-lt); color: var(--bark); }
  .proptype-chip.active {
    background: var(--terra-pale); border-color: var(--terra);
    color: var(--terra); font-weight: 600;
  }
  .proptype-chip .pt-icon { font-size: 13px; }

  /* ── PROPERTY TYPE DROPDOWN (2026-09-19: chips moved behind a dropdown, still multi-select) ── */
  .proptype-dd { position: relative; display: inline-block; }
  .proptype-dd-trigger {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 100px;
    border: 1.5px solid var(--border); background: var(--ch-surface,#fff);
    font-size: 12.5px; font-weight: 600; color: var(--bark);
    cursor: pointer; transition: border-color 0.15s; user-select: none;
  }
  .proptype-dd-trigger:hover { border-color: var(--terra-lt); }
  .proptype-dd-trigger .dd-caret { font-size: 10px; color: var(--bark-lt); transition: transform 0.15s; }
  .proptype-dd.open .proptype-dd-trigger { border-color: var(--terra); color: var(--terra); }
  .proptype-dd.open .dd-caret { transform: rotate(180deg); }
  .proptype-dd-panel {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
    background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 10px; min-width: 240px;
    flex-direction: column; gap: 4px;
  }
  .proptype-dd.open .proptype-dd-panel { display: flex; }
  .proptype-dd-option {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: 10px; cursor: pointer;
    font-size: 13px; color: var(--bark-mid); user-select: none;
  }
  .proptype-dd-option:hover { background: var(--sand-deep); }
  .proptype-dd-option.active { color: var(--terra); font-weight: 600; }
  .proptype-dd-option .dd-check {
    width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 11px;
    color: white; flex-shrink: 0; background: var(--ch-surface,#fff);
  }
  .proptype-dd-option.active .dd-check { background: var(--ch-fill-teal,var(--terra)); border-color: var(--terra); }

  /* ── KEYWORD SEARCH ROW ── */
  .keyword-row {
    display: flex; gap: 10px; align-items: center;
  }
  .keyword-search {
    position: relative; flex: 1; max-width: 520px;
    display: flex; align-items: center;
  }
  .keyword-search .ks-icon {
    position: absolute; left: 13px; font-size: 14px; color: var(--bark-lt);
    pointer-events: none;
  }
  .keyword-input {
    width: 100%; padding: 9px 36px 9px 36px;
    border: 1.5px solid var(--border); border-radius: 100px;
    font-family: 'Figtree', sans-serif; font-size: 13px; color: var(--bark);
    background: var(--ch-surface,#fff); outline: none; transition: border-color 0.15s;
  }
  .keyword-input::placeholder { color: var(--bark-lt); }
  .keyword-input:focus { border-color: var(--terra); }
  .keyword-clear {
    position: absolute; right: 10px; width: 20px; height: 20px;
    border: none; background: var(--sand-deep); color: var(--bark-mid);
    border-radius: 50%; font-size: 12px; line-height: 1; cursor: pointer;
    display: none; align-items: center; justify-content: center;
  }
  .keyword-clear.show { display: flex; }
  .keyword-hint { font-size: 11px; color: var(--bark-lt); white-space: nowrap; }
  @media (max-width: 640px) { .keyword-hint { display: none; } }

  .back-btn {
    /* 2026-09-18 fix: this used to be plain, chrome-less text (no border/background), which read
       as a caption, not a button -- real-phone/demo feedback was "there should be a Back button"
       even though this control (sticky, functional) was already there the whole time. Given real
       button chrome so it's unmistakably a clickable Back control, matching .btn-back's language
       (bordered pill) without competing with its larger wizard-step size. */
    font-size: 13px; font-weight: 600; color: var(--bark-mid);
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border); border-radius: 100px;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s; padding: 8px 16px;
  }
  .back-btn:hover { border-color: var(--terra); color: var(--terra); }

  /* Floating "+ New search" button, results screen only (2026-09-20). Fixed bottom-right so it
     stays reachable no matter how far down the results grid or map someone has scrolled. */
  .results-fab-new-search {
    position: fixed; right: 24px; bottom: calc(var(--ch-dock-h, 0px) + var(--ch-demo-b, 0px) + 24px); z-index: 60;
    background: var(--sage, #2f6f5e); color: #fff; border: none; border-radius: 100px;
    font-size: 14px; font-weight: 700; padding: 14px 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.22); cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .results-fab-new-search:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
  @media (max-width: 700px) {
    .results-fab-new-search { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 13px; }
  }

  .results-layout {
    display: grid; grid-template-columns: minmax(400px, 42%) 1fr;
    height: calc(100vh - 120px - 56px - 48px); overflow: hidden;
  }
  /* Single column of full-size result cards on the left; the map fills the larger
     space on the right (2026-09-05: reduced from two columns to one, and gave the
     map more room so every result pin stays in view). */
  .listing-list {
    overflow-y: auto; padding: 1.25rem;
    display: flex; flex-wrap: wrap; align-content: flex-start; align-items: flex-start;
    gap: 1rem;
  }
  .listing-list .listing-card { width: 100%; }
  .listing-list::-webkit-scrollbar { width: 4px; }
  .listing-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  /* "Rest of your fit for this market" strip (Addendum C, 2026-09-19) — replaces the earlier
     click-gated "Want to see other homes?" prompt. Always rendered (when there's anything to show),
     but deliberately lighter-weight than the main .listing-list cards — a horizontal scroll strip,
     same treatment as .second-look-* above — so the shopper's own confirmed search stays the
     dominant element on the page. See renderMarketMoreSection(). */
  .market-more-section { padding: 1rem 2rem 1.5rem; border-top: 1px solid var(--border); }
  .market-more-heading { font-size: 15px; font-weight: 700; color: var(--bark); }
  .market-more-sub { font-size: 12.5px; color: var(--bark-mid); margin-top: 2px; margin-bottom: 10px; }
  .market-more-prompt-link {
    color: var(--terra); font-weight: 600; cursor: pointer; text-decoration: underline;
    background: none; border: none; font-family: 'Figtree', sans-serif; font-size: 12.5px; padding: 0;
  }
  .market-more-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
  .market-more-card {
    flex: 0 0 200px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    background: var(--ch-surface,#fff); cursor: pointer;
  }
  .market-more-img { height: 90px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: var(--sand-deep); }
  .market-more-body { padding: 10px 12px; }
  .market-more-bucket { font-size: 10.5px; font-weight: 600; color: var(--bark-mid); margin-bottom: 4px; }
  .market-more-price { font-size: 14px; font-weight: 700; color: var(--bark); }
  .market-more-addr { font-size: 11.5px; color: var(--bark-lt); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .listing-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    flex-shrink: 0;
    box-shadow: var(--shadow); cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: cardIn 0.4s ease forwards; opacity: 0;
  }
  @keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .listing-card:nth-child(1) { animation-delay: 0.04s; }
  .listing-card:nth-child(2) { animation-delay: 0.08s; }
  .listing-card:nth-child(3) { animation-delay: 0.12s; }
  .listing-card:nth-child(4) { animation-delay: 0.16s; }
  .listing-card:nth-child(5) { animation-delay: 0.20s; }
  .listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

  .listing-img {
    /* 2026-09-18: shrunk from 160px (feedback: cards too large for scanning a big inventory-wide
       result set). */
    height: 120px; background: var(--sand-deep);
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
  }
  .listing-img-placeholder { font-size: 44px; opacity: 0.28; }
  /* Added 2026-09-19 alongside the real agent-photo-upload pipeline (server/media-store.js) — a
     real listing's first uploaded photo now renders here instead of the emoji placeholder. */
  .listing-img-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .listing-badge {
    position: absolute; top: 10px; left: 10px;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 100px; letter-spacing: 0.05em;
  }
  .listing-fav {
    position: absolute; top: 8px; right: 10px;
    width: 30px; height: 30px; background: var(--ch-surface,#fff); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.15s; border: none;
  }
  .listing-fav:hover { transform: scale(1.15); }
  .listing-fav.loved { color: #e74c3c; }
  .listing-hide {
    position: absolute; top: 44px; right: 10px;
    width: 30px; height: 30px; background: var(--ch-surface,#fff); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.15s; border: none;
  }
  .listing-hide:hover { transform: scale(1.15); }

  /* Open house marker */
  .openhouse-badge {
    position: absolute; bottom: 10px; left: 10px;
    display: flex; align-items: center; gap: 5px;
    background: var(--sage); color: white;
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
    padding: 4px 10px; border-radius: 100px;
    box-shadow: 0 2px 8px rgba(26,43,74,0.12);
  }
  .openhouse-badge .oh-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ch-surface,#fff); flex-shrink: 0;
  }
  .openhouse-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: var(--sage);
    background: rgba(20,163,163,0.12);
    border-radius: 8px; padding: 6px 10px;
    margin-bottom: 9px;
  }

  .listing-body { padding: 0.75rem 1rem; }
  /* Match badge pill (founder 2026-10-16): the badge word sits on the photo, not only in the small bar low on the card. */
  .ch-tier-pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.03em; padding: 4px 11px; border-radius: 100px; background: var(--sand-deep); color: var(--bark-mid); box-shadow: 0 2px 8px rgba(26,43,74,0.18); line-height: 1.2; }
  .ch-tier-pill.tier-strong { background: #1a7a4c; color: #fff; }
  .ch-tier-pill.tier-close { background: #b06a12; color: #fff; }
  .ch-tier-pill.tier-possible { background: var(--ch-surface,#fff); color: var(--bark); border: 1px solid var(--border); }
  .listing-img > .ch-tier-pill { position: absolute; bottom: 10px; right: 10px; z-index: 2; }
  /* Two-up results list (founder 2026-10-16): compact cards, two per row inside the same list column; the map keeps its size and place. */
  body:not(.ch-sp-mode) .listing-list .listing-card { width: calc(50% - 0.5rem); }
  body:not(.ch-sp-mode) .listing-list > :not(.listing-card) { flex: 0 0 100%; box-sizing: border-box; }
  body:not(.ch-sp-mode) .listing-list { gap: 0.75rem; padding: 1rem; }
  body:not(.ch-sp-mode) .listing-list .listing-body { padding: 0.6rem 0.7rem; }
  body:not(.ch-sp-mode) .listing-list .listing-price { font-size: 16px; }
  body:not(.ch-sp-mode) .listing-list .listing-img { height: 130px; }
  body:not(.ch-sp-mode) .listing-list .listing-tour-btn { height: 26px; padding: 0 8px; font-size: 10px; right: 42px; top: 8px; }
  body:not(.ch-sp-mode) .listing-list .listing-fav, body:not(.ch-sp-mode) .listing-list .listing-hide { width: 26px; height: 26px; font-size: 13px; right: 8px; }
  body:not(.ch-sp-mode) .listing-list .listing-hide { top: 38px; }
  body:not(.ch-sp-mode) .listing-list .openhouse-badge { font-size: 9px; padding: 3px 7px; max-width: 58%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  @media (max-width: 359px) { body:not(.ch-sp-mode) .listing-list .listing-card { width: 100%; } }
  @media (max-width: 760px) { .sort-select, .ch-sp-maptoggle { min-height: 44px !important; } }
  .filters-toolbar .filter-bar { flex: 1 1 auto; }
  .sort-select { min-height: 36px; border: 1px solid var(--border); border-radius: 100px; background: var(--ch-surface,#fff); color: var(--bark-mid); font: 600 12.5px 'Figtree', sans-serif; padding: 0 12px; cursor: pointer; }
  .listing-price { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 500; color: var(--bark); margin-bottom: 2px; }
  /* ── Bright MLS seller-directed suppression (consumer-facing) ── */
  .ch-price-withheld { font-family: 'Figtree', sans-serif; font-size: 15px; font-weight: 500; color: var(--bark-mid); font-style: italic; }
  .ch-suppress-tag { position: absolute; top: 10px; left: 10px; font-family: 'Figtree', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; background: rgba(26,43,74,0.78); color: #fff; border-radius: 6px; padding: 3px 8px; z-index: 2; }
  .ch-price-note { font-size: 11px; color: var(--bark-lt); margin-top: 2px; font-style: italic; }
  .listing-address { font-size: 12px; color: var(--bark-mid); margin-bottom: 6px; line-height: 1.4; }
  .listing-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
  .spec { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--bark-mid); font-weight: 500; }
  .spec-icon { font-size: 13px; }

  /* Priority tags on cards */
  .listing-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
  .listing-tag {
    font-size: 10px; font-weight: 600; padding: 3px 8px;
    border-radius: 100px; letter-spacing: 0.03em;
  }
  .tag-sage { background: rgba(20,163,163,0.15); color: var(--sage); }
  .tag-sky  { background: rgba(13,122,122,0.15); color: var(--sky); }
  .tag-src  { font-weight: 400; opacity: 0.7; font-size: 0.9em; }
  .tag-terra { background: var(--terra-pale); color: var(--terra); }

  .fit-bar { background: var(--sand-deep); border-radius: 100px; height: 6px; overflow: hidden; }
  .fit-fill { height: 100%; border-radius: 100px; background: linear-gradient(to right, var(--sage), var(--terra)); }
  .fit-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin-top: 6px; color: var(--bark-lt); }
  .fit-label span:last-child { font-weight: 800; font-size: 13px; color: var(--terra); background: var(--terra-pale); padding: 2px 8px; border-radius: 100px; letter-spacing: 0.02em; }
  /* Match-tier colors — never used to hide a low score, only to label it honestly. Applied to both
     the label pill AND the bar fill itself (bar previously stayed teal regardless of tier). */
  .fit-label.tier-strong span:last-child { color: #1a7a4c; background: #e3f6ec; }
  .fit-label.tier-close span:last-child { color: #b06a12; background: #fbeddb; }
  .fit-label.tier-possible span:last-child { color: var(--bark-mid); background: var(--sand-deep); }
  .fit-label.tier-explore span:last-child { color: var(--bark-lt); background: var(--sand-deep); font-weight: 700; }
  .fit-bar.tier-strong .fit-fill { background: #1a7a4c; }
  .fit-bar.tier-close .fit-fill { background: #b06a12; }
  .fit-bar.tier-possible .fit-fill { background: var(--bark-mid); }
  .fit-bar.tier-explore .fit-fill { background: var(--bark-lt); }
  /* "Not enough data to compare" — a listing with none of the shopper's selected criteria
     reported, shown honestly instead of as a blank card (2026-09-19). Dashed, not colored like a
     real tier: it isn't a score, so it must never look like one. */
  .fit-label.tier-nodata { border: 1px dashed var(--border); border-radius: 8px; padding: 5px 9px; }
  .fit-label.tier-nodata span:last-child { color: var(--bark-lt); background: none; font-weight: 600; font-size: 11px; padding: 0; }

  /* "Why it fits" chips — the shopper's OWN matched preference criteria (evaluateListingCriteria's
     real per-criterion result, never a fabricated reason). See renderListings()'s own comment for
     scope: shown for any listing with a personalized fit score, independent of match tier — this
     is transparent reasoning about the shopper's own selected criteria, not a score to optimize
     against, so it carries none of matchTierDisplay()'s 90%-and-up gate. */
  /* Beds and Baths now have their own toolbar chips (founder 2026-11-18), so the Min. beds / Min. baths steppers are not drawn inside Property preferences. The controls stay in the page: the toolbar chips press them. */
  body.ch-sp-mode .fit-review-grid { display: none; }
  .listing-specs-line { font-size: 13.5px; color: var(--bark); margin: 0 0 3px; font-variant-numeric: tabular-nums; }
  .listing-specs-line b { font-weight: 700; }
  .why-fits-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
  .why-fit-chip {
    font-size: 10.5px; font-weight: 600; padding: 3px 9px;
    border-radius: 100px; background: var(--terra-pale); color: var(--terra);
    display: inline-flex; align-items: center; gap: 4px;
  }
  .why-fit-chip .fit-mark { font-size: 10px; line-height: 1; }
  .why-fit-chip.fit-match { background: var(--ch-fill-teal,var(--terra)); color: #fff; }
  .why-fit-chip.fit-partial { background: var(--terra-pale); color: var(--terra); box-shadow: inset 0 0 0 1.5px var(--terra); }
  .why-fit-chip.fit-no_match { background: transparent; color: var(--bark-lt); box-shadow: inset 0 0 0 1px var(--border); }
  .why-fit-chip.fit-unknown { background: transparent; color: var(--bark-lt); box-shadow: inset 0 0 0 1px var(--bark-lt); opacity: .8; }
  .why-fit-chip .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  /* ── MAP ── */
  .map-panel {
    background: var(--sand-deep); border-left: 1px solid var(--border);
    position: relative; overflow: hidden;
  }
  /* Interactive results map */
  .results-map { position: absolute; inset: 0; overflow: hidden; }
  .rmap-canvas {
    position: absolute; inset: 0;
    background:
      radial-gradient(120px 90px at 22% 30%, rgba(20,163,163,0.10), transparent 70%),
      radial-gradient(160px 120px at 78% 68%, rgba(20,163,163,0.08), transparent 72%),
      repeating-linear-gradient(0deg, transparent, transparent 43px, rgba(26,43,74,0.045) 43px, rgba(26,43,74,0.045) 44px),
      repeating-linear-gradient(90deg, transparent, transparent 43px, rgba(26,43,74,0.045) 43px, rgba(26,43,74,0.045) 44px),
      var(--sand);
  }
  /* faint "river" ribbon for map realism */
  .rmap-canvas::after {
    content: ''; position: absolute; left: -10%; right: -10%; top: 46%; height: 26px;
    background: rgba(13,122,122,0.10); transform: rotate(-7deg); border-radius: 40px;
    pointer-events: none;
  }
  /* Vertical divider between market clusters (cross-state view) */
  .rmap-divider {
    position: absolute; top: 6%; bottom: 6%; width: 0;
    border-left: 1px dashed rgba(26,43,74,0.20); pointer-events: none;
  }
  .rmap-cluster-label {
    position: absolute; transform: translateX(-50%);
    background: var(--ch-fill-navy,var(--bark)); color: #fff; font-size: 11px; font-weight: 700;
    letter-spacing: 0.02em; padding: 4px 11px; border-radius: 100px;
    white-space: nowrap; box-shadow: var(--shadow); z-index: 3;
  }
  .rmap-cluster-label span { opacity: 0.7; font-weight: 600; margin-left: 4px; }
  /* Price/score markers */
  .rmap-marker {
    position: absolute; transform: translate(-50%, -50%);
    display: flex; align-items: center; gap: 4px;
    padding: 4px 9px; border-radius: 100px; cursor: pointer;
    font-size: 12px; font-weight: 700; line-height: 1;
    border: 1.5px solid #fff; box-shadow: 0 2px 8px rgba(13,26,60,0.28);
    transition: transform .12s, box-shadow .12s; z-index: 4; white-space: nowrap;
  }
  .rmap-marker:hover { transform: translate(-50%, -50%) scale(1.12); z-index: 6; box-shadow: 0 4px 14px rgba(13,26,60,0.35); }
  .rmap-marker .mk-score { font-variant-numeric: tabular-nums; }
  /* Strong-match tier colors — same honest tiers as everywhere else (matchTierClass), so a map
     pin's color always means the same thing as its card's badge. Never a separate decorative scale. */
  .rmap-marker { background: var(--bark-lt); color: #fff; }
  .rmap-marker.tier-strong   { background: #1A7A4C; color: #fff; }
  .rmap-marker.tier-close    { background: #B06A12; color: #fff; }
  .rmap-marker.tier-possible { background: var(--bark-mid); color: #fff; }
  .rmap-marker.tier-explore  { background: var(--ch-surface,#fff); color: var(--bark-mid); border-color: var(--border); }
  .rmap-marker.in-tour   { box-shadow: 0 0 0 3px rgba(20,163,163,0.45), 0 2px 8px rgba(13,26,60,0.3); }
  .rmap-marker.active    { transform: translate(-50%, -50%) scale(1.18); z-index: 7; }
  /* Rank emphasis: the top-ranked matches get a gold ring + larger footprint so
     the best-fit homes read first on the map. */
  .rmap-marker.rmap-top  { z-index: 6; box-shadow: 0 0 0 2.5px #E7B84B, 0 2px 10px rgba(13,26,60,0.3); font-size: 12.5px; padding: 5px 10px; }
  .rmap-marker .mk-rank  { font-size: 9px; font-weight: 800; opacity: .9; }
  /* Colour-scale legend, pinned inside the map. */
  .rmap-legend {
    position: absolute; left: 12px; bottom: 12px; z-index: 8;
    background: rgba(255,255,255,0.94); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 10px; box-shadow: 0 2px 10px rgba(13,26,60,0.14);
    font-size: 10.5px; color: var(--bark-mid); max-width: 220px;
  }
  .rmap-legend .rl-title { font-weight: 700; color: var(--bark); margin-bottom: 5px; font-size: 10.5px; letter-spacing: .02em; }
  .rmap-legend .rl-row { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
  .rmap-legend .rl-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(13,26,60,0.25); flex-shrink: 0; }
  /* Leaflet divIcon wrapper — undo Leaflet's own icon sizing/anchoring so our .rmap-marker pill
     centers on its real lat/lng exactly like the old absolutely-positioned version did. */
  .rmap-divicon { background: transparent; border: none; }
  .rmap-divicon .rmap-marker { position: static; transform: translate(-50%, -50%); }
  #rmap-canvas .leaflet-container { font: inherit; background: var(--sand); }
  /* Draw area (founder 2026-11-01): an outline the shopper draws on the results map. It only outlines; it never changes the results. */
  .rmap-draw { position: absolute; left: 12px; bottom: 28px; z-index: 1000; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 24px); }
  .rmap-draw button {
    background: var(--ch-surface,#fff); color: var(--bark); border: none; border-radius: 100px; min-height: 40px;
    padding: 9px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 12px rgba(13,26,60,0.22);
  }
  .rmap-draw button.rmap-draw-primary { background: var(--ch-fill-navy,var(--bark)); color: #fff; }
  .rmap-draw button:disabled { opacity: .5; cursor: default; }
  .rmap-draw button:focus-visible { outline: 3px solid #0D7A7A; outline-offset: 2px; }
  #rmap-canvas.rmap-drawing, #rmap-canvas.rmap-drawing .leaflet-container { cursor: crosshair; }
  .rmap-area-btn {
    position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9;
    background: var(--ch-fill-navy,var(--bark)); color: #fff; border: none; border-radius: 100px;
    padding: 9px 18px; font-size: 13px; font-weight: 700; cursor: pointer;
    box-shadow: 0 3px 12px rgba(13,26,60,0.35); display: none;
  }
  .rmap-area-btn:hover { background: var(--ch-fill-teal,var(--terra)); }
  /* Persistent "Change search area" trigger, moved onto the map itself (2026-09-19) -- was a
     filter-bar button; now always visible in the map's top-right corner, same z-index reasoning
     as .rmap-change-area-pop (must clear Leaflet's own ~700 max pane z-index). */
  .rmap-location-btn {
    /* z-index 1000, same reasoning as .rmap-change-area-pop above -- Leaflet's own panes reach
       ~700 in this same stacking context, so anything lower is invisible behind the map. */
    position: absolute; top: 14px; right: 14px; z-index: 1000;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ch-surface,#fff); color: var(--bark); border: none; border-radius: 100px;
    padding: 9px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 3px 12px rgba(13,26,60,0.22);
  }
  .rmap-location-btn:hover { color: var(--terra); }
  /* "Change search area" popover, anchored over the map (2026-09-19) — replaces navigating away to
     the full screen-area step; the shopper can retype the area without ever leaving results. */
  .rmap-change-area-pop {
    /* z-index 1000, not the map-overlay-scale 8-10 used elsewhere in this file -- Leaflet's own
       internal panes (tile/marker/popup) use z-index up to ~700 and live in the same stacking
       context as this popover (neither #results-map nor .rmap-canvas establishes a new one), so
       anything lower renders BEHIND the map despite later DOM order. Found 2026-09-19 verifying
       this popover actually appears. */
    display: none; position: absolute; top: 14px; left: 14px; right: 14px; z-index: 1000;
    background: var(--paper); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 14px;
  }
  .rmap-change-area-pop.open { display: block; }
  .rmap-change-area-pop-title { font-size: 12.5px; font-weight: 700; color: var(--bark); margin-bottom: 8px; }
  .rmap-change-area-pop-row { display: flex; gap: 8px; }
  .rmap-change-area-pop-row input {
    flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px;
    border: 1.5px solid var(--border); font-size: 13px; font-family: inherit;
  }
  .rmap-change-area-pop-row input:focus { outline: none; border-color: var(--terra); }
  .rmap-change-area-pop-btn {
    background: var(--ch-fill-teal,var(--terra)); color: #fff; border: none; border-radius: 10px;
    padding: 0 16px; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap;
  }
  .rmap-change-area-pop-btn:hover { background: var(--terra-dk, var(--terra)); }
  .rmap-change-area-pop-close {
    position: absolute; top: 8px; right: 10px; background: none; border: none;
    font-size: 15px; color: var(--bark-lt); cursor: pointer; line-height: 1;
  }
  /* Post-area-change "update your saved search?" prompt — reuses the feedback-banner visual
     language (boxed card, icon, primary action, dismiss) rather than a new modal system. */
  .area-save-prompt {
    display: flex; align-items: center; gap: 12px; background: var(--terra-pale);
    border: 1px solid var(--terra); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px;
  }
  .area-save-prompt .asp-icon { font-size: 20px; flex-shrink: 0; }
  .area-save-prompt .asp-text { flex: 1; font-size: 13px; color: var(--bark); }
  .area-save-prompt .asp-text b { display: block; font-size: 13.5px; margin-bottom: 2px; }
  .area-save-prompt .asp-btn {
    background: var(--ch-fill-teal,var(--terra)); color: #fff; border: none; border-radius: 100px;
    padding: 8px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  }
  .area-save-prompt .asp-dismiss {
    background: none; border: none; color: var(--bark-lt); font-size: 15px; cursor: pointer;
  }
  /* Selected-home popup card */
  .rmap-popup {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 8;
    background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
    box-shadow: var(--shadow-lg); padding: 12px 12px 12px 14px;
    display: flex; gap: 12px; align-items: stretch;
  }
  .rmap-popup-emoji {
    width: 60px; flex-shrink: 0; border-radius: 10px; background: var(--sand-deep);
    display: flex; align-items: center; justify-content: center; font-size: 30px;
  }
  .rmap-popup-emoji { position: relative; overflow: hidden; }
  .rmap-popup-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .rmap-popup-body { flex: 1; min-width: 0; }
  .rmap-popup-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .rmap-popup-price { font-size: 16px; font-weight: 800; color: var(--bark); }
  .rmap-popup-score {
    font-size: 11px; font-weight: 700; color: #fff; background: var(--ch-fill-teal,var(--terra));
    padding: 3px 8px; border-radius: 100px; flex-shrink: 0;
  }
  .rmap-popup-score.tier-strong { background: #1a7a4c; }
  .rmap-popup-score.tier-close { background: #b06a12; }
  .rmap-popup-score.tier-possible,
  .rmap-popup-score.tier-explore { background: var(--bark-lt); }
  .rmap-popup-addr { font-size: 12px; color: var(--bark-mid); margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rmap-popup-specs { font-size: 11.5px; color: var(--bark-lt); }
  .rmap-popup-actions { display: flex; gap: 7px; margin-top: 9px; }
  .rmap-popup-btn {
    font-size: 12px; font-weight: 700; border-radius: 8px; padding: 7px 12px;
    cursor: pointer; border: 1px solid var(--terra); background: var(--ch-surface,#fff); color: var(--terra);
  }
  .rmap-popup-btn.primary { background: var(--ch-fill-teal,var(--terra)); color: #fff; }
  .rmap-popup-btn.primary.added { background: var(--ch-fill-navy,var(--bark)); border-color: var(--bark); }
  .rmap-popup-close {
    position: absolute; top: 8px; right: 10px; border: none; background: transparent;
    font-size: 16px; color: var(--bark-lt); cursor: pointer; line-height: 1;
  }
  .rmap-hint {
    position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5;
    background: rgba(244,248,251,0.94); border: 1px solid var(--border);
    border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--bark-mid);
    box-shadow: var(--shadow); backdrop-filter: blur(2px);
  }
  .rmap-hint b { color: var(--bark); }
  .rmap-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--bark-mid); font-size: 13px; text-align: center; padding: 2rem;
  }
  /* List card ↔ map marker highlight */
  .listing-card.map-highlight {
    box-shadow: 0 0 0 2px var(--terra), var(--shadow-lg);
    transform: translateY(-1px);
  }

  /* ── INTENT TOGGLE ── */
  .intent-reveal {
    margin-bottom: 1.25rem;
  }

  .intent-trigger {
    width: 100%; background: none;
    border: 1.5px dashed rgba(26,43,74,0.15);
    border-radius: 12px; padding: 11px 16px;
    display: flex; align-items: center; justify-content: space-between;
    font-family: 'Figtree', sans-serif;
    font-size: 13px; font-weight: 500; color: var(--bark-mid);
    cursor: pointer; transition: all 0.2s;
  }
  .intent-trigger:hover { border-color: var(--terra-lt); color: var(--terra); background: var(--terra-pale); }
  .intent-trigger.open { border-style: solid; border-color: var(--terra); color: var(--terra); background: var(--terra-pale); border-radius: 12px 12px 0 0; border-bottom-color: transparent; }

  .intent-chevron {
    font-size: 18px; line-height: 1;
    transition: transform 0.25s;
    display: inline-block;
  }
  .intent-trigger.open .intent-chevron { transform: rotate(90deg); }

  .intent-panel {
    display: none;
    background: var(--cream);
    border: 1.5px solid var(--terra);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.25rem;
    animation: riseIn 0.25s ease forwards;
  }
  .intent-panel.open { display: block; }

  .intent-panel-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--bark-lt); margin-bottom: 1rem;
  }

  .intent-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .intent-card {
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 0.85rem 1rem;
    cursor: pointer; transition: all 0.18s; user-select: none;
  }
  .intent-card:hover { border-color: var(--terra-lt); transform: translateY(-1px); }
  .intent-card.selected { border-color: var(--terra); background: var(--terra-pale); }

  .intent-icon { font-size: 20px; display: block; margin-bottom: 5px; }
  .intent-name { font-size: 13px; font-weight: 600; color: var(--bark); margin-bottom: 2px; }
  .intent-card.selected .intent-name { color: var(--terra); }
  .intent-desc { font-size: 11px; color: var(--bark-lt); line-height: 1.4; }

  /* When non-primary intent selected, dim the occupant card */
  .card.dimmed {
    opacity: 0.45; pointer-events: none;
    transition: opacity 0.3s;
  }
  .card.dimmed-label::after {
    content: 'Occupant details not needed for this search type';
    display: block; margin-top: 0.75rem;
    font-size: 12px; color: var(--bark-lt); font-style: italic;
  }


  /* 2026-09-29 (founder-caught bug): .nav-right .nav-link { display:none } below hid every real nav
     link (Home/Buy/Rent/Sell/For professionals) on a phone with NO fallback at all -- a real estate
     professional visiting on mobile had no way to even find "For professionals," let alone sign in.
     .mobile-nav-toggle (hidden on desktop, shown only here) opens #mobile-nav-menu, a real dropdown
     holding the exact same links the desktop nav shows, via toggleMobileNav(). */
  .mobile-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; font-size: 22px; line-height: 1; color: var(--bark); }
  .mobile-nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ch-surface,#fff); border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(26,43,74,0.10); z-index: 90; flex-direction: column; padding: 6px; }
  .mobile-nav-menu.open { display: flex; }
  .mobile-nav-menu a { display: block; padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--bark); text-decoration: none; border-radius: 8px; }
  .mobile-nav-menu a:active, .mobile-nav-menu a:hover { background: var(--sand); }
  @media (max-width: 700px) {
    nav { padding: 1rem 1.25rem; position: relative; }
    .nav-right .nav-link { display: none; }
    .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .progress-wrap { padding: 0.65rem 1.25rem; }
    .progress-steps { max-width: 100%; gap: 0; }
    /* On narrow screens, drop the text labels and keep a compact numbered stepper
       so the four steps never overflow the viewport. */
    .progress-step span { display: none; }
    .progress-step { gap: 0; }
    .step-line { margin: 0 6px; min-width: 12px; }
    .priority-grid, .feature-grid { grid-template-columns: 1fr; }
    .results-layout { grid-template-columns: 1fr; height: auto; }
    .map-panel { display: none; }
    .listing-list { height: auto; overflow: visible; }
    .listing-list .listing-card { width: 100%; }
    .results-screen { height: auto; min-height: 100vh; }
    /* Mobile parity (2026-09-19): the household strip and folder-tab rows used to flex-wrap on
       narrow screens, which either stranded the (i) glyph alone on its own near-empty row or
       stacked every folder tab full-width in a vertical list (losing the folder-tab metaphor
       entirely, since folders read as a horizontal row of tabs). Both now scroll horizontally
       instead, the same pattern as every other horizontally-scrolling chip row in this file. */
    .household-strip { flex-wrap: wrap; gap: 8px 10px; padding: 10px 14px; }
    .household-strip .results-count { font-size: 12.5px; }
    .hh-strip-fit-toggle, .hh-strip-info-wrap { flex-shrink: 0; }
    .hh-strip-info-pop { right: -8px; width: 220px; }
    .results-saved-search-row-wrap { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 10px 14px 0; }
    .results-saved-search-row-wrap .back-btn { flex-shrink: 0; }
    .results-saved-search-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* .mch-switcher-row/.mch-switcher-tab mobile overrides live further down, right after their
       unconditional base rule -- see comment there for why (cascade order, not specificity). */
  }

  /* ── ANCHOR PEOPLE ── */
  .anchor-toggle { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; border-radius: 12px; border: 1.5px dashed var(--terra-lt); background: var(--terra-pale); margin-bottom: 1rem; transition: background 0.2s; }
  .anchor-toggle:hover { background: #f2e4d4; }
  .anchor-toggle-left { display: flex; align-items: center; gap: 10px; }
  .anchor-toggle-icon { font-size: 20px; }
  .anchor-toggle-label { font-size: 14px; font-weight: 600; color: var(--bark); }
  .anchor-toggle-sub { font-size: 12px; color: var(--bark-mid); margin-top: 1px; }
  .anchor-chevron { font-size: 18px; color: var(--terra); transition: transform 0.25s; }
  .anchor-chevron.open { transform: rotate(90deg); }
  .anchor-panel { display: none; margin-bottom: 1rem; }
  .anchor-panel.visible { display: block; }
  .anchor-people-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .anchor-person { background: var(--ch-surface,#fff); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
  .anchor-person-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .anchor-person-label { font-size: 12px; font-weight: 600; color: var(--terra); letter-spacing: 0.06em; }
  .anchor-remove { background: none; border: none; font-size: 16px; color: var(--bark-lt); cursor: pointer; padding: 0; line-height: 1; }
  .anchor-remove:hover { color: #c0392b; }
  .anchor-fields { display: flex; flex-direction: column; gap: 10px; }
  .anchor-field { display: flex; flex-direction: column; gap: 4px; }
  .anchor-field label { font-size: 11px; font-weight: 600; color: var(--bark-mid); letter-spacing: 0.06em; text-transform: uppercase; }
  .anchor-field input, .anchor-field select { font-family: 'Figtree', sans-serif; font-size: 14px; color: var(--bark); background: var(--sand); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; width: 100%; outline: none; transition: border-color 0.2s; }
  .anchor-field input:focus, .anchor-field select:focus { border-color: var(--terra); }
  .anchor-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A5C40' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
  .anchor-add-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500; color: var(--bark-mid); cursor: pointer; transition: border-color 0.2s, color 0.2s; width: 100%; justify-content: center; }
  .anchor-add-btn:hover { border-color: var(--terra); color: var(--terra); }
  .anchor-strategy { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
  .anchor-strategy-label { font-size: 11px; font-weight: 600; color: var(--bark-mid); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
  .strategy-options { display: flex; flex-direction: column; gap: 8px; }
  .strategy-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
  .strategy-opt.selected { border-color: var(--terra); background: var(--terra-pale); }
  .strategy-opt-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); margin-top: 2px; flex-shrink: 0; transition: border-color 0.2s, background 0.2s; }
  .strategy-opt.selected .strategy-opt-dot { border-color: var(--terra); background: var(--ch-fill-teal,var(--terra)); }
  .strategy-opt-text { display: flex; flex-direction: column; gap: 2px; }
  .strategy-opt-name { font-size: 13px; font-weight: 600; color: var(--bark); }
  .strategy-opt-desc { font-size: 12px; color: var(--bark-mid); line-height: 1.4; }
  .anchor-summary { margin-top: 12px; padding: 10px 14px; background: var(--sand-deep); border-radius: 10px; font-size: 12px; color: var(--bark-mid); line-height: 1.6; display: none; }
  .anchor-summary.visible { display: block; }

  /* ── LOCATION SELECTOR ── */
  .location-scope-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  .scope-btn { flex: 1; min-width: 70px; padding: 8px 6px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--ch-surface,#fff); font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 500; color: var(--bark-mid); cursor: pointer; transition: all 0.18s; text-align: center; }
  .scope-btn:hover { border-color: var(--terra-lt); color: var(--bark); }
  .scope-btn.active { border-color: var(--terra); background: var(--terra-pale); color: var(--terra); font-weight: 600; }
  .state-picker { }
  .state-search-wrap { position: relative; margin-bottom: 10px; }
  .state-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); font-size:14px; pointer-events:none; }
  #state-filter-input { font-family:'Figtree',sans-serif; font-size:13px; color:var(--bark); background:var(--sand); border:1px solid var(--border); border-radius:8px; padding:10px 12px 10px 34px; width:100%; outline:none; transition:border-color 0.2s; box-sizing:border-box; }
  #state-filter-input:focus { border-color: var(--terra); }
  .state-picker-hint { font-size:11.5px; color:var(--bark-lt); margin:0 2px 10px; }
  .state-list { display:grid; grid-template-columns: repeat(2, 1fr); gap:6px; max-height:300px; overflow-y:auto; padding:6px; border:1px solid var(--border); border-radius:10px; background:var(--cream); }
  .state-pill { display:flex; align-items:center; justify-content:space-between; gap:6px; text-align:left; padding:9px 12px; border-radius:8px; border:1.5px solid transparent; background:var(--ch-surface,#fff); font-family:'Figtree',sans-serif; font-size:13px; font-weight:500; color:var(--bark); cursor:pointer; transition:all 0.14s; }
  .state-pill:hover { border-color:var(--terra-lt); background:var(--terra-pale); }
  .state-pill.selected { border-color:var(--terra); background:var(--ch-fill-teal,var(--terra)); color:white; font-weight:600; }
  .state-pill-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .state-pill-check { font-size:12px; font-weight:700; flex-shrink:0; }
  .state-list-empty { grid-column: 1 / -1; padding:16px; text-align:center; font-size:12px; color:var(--bark-lt); }
  @media (max-width: 520px) { .state-list { grid-template-columns: 1fr; max-height:260px; } }
  .region-cap-note { font-size: 12px; color: var(--terra); background: var(--terra-pale); border-radius: 8px; padding: 7px 11px; margin: 0 0 12px; font-family: 'Figtree', sans-serif; }

  /* ── Cross-state results split ── */
  .region-tabs { display: flex; gap: 6px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto 4px; padding: 0 24px; }
  .region-tab { display: inline-flex; align-items: baseline; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--ch-surface,#fff); font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500; color: var(--bark-mid); cursor: pointer; transition: all 0.16s; }
  .region-tab:hover { border-color: var(--terra-lt); color: var(--bark); }
  .region-tab.active { border-color: var(--terra); background: var(--ch-fill-teal,var(--terra)); color: white; font-weight: 600; }
  .region-tab .rt-count { font-size: 11px; font-weight: 600; opacity: 0.72; }
  .region-tab.active .rt-count { opacity: 0.9; }
  .region-tab.rt-all { border-style: dashed; }
  .region-tab.rt-all.active { border-style: solid; }
  .region-context { max-width: 1180px; margin: 8px auto 0; padding: 12px 24px 0; }
  .region-context-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 16px; border: 1px solid var(--border); border-left: 3px solid var(--terra); border-radius: 12px; background: var(--cream); }
  .rc-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--bark); }
  .rc-stat { font-family: 'Figtree', sans-serif; font-size: 13px; color: var(--bark-mid); }
  .rc-stat b { color: var(--bark); font-weight: 600; }
  .rc-note { font-family: 'Figtree', sans-serif; font-size: 11.5px; color: var(--bark-lt); flex-basis: 100%; }
  @media (max-width: 640px) {
    .region-tabs { padding: 0 16px; }
    .region-context { padding: 8px 16px 0; }
  }
  .location-map-wrap { margin-bottom: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #f8f4ee; }
  .location-map-wrap svg { display: block; width: 100%; height: auto; cursor: pointer; }
  .us-zoom-btn { width:32px;height:32px;border-radius:8px;border:1.5px solid var(--border);background:var(--ch-surface,#fff);font-size:18px;font-weight:700;line-height:1;color:var(--bark);cursor:pointer; }
  .us-zoom-btn:hover { border-color: var(--terra); color: var(--terra); }
  .pw-rules { font-size:12px; line-height:1.45; color:var(--bark-lt); margin-top:6px; }
  .us-state { fill: #e8e0d4; stroke: white; stroke-width: 1; transition: fill 0.15s; cursor: pointer; }
  .us-state:hover { fill: var(--terra-lt); }
  .us-state.selected { fill: var(--terra); }
  .location-selected-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 0; }
  .location-tag { display: flex; align-items: center; gap: 6px; padding: 5px 10px; background: var(--terra-pale); border: 1px solid rgba(13,122,122,0.25); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--terra); }
  .location-tag-remove { background: none; border: none; font-size: 13px; color: var(--terra-lt); cursor: pointer; padding: 0; line-height: 1; }
  .location-tag-remove:hover { color: #c0392b; }
  .location-text-field { display: flex; flex-direction: column; gap: 4px; }
  .location-text-field label { font-size: 11px; font-weight: 600; color: var(--bark-mid); letter-spacing: 0.06em; text-transform: uppercase; }
  .location-text-field input { font-family: 'Figtree', sans-serif; font-size: 14px; color: var(--bark); background: var(--sand); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; transition: border-color 0.2s; }
  .location-text-field input:focus { border-color: var(--terra); }
  .location-scope-hint { font-size: 12px; color: var(--bark-lt); font-style: italic; margin-top: 8px; }


  /* ── ANCHOR QUICK-ADD CHIPS ── */
  .anchor-quickadd { margin-bottom: 14px; }
  .anchor-quickadd-label { font-size: 11px; font-weight: 600; color: var(--bark-mid); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
  .anchor-chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .anchor-chip { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--ch-surface,#fff); font-size: 13px; font-weight: 500; color: var(--bark-mid); cursor: pointer; transition: all 0.18s; user-select: none; }
  .anchor-chip:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-pale); }
  .anchor-chip.added { border-color: var(--sage); color: var(--sage); background: #f0f7f3; pointer-events: none; }
  .anchor-chip.added::after { content: ' ✓'; }
  .anchor-chip-icon { font-size: 15px; }

  /* ═══════════════════════════════════════
     LISTING DETAIL SCREEN
  ════════════════════════════════════════ */
  .screen.detail-screen { align-items: stretch; padding-top: 28px; } /* was 100px: the top bars are in the page flow, so the extra space was dead (founder 2026-11-18) */
  .detail-wrap {
    width: 100%; max-width: 1360px; margin: 0 auto;
    padding: 0 1.5rem 4rem;
  }

  .detail-back {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 100px; padding: 8px 16px 8px 12px;
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--bark); cursor: pointer; transition: all 0.2s;
    margin-bottom: 1.25rem;
  }
  .detail-back:hover { background: var(--terra-pale); color: var(--terra); border-color: var(--terra-lt); }

  .detail-gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 180px 180px;
    gap: 6px;
    border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--sand-deep);
    margin-bottom: 1.5rem;
    position: relative;
  }
  .detail-gallery.gal-one { grid-template-columns: 1fr; grid-template-rows: 420px; } /* one real photo: it fills the gallery instead of leaving an empty grey box beside it */
  .detail-gallery.gal-one .gal-count { z-index: 2; }
  .detail-gallery .gal-main {
    grid-column: 1; grid-row: 1 / 3;
    background: linear-gradient(135deg, var(--sand-deep) 0%, var(--terra-pale) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 96px;
    position: relative;
  }
  .detail-gallery .gal-main-emoji { opacity: 0.42; }
  /* Added 2026-09-19 alongside the real agent-photo-upload pipeline. */
  .detail-gallery .gal-main-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .detail-gallery .gal-main .detail-match-badge, .detail-gallery .gal-main .gallery-tabs { position: relative; z-index: 1; }
  .detail-gallery .gal-thumb {
    background: linear-gradient(135deg, var(--sand-deep) 0%, var(--cream) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 44px;
    position: relative;
  }
  .detail-gallery .gal-thumb-emoji { opacity: 0.32; }
  .gal-count {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(26,43,74,0.85); color: white;
    font-size: 11px; font-weight: 600;
    padding: 5px 11px; border-radius: 100px;
    backdrop-filter: blur(8px);
  }
  .detail-match-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
    padding: 5px 12px; border-radius: 100px;
  }

  .detail-layout {
    display: grid; grid-template-columns: 1fr 360px;
    gap: 2rem;
  }
  .detail-main { min-width: 0; }
  /* The side column scrolls with the page (founder 2026-11-17: it was stuck): it no longer sticks or scrolls on its own, so every card in it is reached with the ordinary page scroll. */
  .detail-side-sticky { position: static; }

  .detail-header-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1.5rem; margin-bottom: 1rem;
  }
  .detail-price {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 500;
    color: var(--bark); line-height: 1; margin-bottom: 6px;
  }
  .detail-address {
    font-size: 16px; color: var(--bark); font-weight: 500; margin-bottom: 2px;
  }
  .detail-city { font-size: 13px; color: var(--bark-mid); }
  .detail-type-badge {
    font-size: 10px; font-weight: 700; color: var(--bark-lt);
    letter-spacing: 0.08em; text-transform: uppercase;
    background: var(--sand-deep); padding: 5px 11px; border-radius: 100px;
    white-space: nowrap;
  }

  .detail-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
    margin: 1.25rem 0;
  }
  .detail-stat {
    background: var(--cream); padding: 14px 16px;
    display: flex; flex-direction: column; gap: 2px;
  }
  .detail-stat-val {
    font-family: 'Playfair Display', serif;
    font-size: 19px; font-weight: 500; color: var(--bark);
  }
  .detail-stat-lbl {
    font-size: 10px; font-weight: 600; color: var(--bark-lt);
    letter-spacing: 0.08em; text-transform: uppercase;
  }

  .detail-section { margin-bottom: 2rem; }
  .detail-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 500; color: var(--bark);
    margin-bottom: 0.9rem;
  }
  .detail-section h3 em { color: var(--terra); font-style: italic; }

  .fit-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem;
    box-shadow: var(--shadow);
  }
  .fit-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.25rem;
    padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
  }
  .fit-pct {
    font-family: 'Playfair Display', serif;
    font-size: 36px; font-weight: 500; color: var(--terra);
    line-height: 1;
  }
  .fit-pct-lbl {
    font-size: 12px; color: var(--bark-lt); margin-top: 4px;
    letter-spacing: 0.04em;
  }
  .fit-pct-lbl b { color: var(--terra); font-size: 10px; letter-spacing: 0.08em; font-weight: 700; }
  .fit-summary {
    font-size: 14px; color: var(--bark-mid); max-width: 260px;
    line-height: 1.6; text-align: right;
  }
  .fit-row { margin-bottom: 0.85rem; }
  .fit-row:last-child { margin-bottom: 0; }
  .fit-row-head {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--bark); margin-bottom: 5px;
  }
  .fit-track {
    height: 6px; background: var(--sand-deep); border-radius: 100px; overflow: hidden;
  }
  .fit-track-fill {
    height: 100%; border-radius: 100px;
    background: linear-gradient(to right, var(--sage), var(--terra));
    transition: width 0.8s ease;
  }
  .fit-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 1.25rem; padding-top: 1.25rem;
    border-top: 1px solid var(--border);
  }
  .fit-tag {
    font-size: 11px; font-weight: 600; padding: 5px 11px;
    border-radius: 100px; letter-spacing: 0.02em;
  }
  .fit-tag.hit  { background: rgba(20,163,163,0.15); color: var(--sage); }
  .fit-tag.miss { background: var(--sand-deep); color: var(--bark-lt); }
  .fit-tag.unknown { background: var(--sand-deep); color: var(--bark-lt); font-style: italic; }
  /* 2026-09-18 (Phase 2, graduated bed/bath scoring): a criterion can now report partial credit
     (e.g. short by 1 bedroom) instead of only full match/no_match -- distinct from both so the
     detail page never overstates ("Full match") or understates ("Not matched") a close call. */
  .fit-tag.partial { background: rgba(181,122,31,0.15); color: var(--amber, #B57A1F); }

  .score-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 10px;
  }
  .score-pill {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
  }
  .score-pill-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--terra-pale); color: var(--terra);
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; flex-shrink: 0;
  }
  .score-pill-icon.sage { background: rgba(20,163,163,0.15); color: var(--sage); }
  .score-pill-icon.sky  { background: rgba(13,122,122,0.15); color: var(--sky); }
  .score-pill-body { min-width: 0; }
  .score-pill-val { font-size: 15px; font-weight: 600; color: var(--bark); }
  .score-pill-lbl { font-size: 11px; color: var(--bark-lt); letter-spacing: 0.04em; }

  .commute-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem;
  }
  .commute-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid var(--border);
  }
  .commute-row:last-child { border-bottom: none; padding-bottom: 0; }
  .commute-row:first-child { padding-top: 0; }
  .commute-dest { font-size: 13px; color: var(--bark); font-weight: 500; }
  .commute-mode { font-size: 11px; color: var(--bark-lt); margin-top: 2px; }
  .commute-time {
    font-family: 'Playfair Display', serif;
    font-size: 20px; font-weight: 500; color: var(--terra);
  }

  .nearby-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  }
  .nearby-item {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 11px 14px;
    display: flex; align-items: center; gap: 11px;
  }
  .nearby-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--sand-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
  }
  .nearby-body { min-width: 0; flex: 1; }
  .nearby-name {
    font-size: 13px; font-weight: 500; color: var(--bark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .nearby-meta {
    display: flex; gap: 8px; align-items: center;
    font-size: 11px; color: var(--bark-lt); margin-top: 1px;
  }
  .nearby-dist { color: var(--sage); font-weight: 600; }

  .school-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 16px; margin-bottom: 8px;
  }
  .school-info { min-width: 0; }
  .school-name { font-size: 14px; font-weight: 500; color: var(--bark); }
  .school-meta { font-size: 11px; color: var(--bark-lt); margin-top: 2px; }
  .school-rating {
    font-family: 'Playfair Display', serif;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 18px; font-weight: 500;
    background: rgba(20,163,163,0.15); color: var(--sage);
    flex-shrink: 0;
  }
  .school-rating.mid { background: var(--terra-pale); color: var(--terra); }

  .env-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 16px; margin-bottom: 8px;
  }
  .env-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(13,122,122,0.12); color: var(--sky);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
  }
  .env-body { flex: 1; min-width: 0; }
  .env-title { font-size: 13px; font-weight: 500; color: var(--bark); }
  .env-detail { font-size: 12px; color: var(--bark-mid); margin-top: 2px; line-height: 1.5; }
  .env-pill {
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 100px; white-space: nowrap;
  }
  .env-pill.good { background: rgba(20,163,163,0.18); color: var(--sage); }

  .desc-text {
    font-size: 15px; color: var(--bark); line-height: 1.75;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem 1.5rem;
  }

  .features-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px;
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem 1.5rem;
  }
  .feature-li {
    display: flex; align-items: center; gap: 9px;
    font-size: 14px; color: var(--bark); padding: 5px 0;
  }
  .feature-li .check { color: var(--sage); font-weight: 700; flex-shrink: 0; }
  .feature-li.absent { color: var(--bark-lt); }
  .feature-li.absent .check { color: var(--bark-lt); opacity: 0.4; }

  .detail-tile-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
  }
  .detail-tile {
    background: var(--cream); padding: 14px 16px;
    display: flex; flex-direction: column; gap: 3px;
  }
  .detail-tile-lbl {
    font-size: 10px; font-weight: 600; color: var(--bark-lt);
    letter-spacing: 0.08em; text-transform: uppercase;
  }
  .detail-tile-val { font-size: 14px; color: var(--bark); font-weight: 500; }

  .tour-card {
    background: var(--cream); border: 1px solid var(--border);
    border-radius: 16px; padding: 1.5rem;
    box-shadow: var(--shadow); margin-bottom: 1rem;
  }
  .tour-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 19px; font-weight: 500; color: var(--bark);
    margin-bottom: 1rem;
  }
  .agent-mini {
    display: flex; align-items: center; gap: 11px;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .agent-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--terra), var(--terra-lt));
    color: white; font-family: 'Playfair Display', serif;
    font-weight: 500; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .agent-name { font-size: 14px; font-weight: 600; color: var(--bark); }
  .agent-meta { font-size: 12px; color: var(--bark-mid); margin-top: 1px; }
  .agent-verified {
    font-size: 11px; color: var(--sage); margin-top: 2px;
    display: flex; align-items: center; gap: 4px;
  }

  .routing-q {
    font-size: 12px; color: var(--bark-mid);
    margin-bottom: 10px; line-height: 1.5;
  }
  .routing-opt {
    display: flex; gap: 11px; align-items: flex-start;
    background: var(--sand); border: 1.5px solid transparent;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
    cursor: pointer; transition: all 0.2s;
  }
  .routing-opt:hover { background: var(--terra-pale); }
  .routing-opt.selected { border-color: var(--terra); background: var(--terra-pale); }
  .routing-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--bark-lt); flex-shrink: 0; margin-top: 1px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
  }
  .routing-opt.selected .routing-radio { border-color: var(--terra); }
  .routing-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ch-fill-teal,var(--terra));
    display: none;
  }
  .routing-opt.selected .routing-dot { display: block; }
  .routing-txt { flex: 1; min-width: 0; }
  .routing-title { font-size: 13px; font-weight: 600; color: var(--bark); margin-bottom: 2px; }
  .routing-desc { font-size: 12px; color: var(--bark-mid); line-height: 1.5; }
  .own-agent-input {
    width: 100%; background: var(--cream);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 9px 12px; margin-top: 8px;
    font-family: 'Figtree', sans-serif; font-size: 13px; color: var(--bark);
    outline: none; display: none; transition: border-color 0.2s;
  }
  .own-agent-input:focus { border-color: var(--terra); }
  .own-agent-input.visible { display: block; }

  .btn-tour {
    width: 100%; padding: 12px;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    margin-top: 1rem; transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
  }
  .btn-tour:hover { background: var(--ch-fill-teal,var(--terra)); transform: translateY(-1px); }
  .btn-tour-secondary {
    width: 100%; padding: 11px;
    background: transparent; color: var(--bark);
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500;
    border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
    margin-top: 8px; transition: background 0.2s;
  }
  .btn-tour-secondary:hover { background: var(--sand-deep); }

  .respa-note {
    font-size: 11px; color: var(--bark-lt); text-align: center;
    margin-top: 12px; line-height: 1.55;
  }
  .respa-note a { color: var(--terra); }

  .mls-note {
    font-size: 10px; color: var(--bark-lt); line-height: 1.6;
    padding: 0 6px;
  }
  /* Bright broker attribution: same size/color as the page's normal body text (Bright display requirement 1). */
  .bright-broker-attrib { font-size: 14px; line-height: 1.6; color: var(--bark); padding: 10px 6px; }
  .bright-broker-attrib a { color: inherit; text-decoration: underline; }
  #bright-mls-disclosures a { color: inherit; text-decoration: underline; }

  /* ═══════════════════════════════════════
     TOUR PLANNING — cart, bar, modal
  ════════════════════════════════════════ */

  /* "Add to tour" button on the detail side panel */
  .btn-add-tour {
    width: 100%; padding: 12px;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .btn-add-tour:hover { background: var(--ch-fill-teal,var(--terra)); transform: translateY(-1px); }
  .btn-add-tour.added {
    background: var(--sage); cursor: default;
  }
  .btn-add-tour.added:hover { transform: none; background: var(--sage); }

  .tour-helper {
    font-size: 12px; color: var(--bark-mid); line-height: 1.5;
    margin-top: 10px; text-align: center;
  }

  /* "Add to tour" mini-toggle on each result card */
  .listing-tour-btn {
    position: absolute; top: 8px; right: 48px;
    height: 30px; padding: 0 11px; background: var(--ch-surface,#fff); border-radius: 100px;
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; color: var(--bark);
    cursor: pointer; border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all 0.15s;
  }
  .listing-tour-btn:hover { background: var(--terra-pale); color: var(--terra); }
  .listing-tour-btn.added { background: var(--sage); color: white; }

  /* Floating tour bar (appears when cart has items) */
  .tour-bar {
    position: fixed; bottom: calc(var(--ch-dock-h, 0px) + var(--ch-demo-b, 0px)); left: 0; right: 0; z-index: 150;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    /* Hidden state must clear its own height PLUS the locked bottom menu (--ch-dock-h) and its shadow, and be truly hidden:
       2026-10-05 the dock offset left a sliver of this bar showing for signed-out visitors. */
    transform: translateY(calc(100% + var(--ch-dock-h, 0px) + 40px)); visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    box-shadow: 0 -4px 24px rgba(26,43,74,0.25);
  }
  .tour-bar.visible { transform: translateY(0); visibility: visible; transition: transform 0.3s ease, visibility 0s; }
  .tour-bar-inner {
    max-width: 1180px; margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex; align-items: center; gap: 1.25rem;
  }
  .tour-bar-count {
    display: flex; align-items: center; gap: 11px; flex: 1; min-width: 0;
  }
  .tour-bar-badge {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .tour-bar-label { font-size: 14px; font-weight: 600; }
  .tour-bar-sub { font-size: 12px; color: var(--sand-deep); margin-top: 1px; }
  .tour-bar-clear {
    background: none; border: none; color: var(--sand-deep);
    font-size: 12px; cursor: pointer; text-decoration: underline;
    font-family: 'Figtree', sans-serif;
  }
  .tour-bar-go {
    padding: 11px 22px; background: var(--ch-fill-teal,var(--terra)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.2s, transform 0.15s; white-space: nowrap;
  }
  .tour-bar-go:hover { background: var(--terra-lt); transform: translateY(-1px); }

  /* Tour planning modal */
  .plan-overlay {
    display: none; position: fixed; inset: 0; z-index: 200;
    background: rgba(26,43,74,0.55); backdrop-filter: blur(4px);
    align-items: flex-start; justify-content: center;
    overflow-y: auto; padding: 2rem 1rem;
  }
  .plan-overlay.open { display: flex; }
  .plan-box {
    background: var(--cream); border-radius: 18px;
    width: 100%; max-width: 600px;
    box-shadow: var(--shadow-lg); position: relative;
    animation: planIn 0.25s ease; margin: auto;
  }
  @keyframes planIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .plan-head {
    padding: 1.5rem 1.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .plan-head h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 500; color: var(--bark);
  }
  .plan-head h3 em { color: var(--terra); font-style: italic; }
  .plan-head p { font-size: 13px; color: var(--bark-mid); margin-top: 4px; }
  .plan-close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--sand-deep); border: none; cursor: pointer;
    font-size: 16px; color: var(--bark-mid);
    display: flex; align-items: center; justify-content: center;
  }
  .plan-close:hover { background: var(--border); }
  .plan-body { padding: 1.5rem 1.75rem; }
  .plan-section-label {
    font-size: 11px; font-weight: 700; color: var(--bark-lt);
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
  }
  .plan-step-num {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--ch-fill-teal,var(--terra)); color: white;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }

  /* Properties list in the plan */
  .plan-props { margin-bottom: 1.5rem; }
  .plan-prop {
    display: flex; align-items: center; gap: 12px;
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 12px; padding: 11px 14px; margin-bottom: 8px;
  }
  .plan-prop-emoji {
    width: 40px; height: 40px; border-radius: 9px;
    background: var(--sand-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .plan-prop-body { flex: 1; min-width: 0; }
  .plan-prop-addr { font-size: 13px; font-weight: 600; color: var(--bark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .plan-prop-meta { font-size: 12px; color: var(--bark-mid); margin-top: 1px; }
  .plan-locked { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
  .plan-locked-label { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--bark-lt); width: 100%; }
  .plan-lock-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--terra-pale); color: var(--bark); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; }
  .plan-fit-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; align-items: center; }
  .plan-fit-score { font-size: 11.5px; font-weight: 700; color: var(--terra); margin-right: 2px; }
  .plan-fit-chip { font-size: 11px; background: var(--terra-pale); color: var(--bark); border-radius: 999px; padding: 2px 8px; }
  .plan-msg { color: #b3261e; font-size: 12.5px; margin-top: 8px; min-height: 0; }
  .plan-prop-remove {
    background: none; border: none; cursor: pointer;
    color: var(--bark-lt); font-size: 16px; flex-shrink: 0; padding: 4px;
  }
  .plan-prop-remove:hover { color: #c0392b; }

  /* Time selection */
  .plan-times { margin-bottom: 1.5rem; }
  .time-slot-row {
    display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
  }
  .time-slot-input {
    flex: 1; background: var(--ch-surface,#fff);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-family: 'Figtree', sans-serif;
    font-size: 13px; color: var(--bark); outline: none;
    transition: border-color 0.2s;
  }
  .time-slot-input:focus { border-color: var(--terra); }
  /* split date + time inputs (replaces fiddly datetime-local) */
  .dt-row { display: flex; gap: 8px; flex: 1; min-width: 0; }
  .dt-date, .dt-time {
    background: var(--ch-surface,#fff); border: 1px solid var(--border); border-radius: 10px;
    padding: 10px 12px; font-family: 'Figtree', sans-serif;
    font-size: 14px; color: var(--bark); outline: none;
    transition: border-color 0.2s; color-scheme: light;
    -webkit-appearance: none; appearance: none;
  }
  .dt-date { flex: 1.4; min-width: 0; }
  .dt-time { flex: 1; min-width: 0; }
  .dt-date:focus, .dt-time:focus { border-color: var(--terra); }
  .dt-date::-webkit-calendar-picker-indicator,
  .dt-time::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.6; }
  .time-slot-remove {
    background: none; border: none; cursor: pointer;
    color: var(--bark-lt); font-size: 18px; padding: 4px 8px; flex-shrink: 0;
  }
  .time-slot-remove:hover { color: #c0392b; }
  .add-time-btn {
    background: none; border: 1.5px dashed var(--border);
    border-radius: 10px; padding: 9px; width: 100%;
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500;
    color: var(--bark-mid); cursor: pointer; transition: all 0.2s;
  }
  .add-time-btn:hover { border-color: var(--terra); color: var(--terra); background: var(--terra-pale); }
  .plan-time-hint { font-size: 12px; color: var(--bark-lt); margin-top: 6px; }

  /* Tour mode choice (one-day vs flexible) */
  .plan-mode { margin-bottom: 1.5rem; }
  .mode-opt {
    display: flex; gap: 12px; align-items: center;
    background: var(--sand); border: 1.5px solid transparent;
    border-radius: 12px; padding: 13px 14px; margin-bottom: 8px;
    cursor: pointer; transition: all 0.2s;
  }
  .mode-opt:hover { background: var(--terra-pale); }
  .mode-opt.selected { border-color: var(--terra); background: var(--terra-pale); }
  .mode-opt-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--ch-surface,#fff); display: flex; align-items: center; justify-content: center;
    font-size: 19px; flex-shrink: 0;
  }
  .mode-opt-txt { flex: 1; min-width: 0; }
  .mode-opt-title { font-size: 13px; font-weight: 600; color: var(--bark); margin-bottom: 2px; }
  .mode-opt-desc { font-size: 12px; color: var(--bark-mid); line-height: 1.5; }
  .mode-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--bark-lt); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: border-color 0.2s;
  }
  .mode-opt.selected .mode-radio { border-color: var(--terra); }
  .mode-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ch-fill-teal,var(--terra)); display: none; }
  .mode-opt.selected .mode-dot { display: block; }

  /* Anticipated one-day schedule preview */
  .day-schedule {
    margin-top: 14px;
    background: var(--sand); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px;
  }
  .day-schedule:empty { display: none; }
  .ds-head {
    font-size: 11px; font-weight: 700; color: var(--bark-lt);
    letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
  }
  .ds-stop { display: flex; gap: 12px; align-items: flex-start; }
  .ds-time {
    font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 500;
    color: var(--terra); width: 64px; flex-shrink: 0; padding-top: 1px;
    text-align: right;
  }
  .ds-line { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; align-self: stretch; }
  .ds-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ch-fill-teal,var(--terra)); flex-shrink: 0; margin-top: 4px; }
  .ds-bar { width: 2px; flex: 1; background: var(--border); margin: 2px 0; min-height: 22px; }
  .ds-body { flex: 1; min-width: 0; padding-bottom: 14px; }
  .ds-addr { font-size: 13px; font-weight: 600; color: var(--bark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ds-meta { font-size: 11px; color: var(--bark-lt); margin-top: 1px; }
  .ds-finish {
    font-size: 12px; color: var(--bark-mid); margin-top: 4px;
    padding-top: 10px; border-top: 1px dashed var(--border);
  }
  .ds-finish b { color: var(--bark); }
  .plan-area-banner { background: var(--terra-pale); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
  .pab-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .pab-label { font-size: 14px; color: var(--bark); }
  .pab-label b { color: var(--terra); font-weight: 700; }
  .pab-switch { background: var(--ch-surface,#fff); border: 1.5px solid var(--terra); color: var(--terra); border-radius: 999px; padding: 5px 12px; font-family: 'Figtree', sans-serif; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0; }
  .pab-switch:hover { background: var(--ch-fill-teal,var(--terra)); color: white; }
  .pab-note { font-size: 11.5px; color: var(--bark-mid); margin-top: 6px; }
  .area-choose { display: flex; flex-direction: column; gap: 10px; }
  .area-choose-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--ch-surface,#fff); border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: all 0.16s; font-family: inherit; }
  .area-choose-opt:hover { border-color: var(--terra); background: var(--terra-pale); }
  .aco-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--bark); }
  .aco-count { font-size: 12px; color: var(--bark-mid); margin-top: 2px; }
  .aco-arrow { font-size: 18px; color: var(--terra); font-weight: 700; }

  /* phone block */
  .plan-phone-wrap { margin-bottom: 0.5rem; }

  /* planned-time line on confirm stops */
  .cps-planned { font-size: 11.5px; color: var(--terra); font-weight: 600; margin-top: 3px; }


  /* Agent choice (reuses routing-opt styles, scoped) */
  .plan-agent { margin-bottom: 0.5rem; }

  /* Plan footer */
  .plan-foot {
    padding: 1.25rem 1.75rem; border-top: 1px solid var(--border);
    background: var(--sand); border-radius: 0 0 18px 18px;
  }
  .btn-plan-submit {
    width: 100%; padding: 13px;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.2s, transform 0.15s; letter-spacing: 0.02em;
  }
  .btn-plan-submit:hover { background: var(--ch-fill-teal,var(--terra)); transform: translateY(-1px); }
  .btn-plan-submit:disabled { background: var(--bark-lt); cursor: not-allowed; transform: none; }

  /* Confirmation screen */
  .plan-confirm { padding: 2.5rem 1.75rem; text-align: center; }
  .plan-confirm-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--sage); color: white;
    font-size: 36px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
  }
  .plan-confirm-icon.invite { background: var(--sky); }
  .plan-confirm h3 {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 500; color: var(--bark); margin-bottom: 0.75rem;
  }
  .plan-confirm h3 em { color: var(--terra); font-style: italic; }
  .plan-confirm-body { font-size: 14px; color: var(--bark-mid); line-height: 1.6; max-width: 420px; margin: 0 auto 1.25rem; }
  .confirm-detail-card {
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem; text-align: left;
    margin: 1.25rem auto 0; max-width: 440px;
  }
  .confirm-detail-row {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .confirm-detail-row:last-child { border-bottom: none; }
  .confirm-detail-icon { flex-shrink: 0; font-size: 16px; width: 22px; }
  .confirm-detail-label { color: var(--bark-lt); width: 90px; flex-shrink: 0; }
  .confirm-detail-val { color: var(--bark); font-weight: 500; flex: 1; }

  /* Per-property plan (CoverHome path: agent per listing brokerage) */
  .confirm-plan-list {
    text-align: left; margin: 1.25rem auto 0; max-width: 460px;
    display: flex; flex-direction: column; gap: 8px;
  }
  .confirm-plan-stop {
    display: flex; align-items: center; gap: 12px;
    background: var(--ch-surface,#fff); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
  }
  .cps-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .cps-body { flex: 1; min-width: 0; }
  .cps-addr { font-size: 13px; font-weight: 600; color: var(--bark);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cps-firm { font-size: 12px; color: var(--bark-mid); margin-top: 2px; }
  .cps-agent {
    font-size: 11.5px; color: var(--sage); margin-top: 3px;
    display: flex; align-items: center; gap: 6px;
  }
  .cps-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
    animation: pulse 1.5s ease-in-out infinite; flex-shrink: 0;
  }
  .cps-status {
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--bark-lt); background: var(--sand-deep);
    border-radius: 100px; padding: 4px 10px; flex-shrink: 0;
  }

  .confirm-eta {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--sage-bg, rgba(20,163,163,0.15)); color: var(--sage);
    border: 1px solid rgba(20,163,163,0.3);
    border-radius: 100px; padding: 8px 16px;
    font-size: 13px; font-weight: 600; margin-top: 1rem;
  }
  .confirm-eta .pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--sage);
    animation: pulse 1.5s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
  }
  .btn-plan-done {
    margin-top: 1.5rem; padding: 11px 28px;
    background: var(--ch-fill-navy,var(--bark)); color: white;
    font-family: 'Figtree', sans-serif; font-size: 14px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer;
  }
  .btn-plan-done:hover { background: var(--ch-fill-teal,var(--terra)); }

  @media (max-width: 820px) {
    .detail-layout { grid-template-columns: 1fr; }
    .detail-side-sticky { position: static; }
    .detail-gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
    .detail-gallery .gal-thumb { display: none; }
    .detail-gallery .gal-main { grid-row: 1; grid-column: 1; }
    .nearby-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .detail-price { font-size: 28px; }
    .fit-card-head { flex-direction: column; align-items: flex-start; }
    .fit-summary { text-align: left; max-width: 100%; }
    .tour-bar-inner { flex-wrap: wrap; gap: 0.75rem; }
    .time-slot-row { flex-wrap: wrap; }
  }
/* ── SIGN-IN ROLE ROUTER ── */
  .signin-role-card {
    display: flex; align-items: center; gap: 14px;
    width: 100%; text-align: left;
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
    cursor: pointer; text-decoration: none; color: var(--bark);
    font-family: 'Figtree', sans-serif;
    transition: border-color 0.18s ease, transform 0.12s ease;
  }
  .signin-role-card:hover { border-color: var(--terra); transform: translateY(-1px); }
  .signin-role-icon { font-size: 24px; }
  .signin-role-title { font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
  .signin-role-desc { font-size: 12px; color: var(--bark-mid); line-height: 1.45; }
  .signin-role-arrow { margin-left: auto; color: var(--terra); font-weight: 600; }
  .signin-footnote {
    margin-top: 10px; font-size: 11.5px; color: var(--bark-lt);
    text-align: center; line-height: 1.5;
  }

  .signin-pro-block {
    background: var(--ch-surface,#fff); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
  }
  .signin-pro-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
  .signin-pro-actions { display: flex; gap: 8px; flex-wrap: wrap; }
  .signin-btn-primary {
    background: var(--ch-fill-teal,var(--terra)); color: #fff !important; border: none;
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600;
    padding: 9px 16px; border-radius: 100px; cursor: pointer;
    text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
    transition: background 0.18s ease;
  }
  .signin-btn-primary:hover { background: #0A6060; }
  .ch-gbtn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; background: var(--ch-surface,#fff); color: #3c4043; border: 1px solid #dadce0; border-radius: 4px; font: 500 14px/20px Roboto, Arial, sans-serif; cursor: pointer; }
  .ch-gbtn:hover { background: #f8f9fa; }
  .ch-gbtn:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
  .ch-gbtn[disabled] { cursor: not-allowed; opacity: .7; }
  .ch-gnote { font-size: 12px; line-height: 1.5; color: var(--bark-mid); margin: 8px 0 0; text-align: center; }
  .ch-gor { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 12px; color: var(--bark-mid); }
  .ch-gor::before, .ch-gor::after { content: ""; flex: 1; border-top: 1px solid var(--border, #dcd6cc); }
  .signin-btn-secondary {
    background: transparent; color: var(--bark-mid); border: 1.5px solid var(--border);
    font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 500;
    padding: 8px 14px; border-radius: 100px; cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
  }
  .signin-btn-secondary:hover { border-color: var(--terra); color: var(--terra); }
  .create-field { margin-bottom: 10px; }
  .create-field label {
    display: block; font-size: 11px; font-weight: 600;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--bark-mid); margin-bottom: 4px;
  }
  .create-field input, .create-field select {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid var(--border); border-radius: 9px;
    background: var(--ch-surface,#fff); color: var(--bark);
    font-family: 'Figtree', sans-serif; font-size: 14px; outline: none;
  }
  .create-field input:focus, .create-field select:focus { border-color: var(--terra); }
  .create-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  /* ── HOW IT WORKS STRIP (2026-09-21, copied verbatim from
       CoverHome_Waitlist_USA_LanguageSelector_v5_590std_510special.html per founder direction) ── */
  .landing-how {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative; z-index: 1;
    margin-top: 40px;
  }
  .how-step {
    padding: 2rem 1.5rem;
    display: flex; flex-direction: column; gap: 10px;
    border-right: 1px solid var(--border);
    position: relative;
  }
  .how-step:last-child { border-right: none; }
  .how-num {
    font-family: 'Playfair Display', serif;
    font-size: 13px; font-weight: 500; font-style: italic;
    color: var(--terra); letter-spacing: 0.05em;
  }
  .how-icon { font-size: 26px; margin: 4px 0; }
  .how-title {
    font-size: 14px; font-weight: 600; color: var(--bark);
  }
  .how-desc {
    font-size: 12px; color: var(--bark-mid); line-height: 1.55;
  }
  @media (max-width: 900px) {
    .landing-how { grid-template-columns: 1fr 1fr; }
    .how-step:nth-child(2) { border-right: none; }
    .how-step:nth-child(3) { border-top: 1px solid var(--border); }
  }
  @media (max-width: 560px) {
    .landing-how { grid-template-columns: 1fr; }
    .how-step { border-right: none; border-top: 1px solid var(--border); }
    .how-step:first-child { border-top: none; }
  }

  /* PUBLIC PROTOTYPE DISCLOSURES */
  .public-explainer {
    margin: 12px 0 18px; border: 1px solid var(--border); border-radius: 12px;
    background: rgba(255,255,255,.76); overflow: hidden;
  }
  .public-explainer summary {
    cursor: pointer; list-style: none; padding: 12px 14px;
    font-size: 13px; font-weight: 700; color: var(--bark);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .public-explainer summary::-webkit-details-marker { display: none; }
  .public-explainer summary::after { content: '+'; color: var(--terra); font-size: 18px; line-height: 1; }
  .public-explainer[open] summary::after { content: '−'; }
  .public-explainer-body { padding: 0 14px 14px; color: var(--bark-mid); font-size: 12.5px; line-height: 1.6; }
  .public-explainer-body ol { padding-left: 19px; }
  .public-explainer-body li { margin: 5px 0; }
  .public-prototype-note {
    margin-top: 10px; padding: 10px 12px; border-radius: 9px;
    background: #FFF7E8; border: 1px solid rgba(181,122,31,.32);
    color: #6B4A12; font-size: 11.5px; line-height: 1.55;
  }
  .public-demo-footer {
    position: relative; z-index: 5; padding: 18px 22px 96px; /* clears the fixed bottom dock so the whole disclosure shows */
    background: #E5EDF5; border-top: 1px solid rgba(26,43,74,.14);
    color: #475B7A; text-align: center; font-family: 'Figtree', sans-serif;
    font-size: 11.5px; line-height: 1.6;
  }
  .public-demo-footer strong { color: #1A2B4A; }
  /* The Listing information card is CoverHome's standing mark of authority on every listing (founder 2026-11-17): a calm light surface, one navy rule on top, navy text with clear hierarchy, small teal icon. Quiet enough to read, firm enough to trust; the dark monthly-cost card stays the loudest thing in the column. */
  .monthly-card.monthly-wide { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.7fr); column-gap: 28px; align-items: center; margin: 14px 0 0; }
  .monthly-card.monthly-wide > * { grid-column: 1; }
  .monthly-card.monthly-wide > .monthly-grid { grid-column: 2; grid-row: 1 / span 3; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .monthly-card.monthly-wide > .monthly-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (max-width: 760px) { .monthly-card.monthly-wide { display: block; } .monthly-card.monthly-wide > .monthly-grid { margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  /* Listing brokerage and Listing MLS: one body section on the full property page (founder 2026-12-02); the right column is for advertising. */
  .ch-listing-source .ch-ls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; margin: 0 0 4px; }
  .ch-listing-source .ch-ls-lbl { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1A2B4A; margin: 0 0 6px; }
  .ch-listing-source .mls-broker { margin: 0; font-size: 13px; line-height: 1.6; color: #2D3F5E; }
  .ch-listing-source .mls-broker strong { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5B6B85; font-weight: 600; margin-bottom: 1px; }
  .ch-listing-source .mls-broker .mls-office { font-size: 15px; font-weight: 700; color: #1A2B4A; line-height: 1.35; }
  .ch-listing-source .mls-broker a, .ch-listing-source .public-demo-footer a { color: #0D7A7A; text-decoration: underline; text-underline-offset: 2px; }
  .ch-listing-source .mls-note { margin: 0; padding: 0; font-size: 13px; line-height: 1.6; color: #2D3F5E; font-variant-numeric: tabular-nums; }
  .ch-listing-source .mls-logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 8px; }
  .ch-listing-source .mls-logos img { max-height: 32px; max-width: 140px; width: auto; }
  .ch-listing-source .public-demo-footer { padding: 10px 0 0; margin-top: 12px; background: none; border-top: 1px solid rgba(26,43,74,.12); text-align: left; color: #5B6B85; font-size: 11.5px; line-height: 1.55; }
  .ch-listing-source .public-demo-footer strong { color: #1A2B4A; }
  .monthly-card.mls-card { background: #F7FAFC; color: #1A2B4A; border: 1px solid rgba(26,43,74,.16); border-top: 3px solid #1A2B4A; border-radius: 12px; padding: 16px 18px; box-shadow: none; }
  .mls-card .mls-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #1A2B4A; }
  .mls-card .mls-head svg { flex: none; color: #0D7A7A; }
  .mls-card .mls-broker { margin: 12px 0 0; font-size: 13px; line-height: 1.6; color: #2D3F5E; }
  .mls-card .mls-broker strong { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #5B6B85; font-weight: 600; margin-bottom: 1px; }
  .mls-card .mls-broker .mls-office { font-size: 15px; font-weight: 700; color: #1A2B4A; line-height: 1.35; }
  .mls-card .mls-broker a, .mls-card .public-demo-footer a { color: #0D7A7A; text-decoration: underline; text-underline-offset: 2px; }
  .mls-card .mls-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #2D3F5E; font-variant-numeric: tabular-nums; }
  .mls-card .public-demo-footer { padding: 10px 0 0; margin-top: 12px; background: none; border-top: 1px solid rgba(26,43,74,.12); text-align: left; color: #5B6B85; font-size: 11.5px; line-height: 1.55; }
  .mls-card .public-demo-footer strong { color: #1A2B4A; }
  .mls-card .mls-logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 12px 0 0; }
  .mls-card .mls-logos img { max-height: 32px; max-width: 140px; width: auto; }
  @media (max-width: 640px) {
    .public-demo-footer { padding: 16px 14px 96px; }
  }


  /* ── DEMO-READY PROPERTY DETAIL ENHANCEMENTS ── */
  .detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-bottom:12px}.detail-action{border:1px solid var(--border);background:var(--cream);color:var(--bark);border-radius:100px;padding:9px 13px;font:600 12px Figtree,sans-serif;cursor:pointer}.detail-action:hover{border-color:var(--terra);color:var(--terra)}
  .gallery-tabs{position:absolute;left:16px;bottom:14px;display:flex;gap:7px;z-index:3}.gallery-tab{border:0;background:rgba(26,43,74,.84);color:#fff;border-radius:100px;padding:7px 11px;font:600 11px Figtree,sans-serif;cursor:pointer}.gallery-tab.active{background:var(--ch-fill-teal,var(--terra))}
  .source-strip{display:flex;gap:10px;flex-wrap:wrap;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--sand);font-size:11px;color:var(--bark-mid);margin:12px 0 18px}.source-strip button{margin-left:auto;border:0;background:none;color:var(--terra);font-weight:700;cursor:pointer}
  .monthly-card{background:linear-gradient(135deg,var(--bark),var(--bark-mid));color:#fff;border-radius:16px;padding:18px;margin-bottom:14px}.monthly-number{font-family:'Playfair Display',serif;font-size:26px}.monthly-sub{font-size:11px;color:rgba(255,255,255,.72);line-height:1.5;margin-top:3px}.monthly-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:14px}.monthly-line{background:rgba(255,255,255,.08);border-radius:9px;padding:9px}.monthly-line b{display:block;font-size:12px}.monthly-line span{font-size:10px;color:rgba(255,255,255,.68)}
  .match-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.match-count{border:1px solid var(--border);border-radius:10px;padding:10px;text-align:center}.match-count b{display:block;font-size:18px;color:var(--terra)}.match-count span{font-size:10px;color:var(--bark-lt)}
  .fit-explain{width:100%;border:1px solid var(--border);background:var(--ch-surface,#fff);border-radius:10px;padding:10px 12px;text-align:left;font:600 12px Figtree,sans-serif;color:var(--terra);cursor:pointer;margin-top:10px}.fit-matrix{display:none;margin-top:10px;border-top:1px solid var(--border)}.fit-matrix.open{display:block}.fit-matrix-row{display:grid;grid-template-columns:1fr 1fr 90px;gap:8px;padding:9px 0;border-bottom:1px solid var(--border);font-size:11px}.fit-matrix-row strong{color:var(--bark)}.fit-matrix-explain{grid-column:1/-1;color:var(--bark-lt);font-size:10px;line-height:1.4;margin-top:2px}
  .disclosure-note{font-size:11px;line-height:1.55;color:var(--bark-lt);background:var(--sand);border-radius:9px;padding:10px 12px;margin-top:10px}.property-history{width:100%;border-collapse:collapse}.property-history td{padding:9px 4px;border-bottom:1px solid var(--border);font-size:12px}.property-history td:last-child{text-align:right;font-weight:600}.demo-toast{position:fixed;right:20px;bottom:90px;z-index:500;background:var(--ch-fill-navy,var(--bark));color:#fff;border-radius:10px;padding:11px 14px;box-shadow:var(--shadow-lg);font-size:12px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.demo-toast.show{opacity:1;transform:none}
  .mobile-detail-bar{display:none}
  @media(max-width:700px){.detail-actions{justify-content:flex-start}.match-counts{grid-template-columns:repeat(3,1fr)}.fit-matrix-row{grid-template-columns:1fr}.monthly-grid{grid-template-columns:1fr 1fr}.mobile-detail-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:180;background:var(--cream);border-top:1px solid var(--border);padding:10px;gap:8px}.mobile-detail-bar button{flex:1;border:1px solid var(--border);border-radius:10px;padding:11px 5px;background:var(--ch-surface,#fff);font:600 12px Figtree,sans-serif}.mobile-detail-bar button.primary{background:var(--ch-fill-teal,var(--terra));color:#fff;border-color:var(--terra)}body.detail-open{padding-bottom:72px}}
