/* Routing-data selector, navigation actions and the turn-by-turn screen (webroot/nav.js, task T11). Uses app.css colour variables. */
.graph-select { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 8px; font-size: 13px; }
.graph-select .lbl { color: var(--muted); margin-right: 2px; }
.graph-select [role=radio] { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 3px 10px; font-size: 12.5px; }
.graph-select [role=radio][aria-checked=true] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.graph-credit { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }
.graph-credit a, .nav-credit a { color: inherit; }
.nav-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.nav-actions .btn { padding: 8px 12px; }
.nav-hint { flex-basis: 100%; font-size: 11.5px; color: var(--muted); }

body.navigating #panel, body.navigating .layers, body.navigating .ctx,
body.navigating .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group { display: none !important; }
.nav-ui { position: fixed; inset: 0; pointer-events: none; z-index: 8; display: flex; flex-direction: column; justify-content: space-between;
  padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
.nav-ui > * { pointer-events: auto; }
.nav-banner { display: flex; gap: 12px; align-items: center; background: #0b4f4f; color: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
  max-width: 560px; width: 100%; align-self: center; }
.nav-icon { font-size: 40px; line-height: 1; width: 48px; text-align: center; flex: none; }
.nav-main { min-width: 0; }
.nav-dist { font-size: 26px; font-weight: 700; line-height: 1.1; }
.nav-text { font-size: 18px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.nav-sub { font-size: 14px; opacity: .85; }
.nav-note { align-self: center; max-width: 560px; margin-top: 8px; background: var(--bg); color: var(--fg); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; box-shadow: var(--shadow); }
.nav-note:empty { display: none; }
.nav-bottom { margin-top: auto; display: flex; gap: 8px; align-items: center; background: var(--bg); color: var(--fg); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow);
  max-width: 560px; width: 100%; align-self: center; }
.nav-trip { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-trip b { font-size: 20px; color: var(--accent); }
.nav-trip span { font-size: 13px; color: var(--muted); }
.nav-btn { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: nowrap; }
.nav-btn[aria-pressed=true] { color: var(--muted); text-decoration: line-through; }
.nav-exit { background: #b42318; border-color: #b42318; color: #fff; font-weight: 600; }
.nav-credit { align-self: center; margin-top: 4px; font-size: 11px; color: var(--fg); background: var(--bg); opacity: .85; border-radius: 6px; padding: 1px 8px; }
.nav-puck { width: 30px; height: 30px; border-radius: 50%; background: #1d6fe0; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); position: relative; }
.nav-puck-arrow { position: absolute; left: 50%; top: -12px; margin-left: -7px; width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 12px solid #1d6fe0; }

@media (max-width: 640px) {
  .nav-icon { font-size: 32px; width: 38px; }
  .nav-dist { font-size: 22px; }
  .nav-text { font-size: 16px; }
  .nav-btn { padding: 9px 9px; font-size: 13px; }
  .nav-trip b { font-size: 17px; }
}

/* voice options under the navigation buttons */
.nav-voiceopts { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 8px; font-size: 13px; }
.nav-voiceopts label { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.nav-voiceopts select { font: inherit; color: var(--fg); background: var(--soft); border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; max-width: 170px; }
.nav-voiceopts .btn { padding: 4px 9px; }
.nav-voiceopts .nav-hint { flex-basis: 100%; }
