/* Mapa punktów odbioru — strona „Odbiór osobisty” (inc/oddzialy.php → hlx_oddzialy_mapa, assets/js/oddzialy-mapa.js).
   Właściciel 24.10.2026: «тут добавь карту нужно, сделать и снизу список». Własny kontur Polski (SVG), pinezki to
   odnośniki do kart listy. Telefon: liczba punktów + wyszukiwarka, pod nimi mapa na całą szerokość, potem lista.
   Komputer: mapa po lewej, obok liczba, wyszukiwarka i legenda. Kolory ze zmiennych main.css. */

.odd-geo { display: grid; gap: 14px; margin: 20px 0 18px; }
.odd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.odd-big { margin: 0; display: flex; align-items: center; gap: 12px; }
.odd-big b { font-size: 46px; line-height: 1; font-weight: 700; color: var(--acc-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.odd-big span { font-size: 17px; font-weight: 700; line-height: 1.25; max-width: 14ch; }
.odd-side-note { margin: 0; font-size: 13.5px; color: var(--muted); }
.odd-geo .odd-search { margin: 0; max-width: none; }
.odd-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.odd-legend li { display: flex; gap: 10px; align-items: flex-start; }
.odd-lg-js { display: none !important; }
.odd-js .odd-lg-js { display: flex !important; }
.odd-lg-pin { position: relative; flex: 0 0 22px; width: 22px; height: 24px; }
.odd-lg-pin::before { content: ""; position: absolute; left: 11px; top: 9px; width: 14px; height: 14px; box-sizing: border-box; background: var(--red); border: 2px solid var(--white); border-radius: 50% 50% 50% 0; transform-origin: 0 100%; transform: rotate(-45deg); filter: drop-shadow(0 1px 1px rgba(15, 16, 32, .35)); }
.odd-lg-clu { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--acc-on); font-size: 11.5px; font-weight: 700; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px rgba(var(--acc-rgb), .2); }
.odd-tolist { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--acc-ink); }

.odd-mapbox { min-width: 0; container-type: inline-size; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.odd-map { position: relative; width: 100%; }
.odd-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.odd-land { fill: var(--soft); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.odd-woj { fill: none; stroke: #B9C1D1; stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.odd-lbl text { font-family: var(--font); font-size: 21px; font-weight: 600; fill: #656D7D; paint-order: stroke; stroke: var(--soft); stroke-width: 5px; stroke-linejoin: round; pointer-events: none; }
@container (max-width: 560px) { .odd-lbl { display: none; } }

/* Pinezka: kropla z białą obwódką; dolny czubek = punkt na mapie. Pole kliknięcia 28 × 32 px. */
.odd-pin { position: absolute; z-index: 1; width: 28px; height: 32px; transform: translate(-50%, -100%); border-radius: 4px; filter: drop-shadow(0 1px 2px rgba(15, 16, 32, .4)); transition: opacity .15s; -webkit-tap-highlight-color: transparent; }
.odd-pin::before { content: ""; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; box-sizing: border-box; background: var(--red); border: 2px solid var(--white); border-radius: 50% 50% 50% 0; transform-origin: 0 100%; transform: rotate(-45deg); transition: transform .12s, background-color .12s; }
.odd-pin::after { content: ""; position: absolute; left: 11px; top: 15.3px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.odd-pin:hover, .odd-pin:focus-visible, .odd-pin.is-on { z-index: 3; }
.odd-pin:hover::before, .odd-pin:focus-visible::before, .odd-pin.is-on::before { background: var(--red-dark); transform: rotate(-45deg) scale(1.18); }
.odd-pin.is-on::before { background: var(--ink); }
.odd-pin:focus-visible { outline: 3px solid #1F7BFF; outline-offset: 1px; }
.odd-pin.is-dim, .odd-clu.is-dim { opacity: .25; }
.odd-pin[hidden] { display: none; }

/* Grupa bliskich punktów (tylko ze skryptem). */
.odd-clu { position: absolute; z-index: 2; width: 32px; height: 32px; padding: 0; transform: translate(-50%, -50%); display: grid; place-items: center; border: 2.5px solid var(--white); border-radius: 50%; background: var(--red); color: var(--acc-on); font: 700 14px/1 var(--font); box-shadow: 0 2px 6px rgba(15, 16, 32, .35), 0 0 0 5px rgba(var(--acc-rgb), .18); transition: opacity .15s, background-color .12s; }
.odd-clu:hover, .odd-clu[aria-expanded="true"] { background: var(--red-dark); z-index: 3; }
.odd-clu:focus-visible { outline: 3px solid #1F7BFF; outline-offset: 2px; z-index: 3; }

/* Dymek z adresem. */
.odd-tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 250px; padding: 9px 12px; border-radius: var(--r); background: var(--ink); color: var(--white); box-shadow: 0 10px 26px rgba(15, 16, 32, .28); font-size: 13px; line-height: 1.4; pointer-events: none; }
.odd-tip[hidden] { display: none; }
.odd-tip strong { display: block; margin-bottom: 2px; font-size: 14px; }
.odd-tip span { display: block; color: #CFD5E3; }
.odd-tip .h { margin-top: 3px; color: var(--white); font-weight: 600; }

/* Lista punktów z grupy. */
.odd-pop { position: absolute; left: 0; top: 0; z-index: 6; width: 300px; max-width: calc(100% - 8px); max-height: min(400px, 70vh); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: 0 18px 44px rgba(15, 16, 32, .22); }
.odd-pop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 6px 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.odd-pop-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.odd-pop-x:hover { background: var(--soft); color: var(--ink); }
.odd-pop ul { list-style: none; margin: 4px 0 0; padding: 0; }
.odd-pop-it { width: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 10px; line-height: 1.35; border: 0; border-radius: var(--r); background: transparent; text-align: left; }
.odd-pop-it:hover, .odd-pop-it:focus-visible { background: var(--red-soft); }
.odd-pop-it strong { font-size: 14px; }
.odd-pop-it small { font-size: 12.5px; color: var(--muted); }
.odd-pop-it small.h { color: var(--ink); }
.odd-pop-it.is-dim { opacity: .45; }

/* Karta na liście po wyborze punktu na mapie (bez skryptu — :target). */
.odd-card { scroll-margin: 120px 0 24px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.odd-card:focus { outline: none; }
.odd-card:focus-visible { outline: 3px solid #1F7BFF; outline-offset: 2px; }
.odd-card.is-hit, .odd-card:target { border-color: var(--red); background: var(--acc-soft); box-shadow: 0 0 0 1px var(--red), 0 10px 24px rgba(var(--acc-rgb), .14); }

@media (min-width: 900px) {
  .odd-geo { grid-template-columns: minmax(0, 760px) minmax(250px, 1fr); gap: 32px; align-items: start; margin: 24px 0 22px; }
  .odd-mapbox { grid-column: 1; grid-row: 1; padding: 16px; }
  .odd-side { grid-column: 2; grid-row: 1; padding-top: 8px; }
  .odd-big b { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .odd-pin, .odd-pin::before, .odd-clu, .odd-card { transition: none; }
}
