/*!
 * Bled Bus — interaktivni vozni red
 * Copyright by Turizem Bled 2026 (Rok Lesjak)
 * verzija: v1.310726
 */
:root{
  --brand:#005038;        /* CGP bled.si — R0 G80 B56 */
  --brand-dark:#003a28;
  --brand-tint:#e4efea;
  --ink:#1f2a2e;
  --muted:#5f6b70;
  --hint:#6a767b;         /* 4.68:1 na belem (WCAG AA) — prej #8b969b, le 3.0:1 */
  --line:#e2e6e8;
  --line-strong:#c9d1d4;
  --surface:#ffffff;
  --surface-2:#f6f8f9;
  --radius:10px;
  --font:"Ubuntu",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:var(--font);color:var(--ink);background:transparent;-webkit-font-smoothing:antialiased}

.bb-app{max-width:520px;margin:0 auto;padding:16px;background:var(--surface);border-radius:14px}

/* header */
.bb-header{display:flex;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.bb-brand{display:flex;align-items:center;gap:10px}
.bb-logo{width:36px;height:36px;border-radius:9px;background:var(--brand-tint);color:var(--brand-dark);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.bb-title{margin:0;font-size:16px;font-weight:600}
.bb-subtitle{margin:0;font-size:12px;color:var(--hint)}
.bb-lang{margin-left:auto;display:flex;border:1px solid var(--line-strong);border-radius:8px;overflow:hidden}
.bb-lang button{border:0;background:var(--surface);color:var(--muted);font:inherit;font-size:12px;font-weight:600;padding:6px 10px;cursor:pointer}
.bb-lang button.is-active{background:var(--brand);color:#fff}

/* seasons */
.bb-seasons{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.bb-seasons button{flex:1 1 auto;min-width:110px;border:1px solid var(--line-strong);background:var(--surface);color:var(--muted);font:inherit;font-size:13px;font-weight:500;padding:9px 8px;border-radius:8px;cursor:pointer}
.bb-seasons button.is-active{background:var(--brand-tint);border-color:var(--brand);color:var(--brand-dark);font-weight:600}

/* fields */
.bb-field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;flex:1}
.bb-field label{font-size:12px;color:var(--muted)}
select{appearance:none;-webkit-appearance:none;font:inherit;font-size:14px;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:var(--radius);padding:0 34px 0 12px;height:44px;width:100%;cursor:pointer;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat;background-position:right 12px center}
select:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-tint)}

.bb-od{display:flex;align-items:flex-end;gap:8px}
.bb-swap{flex:0 0 auto;width:40px;height:44px;margin-bottom:0;border:1px solid var(--line-strong);background:var(--surface);color:var(--muted);border-radius:var(--radius);cursor:pointer;display:flex;align-items:center;justify-content:center}
.bb-swap:hover{background:var(--surface-2);color:var(--brand-dark)}

/* results */
.bb-results-head{display:flex;align-items:center;justify-content:space-between;margin:16px 0 8px}
.bb-results-head span:first-child{font-size:13px;color:var(--muted)}
.bb-now{font-size:12px;color:var(--hint)}
.bb-results{display:flex;flex-direction:column;gap:7px}

.bb-row{display:flex;align-items:flex-start;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius)}
.bb-row .when{flex:0 0 auto;min-width:100px}
.bb-row .when .times{font-size:15px;font-weight:600;white-space:nowrap;color:var(--ink)}
.bb-row .when .times i{font-style:normal;font-weight:400;color:var(--hint)}
.bb-row .when .dur{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);margin-top:2px}
.bb-row .mid{flex:1;min-width:0}
.bb-row .mid .ln{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:13px;color:var(--muted)}
.bb-row .mid .rt{display:block;font-size:12px;color:var(--hint);margin-top:2px;white-space:normal}
.bb-row .mid .rt.sub{color:var(--muted)}
.bb-row .right{flex:0 0 auto;text-align:right}
.ic{vertical-align:-2px}

.bb-row.is-next{border-color:var(--brand);background:var(--brand-tint)}
.bb-row.is-next .when .times,.bb-row.is-next .when .dur,.bb-row.is-next .ln{color:var(--brand-dark)}
.bb-row.is-next .when .times i{color:var(--brand)}
.bb-row.is-past{opacity:.5}
.bb-badge{font-size:11px;font-weight:500;color:#fff;background:var(--brand);border-radius:20px;padding:3px 9px;white-space:nowrap}

.bb-empty{padding:22px 12px;text-align:center;color:var(--hint);font-size:13px;border:1px dashed var(--line-strong);border-radius:var(--radius)}
/* opomba, kadar je vozni red iz shranjene kopije */
.bb-stale{margin:12px 0 0;padding:9px 12px;font-size:12px;line-height:1.45;color:#6b5b1f;background:#fdf6e0;border:1px solid #e6d18a;border-radius:var(--radius)}

.bb-section{font-size:12px;color:var(--muted);margin:2px 0 8px}
.bb-notice{font-size:13px;color:var(--brand-dark);background:var(--brand-tint);border:1px solid var(--brand);border-radius:var(--radius);padding:9px 12px;margin:0 0 9px}
.dotm{width:8px;height:8px;border-radius:50%;display:inline-block;flex:0 0 auto}
.arrw{color:var(--hint)}
.xpill{font-size:10px;color:var(--muted);background:var(--surface-2);border:0.5px solid var(--line-strong);border-radius:20px;padding:1px 7px}

.bb-footer{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:11px;color:var(--hint);line-height:1.5;text-align:center}
.bb-note{margin:0 0 6px;color:var(--muted)}   /* opozorilo o zamudah — iz zavihka "Nastavitve" */
.bb-copy{margin:0}

@media (max-width:420px){
  .bb-od{flex-wrap:wrap}
  .bb-swap{order:3;width:100%;height:36px}
}
