.map-tools { display:grid; gap:5px }
#cityMapToggle { width:51px; min-height:49px; font-size:10px; font-weight:650; gap:1px; padding:4px; white-space:nowrap }
#cityMapToggle svg { width:21px; height:21px }
#cityMap {
 width:min(900px,calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
 max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
 padding:20px; border:1px solid #ccded5; border-radius:22px;
 color:#173d39; background:#fffef8; box-shadow:0 18px 60px #123f3b55;
 overscroll-behavior:contain;
}
#cityMap::backdrop { background:#0d232b80 }
.city-map-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px }
.city-map-header h2 { margin:0; font:600 27px/1.15 Georgia,serif }
.city-map-header p { margin:3px 0 0; font-size:13px }
.city-map-close { width:44px; height:44px; padding:0; font-size:25px }
.city-map-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(185px,26%); align-items:start; gap:16px }
.city-map-figure {
 position:relative; height:clamp(320px,67dvh,660px);
 overflow:hidden; isolation:isolate; border-radius:15px; background:#d6e9e9;
}
.city-map-figure canvas,.city-map-figure #cityMapLabels { position:absolute; inset:0; width:100%; height:100% }
#cityMapLabels { pointer-events:none }
.city-map-label {
 position:absolute; transform:translate(-50%,-50%); min-height:34px;
 padding:0 4px; background:transparent; color:#133937; white-space:nowrap; pointer-events:auto;
 font-size:clamp(11px,2.9vw,14px); font-weight:700;
 text-shadow:1px 1px #fffef8,-1px 1px #fffef8,-1px -1px #fffef8,1px -1px #fffef8;
}
.city-map-label:is(:hover,:focus-visible,[aria-pressed=true]) {
 z-index:1; text-shadow:none; background:#fffef8; box-shadow:0 1px 6px #173d3930;
}
.city-map-label:focus-visible { outline-offset:-2px }
.city-map-street {
 position:absolute; transform:translate(-50%,-50%); color:#3a5146; pointer-events:none;
 font-size:clamp(10px,2.8vw,12px); font-weight:650; white-space:nowrap;
 text-shadow:1px 1px #fffef8,-1px 1px #fffef8,-1px -1px #fffef8,1px -1px #fffef8;
}
.city-map-north,.city-map-scale,.city-map-key {
 position:absolute; padding:4px 7px; border-radius:8px; background:#fffef8eb;
 font-size:11px; font-weight:650; pointer-events:none;
}
.city-map-north { top:8px; left:8px }
.city-map-scale { bottom:8px; left:8px }
.city-map-scale span { display:block; min-width:max-content; border-bottom:2px solid currentColor; text-align:center }
.city-map-key { display:flex; align-items:center; gap:6px; top:8px; right:8px }
.city-map-key i { width:13px; height:10px; border:2px solid #087f81; background:#7bc8bd55; border-radius:2px }
#cityMapLoading { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; padding:20px; text-align:center }
.city-map-details { border-radius:14px; padding:14px; background:#edf4ec }
.city-map-picker { display:grid; gap:6px; font-weight:650 }
#cityMapLocality { min-height:44px; width:100%; max-width:none; color:#173d39; background:#fffef8; border:1px solid #94aea2 }
#cityMapDescription { font-size:13px; min-height:41px }
.city-map-actions { display:grid; gap:6px }
.city-map-actions button { width:100%; min-height:44px; padding:8px }
#cityMapVisit { color:#214c43; background:#fffef8 }
#cityMapVisit:hover { background:#dcebe2 }
.city-map-sources { margin:10px 0 0; font-size:11px; color:#455e55 }
@media (max-width:620px) {
 #cityMap { padding:11px }
 .city-map-header { margin-bottom:8px }
 .city-map-header h2 { font-size:23px }
 .city-map-layout { grid-template-columns:minmax(0,1fr); gap:8px }
 .city-map-figure { height:clamp(305px, calc(100dvh - 307px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 515px) }
 .city-map-details { padding:8px }
 .city-map-picker { grid-template-columns:auto minmax(0,1fr); align-items:center }
 .city-map-actions { grid-template-columns:repeat(2,minmax(0,1fr)); font-size:12px }
 #cityMapDescription { min-height:0; margin:5px 0 }
}
@media (max-width:370px) {
 .city-map-label { font-size:10px; min-height:30px }
}
