.map-page { height: 100vh; overflow: hidden; }
.map-page .nw-footer { display: none; }
.map-main { position: relative; height: calc(100vh - var(--header-h)); }
.map { position: absolute !important; inset: 0; }
.map-side { position: absolute; left: 16px; top: 16px; bottom: 16px; width: 340px; z-index: 650; overflow-y: auto; padding: 22px 20px;
  background: linear-gradient(180deg, rgba(10, 12, 20, .86), rgba(7, 8, 13, .8)); border: 1px solid rgba(0, 240, 255, .16);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  scrollbar-width: thin; scrollbar-color: #2a3046 transparent; }
.map-side::before { content: ""; position: absolute; left: 0; top: 0; width: 90px; height: 2px; background: var(--nw-yellow); }
.side-head h1 { font-size: 2rem; margin-bottom: 6px; }
.live-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--nw-dim); margin-bottom: 18px; }
.side-search { position: relative; }
.search-results { list-style: none; margin: 4px 0 0; padding: 0; max-height: 240px; overflow-y: auto; }
.search-results li button { width: 100%; text-align: left; background: var(--nw-raised); border: 1px solid var(--nw-line); border-top: 0; color: var(--nw-text); padding: 9px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; font: inherit; font-size: .9rem; }
.search-results li:first-child button { border-top: 1px solid var(--nw-line); }
.search-results li button:hover, .search-results li button:focus { background: var(--nw-raised2); color: var(--nw-yellow); }
.search-results .icon { width: 16px; height: 16px; color: var(--kc, var(--nw-cyan)); flex: none; }
.search-results small { margin-left: auto; color: var(--nw-dim); font-size: .72rem; font-family: var(--font-mono); text-transform: uppercase; }
.side-block { margin-top: 22px; }
.side-block h2 { font-size: .95rem; letter-spacing: .2em; color: var(--nw-dim); margin-bottom: 10px; }
.layer-list { display: grid; gap: 4px; }
.layer-toggle { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--nw-line); background: var(--nw-raised); cursor: pointer; user-select: none; font-size: .9rem; }
.layer-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.layer-toggle .icon { width: 18px; height: 18px; color: var(--kc, var(--nw-cyan)); }
.layer-toggle .count { font: 600 .72rem/1 var(--font-mono); color: var(--nw-dim); }
.layer-toggle:has(input:not(:checked)) { opacity: .45; }
.layer-toggle:has(input:focus-visible) { outline: 2px solid var(--nw-yellow); }
.event-list, .turf-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.event-list li button { all: unset; cursor: pointer; display: block; width: 100%; padding: 9px 10px; border: 1px solid rgba(252, 238, 10, .3); background: rgba(252, 238, 10, .05); box-sizing: border-box; }
.event-list li button b { color: var(--nw-yellow); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; display: block; }
.turf-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border: 1px solid var(--nw-line); background: var(--nw-raised); }
.turf-list .holder { display: flex; align-items: center; gap: 7px; }
.turf-list .holder i { width: 10px; height: 10px; background: var(--fc, var(--nw-dim2)); display: inline-block; }
.side-note { font-size: .78rem; margin-top: 22px; }
.side-toggle { display: none; }
.map { background: #090b10; z-index: 1; }
.map-coords { position: absolute; right: 16px; bottom: 30px; z-index: 600; background: rgba(7, 8, 13, .82); border: 1px solid rgba(0, 240, 255, .2); padding: 6px 11px; font-size: .74rem; color: var(--nw-text); pointer-events: none; letter-spacing: .06em; backdrop-filter: blur(6px); }
.map-coords:empty { display: none; }
.map-coords span { color: var(--nw-cyan); }
@media (max-width: 860px) {
  .map-main { grid-template-columns: 1fr; }
  .map-side { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 70%; clip-path: none; border: 0; border-top: 1px solid var(--nw-line2); transform: translateY(100%); transition: transform .2s; z-index: 700; }
  .map-coords { display: none; }
  .map-side.open { transform: none; }
  .side-toggle { display: block; position: absolute; left: 12px; bottom: 30px; z-index: 700; background: var(--nw-yellow); color: var(--nw-yellow-ink); border: 0; font: 700 .85rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .12em; padding: 11px 14px; cursor: pointer; }
}

/* Leaflet skin */
.leaflet-container { background: #090b10; font-family: var(--font-body); }
.leaflet-top.leaflet-right { top: 6px; right: 6px; }
.leaflet-control-zoom a { background: var(--nw-raised) !important; color: var(--nw-text) !important; border-color: var(--nw-line) !important; border-radius: 0 !important; }
.leaflet-bar { border: 1px solid var(--nw-line2) !important; border-radius: 0 !important; box-shadow: none !important; }
.leaflet-control-attribution { background: rgba(5, 6, 10, .75) !important; color: var(--nw-dim2) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--nw-dim) !important; }
.leaflet-tooltip.nw-tip { background: rgba(10, 12, 20, .95); color: var(--nw-text); border: 1px solid var(--nw-line2); border-radius: 0; box-shadow: none; font-size: .82rem; padding: 6px 9px; }
.leaflet-tooltip.nw-tip::before { display: none; }
.leaflet-tooltip.nw-tip small { display: block; color: var(--nw-dim); font: 600 .66rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--nw-raised); color: var(--nw-text); border-radius: 0; border: 1px solid var(--nw-line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.leaflet-popup-content { margin: 12px 14px; font-size: .88rem; }
.leaflet-popup-content h3 { font-size: 1.15rem; margin: 0 0 4px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--nw-dim); }

.poi { display: grid; place-items: center; width: 28px; height: 28px; background: #0a0c14; border: 1px solid var(--kc, var(--nw-cyan)); color: var(--kc, var(--nw-cyan)); clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); transition: transform .12s; }
.poi .icon { width: 16px; height: 16px; }
.poi:hover { transform: scale(1.15); background: #141826; }
.k-shop { --kc: #fcee0a; } .k-ripperdoc { --kc: #ff2a6d; } .k-bank, .k-atm { --kc: #05ffa1; } .k-garage, .k-dealer { --kc: #00f0ff; }
.k-job { --kc: #ff8c00; } .k-craft { --kc: #b967ff; } .k-hospital { --kc: #ffffff; } .k-apartment { --kc: #8fb4ff; } .k-faction { --kc: #ff2a3d; }
.k-bar { --kc: #ff7ad9; } .k-cityhall { --kc: #c9d1d9; } .k-police { --kc: #2f7bff; } .k-race { --kc: #ff2a6d; } .k-event { --kc: #fcee0a; }
.district-label { color: var(--dc, #fff); white-space: nowrap; pointer-events: none; text-align: center; transition: opacity .2s; }
.district-label span { font: 700 20px/1 var(--font-display); text-transform: uppercase; letter-spacing: .32em; text-shadow: 0 0 18px rgba(0, 0, 0, .95), 0 0 3px #000, 0 0 2px #000; }
.district-label small { display: block; margin-top: 4px; font: 600 10px/1.6 var(--font-mono); letter-spacing: .14em; color: #c7ccdb; text-shadow: 0 0 6px #000, 0 0 2px #000; }
.map.near .district-label { opacity: .28; }
.map.near .district-label small { display: none; }
.map.far .district-label span { font-size: 15px; letter-spacing: .24em; }
.map.far .district-label small { display: none; }
.pdot { filter: drop-shadow(0 0 4px currentColor); }
.leaflet-popup.nw-pop .leaflet-popup-content { margin: 0 0 12px; width: 268px !important; }
.leaflet-popup.nw-pop .leaflet-popup-content > *:not(.pop-card) { margin-left: 14px; margin-right: 14px; }
.leaflet-popup.nw-pop h3 { margin-top: 10px; color: var(--nw-yellow); }
.pop-card { display: block; width: 268px; height: 188px; object-fit: cover; border-bottom: 1px solid var(--nw-line2); }
.nw-tiles { image-rendering: auto; }
.ev-marker { width: 44px; height: 44px; position: relative; }
.ev-marker::before, .ev-marker::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--nw-yellow); border-radius: 50%; animation: evping 2s ease-out infinite; }
.ev-marker::after { animation-delay: 1s; }
.ev-marker span { position: absolute; inset: 14px; background: var(--nw-yellow); border-radius: 50%; box-shadow: 0 0 16px var(--nw-yellow); }
@keyframes evping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.map.far .poi { transform: scale(.55); opacity: .85; }
.map.far .poi:hover { transform: scale(.9); }
.map.mid .poi { transform: scale(.78); }
.map.mid .poi:hover { transform: scale(1.05); }
.map.far .district-label small { display: none; }

/* official faction emblem of the district holder */
.pop-fac { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.pop-fac.fac-ico-missing { display: none; }
