:root {
      --pine: #16382b;
      --pine-deep: #0e241c;
      --moss: #2a5642;
      --sage: #7d9b7a;
      --sand: #f3eee4;
      --cream: #fbf8f2;
      --paper: #fffdf9;
      --cedar: #8b5a36;
      --rust: #b85623;
      --gold: #c9a227;
      --gold-soft: #f7efd2;
      --ink: #1b211d;
      --muted: #5b635e;
      --line: #e3dacd;
      --shadow: 0 10px 28px rgba(22, 56, 43, 0.08);
      --radius: 16px;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body {
      font-family: "DM Sans", "Segoe UI", sans-serif;
      background: var(--sand);
      color: var(--ink);
      line-height: 1.55;
      min-width: 320px;
    }
    a { color: var(--moss); }
    img { max-width: 100%; }
    .sample-banner {
      position: sticky;
      top: 0;
      z-index: 2000;
      background: #ead9a0;
      color: #3d3110;
      text-align: center;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      padding: 8px 16px;
      border-bottom: 1px solid #d4bc6a;
    }
    header.site {
      background: var(--pine);
      color: #f6f1e8;
    }
    .header-inner {
      max-width: 1180px;
      margin: 0 auto;
      padding: 14px 20px 16px;
      display: flex;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: inherit;
      flex: 0 0 auto;
    }
    .logo-mark {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: #b85623;
      display: grid;
      place-items: center;
    }
    .logo-word {
      font-family: Fraunces, Georgia, serif;
      font-size: 1.35rem;
      font-weight: 600;
      line-height: 1.1;
    }
    .logo-word span {
      display: block;
      font-family: "DM Sans", sans-serif;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      opacity: 0.75;
    }
    .search {
      flex: 1 1 260px;
      display: flex;
      background: #fff;
      border-radius: 999px;
      overflow: hidden;
      min-width: 220px;
    }
    .search input {
      flex: 1;
      border: 0;
      padding: 10px 16px;
      font: inherit;
      font-size: 15px;
      outline: none;
      color: var(--ink);
    }
    .search button {
      border: 0;
      background: var(--rust);
      color: #fff;
      font: inherit;
      font-weight: 600;
      padding: 10px 18px;
      cursor: default;
    }
    nav.main {
      display: flex;
      gap: 18px;
      font-size: 14.5px;
      font-weight: 500;
    }
    nav.main a {
      color: #e8efe9;
      text-decoration: none;
    }
    nav.main a:hover { color: #fff; }
    .wrap {
      max-width: 1180px;
      margin: 0 auto;
      padding: 20px 20px 64px;
    }
    .crumb {
      font-size: 13px;
      color: var(--muted);
      margin-bottom: 10px;
    }
    .crumb a { color: var(--muted); text-decoration: none; }
    h1 {
      font-family: Fraunces, Georgia, serif;
      font-size: clamp(1.8rem, 3.4vw, 2.6rem);
      font-weight: 600;
      line-height: 1.15;
      color: var(--pine-deep);
      margin-bottom: 10px;
    }
    .intro {
      max-width: 46rem;
      color: var(--muted);
      margin-bottom: 28px;
      font-size: 1.02rem;
    }
    .logo-word span.logo-domain {
      letter-spacing: 0.04em;
      text-transform: none;
      font-size: 11px;
      opacity: 0.8;
    }
    .foot-domain {
      display: block;
      margin-top: 4px;
      color: #e8efe9;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .layout {
      display: grid;
      grid-template-columns: 340px 1fr;
      gap: 28px;
      align-items: start;
    }
    .sidebar {
      position: sticky;
      top: 48px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    aside.filters {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 14px 16px 10px;
      box-shadow: var(--shadow);
    }
    aside.filters h2 {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: var(--cedar);
      margin-bottom: 14px;
    }
    .filter-group {
      margin-bottom: 11px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }
    .filter-group:last-child { border-bottom: 0; margin-bottom: 0; }
    .filter-group h3 {
      font-size: 13.5px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .filter-group label {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13.5px;
      color: #3d4640;
      margin: 3px 0;
      cursor: default;
    }
    .filter-group select, .filter-group input[type="range"] {
      width: 100%;
      margin-top: 4px;
    }
    .filter-group select {
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 7px 8px;
      font: inherit;
      background: #fff;
      color: var(--ink);
    }
    .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
    .listings h2.section {
      font-family: Fraunces, Georgia, serif;
      font-size: 1.25rem;
      margin: 0 0 14px;
      color: var(--pine);
    }
    .count {
      font-family: "DM Sans", sans-serif;
      font-size: 14px;
      font-weight: 500;
      color: var(--muted);
    }
    .card {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: 200px 1fr;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .card.featured {
      border: 2px solid #c9a227;
      background: linear-gradient(180deg, #fffaf0 0%, #fffdf9 40%);
      box-shadow: 0 12px 32px rgba(196, 162, 39, 0.18);
      margin-bottom: 22px;
    }
    .thumb {
      min-height: 180px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #eef4ee;
      padding: 16px;
      text-align: center;
      position: relative;
    }
    .thumb svg { width: 72px; height: 72px; opacity: 0.9; }
    .thumb .ph {
      font-size: 11px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      opacity: 0.85;
      font-weight: 600;
    }
    .t1 { background: linear-gradient(160deg, #1f4a38, #3d6b52); }
    .t2 { background: linear-gradient(160deg, #2a3f55, #4d6d86); }
    .t3 { background: linear-gradient(160deg, #5a3a22, #8a6240); }
    .t4 { background: linear-gradient(160deg, #1e3d4a, #3c6a78); }
    .t5 { background: linear-gradient(160deg, #3a2a4a, #6a4d7a); }
    .t6 { background: linear-gradient(160deg, #2b4020, #5a7840); }
    .t7 { background: linear-gradient(160deg, #4a2e1c, #7a5234); }
    .t8 { background: linear-gradient(160deg, #173a40, #2f6a6e); }
    .t9 { background: linear-gradient(160deg, #3a3320, #6d6240); }
    .tf { background: repeating-linear-gradient(135deg, #c9a227 0 10px, #d8b84a 10px 20px); color: #3d3110; }
    .tf svg { color: #3d3110; opacity: 0.8; }
    .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
    .card-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
    }
    .name {
      font-family: Fraunces, Georgia, serif;
      font-size: 1.22rem;
      font-weight: 600;
      color: var(--pine-deep);
      line-height: 1.2;
    }
    .town { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
    .price {
      text-align: right;
      flex: 0 0 auto;
      font-weight: 700;
      color: var(--pine);
      font-size: 15px;
      line-height: 1.3;
    }
    .price small {
      display: block;
      font-weight: 500;
      color: var(--muted);
      font-size: 11.5px;
    }
    .badge {
      display: inline-block;
      background: #c9a227;
      color: #2b240c;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      padding: 4px 8px;
      border-radius: 999px;
      margin-bottom: 6px;
    }
    .example-note {
      font-size: 13px;
      color: #6a5414;
      background: var(--gold-soft);
      border-radius: 8px;
      padding: 8px 10px;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .tag {
      background: #edf3ee;
      color: var(--pine);
      font-size: 11.5px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 999px;
    }
    .facts { font-size: 14px; color: #334038; }
    .facts li { margin-left: 1.1em; margin-bottom: 2px; }
    .source {
      font-size: 11.5px;
      color: var(--muted);
    }
    .source a { color: var(--muted); }
    .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-weight: 600;
      font-size: 13.5px;
      border-radius: 999px;
      padding: 8px 14px;
      border: 1px solid var(--line);
      background: #fff;
      color: var(--pine);
    }
    .btn.primary {
      background: var(--rust);
      border-color: var(--rust);
      color: #fff;
    }
    .btn.ghost { background: transparent; }
    .btn.disabled {
      background: #efe8da;
      color: #6a655b;
      border-color: #e3dacd;
      pointer-events: none;
    }
    .map-box, .faq, .claim, footer.site {
      margin-top: 28px;
    }
    .map-box, .faq, .claim {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px 22px;
    }
    .map-box h2, .faq h2, .claim h2 {
      font-family: Fraunces, Georgia, serif;
      font-size: 1.3rem;
      color: var(--pine);
      margin-bottom: 10px;
    }
    .map-art {
      height: 220px;
      border-radius: 12px;
      background: #d9e4d8;
      border: 1px dashed #b7c7b4;
      display: grid;
      place-items: center;
      color: var(--pine);
      text-align: center;
      padding: 20px;
      position: relative;
      overflow: hidden;
    }
    .map-art svg { width: min(100%, 420px); height: 180px; }
    .map-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
    .faq details {
      border-top: 1px solid var(--line);
      padding: 12px 0;
    }
    .faq details:first-of-type { border-top: 0; }
    .faq summary {
      font-weight: 650;
      cursor: pointer;
      color: var(--pine-deep);
    }
    .faq p { margin-top: 8px; color: #3d4640; font-size: 14.5px; }
    .claim {
      background: var(--pine);
      color: #f4efe6;
      border-color: var(--pine);
    }
    .claim h2 { color: #fff; }
    .claim p { color: #d7e3da; max-width: 42rem; margin-bottom: 14px; }
    .claim a { color: #e8efe9; text-decoration: underline; }
    .claim .btn.primary { background: var(--rust); }

    .hero {
      position: relative;
      background: #070b16;
      color: #f6f1e8;
      overflow: hidden;
      min-height: 560px;
    }
    .hero-art {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }
    .hero-art picture {
      display: block;
      width: 100%;
      height: 100%;
    }
    .hero-art img.hero-photo {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: left center;
    }
    .hero-inner {
      position: relative;
      z-index: 2;
      max-width: 1180px;
      margin: 0 auto;
      padding: 48px 20px 72px;
    }
    .hero-copy {
      position: relative;
      max-width: 36rem;
      z-index: 2;
      padding: 8px 8px 12px 0;
    }
    .hero-copy::before {
      content: "";
      position: absolute;
      z-index: -1;
      top: -28px;
      left: -48px;
      right: -72px;
      bottom: -20px;
      background:
        linear-gradient(90deg, rgba(7,11,22,0.82) 0%, rgba(7,11,22,0.58) 58%, rgba(7,11,22,0) 100%),
        linear-gradient(180deg, rgba(7,11,22,0.25) 0%, rgba(7,11,22,0) 100%);
      pointer-events: none;
    }
    .hero .crumb { color: #d7cbb8; }
    .hero h1 {
      color: #fffdf6;
      text-shadow: 0 2px 18px rgba(0,0,0,0.45);
      max-width: 18ch;
    }
    .hero .intro {
      color: #f0e6d4;
      max-width: 36rem;
      margin-bottom: 0;
      text-shadow: 0 1px 10px rgba(0,0,0,0.4);
    }
    .sponsored {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 14px 16px 12px;
      box-shadow: var(--shadow);
    }
    .sponsored-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
    }
    .sponsored-slot {
      width: 300px;
      height: 250px;
      max-width: 100%;
      background: #fff;
      border: 1px solid var(--line);
      overflow: hidden;
    }
    .sponsored-slot img {
      display: block;
      width: 300px;
      height: 250px;
      max-width: 100%;
      object-fit: contain;
    }
    .sponsored-note {
      font-size: 11px;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.4;
    }
    .map-box {
      position: relative;
      z-index: 1;
      overflow: hidden;
    }
    .map-box #cluster-map {
      width: 100%;
      height: 420px;
      border-radius: 12px;
      background: #d5e3d4;
    }
    .leaflet-container {
      font-family: "DM Sans", "Segoe UI", sans-serif;
      z-index: 1 !important;
    }
    .about-box {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 22px 22px 20px;
      margin: 22px 0 0;
      box-shadow: var(--shadow);
    }
    .about-box h2 {
      font-family: Fraunces, Georgia, serif;
      font-size: 1.25rem;
      color: var(--pine);
      margin-bottom: 10px;
    }
    .about-box p { color: #334038; font-size: 15px; max-width: 46rem; margin-bottom: 8px; }
    .about-box p:last-child { margin-bottom: 0; }

    .tag.confirm {
      background: #f4efe4;
      color: #6a5420;
      border: 1px solid #e0d3b0;
    }
    .thumb.illustrated {
      padding: 0;
      overflow: hidden;
      justify-content: flex-end;
      min-height: 180px;
    }
    .thumb.illustrated .thumb-art {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 1;
      object-fit: cover;
      object-position: center 55%;
    }
    .thumb.illustrated .ph {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 2;
      background: #0b0f0d;
      color: #f4efe4;
      width: 100%;
      padding: 7px 8px;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.05em;
      line-height: 1.3;
      text-align: center;
      opacity: 1;
    }
    a.sponsored-link {
      display: block;
      width: 300px;
      height: 250px;
      max-width: 100%;
    }
    a.sponsored-link img {
      display: block;
      width: 300px;
      height: 250px;
      max-width: 100%;
      object-fit: contain;
    }
    .art-credit {
      font-size: 11.5px;
      color: var(--muted);
      margin-top: 8px;
    }
    footer.site .art-credit { color: #b9c2b8; margin-top: 10px; }
    footer.site {
      background: var(--pine-deep);
      color: #c9d4cc;
      padding: 28px 20px 40px;
      margin-top: 48px;
    }
    .foot-inner {
      max-width: 1180px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-size: 14px;
    }
    footer.site a { color: #e8efe9; text-decoration: none; margin-right: 14px; }
    .fine { font-size: 12px; opacity: 0.8; margin-top: 10px; width: 100%; }
    @media (max-width: 860px) {
      .layout { grid-template-columns: 1fr; display: flex; flex-direction: column; }
      .sidebar { display: contents; }
      aside.filters { position: static; order: 1; }
      .listings, section.listings { order: 2; }
      .sponsored { order: 3; }
      .card, .card.featured { grid-template-columns: 1fr; }
      .thumb { min-height: 140px; }
      nav.main { width: 100%; }
      .price { text-align: left; }
    }

    .banner-short { display: none; }
    .filter-drawer { border: 0; }
    .filter-drawer > summary {
      display: none;
      font-weight: 700;
      font-size: 14px;
      cursor: pointer;
      list-style: none;
      padding: 2px 0 4px;
    }
    .filter-drawer > summary::-webkit-details-marker { display: none; }
    .filter-drawer > summary::after { content: " ▾"; opacity: 0.6; }
    .map-art svg { width: min(100%, 480px); height: 200px; }
    @media (max-width: 860px) {
      .banner-full { display: none; }
      .banner-short { display: inline; }
      .sample-banner { font-size: 12px; padding: 7px 12px; }
      .filter-drawer > summary { display: block; }
      aside.filters { padding: 12px 16px; }
      aside.filters h2 { display: none; }
      .card-top { flex-direction: column; gap: 6px; }
      .price { text-align: left; }
      h2.section { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
      .count { white-space: nowrap; }
    }

    @media (max-width: 860px) {
      .hero {
        min-height: 0;
        display: flex;
        flex-direction: column;
        background: linear-gradient(180deg, #070b16 0%, #10192e 70%, #1c2b55 100%);
      }
      .hero-inner {
        position: relative;
        padding: 28px 16px 22px;
        order: 1;
      }
      .hero-copy { max-width: none; padding: 0; }
      .hero-copy::before { display: none; }
      .hero h1 { max-width: none; }
      .hero-art {
        position: relative;
        order: 2;
        width: 100%;
        height: 260px;
        flex: 0 0 260px;
      }
      .hero-art img.hero-photo {
        object-position: center center;
      }
      .sponsored { display: flex; flex-direction: column; align-items: center; }
      .sponsored-label, .sponsored-note { text-align: center; }
      .map-box #cluster-map { height: 320px; }
      .wrap { padding-top: 18px; }
      .intro { margin-bottom: 18px; font-size: 0.98rem; }
      h1 { margin-bottom: 8px; }
    }

    /* CP4: working filters */
    .card.hidden-by-filter { display: none !important; }
    .filter-status {
      font-size: 13px;
      color: var(--muted);
      margin: 0 0 10px;
    }
    .filter-group label { cursor: pointer; }
    .filter-group input[type="checkbox"],
    .filter-group select,
    .filter-group input[type="range"] { accent-color: var(--moss); }
    .filter-group select:disabled,
    .filter-group input:disabled { cursor: default; }
    .filter-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
    .filter-actions button {
      font: inherit;
      font-size: 13px;
      font-weight: 600;
      border: 1px solid var(--line);
      background: var(--paper);
      color: var(--pine);
      border-radius: 999px;
      padding: 6px 12px;
      cursor: pointer;
    }
    .filter-empty {
      display: none;
      padding: 16px 18px;
      background: var(--paper);
      border: 1px dashed var(--line);
      border-radius: var(--radius);
      color: var(--muted);
      margin-bottom: 16px;
    }
    .filter-empty.show { display: block; }
    .nearby-note {
      font-size: 14.5px;
      color: var(--muted);
      margin: 0 0 16px;
    }
    .pin-legend {
      font-size: 13px;
      color: var(--muted);
      margin-top: 8px;
    }

    .panel {
      background: var(--paper);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px 22px;
    }
    .panel.prose p + p, .prose p + p { margin-top: 10px; }
    .panel h2 { font-family: Fraunces, Georgia, serif; margin-bottom: 8px; }

    .price .promo-label { display: block; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--cedar); }
    .price small.regular { display: block; font-weight: 500; color: var(--muted); }


/* Launch-prep: decision tokens and notices (not in the CP4 preview). */
.sample-banner { display: none; }
.decision {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f7efd2;
  color: #16382b;
  border: 1px dashed #8b5a36;
  padding: 0 0.35em;
  border-radius: 3px;
  white-space: nowrap;
}
.form-notice, .turnstile-slot, .confirm-panel {
  border: 1px solid var(--line, #e3dacd);
  background: #fffdf9;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 12px 0;
}
.map-decision {
  font-size: 0.92rem;
  color: var(--muted, #5b635e);
  margin: 0 0 12px;
}


/* Launch v2: WCAG AA contrast for primary and disabled buttons.
   Rust #c45c26 on white was 4.28:1; disabled #8a8376 on #efe8da was 3.08:1. */
:root, html {
  --rust: #b85623;
}
html[data-forms="hidden"] .forms-live-only { display: none !important; }
html[data-forms="live"] .forms-hidden-only { display: none !important; }
/* Filter checkboxes: WCAG 2.5.8 24px target size. */
.filter-group label {
  min-height: 28px;
  margin: 2px 0;
}
.filter-group input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  margin: 0;
  flex-shrink: 0;
}
.search button,
.btn.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.btn.disabled, .btn:disabled {
  background: #efe8da;
  color: #6a655b;
}

/* Launch v2: email contact card as the main action on claim/corrections/owners. */
.contact-route.contact-card h2 { margin-bottom: 10px; }
.contact-route.contact-card > p { margin-bottom: 14px; }
.contact-route.contact-card .btn.primary {
  display: inline-flex;
  margin: 0 0 8px;
}
.contact-route.contact-card h3 { margin-top: 8px; }
.contact-route.contact-card ul {
  margin: 0 0 0 1.2em;
  color: #334038;
  font-size: 15.5px;
}
.contact-route.contact-card li { margin-bottom: 6px; }
.contact-route.contact-card .review-timing { margin: 18px 0 0; }
