/* html.rd tokens from darbix.lt dbx-redesign.css (needed by section F toggle). */
html.rd{--rd-navy:var(--dbx-navy,#0A1430);--rd-n2:var(--dbx-navy-2,#0E1B3D);--rd-n3:var(--dbx-navy-3,#16254F);--rd-lime:#C6F432;--rd-on:#0A1530;
  --rd-tx:#fff;--rd-tx2:var(--dbx-tx2-dk,#AEB8D0);--rd-mut:var(--dbx-mut-dk,#8F9AB6);--rd-line:rgba(255,255,255,.10);--rd-line2:rgba(255,255,255,.16);--rd-f:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif}

/* Country-site chrome: map fills the space under the header and above the tab bar. */
body.cs[data-page="map"] .ph{display:none}
body.cs[data-page="map"] .wrap:has(#jm-app){padding-left:0;padding-right:0;max-width:none}
body.cs[data-page="map"] #jm-app,body.cs[data-page="map"] #jm-app .jm-host{
  display:block;height:calc(100svh - 8.6rem);min-height:420px;width:100%;
}
body.cs[data-page="map"] #jm-app .jm{height:100%;min-height:420px;width:100%;}
@media(min-width:900px){
  body.cs[data-page="map"] #jm-app,body.cs[data-page="map"] #jm-app .jm-host{
    height:calc(100svh - 4.4rem);min-height:560px
  }
}

/* Dark tiles/pins from darbix.lt mx-theme.css; list/map toggle from dbx-redesign.css section F. Copied, not rewritten. */
/* 2) dark map */
html body .jm .jm-osm-dark{filter:invert(1) hue-rotate(205deg) brightness(.82) contrast(.92) saturate(.55)!important}
html body .jm .leaflet-container{background:#0b1224!important}
html body .jm .jm-dn{filter:drop-shadow(0 6px 14px rgba(0,0,0,.5))!important}
html body .jm .jm-dn b{color:#fff!important}
html body .jm .jm-dnl,html body .jm .jm-cb u{color:#fff!important;text-shadow:0 1px 3px #000,0 0 6px #000!important}
html body .jm .leaflet-control-attribution{background:rgba(10,20,48,.75)!important;color:#AEB8D0!important}
html body .jm .leaflet-control-attribution a{color:#C6F432!important}
html body .jm .leaflet-bar a{background:#10224f!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important}

html body .jm .jm-dn:after{background:#0A1430!important}
html body .jm .jm-pin{color:#fff}

/* ================= F. map: bigger list, collapsible filters, list/map toggle ================= */
@media (min-width:900px){
 html.rd body .jm.rd-jm{grid-template-columns:clamp(400px,38vw,560px) 1fr!important}
 html.rd body .jm.rd-jm #jm-panel{min-height:0;height:100%;overflow:hidden}
 html.rd body .jm.rd-jm .jm-panel-body{flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 html.rd body .jm.rd-jm .jm-panel-body>*{flex:none}
 html.rd body .jm.rd-jm .jm-selc:not([hidden]){max-height:45%;overflow:auto}
 html.rd body .jm.rd-jm #jm-list{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain;padding-top:4px}
 html.rd body .jm.rd-jm .jm-top{padding-top:12px;padding-bottom:6px}
}
html.rd body .jm.rd-jm .jm-filters{gap:10px!important}
html.rd body .jm.rd-jm:not(.rd-fopen) .jm-filters>.moreflt{display:none!important}
html.rd body .jm.rd-jm .rd-mtog{display:flex;align-items:center;gap:10px;width:100%;height:46px;padding:0 14px;border-radius:14px;border:1.5px solid var(--rd-line2);background:transparent!important;color:var(--rd-tx)!important;font:750 14px/1 var(--rd-f);cursor:pointer;text-align:left;box-shadow:none!important}
html.rd body .jm.rd-jm .rd-mtog svg:first-child{color:var(--rd-lime);stroke:var(--rd-lime);flex:none}
html.rd body .jm.rd-jm .rd-mtog span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.rd body .jm.rd-jm .rd-mtog .rd-chev{flex:none;opacity:.7;transition:transform .15s}
html.rd body .jm.rd-jm.rd-fopen .rd-mtog{border-color:var(--rd-lime)}
html.rd body .jm.rd-jm.rd-fopen .rd-mtog .rd-chev{transform:rotate(180deg)}
html.rd body .jm.rd-jm .rd-mtog:hover{border-color:var(--rd-lime)}
html.rd body .jm.rd-jm .rd-msw{display:none}
@media (max-width:899px){
 html.rd body .jm.rd-jm .rd-msw{display:flex;position:absolute;left:50%;transform:translateX(-50%);bottom:calc(min(312px,52%) + 12px);z-index:801;background:var(--rd-n2);border:1px solid var(--rd-line2);border-radius:999px;padding:4px;gap:2px;box-shadow:0 10px 30px rgba(0,4,20,.55);transition:bottom .28s ease}
 html.rd body .jm.rd-jm[data-rds="half"] .rd-msw{bottom:calc(64% + 12px)}
 html.rd body .jm.rd-jm[data-rds="full"] .rd-msw{bottom:16px}
 html.rd body .jm.rd-jm .rd-msw button{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:999px;border:0;background:transparent!important;color:var(--rd-tx)!important;font:800 14px/1 var(--rd-f);cursor:pointer}
 html.rd body .jm.rd-jm .rd-msw button.on{background:var(--rd-lime)!important;color:var(--rd-on)!important}
 html.rd body .jm.rd-jm .rd-msw button.on svg{stroke:var(--rd-on)}
 html.rd body .jm.rd-jm #jm-panel[data-s="full"]{--sheet-h:calc(100% - 8px)}
}


/* Lime D mark — from darbix.lt dlfix.css */
html body .jm .jm-mk{font-size:0;background:url(/assets/light/logo-d.svg) center/100% no-repeat;border-radius:10px}
