
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root { --ivory: #F4F6F9; --ink: #0B1D33; --navy: #16345C; --bronze: #0D2338; --warm-rule: #D7DCE3; --muted: #5A6472; --card-bg: #FFFFFF;
        --c-all: #64748B; --c-vet: #2563EB; --c-sold: #C9922B; }
html, body { background: var(--ivory); color: var(--ink); font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
header.top { padding: 22px 0; border-bottom: 1px solid var(--warm-rule); position: sticky; top: 0; background: rgba(250,248,244,0.96); backdrop-filter: blur(12px); z-index: 60; }
.top-row { display: flex; align-items: baseline; justify-content: space-between; }
.logo { font-family: 'Source Serif 4', Georgia, serif; font-weight: 700; font-size: 19px; letter-spacing: -0.2px; color: var(--navy); }
.nav-links { display: flex; gap: 28px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--bronze); }
@media (max-width: 700px) { .nav-links { gap: 14px; font-size: 12.5px; } .nav-links a.mob-hide { display: none; } }
.page-hero { background: var(--navy); padding: 56px 0 60px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: #AFC2D6; font-weight: 600; margin-bottom: 18px; }
h1.page-title { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(27px, 4.5vw, 50px); font-weight: 700; letter-spacing: -0.4px; line-height: 1.15; color: #F4F6F9; margin-bottom: 18px; max-width: 720px; }
.hero-sub { font-size: clamp(14px, 1.6vw, 17px); color: rgba(250,248,244,0.72); max-width: 600px; line-height: 1.75; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 32px; }
.hero-stats div { color: #F4F6F9; }
.hero-stats b { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.hero-stats span { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: #AFC2D6; font-weight: 600; }
.content-section { padding: 52px 0; border-bottom: 1px solid var(--warm-rule); }
.sec-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--bronze); margin-bottom: 12px; }
h2.sec-title { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(20px, 2.8vw, 28px); font-weight: 700; color: var(--navy); letter-spacing: -0.2px; margin-bottom: 20px; line-height: 1.25; }
h3.sub-title { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.body-text { font-size: 16px; line-height: 1.8; color: var(--ink); }
.body-text p { margin-bottom: 16px; }
.body-text p:last-child { margin-bottom: 0; }

/* ---- map ---- */
.map-wrap { background: var(--card-bg); border: 1px solid var(--warm-rule); position: relative; }
.map-shell { position: relative; height: 640px; overflow: hidden; }
#map { position: absolute; inset: 0; }
#map canvas { outline: none; }
.map-panel { position: absolute; z-index: 10; left: 14px; top: 14px; width: 300px; max-height: calc(100% - 28px); background: rgba(255,255,255,0.975); border: 1px solid var(--warm-rule); box-shadow: 0 18px 44px -22px rgba(11,29,51,0.55); display: flex; flex-direction: column; overflow: hidden; }
.map-panel .mp-head { padding: 14px 15px 12px; border-bottom: 1px solid var(--warm-rule); }
.map-panel input { width: 100%; border: 1px solid var(--warm-rule); padding: 9px 11px; font-size: 14px; font-family: inherit; color: var(--ink); outline: 0; background: #fff; }
.map-panel input:focus { border-color: var(--navy); }
.mp-hint { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.legend { padding: 12px 15px; border-bottom: 1px solid var(--warm-rule); display: flex; flex-direction: column; gap: 8px; }
.lg { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer; background: none; border: 0; font-family: inherit; padding: 2px 0; text-align: left; width: 100%; }
.lg:hover { color: var(--navy); }
.lg.off { opacity: 0.38; }
.lg .sw { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(11,29,51,0.28); flex: 0 0 auto; }
.lg .lg-n { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-results { overflow-y: auto; flex: 1; min-height: 0; }
.mp-item { padding: 9px 15px; border-bottom: 1px solid #EEF1F5; cursor: pointer; }
.mp-item:hover { background: #F1F5FB; }
.mp-item b { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.mp-item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.mp-empty { padding: 16px 15px; font-size: 12.5px; color: var(--muted); }
.maplibregl-popup-content { font-family: 'Inter', sans-serif; padding: 14px 16px; border-radius: 0; box-shadow: 0 18px 44px -20px rgba(11,29,51,0.6); border: 1px solid var(--warm-rule); max-width: 280px; }
.pop-name { font-family: 'Source Serif 4', Georgia, serif; font-size: 15.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.pop-meta { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.pop-tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 3px 7px; margin-bottom: 7px; color: #fff; }
.pop-a { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--navy); border-bottom: 1px solid currentColor; }
.pop-approx { font-size: 10.5px; color: #9AA4B2; margin-top: 7px; font-style: italic; }
.map-note { padding: 12px 16px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--warm-rule); background: #FBFCFD; line-height: 1.6; }
.map-fail { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .map-shell { height: 78vh; min-height: 460px; }
  .map-panel { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 52%; }
  .map-panel .mp-head { padding: 11px 12px 10px; }
  .legend { padding: 9px 12px; gap: 6px; }
  .mp-results { max-height: 34vh; }
  .mp-hint { display: none; }
}

/* ---- city list ---- */
.city-index { font-size: 13px; line-height: 2.1; color: var(--muted); margin-bottom: 26px; }
.city-index a { color: var(--navy); font-weight: 500; }
.city-index a:hover { text-decoration: underline; }
.city-block { border-bottom: 1px solid var(--warm-rule); }
.city-block summary { padding: 15px 2px; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; list-style: none; }
.city-block summary::-webkit-details-marker { display: none; }
.city-block summary::after { content: '+'; color: var(--muted); font-size: 17px; line-height: 1; }
.city-block[open] summary::after { content: '\2212'; }
.city-name { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--navy); }
.city-count { font-size: 12px; color: var(--muted); margin-left: auto; }
.city-list { list-style: none; padding: 0 0 16px; }
.city-list li { font-size: 13px; line-height: 1.65; color: var(--muted); padding: 5px 0; border-top: 1px solid #EEF1F5; }
.pl-name { color: var(--ink); font-weight: 600; }
.pl-spec { color: #8A94A3; }

.callout { background: #fff; border: 1px solid var(--warm-rule); border-left: 3px solid var(--navy); padding: 22px 24px; margin-top: 26px; }
.callout h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.callout p { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.cta-section { background: var(--navy); padding: 66px 0; text-align: center; }
.cta-section h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(23px, 3.5vw, 36px); font-weight: 700; color: #F4F6F9; letter-spacing: -0.3px; margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: rgba(250,248,244,0.72); max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.btn-cta { display: inline-flex; align-items: center; gap: 10px; padding: 16px 36px; background: var(--bronze); color: var(--ivory); font-size: 15px; font-weight: 600; letter-spacing: 0.2px; border: none; cursor: pointer; transition: opacity 0.15s ease; }
.btn-cta:hover { opacity: 0.88; }
.cta-note { font-size: 12.5px; color: rgba(250,248,244,0.45); margin-top: 18px; }
footer { border-top: 1px solid var(--warm-rule); padding: 36px 0 56px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--bronze); }
footer a:hover { text-decoration: underline; }
footer .footer-lines > div { margin: 4px 0; }

/* ---- statewide additions ---- */
.mp-head select { width:100%; margin-top:8px; border:1px solid var(--warm-rule); padding:8px 10px; font-size:13.5px; font-family:inherit; color:var(--ink); background:#fff; -webkit-appearance:none; appearance:none; border-radius:0; background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%); background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%; background-size:5px 5px,5px 5px; background-repeat:no-repeat; }
.mp-head input[disabled]{background:#F7F8FA;color:#98A2B0;}
table.geo-table { width:100%; border-collapse:collapse; font-size:14px; }
table.geo-table th { text-align:left; font-size:10.5px; letter-spacing:1.4px; text-transform:uppercase; color:var(--muted); font-weight:700; padding:0 10px 9px 0; border-bottom:1px solid var(--warm-rule); }
table.geo-table td { padding:9px 10px 9px 0; border-bottom:1px solid #EEF1F5; vertical-align:top; }
table.geo-table td.num { text-align:right; font-variant-numeric:tabular-nums; color:var(--muted); white-space:nowrap; }
table.geo-table a { color:var(--navy); font-weight:600; }
table.geo-table a:hover { text-decoration:underline; }
.crumbs { font-size:12.5px; color:var(--muted); padding:16px 0 0; }
.crumbs a { color:var(--navy); }
.crumbs a:hover { text-decoration:underline; }
.pill-row { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 4px; }
.pill { display:inline-block; font-size:12.5px; font-weight:600; color:var(--navy); border:1px solid var(--warm-rule); background:#fff; padding:7px 13px; }
.pill:hover { border-color:var(--navy); }
@media (max-width:700px){ table.geo-table{font-size:13px;} .hero-stats{gap:22px;} .hero-stats b{font-size:23px;} }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table-scroll table.geo-table { min-width: 100%; }
@media (max-width: 700px) {
  table.geo-table th, table.geo-table td { padding-right: 14px; white-space: nowrap; }
  table.geo-table td:first-child, table.geo-table th:first-child { white-space: normal; min-width: 130px; }
  .city-list li, .pl-addr { overflow-wrap: anywhere; }
  .pill { max-width: 100%; overflow-wrap: anywhere; }
}
