#zxg-header { z-index: 30; }
#zxg-header .gta-guide-link.is-active { color: #ff91c7; }
.leonida-map { max-width: 1500px; padding-block: 24px; }
.map-heading, .map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.map-heading { justify-content: space-between; margin-bottom: 18px; }
.map-explorer { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); min-height: 540px; height: min(76vh, 900px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.map-sidebar { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; background: var(--panel); padding: 14px; }
.map-sidebar label { font-size: .9rem; margin: 0; }
.map-filters { border-block: 1px solid var(--line); padding-block: 8px; }
.map-filters summary { cursor: pointer; }
.map-filters .map-actions { margin-block: 8px; }
#category-options { display: grid; gap: 4px; }
#category-options label { display: flex; gap: 7px; align-items: center; }
.map-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.map-result-header { justify-content: space-between; margin-bottom: 8px; }
#pin-count, .map-credit { font-size: .85rem; }
#pin-list { list-style: none; }
#pin-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; border-top: 1px solid var(--line); }
.pin-select { cursor: pointer; text-align: left; border: 0; padding: 8px 0; background: none; overflow-wrap: anywhere; }
.pin-select:hover { color: var(--accent); }
.pin-select[aria-current="true"] { color: #ffb0d6; }
.pin-toggle { min-width: 48px; }
#more-pins { margin-top: 8px; }
.map-stage { position: relative; min-width: 0; min-height: 0; background: #0a1523; }
#leonida-canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#leonida-canvas:active { cursor: grabbing; }
#leonida-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.map-controls { position: absolute; inset: 10px 10px auto; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.map-controls button { pointer-events: auto; }
.map-controls button:first-child { margin-right: auto; }
.map-detail { position: absolute; bottom: 10px; left: 10px; right: 10px; max-width: 450px; max-height: 55%; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.map-detail h2 { margin-bottom: 4px; }
.map-detail p { margin-bottom: 8px; }
.map-detail li { list-style: none; margin-top: 5px; }
.map-detail a { text-decoration: underline; }
.map-credit { margin-top: 12px; }
.map-explorer:fullscreen, .map-explorer.map-expanded { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; }
.map-explorer.map-expanded { position: fixed; inset: 0; z-index: 100; height: 100dvh; }
body:has(.map-expanded) { overflow: hidden; }
@media (max-width: 680px) {
  .map-explorer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(280px, 58vh) minmax(220px, 42vh); height: auto; }
  .map-stage { grid-row: 1; }
  .map-sidebar { grid-row: 2; }
  .map-explorer:fullscreen, .map-explorer.map-expanded { grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); }
}
