:root {
  --ink: #1b2228;
  --sub: #5b6670;
  --line: #e2e6ea;
  --bg: #f5f6f4;
  --card: #fff;
  --navy: #1d2a33;
  --accent: #f26b1d;
  --c1: #2563eb;
  --c0: #f08a24;
  --c2: #8a8f98;
  --ok: #1f8a5b;
  --warn: #b4441c;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.75 'Zen Kaku Gothic New', system-ui, sans-serif; line-break: strict; overflow-wrap: break-word; }
pb-t { word-break: keep-all; }
h1, h2, h3 { text-wrap: balance; line-height: 1.4; }
h1 { font-size: 1.55rem; margin: .4em 0 .5em; font-weight: 900; }
h2 { font-size: 1.2rem; margin: 2em 0 .7em; padding-left: .6em; border-left: 5px solid var(--accent); }
h3 { font-size: 1rem; margin: 1.2em 0 .5em; }
a { color: #1559c6; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 48px; }

.site-head { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1000; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 54px; gap: 12px; }
.logo { color: #fff; text-decoration: none; font-weight: 900; display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .98rem; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); font-size: 17px; }
.site-head nav { display: flex; gap: 14px; }
.site-head nav a { color: #dbe3ea; text-decoration: none; font-size: .9rem; white-space: nowrap; }

.hero { background: linear-gradient(135deg, #1d2a33 0%, #2c4352 100%); color: #fff; padding: 36px 0 28px; }
.hero h1 { font-size: 1.75rem; margin: 0 0 .3em; }
.hero p { margin: 0 0 1em; color: #d5dee5; }
.hero-search { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 0; }
.hero-search button { font: inherit; font-weight: 700; padding: 0 18px; min-height: 48px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; white-space: nowrap; }
.hero-search .locate { background: #fff; color: var(--navy); }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px !important; font-size: .9rem; }
.hero-stats b { font-size: 1.3rem; color: #fff; margin: 0 2px; }

.crumbs { font-size: .8rem; color: var(--sub); margin: 14px 0 0; }
.crumbs i { font-style: normal; margin: 0 6px; }
.crumbs a { color: var(--sub); }
.lead { color: var(--sub); }

.big-map { height: 62vh; min-height: 380px; border-radius: var(--radius); margin: 16px 0 8px; border: 1px solid var(--line); background: #eef1f0; }
.mini-map { height: 320px; border-radius: var(--radius); margin: 16px 0 8px; border: 1px solid var(--line); background: #eef1f0; }
.legend { font-size: .82rem; color: var(--sub); display: flex; gap: 14px; flex-wrap: wrap; margin: 0; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.dot.c1 { background: var(--c1); } .dot.c0 { background: var(--c0); } .dot.c2 { background: var(--c2); }
.map-list { margin-top: 12px; }
.map-list h3 { font-size: .95rem; color: var(--sub); font-weight: 500; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.chip:has(input:checked) { border-color: var(--accent); background: #fff3eb; }
.chip input { margin: 0; accent-color: var(--accent); }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.card[hidden] { display: none; }
.card h3 { margin: 0 0 .35em; font-size: 1rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: #1559c6; text-decoration: underline; }
.card p { margin: .25em 0 0; font-size: .86rem; }
.card .fee { color: var(--ink); }
.card .addr { color: var(--sub); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dist { color: var(--accent); font-weight: 700; white-space: nowrap; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge { font-size: .75rem; padding: 2px 8px; border-radius: 6px; background: #eef1f4; color: #33404b; white-space: nowrap; font-weight: 500; }
.b-big1 { background: #e3ecff; color: #1d47a8; }
.b-big0 { background: #fff0df; color: #9a4d00; }
.b-roof1 { background: #e2f4ea; color: #17633f; }
.b-warn { background: #fde8e1; color: var(--warn); }

.park h1 { margin-top: .5em; }
.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 14px; font-size: .92rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 7em; background: #f7f8f9; font-weight: 700; white-space: nowrap; }
.warn { background: #fde8e1; color: var(--warn); padding: 10px 14px; border-radius: 10px; font-size: .9rem; }
.map-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.map-links a { display: inline-block; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.near-st { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.near-st li { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.near-st span { color: var(--sub); font-size: .88rem; white-space: nowrap; }
.source { font-size: .8rem; color: var(--sub); margin-top: 28px; }

.reports { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; margin-top: 28px; }
.reports h2 { margin-top: 1em; }
.reports .sub { color: var(--sub); font-size: .86rem; margin-top: -.4em; }
.report-list .empty { color: var(--sub); font-size: .9rem; }
.report { border-top: 1px solid var(--line); padding: 12px 0; }
.report-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .88rem; }
.vac { font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
.vac4 { background: #e2f4ea; color: #17633f; } .vac3 { background: #eaf2ff; color: #1d47a8; } .vac2 { background: #fff0df; color: #9a4d00; } .vac1 { background: #fde8e1; color: var(--warn); }
.report p { margin: .3em 0 0; font-size: .92rem; }
.report .shared { color: var(--sub); font-size: .78rem; }
.report-photos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.report-photos img { height: 110px; border-radius: 8px; }
.report-form-wrap { margin-top: 12px; }
.report-form-wrap summary { display: inline-block; cursor: pointer; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 10px; list-style: none; }
.report-form-wrap summary::-webkit-details-marker { display: none; }
.report-form { display: grid; gap: 14px; margin-top: 16px; }
.report-form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 700; }
.report-form .chip { display: inline-flex; font-weight: 500; }
.report-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report-form legend { font-size: .9rem; font-weight: 700; margin-bottom: 6px; padding: 0; }
.report-form input[type=date], .report-form input[type=text], .report-form select, .report-form textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border: 1px solid #cfd5da; border-radius: 10px; background: #fff; width: 100%; }
.report-form button { font: inherit; font-weight: 700; min-height: 48px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; cursor: pointer; }
.report-form button:disabled { opacity: .5; }
.report-form .note { font-size: .8rem; color: var(--sub); margin: -6px 0 0; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--ok); } .form-msg.ng { color: var(--warn); }

.st-filter { font: inherit; font-size: 16px; width: 100%; max-width: 420px; padding: 10px 12px; border: 1px solid #cfd5da; border-radius: 10px; margin: 6px 0 14px; }
.st-grid, .ward-grid, .cond-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.st-grid li[hidden] { display: none; }
.st-grid a, .st-grid span, .ward-grid a { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.st-grid span { color: var(--sub); }
.st-grid b, .ward-grid b { color: var(--accent); font-size: .85rem; }
.cond-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cond-grid a { display: block; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px; text-decoration: none; }
.cond-grid b { display: block; font-size: 1.1rem; }
.cond-grid span { color: #f9b48a; font-size: .9rem; }
.more { text-align: right; font-size: .9rem; }

.leaflet-popup-content { font: 13px/1.6 'Zen Kaku Gothic New', system-ui, sans-serif; margin: 10px 12px; }
.leaflet-popup-content b { font-size: 14px; }
.pop-fee { color: var(--sub); }

.prose { max-width: 760px; }
.site-foot { background: var(--navy); color: #c3ced7; font-size: .85rem; padding: 24px 0 32px; }
.site-foot a { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-note { color: #a9b6c1; }

@media (max-width: 600px) {
  h1 { font-size: 1.35rem; }
  .hero h1 { font-size: 1.45rem; }
  .site-head nav { gap: 10px; }
  .logo { font-size: .9rem; }
  .big-map { height: 56vh; }
  .spec th { width: 6em; }
}
