/* The city map (/map): a schematic of the districts at night, the city's places as category-coloured dots. */
.small { font-size: .88rem; }
.map-hero .lede { color: var(--muted); max-width: 72ch; }
.mi { vertical-align: -3px; flex: none; }

.map-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 6px 0 14px; }
.map-filters label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.map-filters label.grow { flex: 1 1 260px; }
.map-filters label.chk { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; color: var(--text); padding-bottom: 8px; }
.map-filters input[type=search], .map-filters select { min-height: 38px; background: var(--street-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.map-filters input[type=search]:focus, .map-filters select:focus { border-color: var(--sodium); outline: none; }

.map-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.map-cats a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--street-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; }
.map-cats a .mi { color: var(--pc); }
.map-cats a.on { border-color: var(--pc); box-shadow: inset 0 0 0 1px var(--pc); background: color-mix(in srgb, var(--pc) 14%, var(--street-2)); }
.map-cats a:hover { background: var(--street-3); }

.map-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 860px) { .map-main { grid-template-columns: 1fr; } }
.map-wrap { position: relative; }
.map-zoom { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.city-map { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at 30% 30%, #1d2340 0%, #11142a 70%); border: 1px solid var(--line); border-radius: 10px; touch-action: none; }
.city-map .dist { fill: var(--dc); fill-opacity: .08; stroke: var(--dc); stroke-opacity: .5; stroke-width: 1.2; }
.city-map .dl { fill: var(--dc); font: 800 20px var(--display); letter-spacing: .08em; text-transform: uppercase; opacity: .7; pointer-events: none; }
.city-map .al { fill: var(--muted); font: 600 11px var(--body); opacity: .8; pointer-events: none; }
.city-map .turf { fill: var(--tc, #9aa3c6); fill-opacity: .14; stroke: var(--tc, #9aa3c6); stroke-dasharray: 4 3; stroke-width: 1.4; }
.city-map .dot { fill: var(--pc); stroke: #0b0d16; stroke-width: 1.6; transition: r .12s; }
.city-map .dot.shut { fill-opacity: .4; }
.city-map .dot.sel { stroke: #fff; stroke-width: 2.6; r: 8; filter: drop-shadow(0 0 6px var(--pc)); }
.city-map .dot.ghost { fill: none; stroke: var(--pc); stroke-dasharray: 3 2; }
.city-map a.pin:hover .dot, .city-map a.pin:focus .dot { r: 8; stroke: #fff; }
.city-map a.pin[hidden] { display: none; }
.map-key { margin-top: 8px; }
.map-none { padding: 60px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

.map-side { display: grid; gap: 12px; }
.map-card { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-doc); padding: 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.map-card h2 { font-size: 1.9rem; margin-bottom: .2em; }
.map-card h3 { font-size: 1.3rem; }
.map-card .muted { color: var(--paper-muted); }
.map-card code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-size: .85em; }
.map-kicker { display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: var(--paper-muted); margin: 0 0 6px; }
.map-kicker .mi { color: color-mix(in srgb, var(--pc) 70%, #000); }
.map-st { display: inline-block; font-size: .8rem; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--street-3); color: var(--muted); margin-left: 6px; }
.map-card .map-st { margin-left: 0; background: var(--paper-2); color: var(--paper-muted); }
.map-st.open { background: rgba(82, 212, 157, .18); color: var(--go); }
.map-card .map-st.open { color: #1d7a52; }
.map-st.shut { background: rgba(242, 178, 60, .18); color: var(--sodium); }
.map-card .map-st.shut { color: #8a5a00; }
.map-turf { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, #9aa3c6); margin-right: 8px; flex: none; }
.sw.turf { border-radius: 2px; border: 1.5px dashed var(--paper-muted); background: transparent; }

.map-list { margin-top: 26px; columns: 2 340px; column-gap: 26px; }
.map-group { break-inside: avoid; margin-bottom: 18px; }
.map-group h2 { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; }
.map-group h2 .mi { color: var(--pc); }
.map-group ul { list-style: none; margin: 0; padding: 0; }
.map-li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.map-li a { text-decoration: none; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.map-li a:hover b { text-decoration: underline; }
.map-li .tag { margin-left: 4px; }
.map-li[hidden] { display: none; }
.map-foot { margin-top: 20px; }
