/* Keep navigation and display switches together without taking space from the map. */
.rail{padding:18px 14px 14px}
.rail>.eyebrow{margin-bottom:12px}
#map-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;flex-shrink:0}
.map-choice{margin:0;min-height:32px;padding:5px 6px;justify-content:center;border:1px solid #eaf0f2;text-align:center}
.map-choice .map-icon{display:none}
.map-choice strong{font-size:11.5px;line-height:1.35;word-break:keep-all}
.map-choice.active{border-color:#a6d9d0}
.map-options{margin-top:14px;border-top:1px solid #e4eeed;padding-top:12px}
.map-options h2{font-size:13px;letter-spacing:0;margin:0 4px 9px;display:flex;align-items:center;justify-content:space-between}
.map-options h2 span{font-size:9px;margin:0;padding:3px 5px;font-weight:500}
.layer-row{display:flex;align-items:center;gap:7px;width:100%;min-height:30px;margin:0;padding:4px;background:transparent;border-radius:6px;text-align:left;cursor:pointer;color:#536e79;font-size:11px}
.layer-row:hover{background:#f2f8f7}
.layer-row:disabled{cursor:default;opacity:.48}
.layer-symbol{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#f0f6f5;font-size:11px;flex-shrink:0;font-weight:700;color:#637d84}
.layer-pmc{color:#008b74;background:#e6f5ef}.layer-scav{color:#4385bc;background:#eaf3fc}.layer-transit{color:#9770bf;background:#f3edfa}.layer-spawn{color:#849344;background:#f2f5e6}.layer-boss{color:#c57469;background:#fbeee9}.layer-btr{color:#ac8950;background:#f8f2e6}.layer-quest{color:#e78861;background:#fff0e8}
.layer-name{flex:1;white-space:nowrap}.layer-count{font-size:9px;min-width:10px;text-align:right;color:#839aa0;font-variant-numeric:tabular-nums}
.switch-track{position:relative;width:28px;height:16px;flex-shrink:0;border-radius:20px;background:#dce5e8;box-shadow:inset 0 0 0 1px #cdd9dc;transition:background .15s}
.switch-track:after{content:'';position:absolute;left:3px;top:3px;width:10px;height:10px;border-radius:50%;background:white;box-shadow:0 1px 3px #3b637633;transition:transform .15s}
[aria-checked=true]>.switch-track,.layer-row input:checked~.switch-track{background:#159c8c;box-shadow:inset 0 0 0 1px #138e80}
[aria-checked=true]>.switch-track:after,.layer-row input:checked~.switch-track:after{transform:translateX(12px)}
.layer-row input[type=checkbox]{position:absolute;width:1px;height:1px;opacity:0;border:0}
.layer-row:has(input:focus-visible){outline:3px solid #3faeac;outline-offset:1px}
.layer-quest-options{border-top:1px solid #edf2f2;margin-top:7px;padding-top:7px}
.layer-help{font-size:10px;color:#8aa1a6;line-height:1.6;margin:8px 4px 0}
.layer-status{font-size:11px;color:#8c6a44;line-height:1.6;padding:7px 4px}.layer-status button{background:#f3ede1;color:#7c633d;border-radius:5px;margin-top:5px;padding:4px 7px}
.rail-bottom{display:none}
.map-toolbar .layer-legend{display:flex;align-items:center;gap:10px;color:#7b929a;font-size:11px}
.layer-legend span{display:flex;align-items:center;gap:4px}.layer-legend i{font-style:normal;font-size:10px;font-weight:700}
#map-points{position:absolute;inset:0;pointer-events:none}
.poi-marker{position:absolute;pointer-events:auto;transform:translate(-50%,-50%) scale(var(--map-inverse-scale,1));width:25px;height:25px;display:grid;place-items:center;border:1.5px solid currentColor;border-radius:50%;background:#fffffff5;color:#008b74;box-shadow:0 2px 5px #244e5a20;font:700 11px 'Segoe UI',sans-serif;padding:0;z-index:1;cursor:pointer}
.poi-scav{color:#4385bc}.poi-transit{color:#9770bf;border-radius:7px;font-size:17px}.poi-spawn{color:#849344;width:17px;height:17px;font-size:12px;border:0;background:#f7fbe9db}.poi-boss{color:#c57469;width:20px;height:20px;background:#fff3ef}.poi-btr{color:#ac8950;border-radius:7px}
.poi-marker:hover,.poi-marker:focus-visible{z-index:6;background:white;box-shadow:0 0 0 4px #008b821c}
.poi-label{display:none;position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);background:#fff;border:1px solid #d8e6e7;color:#45626c;font-size:11px;font-weight:500;border-radius:5px;padding:4px 7px;white-space:nowrap;pointer-events:none;box-shadow:0 3px 12px #214c5520}
.poi-marker:hover .poi-label,.poi-marker:focus-visible .poi-label{display:block}
#map-viewport.is-dragging .poi-marker{cursor:grabbing}
#map-popup h3{margin:8px 4px;font-size:15px;color:#315664}#map-popup p{margin:4px;font-size:12px;line-height:1.7;color:#7c939c}
@media(max-width:1180px){.rail{padding-left:8px;padding-right:8px}.layer-row{gap:5px;font-size:10.5px}.layer-symbol{width:18px;height:18px}.layer-count{font-size:8px}.switch-track{width:26px}[aria-checked=true]>.switch-track:after,.layer-row input:checked~.switch-track:after{transform:translateX(10px)}}
@media(max-width:850px){.rail{padding:10px 12px}#map-list{display:flex;gap:7px}.map-choice{min-width:90px;min-height:36px;padding:8px 12px}.map-options{margin-top:11px;padding-top:10px}.map-options h2{font-size:12px;margin-bottom:7px}.map-options h2 span{margin-left:auto}.layer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px 9px}.layer-row{min-height:32px;font-size:11px;padding:4px}.layer-quest-options{display:flex;gap:14px;margin-top:5px;padding-top:5px}.layer-quest-options .layer-row{width:auto;min-width:145px}.layer-help{margin-top:3px;font-size:9px}.map-toolbar .layer-legend{gap:8px;font-size:10px}}
@media(max-width:500px){.layer-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.map-options h2 span{font-size:8px}.layer-row{gap:6px}.layer-quest-options .layer-row{min-width:0;flex:1}.map-toolbar .layer-legend{gap:7px}.map-toolbar select{max-width:108px}}
@media(prefers-reduced-motion:reduce){.switch-track,.switch-track:after{transition:none}}
#map-popup.boss-popup{width:300px;max-width:calc(100% - 32px);top:14px;max-height:calc(100% - 66px)}.boss-profile{margin-top:12px}.boss-photo{position:relative;display:block;border-radius:8px;overflow:hidden;background:#e9efef}.boss-photo img{width:100%;height:190px;object-fit:contain;display:block}.boss-photo>span{position:absolute;right:6px;bottom:6px;font-size:10px;padding:3px 6px;border-radius:4px;color:white;background:#294b53dd}.boss-photo-credit{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:10px;color:#69878b;margin-top:9px}.boss-photo-credit>span{width:100%;font-size:9px}.boss-photo-credit a{color:#168779}
