/* Full screen map page. The map uses fixed positioning between the header and the bottom nav,
   so it fills the screen on iOS Safari without relying on 100vh. */
.mf-page{--mf-top:64px;--mf-bot:0px;overflow:hidden;overscroll-behavior:none}
.mf-page #ftr{display:none}
.mf-page.has-bottom-nav{padding-bottom:0}
.mf-map .leaflet-control-attribution{max-width:none;white-space:nowrap;font-size:11px!important}
.mf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.mf-wrap{position:fixed;left:0;right:0;top:var(--mf-top);bottom:var(--mf-bot);height:calc(100vh - var(--mf-top) - var(--mf-bot));height:calc(100dvh - var(--mf-top) - var(--mf-bot));z-index:1;margin:0;padding:0}
@supports (height:100dvh){.mf-wrap{height:auto}}
.mf-map{position:absolute;inset:0;background:#e8eef3}
.mf-top{position:absolute;top:12px;left:12px;right:12px;z-index:1100;display:flex;gap:8px;pointer-events:none}
.mf-top .mf-btn{pointer-events:auto}
.mf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #28323d;background:rgba(13,17,22,.92);color:#eef2f6;font:600 15px/1 var(--f,system-ui,sans-serif);text-decoration:none;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.mf-btn[aria-expanded=true],.mf-btn[aria-pressed=true]{background:#c94f0e;border-color:#f26b1d}
.mf-wide{width:100%}
.mf-panel{position:absolute;z-index:1200;top:66px;left:12px;width:320px;max-height:calc(100% - 90px);overflow:auto;background:rgba(13,17,22,.96);border:1px solid #28323d;border-radius:14px;padding:14px;color:#eef2f6;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.mf-panel[hidden]{display:none}
.mf-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.mf-panel h2{font-size:17px;margin:0}
.mf-x{min-height:44px;padding:0 12px;background:none;border:1px solid #36414d;border-radius:8px;color:#eef2f6;font:600 14px/1 var(--f,system-ui,sans-serif);cursor:pointer}
.mf-tog{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid #1f2830;cursor:pointer;min-height:44px}
.mf-tog input{width:24px;height:24px;flex:none;margin:2px 0 0;accent-color:#f26b1d}
.mf-tog b{display:block;font-size:15px}
.mf-tog small{display:block;color:#aab4bf;font-size:13px;line-height:1.35;margin-top:2px}
.mf-panel-actions{display:grid;gap:8px;margin-top:10px}
.mf-fine{color:#8995a3;font-size:12px;line-height:1.4;margin:12px 0 0}
.mf-fine a{color:#9cc7ff}
.mf-legend{position:absolute;z-index:1050;left:12px;bottom:28px;background:rgba(255,255,255,.94);color:#1e293b;border-radius:10px;padding:8px 10px;font:500 12px/1.35 var(--f,system-ui,sans-serif);box-shadow:0 2px 10px rgba(0,0,0,.25);max-width:240px}
.mf-legend:empty{display:none}
.mf-legend div{display:flex;align-items:center;gap:6px;margin:2px 0}
.mf-legend i{display:inline-block;width:14px;height:14px;border-radius:50%;flex:none}
.mf-legend .mf-grad{width:60px;height:10px;border-radius:5px;background:linear-gradient(90deg,rgba(253,186,116,.7),rgba(234,88,12,.85),rgba(185,28,28,.95))}
.mf-credit{display:none;position:absolute;z-index:1050;left:10px;top:calc(10px + env(safe-area-inset-top,0px));background:rgba(255,255,255,.94);color:#1e293b;border-radius:8px;padding:5px 9px;font:600 12px/1.3 var(--f,system-ui,sans-serif);box-shadow:0 2px 10px rgba(0,0,0,.2)}
.mf-exit{display:none;position:absolute;z-index:1300;top:calc(10px + env(safe-area-inset-top,0px));right:10px;min-height:40px;padding:0 12px;border-radius:8px;border:0;background:rgba(13,17,22,.75);color:#fff;font:600 13px/1 var(--f,system-ui,sans-serif);cursor:pointer;transition:opacity .4s}
.mf-exit.fade{opacity:0;pointer-events:none}
.mf-fallback{position:absolute;inset:0;z-index:400;background:#e8eef3;overflow:auto}
.mf-fallback svg{width:100%;height:100%}
/* Site markers */
.mf-pin{display:flex;align-items:center;gap:4px;white-space:nowrap}
.mf-pin .mf-ico{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#1e293b;color:#fff;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.4);flex:none}
.mf-pin.k-nuclear .mf-ico{background:#6d28d9}
.mf-pin.k-other .mf-ico{background:#0f766e;width:22px;height:22px}
.mf-pin .mf-ico svg{width:15px;height:15px}
.mf-pin .mf-lab{font:700 11px/1.2 var(--f,system-ui,sans-serif);color:#0f172a;background:rgba(255,255,255,.9);padding:2px 5px;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.mf-nolabels .mf-lab{display:none}
.mf-pop{font:14px/1.4 var(--f,system-ui,sans-serif);color:#0f172a;max-width:260px}
.mf-pop b{display:block;font-size:15px}
.mf-pop ul{margin:6px 0 0;padding-left:18px}
.mf-pop li{margin:3px 0}
.mf-pop small{color:#475569}
/* Clean view for screenshots */
.mf-page.mf-clean #hdr,.mf-page.mf-clean #bu-root,.mf-page.mf-clean .bu-bar,.mf-page.mf-clean #beta-banner,.mf-page.mf-clean .bottom-nav,.mf-page.mf-clean .tg-strip,.mf-page.mf-clean .mf-top,.mf-page.mf-clean .mf-panel,.mf-page.mf-clean .leaflet-control-zoom,.mf-page.mf-clean .leaflet-control-container .leaflet-top{display:none!important}
.mf-page.mf-clean .mf-wrap{top:0;bottom:0;height:auto}
.mf-page.mf-clean .mf-credit{display:block}
.mf-page.mf-clean .mf-exit{display:block}
.mf-page.mf-clean .mf-legend{bottom:22px}
@media (max-width:860px){
  .mf-panel{left:0;right:0;top:auto;bottom:0;width:auto;max-height:70%;border-radius:16px 16px 0 0;padding:14px 16px calc(16px + env(safe-area-inset-bottom,0px))}
  .mf-page:not(.mf-clean) .mf-panel{padding-bottom:16px}
  .mf-legend{bottom:24px;max-width:200px}
  .mf-page.mf-clean .mf-legend{bottom:calc(22px + env(safe-area-inset-bottom,0px))}
}
