/* ФПСМ · map styling shared by the trail page and the Е-мапа (light + dark) */
.leaflet-container{font-family:Golos,system-ui,sans-serif!important;background:#c9d2cc !important;width:100%;isolation:isolate;z-index:0}
#map.leaflet-container{height:100%}
.tmap.leaflet-container{height:440px}
/*
  Do not filter .leaflet-tile-pane — CSS filter creates a containing block and clips
  tiles to a small rectangle (Chromium). Dim the images instead.
*/
html[data-theme="dark"] .leaflet-container{background:#1e2e29 !important}
@media (max-width:700px){
  .tmap.leaflet-container{height:320px}
}
html[data-theme="dark"] .leaflet-tile{filter:brightness(.88) saturate(.92)}
/* zoom + attribution follow the theme */
.leaflet-bar{border:1px solid var(--line)!important;border-radius:10px!important;overflow:hidden;box-shadow:var(--shadow-sm)!important}
.leaflet-bar a{width:38px!important;height:38px!important;line-height:36px!important;font:400 22px/36px Golos!important;background:var(--surface)!important;color:var(--head)!important;border-bottom:1px solid var(--line)!important}
.leaflet-bar a:last-child{border-bottom:0!important}
.leaflet-bar a:hover{background:var(--surface-2)!important}
.leaflet-control-attribution{background:var(--glass)!important;color:var(--muted)!important;font-size:13px!important;line-height:1.4;padding:1px 8px!important;border-radius:6px 0 0 0}
.leaflet-control-attribution a{color:var(--link)!important}
/* markers */
.mk{display:grid!important;place-items:center;border-radius:50%;box-shadow:0 0 0 2.5px #fff,0 3px 8px rgba(0,0,0,.35);color:#fff}
.mk-start,.mk-end{background:none;border-radius:0;box-shadow:none;overflow:visible}
.mk-start{color:var(--heritage,#056D04)}
.mk-end{color:var(--sos,#C62828)}
.mk-start svg,.mk-end svg{display:block;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.mk-peak{background:#fff;color:#102B25;border-radius:6px}
.mk-wp{background:#fff;color:#102B25;box-shadow:0 0 0 2px #193932,0 2px 6px rgba(0,0,0,.3)}
.mk-wp b{font:600 13px Golos}
.mk-hut{background:#9C5418;border-radius:9px}
.mk-hut.on{box-shadow:0 0 0 3px #fff,0 0 0 6px #9C5418,0 4px 12px rgba(0,0,0,.4);z-index:1000!important}
.mk-hover{position:absolute;pointer-events:none}
/* map "you are here" on the profile hover */
.mk-cur{background:#193932;box-shadow:0 0 0 3px #fff,0 2px 8px rgba(0,0,0,.4)}
.leaflet-tooltip.ttip{background:var(--solid-bg);color:var(--solid-fg);border:0;border-radius:7px;font:600 13px Golos;padding:4px 10px;box-shadow:var(--shadow-sm)}
.leaflet-tooltip-top.ttip:before{border-top-color:var(--solid-bg)}
.leaflet-popup.hut-pop-wrap .leaflet-popup-content-wrapper{background:var(--surface,#fff);color:var(--text,#102B25);border-radius:14px;box-shadow:var(--shadow,0 10px 30px rgba(16,43,37,.12));border:1px solid var(--line,#E3DFD3);padding:0}
.leaflet-popup.hut-pop-wrap .leaflet-popup-content{margin:14px 16px 16px;min-width:220px;max-width:280px}
.leaflet-popup.hut-pop-wrap .leaflet-popup-tip{background:var(--surface,#fff)}
.hut-pop strong{display:block;font:700 18px/1.25 Oswald,sans-serif;color:var(--head,#193932)}
.hut-pop .mtn{margin:4px 0 0;font-size:14px;color:var(--muted,#4A615D)}
.hut-pop p{margin:10px 0 0;font-size:14.5px;line-height:1.45}
.hut-pop .k{display:block;font-size:13px;font-weight:600;color:var(--muted,#4A615D);margin-bottom:2px}
.hut-pop a{color:var(--link,#056D04);font-weight:600}
