/* V50 — interaktīvie sektoru laukumi virs Milmēnu dīķa satelīta kartes */
#pondMap.sector-map-v50{isolation:isolate;background:#09291f}
#pondMap.sector-map-v50>img{z-index:0;position:relative}
#pondMap .sector-zones{position:absolute;inset:0;width:100%;height:100%;z-index:2;overflow:visible;pointer-events:none}
#pondMap .sector-zone{fill:rgba(72,145,91,.27);stroke:rgba(211,239,213,.78);stroke-width:.18;vector-effect:non-scaling-stroke;pointer-events:all;cursor:pointer;transition:fill .18s ease,stroke .18s ease,filter .18s ease}
#pondMap .sector-zone:hover{fill:rgba(80,181,108,.42);stroke:#e9f7e8;filter:drop-shadow(0 0 2px rgba(83,220,125,.55))}
#pondMap .sector-zone.selected{fill:rgba(241,184,47,.48);stroke:#ffd86c;stroke-width:.3;filter:drop-shadow(0 0 3px rgba(246,191,50,.8))}
#pondMap .sector-zone.occupied{fill:rgba(181,67,61,.46);stroke:#f4aaa4;cursor:not-allowed;filter:none}
#pondMap .sector-pin.sector-label{z-index:4!important;width:auto!important;height:auto!important;min-width:24px!important;padding:2px 5px!important;border:0!important;border-radius:7px!important;background:rgba(8,48,35,.55)!important;box-shadow:none!important;color:#f4fff5!important;font-size:12px!important;line-height:18px!important;text-shadow:0 1px 3px #001c14;backdrop-filter:blur(2px);transition:background .18s,transform .18s!important}
#pondMap .sector-pin.sector-label:hover{transform:translate(-50%,-50%) scale(1.08)!important;background:rgba(13,91,62,.88)!important}
#pondMap .sector-pin.sector-label.selected{transform:translate(-50%,-50%) scale(1.12)!important;background:#d99a18!important;color:#fff!important;box-shadow:0 0 0 3px rgba(255,211,91,.25)!important}
#pondMap .sector-pin.sector-label.occupied{background:rgba(126,42,37,.86)!important;opacity:1!important;cursor:not-allowed;box-shadow:none!important}
#pondMap .sector-pin.sector-label.occupied::after{display:none!important}
#pondMap .map-caption{z-index:6!important}
#pondMap .sector-legend{position:absolute;z-index:6;right:16px;bottom:16px;display:flex;gap:7px;flex-wrap:wrap;max-width:320px;padding:9px 11px;border:1px solid rgba(255,255,255,.18);border-radius:10px;background:rgba(5,37,27,.86);color:#fff;font-size:10px;backdrop-filter:blur(9px)}
#pondMap .sector-legend span{display:flex;align-items:center;gap:5px;white-space:nowrap}
#pondMap .sector-legend i{width:11px;height:11px;border-radius:3px;border:1px solid rgba(255,255,255,.55)}
#pondMap .sector-legend .free{background:rgba(72,145,91,.7)}#pondMap .sector-legend .busy{background:rgba(181,67,61,.85)}#pondMap .sector-legend .chosen{background:rgba(241,184,47,.9)}
@media(max-width:650px){#pondMap .sector-pin.sector-label{font-size:9px!important;min-width:19px!important;line-height:14px!important;padding:1px 3px!important}#pondMap .sector-legend{left:10px;right:auto;bottom:10px;max-width:calc(100% - 20px)}#pondMap .map-caption{display:none!important}}

@media(max-width:650px){#pondMap.sector-map-v50{height:62vh!important;min-height:430px!important;overflow:auto!important;touch-action:pan-x pan-y}#pondMap.sector-map-v50>img{height:100%!important;width:auto!important;min-width:900px!important;max-width:none!important;object-fit:cover!important}#pondMap .sector-zones{width:900px!important;height:100%!important}#pondMap .sector-pin.sector-label{min-width:30px!important;min-height:30px!important;font-size:12px!important;line-height:26px!important;padding:2px 6px!important}#pondMap .sector-zone{stroke-width:.28}#pondMap .sector-legend{position:sticky!important;left:8px!important;bottom:8px!important;width:max-content!important}.booking-grid{display:block!important}}

/* V52 — maketa stila nepārtraukta sektoru josla */
#pondMap .sector-zone{fill:rgba(68,151,88,.34);stroke:rgba(218,244,221,.78);stroke-width:.18;transition:fill .16s,stroke .16s,filter .16s;cursor:pointer}
#pondMap .sector-zone:hover{fill:rgba(74,177,101,.48);stroke:#f0fff1;filter:drop-shadow(0 0 2px rgba(255,255,255,.28))}
#pondMap .sector-zone.selected{fill:rgba(226,168,37,.62);stroke:#ffd66b}
#pondMap .sector-zone.occupied{fill:rgba(196,72,66,.50);stroke:#ffaaa4}
#pondMap .sector-pin.sector-label{background:rgba(8,61,43,.82)!important;border-color:rgba(255,255,255,.72)!important;box-shadow:0 2px 8px #001b13aa!important}
#pondMap .sector-pin.sector-label.selected{background:#d99c18!important}
@media(max-width:650px){#pondMap .sector-zone{stroke-width:.32}#pondMap .sector-pin.sector-label{min-width:34px!important;min-height:34px!important;font-size:13px!important;line-height:28px!important}#pondMap .sector-zones{pointer-events:auto!important}}

/* V60 — admin un publiskā karte izmanto identisku 1573:1000 koordinātu plakni.
   Nekāds object-fit:cover vai atšķirīgs mobilais augstums vairs nedrīkst deformēt poligonus. */
#pondMap.sector-map-v50{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1573 / 1000!important;
  overflow:hidden!important;
}
#pondMap.sector-map-v50>img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:none!important;
  object-fit:fill!important;
  object-position:0 0!important;
}
#pondMap.sector-map-v50 .sector-zones{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
}
@media(max-width:650px){
  #pondMap.sector-map-v50{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1573 / 1000!important;
    overflow:hidden!important;
    touch-action:manipulation!important;
  }
  #pondMap.sector-map-v50>img,
  #pondMap.sector-map-v50 .sector-zones{
    width:100%!important;
    height:100%!important;
    min-width:0!important;
  }
  /* Numuru poga drīkst būt lielāka pieskārienam, bet tās centra koordinātas paliek 1:1 ar admin karti. */
  #pondMap .sector-pin.sector-label{
    min-width:30px!important;
    min-height:30px!important;
    font-size:11px!important;
    line-height:24px!important;
  }
}

/* V68 — publiskās sektoru kartes mobilais skats.
   Iekšējā karte saglabā precīzu 1573:1000 koordinātu plakni; telefons rāda
   palielinātu izgriezumu un ļauj karti bīdīt ar pirkstu, nedeformējot sektorus. */
.sector-map-scroll{width:100%;min-width:0;overflow:hidden;border-radius:22px;box-shadow:0 25px 70px rgba(7,43,31,.20);background:#0b3025}
.sector-map-scroll>#pondMap{box-shadow:none!important;border:0!important;border-radius:0!important}
@media(min-width:651px){.sector-map-scroll{aspect-ratio:1573/1000}.sector-map-scroll>#pondMap{width:100%!important;height:100%!important}}
@media(max-width:650px){
  .booking-grid>.sector-map-scroll{width:100%!important;height:min(58vh,520px)!important;min-height:390px!important;overflow:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;border-radius:18px;scrollbar-width:thin;overscroll-behavior:contain}
  .sector-map-scroll>#pondMap.sector-map-v50{width:760px!important;height:auto!important;min-width:760px!important;max-width:none!important;aspect-ratio:1573/1000!important;overflow:hidden!important;touch-action:pan-x pan-y!important}
  .sector-map-scroll>#pondMap.sector-map-v50>img,.sector-map-scroll>#pondMap.sector-map-v50 .sector-zones{width:100%!important;height:100%!important;min-width:0!important}
  #pondMap .sector-pin.sector-label{min-width:32px!important;min-height:32px!important;font-size:12px!important;line-height:26px!important;padding:2px 5px!important}
  #pondMap .sector-legend{position:absolute!important;left:10px!important;right:auto!important;top:10px!important;bottom:auto!important;width:max-content!important;max-width:700px!important;font-size:11px!important}
}

/* V69 — spiningošanai sektors nav nepieciešams */
.spinning-no-sector{min-height:360px;border-radius:24px;border:1px solid rgba(20,91,64,.18);background:linear-gradient(145deg,#f5fbf6,#e8f4eb);display:flex;align-items:center;justify-content:center;gap:22px;padding:42px;color:#153f31;box-shadow:0 16px 40px rgba(13,65,45,.08)}
.spinning-no-sector[hidden]{display:none!important}
.spinning-no-sector>span{display:grid;place-items:center;width:78px;height:78px;border-radius:50%;background:#fff;font-size:38px;box-shadow:0 10px 25px rgba(13,65,45,.10)}
.spinning-no-sector h3{margin:0 0 10px;font-family:Georgia,serif;font-size:28px;color:#0c5038}
.spinning-no-sector p{max-width:520px;margin:0;line-height:1.65;color:#557166}
@media(max-width:650px){.spinning-no-sector{min-height:0;padding:24px 18px;align-items:flex-start;border-radius:18px}.spinning-no-sector>span{width:54px;height:54px;min-width:54px;font-size:27px}.spinning-no-sector h3{font-size:21px}.spinning-no-sector p{font-size:14px}}
