.points-map-shell { width: min(100% - 32px, 1120px); margin: 0 auto; padding: 8px 0 16px; }
.points-map-head h1 { margin: 0 0 4px; font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: -.02em; }
/* When: one segmented control. */
.points-map-time { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 26rem; padding: 3px; border-radius: 12px; background: var(--line); }
.points-map-time button { min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
.points-map-time button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 3px rgb(0 0 0 / 15%); }
/* Type: the legend doubles as on/off toggles. */
.points-map-kinds { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 4px; }
.points-map-kinds button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.points-map-kinds button[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / 20%); }
.dot-f { background: #14634a; } .dot-m { background: #e0a800; } .dot-p { background: #2f6fb3; }
.points-map-summary { min-height: 1.3em; margin: 0 0 8px; color: var(--muted); font-size: .85rem; }
.points-map-area { position: relative; height: calc(100dvh - 330px); min-height: 380px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.points-map-canvas { position: absolute; inset: 0; }
/* Search and locate float on the map. */
.points-map-search { position: absolute; top: 8px; left: 8px; right: 60px; z-index: 700; }
.points-map-search input { width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; box-shadow: 0 2px 10px rgb(0 0 0 / 18%); }
.points-map-results { list-style: none; margin: 4px 0 0; padding: 4px; border-radius: 12px; background: var(--paper); box-shadow: 0 6px 20px rgb(0 0 0 / 20%); }
.points-map-results[hidden] { display: none; }
.points-map-results button { width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.points-map-results button:hover, .points-map-results button:focus { background: var(--wash, var(--line)); }
.points-map-empty { padding: 10px; color: var(--muted); font-size: .9rem; }
.points-map-locate { position: absolute; top: 8px; right: 8px; z-index: 700; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 10px rgb(0 0 0 / 18%); cursor: pointer; }
.points-map-locate svg { width: 22px; height: 22px; }
.points-map-locate[aria-busy="true"] svg { animation: points-map-spin 1s linear infinite; }
@keyframes points-map-spin { to { transform: rotate(360deg); } }
.points-map-area .leaflet-bottom.leaflet-right { margin-bottom: 36px; }
.map-credit { position: absolute; right: 8px; bottom: 8px; z-index: 500; max-width: 70%; font-size: .72rem; color: #333; }
.map-credit summary { display: grid; place-items: center; width: 24px; height: 24px; margin-left: auto; border-radius: 50%; background: rgb(255 255 255 / 85%); font-weight: 700; font-style: italic; cursor: pointer; list-style: none; }
.map-credit summary::-webkit-details-marker { display: none; }
.map-credit[open] { padding: 4px 8px; border-radius: 8px; background: rgb(255 255 255 / 92%); }
.map-credit[open] summary { display: inline-grid; width: 18px; height: 18px; margin: 0 4px 0 0; vertical-align: middle; }
.points-map-card { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 800; padding: 14px 16px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 25%); }
.points-map-card[hidden] { display: none; }
.points-map-card h2 { margin: 2px 32px 2px 0; font-size: 1.15rem; }
.points-map-kind, .points-map-district { margin: 0; color: var(--muted); font-size: .85rem; }
.points-map-status { margin: 8px 0 12px; font-weight: 650; white-space: pre-line; }
.points-map-status.is-closed { color: var(--warning); }
.points-map-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.points-map-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
.points-map-error { position: absolute; inset: auto 8px 8px; z-index: 600; padding: 12px; border-radius: 12px; background: var(--paper); }
@media (min-width: 900px) {
  .points-map-area { height: calc(100dvh - 260px); }
  .points-map-search { right: auto; width: 340px; }
  .points-map-card { left: 12px; right: auto; bottom: auto; top: 64px; width: 340px; }
}
.points-map-tip { margin: -4px 0 8px; color: var(--muted); font-size: .82rem; }
.points-map-near { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 800; max-height: 60%; overflow-y: auto; padding: 12px 14px 8px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px rgb(0 0 0 / 25%); }
.points-map-near[hidden] { display: none; }
.points-map-near h2 { margin: 2px 36px 0 0; font-size: 1.05rem; }
.points-map-near .points-map-district a { font-weight: 600; }
.points-map-near ul { list-style: none; margin: 8px 0 0; padding: 0; }
.points-map-near li + li { border-top: 1px solid var(--line); }
.points-map-near li button { display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; width: 100%; padding: 9px 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.points-map-near li .dot { grid-row: 1 / 4; margin-top: 4px; }
.near-label { color: var(--muted); font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; }
.points-map-near li strong { font-size: .95rem; }
.near-meta { color: var(--muted); font-size: .85rem; }
@media (min-width: 900px) { .points-map-near { left: 12px; right: auto; bottom: auto; top: 64px; width: 340px; } }
.points-map-intro { margin: 0 0 12px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
