.o-wrap{max-width:1200px;margin:0 auto;padding:24px 16px}
.o-head{display:flex;gap:16px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.o-title{font-size:34px;margin:0 0 6px 0;letter-spacing:.2px}
.o-sub{margin:0;opacity:.85;line-height:1.4;max-width:780px}
.o-updated{min-width:240px;background:rgba(15,20,28,.55);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:12px 14px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.o-updated__label{opacity:.75;font-size:12px}
.o-updated__time{font-size:16px;font-weight:700;margin-top:4px}

.o-mapCard{position:relative;border:1px solid rgba(255,255,255,.10);border-radius:22px;overflow:hidden;background:rgba(10,14,20,.55);box-shadow:0 14px 40px rgba(0,0,0,.35);display:flex;align-items:stretch}
.o-map{flex:1;min-width:0;height:640px}

/* legenda po prawej (panel) */
.o-legend{position:relative;top:auto;right:auto;width:260px;flex:0 0 260px;background:rgba(15,20,28,.70);
  border-left:1px solid rgba(255,255,255,.10);padding:14px 14px 12px 14px}
.o-mapCard > .o-legend{border-radius:0}
.o-legend__title{font-size:14px;margin:0 0 10px 0;opacity:.9}
.o-legend__item{display:flex;align-items:center;gap:10px;margin:8px 0;font-size:13px}
.sw{width:18px;height:12px;border-radius:4px;border:1px solid rgba(0,0,0,.35);display:inline-block}
.sw-0{background:#1db954}
.sw-1{background:#ffd400}
.sw-2{background:#ff8c00}
.sw-3{background:#ff2b2b}
.o-legend__hint{margin-top:10px;font-size:12px;opacity:.75;line-height:1.35}

/* Leaflet tooltip/popup PRO */
.leaflet-tooltip.o-tip{background:rgba(15,20,28,.88);color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px 12px;box-shadow:0 12px 28px rgba(0,0,0,.35)}
.leaflet-tooltip.o-tip:before{border-top-color:rgba(15,20,28,.88)}

.o-pop h3{margin:0 0 6px 0;font-size:15px}
.o-pop .line{font-size:13px;opacity:.9;margin:3px 0}
.o-pop .meta{font-size:12px;opacity:.75;margin-top:8px}
.o-badge{display:inline-block;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.2px}
.o-b0{background:#1db954;color:#08140d}
.o-b1{background:#ffd400;color:#2a2200}
.o-b2{background:#ff8c00;color:#2a1200}
.o-b3{background:#ff2b2b;color:#2a0000}

@media (max-width: 900px){
  .o-head{flex-direction:column;align-items:stretch}
  .o-updated{min-width:unset}
  .o-map{height:560px}
  .o-legend{width:200px}
}
@media (max-width: 520px){
  .o-map{height:520px}
  .o-legend{position:static;width:auto;margin:12px;border-radius:16px}
}

/* =========================
   Mobile responsiveness
   ========================= */
@media (max-width: 980px){
  .o-head{ flex-wrap: wrap; }
  .o-updated{ width: 100%; min-width: 0; }
  .o-mapCard{ display:flex; flex-direction: column; }
  .o-mapCard > .o-map{ width: 100%; min-height: 58vh; }
  .o-mapCard > .o-legend{ width: 100%; flex: 0 0 auto; border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
}
@media (max-width: 560px){
  .o-wrap{ padding: 18px 12px; }
  .o-title{ font-size: 26px; }
  .o-mapCard > .o-map{ min-height: 52vh; }
}


/* Oryginalna treść alertu (gdy źródło zwraca EN/RU) */
.o-orig{margin-top:10px;padding:8px 10px;border:1px solid rgba(255,255,255,.10);border-radius:12px;background:rgba(10,14,20,.35)}
.o-orig summary{cursor:pointer;font-size:12px;opacity:.85;user-select:none}
.o-orig[open] summary{opacity:1}
.o-orig .line{margin:6px 0}
