/* ===========================================================================
   AZOLPP javni portal (UI-8) — standalone, mobile-first. Navy/gold tokeni.
   =========================================================================== */
:root {
  --navy: #1F4E8A; --navy-dark: #0F2C4D; --gold: #D99A18;
  --text: #0F172A; --muted: #6B7280; --border: #E5E7EB; --bg: #F1F5F9; --surface: #F9FAFB;
  --ok-bg: #DCFCE7; --ok-tx: #166534; --info-bg: #DBEAFE; --info-tx: #1E40AF; --warn-bg: #FEF3C7; --warn-tx: #92400E;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 10px; --shadow: 0 2px 8px rgba(15,23,42,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-decoration: none; }

.phead { position: sticky; top: 0; z-index: 10; background: linear-gradient(90deg, var(--navy-dark), var(--navy)); color: #fff; padding: 14px 16px; box-shadow: var(--shadow); }
.phead .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.phead .brand .mdi { color: var(--gold); font-size: 22px; }
.phead .filters { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.phead .filters input, .phead .filters select {
  font-family: var(--sans); font-size: 14px; padding: 9px 11px; border: none; border-radius: 8px; background: rgba(255,255,255,.95); color: var(--text); flex: 1; min-width: 120px;
}
.back-bar { display: flex; align-items: center; }
.back-bar a { color: #fff; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-top: 10px; font-size: 14px; }

.pmain { max-width: 880px; margin: 0 auto; padding: 16px; }
.pfoot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 20px 16px 40px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.line-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.line-card:active, .line-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.12); }
.lc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lc-top .kod { font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--navy); }
.lc-route { font-weight: 700; margin: 6px 0 2px; }
.lc-meta { color: var(--muted); font-size: 13px; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--info-bg); color: var(--info-tx); }
.badge.muted { background: #EEF2F6; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; }
.empty .mdi { font-size: 52px; color: #CBD5E1; display: block; margin-bottom: 8px; }

.red-head { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.red-head h1 { margin: 0 0 4px; font-size: 22px; }
.red-head .sub { color: var(--muted); font-size: 14px; }
.red-head .azur { margin-top: 6px; font-size: 13px; color: var(--ok-tx); font-weight: 600; }
.ruta-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: var(--info-bg); color: var(--info-tx); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip.date { background: var(--surface); color: var(--text); font-family: var(--mono); border: 1px solid var(--border); }

.sezona { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); margin-bottom: 14px; }
.sezona h2 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.sezona .rasponi { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tipdana { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
.tipdana .td-head { font-weight: 700; margin-bottom: 6px; }
.tipdana .td-head .dani { color: var(--muted); font-weight: 600; font-size: 13px; margin-left: 6px; }
.polazak { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.polazak:last-child { border-bottom: none; }
.polazak .smjer { font-weight: 800; color: var(--navy); white-space: nowrap; }
.polazak .turnus { color: var(--muted); font-size: 12.5px; }
.polazak .vremena { font-family: var(--mono); }

.section-title { font-size: 15px; font-weight: 800; color: var(--navy-dark); margin: 18px 0 8px; }
.iznimka { background: var(--warn-bg); color: var(--warn-tx); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.cjenik-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: 14px; }
.cjenik-table th { text-align: left; padding: 9px 12px; background: var(--surface); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cjenik-table td { padding: 9px 12px; border-top: 1px solid var(--border); }
.cjenik-table td.cijena { text-align: right; font-family: var(--mono); font-weight: 600; }
