/* DivePlaner — Stacje napełniania (docs/STACJE_SPEC.md). Arkusz modułu: /stacje (mapa + lista), strona stacji, formularz zgłoszenia,
   „Stacje napełniania” w /panel i weryfikacja w /admin. Korzysta z układu i tokenów miejsca.css / portal.css (oba motywy). */

.st-disclaimer strong { font-weight: 700; }

/* ---------- filtry listy ---------- */
.st-filters { grid-template-columns: 1fr 1fr; }
.st-filters .st-f-sort { grid-column: 1 / -1; }
/* przełączniki „Otwarte teraz” i „Tylko z ważnym certyfikatem” (G1) — jeden wiersz, równe wysokości */
.st-f-toggles { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; }
@media (max-width: 599px) { .st-f-toggles .st-check { flex: 1 1 100%; } } /* telefon: oba przełączniki tej samej szerokości */
.st-check { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: var(--dp-radius); border: 1px solid var(--vz-input-border-custom); background: var(--vz-input-bg-custom); cursor: pointer; font-size: var(--t-sm); font-weight: 600; white-space: nowrap; margin: 0; }
.st-check input { width: 20px; height: 20px; accent-color: var(--brand-strong); margin: 0; }
.st-check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.st-f-near { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.st-f-near .btn { min-height: 44px; }
.st-f-near p { flex: 1 1 16rem; min-width: 0; margin: 0; }
@media (min-width: 900px) {
  .st-filters { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .st-filters .mj-f-q, .st-filters .st-f-sort { grid-column: auto; }
  .st-f-toggles { grid-column: 1 / 3; align-self: center; }
  .st-f-near { grid-column: 3 / -1; }
}

/* ---------- karty stacji ---------- */
.st-cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 600px) and (max-width: 1023px) { .st-cards { grid-template-columns: 1fr 1fr; } }
.st-card { display: flex; gap: 14px; padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--sh-1); min-width: 0; }
.st-card.is-focus { box-shadow: 0 0 0 2px var(--brand), var(--sh-2); }
.st-card-img { flex: none; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand-ink); }
.st-card-img img { width: 100%; height: 100%; object-fit: cover; }
.st-card-img .ico { width: 30px; height: 30px; opacity: .7; }
.st-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; flex: 1; }
.st-card-name { font-weight: 600; font-size: var(--t-h3); line-height: 1.3; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.st-card-name:hover { color: var(--brand-ink); text-decoration: underline; }
.st-card-place { display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-xs); color: var(--fg-2); }
.st-card-place .ico { width: 15px; height: 15px; flex: none; }
.st-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.st-card-km { font-size: var(--t-xs); font-weight: 700; color: var(--brand-ink); }
.st-card-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.st-card-facts .pill, .st-card-row .pill { min-height: 24px; padding: 1px 9px; }
.st-card-price { font-size: var(--t-sm); color: var(--fg-2); }
.st-card-price strong { color: var(--fg); }
.st-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.st-card-actions .btn { min-height: 40px; }
@media (max-width: 420px) { .st-card-img { width: 72px; height: 72px; } }

/* ---------- plakietka i „otwarte teraz” ---------- */
.st-badge { white-space: normal; text-align: left; }
.st-badge .ico { flex: none; }
.st-open { white-space: normal; text-align: left; }
.st-open .ico { flex: none; }

/* ---------- „Nawiguj” (lista linków po kliknięciu) ---------- */
.st-nav { position: relative; display: inline-block; }
.st-nav > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.st-nav > summary::-webkit-details-marker { display: none; }
.st-nav-menu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; display: flex; flex-direction: column; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--card-border); box-shadow: var(--sh-2); }
.st-nav-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--fg); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.st-nav-menu a:hover, .st-nav-menu a:focus-visible { background: var(--brand-soft); color: var(--brand-ink); }
.st-card .st-nav-menu { left: auto; right: 0; }
@media (max-width: 599px) { .st-card .st-nav-menu { left: 0; right: auto; } }

/* ---------- strona stacji ---------- */
.st-head .mj-lead { display: flex; gap: 6px; align-items: flex-start; }
.st-head .mj-lead .ico { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.st-actions .btn { min-height: 44px; }
.st-actions .st-nav > summary { min-height: 44px; }
.st-h3 { font-size: var(--t-h3); font-weight: 700; }
.st-hours th[scope="row"] { text-transform: none; letter-spacing: 0; color: var(--fg); font-size: var(--t-sm); font-weight: 600; width: 45%; }
.st-hours td { font-variant-numeric: tabular-nums; }
.st-hours tr.st-today th, .st-hours tr.st-today td { background: var(--brand-soft); color: var(--brand-ink); }
.st-ex { margin: 6px 0 0; padding-left: 18px; font-size: var(--t-sm); line-height: 1.6; }
.st-gases { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.st-gases li { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: start; gap: 12px; }
.st-gases li .small { padding-top: 3px; }
.st-gases .pill { justify-self: stretch; justify-content: flex-start; }
.st-gases .small { line-height: 1.5; }
.st-cert-side { display: flex; gap: 8px; align-items: flex-start; }
.st-cert-side .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--brand-ink); }
.st-cert-none .ico { color: var(--fg-2); }
.st-ex-inline { display: none; }
@media (max-width: 599px) {
  .st-prices th:nth-child(3), .st-prices td:nth-child(3) { display: none; }
  .st-ex-inline { display: block; color: var(--fg-2); font-size: var(--t-xs); margin-top: 2px; }
}
.st-prices td, .st-prices th { font-variant-numeric: tabular-nums; }
.st-prices th[scope="row"] { text-transform: none; letter-spacing: 0; color: var(--fg); font-size: var(--t-sm); font-weight: 600; }
.st-pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-side-title { font-size: var(--t-h3); font-weight: 700; margin-bottom: 12px; }
.st-side-title + .mj-kv .mj-kv-row { grid-template-columns: 1fr; gap: 2px; }

/* ---------- formularz zgłoszenia ---------- */
.st-form { display: flex; flex-direction: column; gap: 16px; }
.st-form .card { display: flex; flex-direction: column; gap: 14px; }
.st-form-head { display: flex; align-items: center; gap: 12px; }
.st-form-head h2 { font-size: var(--t-h2); font-weight: 700; flex: 1; min-width: 0; }
.st-form-head .st-step { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.st-days { display: flex; flex-direction: column; gap: 0; }
.st-day { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name closed" "iv iv"; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 66px; }
.st-day:last-child { border-bottom: 0; }
.st-day-name { grid-area: name; font-weight: 600; font-size: var(--t-sm); }
.st-day-closed { grid-area: closed; }
.st-day-iv { grid-area: iv; min-width: 0; }
.st-day.closed .st-day-iv { display: none; }
.st-inline-check { align-items: center; min-height: 44px; padding: 0; margin: 0; font-size: var(--t-sm); font-weight: 500; white-space: nowrap; }
.st-inline-check input { margin: 0; }
@media (min-width: 720px) {
  .st-day { grid-template-columns: 140px minmax(0, 1fr) auto; grid-template-areas: "name iv closed"; }
  .st-day.closed .st-day-iv { display: block; visibility: hidden; }
}
.st-iv { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-iv-pair { display: inline-flex; align-items: center; gap: 8px; }
.st-iv .input { width: 7.25rem; min-height: 44px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.st-iv .sep { color: var(--fg-2); }
.st-iv .btn { min-height: 44px; }
.st-ex-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.st-ex-row .input { width: auto; min-height: 44px; padding: 8px 10px; }
.st-ex-row .input[type="date"] { width: 11rem; }
.st-ex-row .st-ex-note { flex: 1 1 10rem; }
.st-gas-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.st-gas-row .mj-gas { min-width: 8.5rem; }
.st-gas-sub { display: grid; gap: 12px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--card-2); }
@media (min-width: 600px) { .st-gas-sub { grid-template-columns: 1fr 1fr; } }
.st-press { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .st-press { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-tiers { display: flex; flex-direction: column; gap: 8px; }
.st-tier { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.st-tier .field { flex: 1 1 8rem; }
.st-tier .btn { min-height: 48px; }
.st-file { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.st-file-name { font-size: var(--t-sm); color: var(--fg-2); overflow-wrap: anywhere; }
.st-file-prev { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; background: var(--card-2); }
.st-cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-cert-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); background: var(--card-2); font-size: var(--t-sm); }
.st-photos-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.st-photos-edit li { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.st-photos-edit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--card-2); }
.st-submit-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 75%, transparent); }
.st-submit-bar > span { flex: 1 1 12rem; min-width: 0; }
.st-submit-bar .btn { min-height: 48px; }
@media (max-width: 599px) { .st-submit-bar .btn { flex: 1 1 100%; } }

/* ---------- panel i weryfikacja ---------- */
.st-my-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.st-my-row .grow { flex: 1 1 14rem; min-width: 0; }
.st-my-thumb { flex: none; width: 64px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--brand-soft); color: var(--brand-ink); display: flex; align-items: center; justify-content: center; }
.st-my-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-adm-cert { display: grid; gap: 12px; }
@media (min-width: 900px) { .st-adm-cert { grid-template-columns: 220px minmax(0, 1fr); } }
.st-adm-cert img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--card-2); cursor: zoom-in; }
.st-h3-opt { font-weight: 400; color: var(--fg-2); font-size: var(--t-sm); }
