.nav nav a[aria-current=page] { color: var(--ink); }
.map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; outline-offset: -4px; }
.map-viewport:active { cursor: grabbing; }
.map-world { position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; }
.map-world img { display: block; width: 100%; height: auto; user-select: none; }
.map-pins { position: absolute; inset: 0; }
.map-pin { position: absolute; pointer-events: auto; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%) scale(var(--inverse-scale, 1)); }
.map-pin::after { content: ''; display: block; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: white; box-shadow: 0 0 0 2px #151515, 0 1px 7px #000; }
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-pressed=true] { z-index: 1; background: #ffffff40; }
.map-pin[aria-pressed=true]::after { width: 14px; height: 14px; }
.map-tiles { position: absolute; inset: 0; }
.map-world .map-tiles img { position: absolute; }
.map-screen { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: #181819; }
.map-screen .top, .map-screen footer { flex: none; }
.map-page { position: relative; flex: 1; min-height: 320px; }
.map-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.map-layout { height: 100%; }
.map-view { position: absolute; inset: 0; }
.map-overlay { position: relative; height: 100%; padding-block: 14px; pointer-events: none; }
.map-ui { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr) minmax(0, 156px); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; height: 100%; }
.map-ui > * { pointer-events: auto; }
.map-tools { grid-area: 1 / 1; justify-self: start; display: grid; grid-template-columns: 44px; gap: 4px; }
.map-tools button, .map-close { min-height: 44px; border: 1px solid var(--line); background: #181819; color: white; font-size: 24px; line-height: 1; }
.map-tools button:hover, .map-close:hover { background: #333; }
.map-detail { display: grid; gap: 8px; min-width: 0; min-height: 0; border: 1px solid var(--line); background: #181819f5; }
.map-sidebar { grid-area: 1 / 3 / -1; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); gap: 4px; min-width: 0; min-height: 0; padding: 6px; }
.map-sidebar .search { border: 0; background: transparent; padding: 4px; }
.map-sidebar .search input { width: 100%; min-width: 0; }
.map-sidebar .count { margin: 0; padding-right: 6px; text-align: right; }
.map-list { margin: 0; padding: 0 3px 0 0; overflow: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #646464 transparent; }
.map-list a { display: block; width: 100%; min-height: 25px; padding: 4px 6px; border: 0; background: transparent; color: var(--ink); font: 700 11px/1.25 var(--font); text-align: right; }
.map-list a[aria-current=true] { background: #ffffff16; text-decoration: underline; text-underline-offset: 3px; }
.map-list a:focus-visible { outline-offset: -2px; }
.map-detail { grid-area: 3 / 1; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; padding: 18px; border-color: #686868; }
.map-detail[hidden] { display: none; }
.map-detail h2 { grid-area: 1 / 1; font-size: 26px; line-height: 1.1; overflow-wrap: anywhere; }
.map-close { grid-area: 1 / 2; border: 0; }
.map-detail a { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 720px) {
  .map-ui { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .map-sidebar { grid-area: 4 / 1 / 5 / -1; justify-self: end; width: min(156px, 100%); max-height: min(24dvh, 180px); }
  .map-list a { min-height: 32px; }
  .map-detail { padding: 8px; }
}

.map-intro { margin: 0; padding: 4px; background: #181819ed; font-size: 11px; line-height: 1.35; text-align: right; }
.map-list li[hidden] { display: none; }
