/* AyoMudik.com — tema terang hijau: bersih, kontras jelas, data mudah dibaca di bawah matahari */
:root {
  --bg: #f3f7f4;
  --surface: #ffffff;
  --surface-2: #f7faf8;
  --surface-3: #ecf3ee;
  --line: #e2eae4;
  --line-2: #cddbd2;
  --text: #11281c;
  --text-2: #2f4639;
  --muted: #5d7266;
  --dim: #8fa096;
  --green: #0f7b45;
  --green-600: #0b6639;
  --green-500: #16a34a;
  --green-50: #e9f6ef;
  --green-100: #d3eddf;
  --amber: #d99100;
  --ok: #16a34a;
  --warn: #ca8a04;
  --orange: #ea580c;
  --bad: #dc2626;
  --blue: #0369a1;
  --violet: #7c3aed;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 40, 28, .06);
  --shadow: 0 1px 2px rgba(17, 40, 28, .05), 0 6px 20px rgba(17, 40, 28, .06);
  --shadow-lg: 0 20px 50px rgba(17, 40, 28, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.txt-ok { color: var(--ok); }
.txt-bad { color: var(--bad); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--green-500); outline-offset: 2px; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand .tld { color: var(--green); font-weight: 700; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab.active { color: var(--green-600); background: var(--green-50); }
.tab-sos .ic { color: var(--bad); }
.topbar-right { display: flex; align-items: center; gap: 16px; flex: none; }
.dir-toggle { display: flex; padding: 3px; border-radius: 999px; background: var(--surface-3); }
.dir-toggle button { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); transition: all .2s; }
.dir-toggle button.active { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.clock { font-size: 11px; color: var(--muted); text-align: right; line-height: 1.25; min-width: 132px; }
.clock b { display: block; font-size: 15px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.clock b span { font-size: 10px; color: var(--green); }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; height: 36px; background: var(--green-50); border-bottom: 1px solid var(--green-100); overflow: hidden; }
.ticker-tag { flex: none; display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 14px; font: 700 11px var(--mono); letter-spacing: .08em; color: #fff; background: var(--green); }
.ticker-tag i, .live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.ticker-track span { padding: 0 30px; color: var(--green-600); font-size: 13px; font-weight: 600; white-space: nowrap; }
.ticker-track span::before { content: '•'; color: var(--green-500); margin-right: 12px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Layout ---------- */
main { max-width: 1480px; margin: 0 auto; padding: 22px 24px; }
body.loading main { opacity: .4; pointer-events: none; }
.view { display: none; }
.view.active { display: block; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.view-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.view-head p { color: var(--muted); margin-top: 4px; max-width: 680px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pad { padding: 16px; }
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px; }
.side-h h3 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; font-weight: 700; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-600); }
.count { font: 700 11px var(--mono); padding: 1px 8px; border-radius: 999px; background: #fee2e2; color: var(--bad); }
.live { display: inline-flex; align-items: center; gap: 6px; font: 700 10px var(--mono); letter-spacing: .1em; color: var(--bad); }
.note { color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.55; }
.note.tight { margin-top: 6px; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.boot-error { max-width: 1480px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.boot-error .btn-sm { width: auto; margin: 0; }
.footer { max-width: 1480px; margin: 12px auto 0; padding: 22px 24px 30px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.footer b { color: var(--text-2); }
.footer p + p { margin-top: 6px; }

/* ---------- Kontrol ---------- */
.select { width: 100%; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; outline: none; transition: border-color .15s, box-shadow .15s; }
.select:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
select.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d7266' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; min-width: 0; }
.field > span, .field > legend { font-size: 12px; font-weight: 700; color: var(--text-2); }
fieldset.field > legend { margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; }
.check input, .toggle input { accent-color: var(--green); width: 17px; height: 17px; }
.check.big { height: 42px; align-self: end; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--text); transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--green-600); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; margin-top: 10px; width: 100%; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-lg { height: 50px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); flex: none; }
.icon-btn:hover { color: var(--green); border-color: var(--green-500); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .15s; }
.chip .ic { width: 15px; height: 15px; color: var(--muted); }
.chip:hover { border-color: var(--green-500); color: var(--green-600); }
.chip.active { color: var(--green-600); background: var(--green-50); border-color: var(--green-500); }
.chip.active .ic { color: var(--green); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip em { font: 700 11px var(--mono); font-style: normal; color: var(--dim); }
.chip.active em { color: var(--green); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 190px; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--dim); width: 16px; height: 16px; pointer-events: none; }
.search input { height: 42px; width: 250px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); outline: none; }
.search input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px var(--green-100); }
.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: #dcfce7; color: #15803d; }
.pill.warn { background: #fef3c7; color: #a16207; }
.pill.bad { background: #fee2e2; color: #b91c1c; }
.pill.none { background: var(--surface-3); color: var(--muted); }
.pill-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--c, var(--muted)); white-space: nowrap; }
.pill-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--muted)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #888) 20%, transparent); }
.pill-dot.big { font-size: 14px; margin: 6px 0 14px; }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar.big { height: 10px; }
.bar i { display: block; height: 100%; border-radius: inherit; transition: width .6s ease; }
.bar i.ok { background: var(--ok); }
.bar i.warn { background: var(--warn); }
.bar i.bad { background: var(--bad); }
.bar i.none { background: var(--dim); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.kpi small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi b span { font-size: 13px; color: var(--dim); font-weight: 600; }
.kpi b.sm { font-size: 14px; letter-spacing: -.01em; margin-top: 4px; white-space: normal; }
.kpi.wide { grid-column: 1 / -1; }
.kpi-row { grid-template-columns: repeat(3, 1fr) 2fr; margin-bottom: 14px; }
.kpi-row .kpi { background: var(--surface); box-shadow: var(--shadow-sm); }

/* ---------- Di sekitar Anda ---------- */
.near { display: grid; gap: 8px; }
.near-loc { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); }
.near-loc .ic { color: var(--green); margin-top: 2px; }
.near-loc b { display: block; font-size: 14px; }
.near-loc small { color: var(--muted); font-size: 12px; }
.near-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.near-item > .ic, .near-item > .wx { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--surface-3); color: var(--green-600); }
.near-item > .wx { padding: 2px; }
.near-item b { display: block; font-size: 13px; line-height: 1.3; }
.near-item small { color: var(--muted); font-size: 12px; }
.near-item .go { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; background: var(--green-50); color: var(--green-600); font-weight: 700; font-size: 12px; white-space: nowrap; }
.near-item .go:hover { background: var(--green-100); text-decoration: none; }
.near-item .go .ic { width: 14px; height: 14px; }
.geo-ask { display: grid; gap: 10px; padding: 14px; border-radius: 12px; border: 1px dashed var(--green-500); background: var(--green-50); color: var(--text-2); font-size: 13px; }

/* ---------- Peta ---------- */
/* panel samping tumbuh mengikuti isi (tanpa scroll sendiri); peta menempel saat halaman digulir */
.map-layout { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.map-wrap { position: sticky; top: 86px; height: calc(100vh - 150px); min-height: 560px; overflow: hidden; }
#map, #nav-map { position: absolute; inset: 0; background: #e9efe9; }
.map-jump { position: absolute; top: 12px; left: 12px; z-index: 500; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow); flex-wrap: wrap; }
.map-jump button { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.map-jump button:hover { background: var(--green-50); color: var(--green-600); }
.map-locate { position: absolute; right: 12px; bottom: 96px; z-index: 500; }
.map-locate button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); color: var(--green); box-shadow: var(--shadow); }
.map-side { display: flex; flex-direction: column; gap: 12px; }
.scheme-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.scheme-list button { width: 100%; text-align: left; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--c); display: grid; gap: 2px; transition: background .15s; }
.scheme-list button:hover { background: var(--surface-3); }
.sch-tag { font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.scheme-list b { font-size: 13px; }
.scheme-list small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.layer-toggles { display: grid; gap: 9px; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle .sw { width: 22px; height: 6px; border-radius: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend-line { margin-top: 10px; padding-top: 0; border: 0; }
.legend i.ln { width: 18px; height: 4px; border-radius: 2px; }
.legend i.ln.dot { background: radial-gradient(circle, currentColor 1.4px, transparent 1.6px) 0 50% / 6px 4px repeat-x; }

/* Marker Leaflet */
.mk { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c, #94a3b8); color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(17, 40, 28, .35); transition: background .4s; }
.mk .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.mk-ra { border-radius: 7px; background: #fff; color: var(--c, var(--green)); border: 2.5px solid var(--c, var(--green)); }
.mk-ra b { font: 800 13px var(--font); }
.mk-tow { --c: #ea580c; border-radius: 7px; }
.mk-wx { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 9px 0 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.mk-wx b { font: 700 12px var(--font); color: var(--text); }
.mk-wx.severe { border-color: var(--orange); }
.mk-label { position: absolute; transform: translate(-50%, -150%); white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: var(--c); color: #fff; font: 800 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.mk-buffer { width: 18px; height: 18px; border-radius: 50%; background: #14b8a6; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(20, 184, 166, .6); animation: pulse 2s infinite; }
.mk-me { width: 22px; height: 22px; border-radius: 50%; background: rgba(3, 105, 161, .18); display: grid; place-items: center; }
.mk-me i { width: 14px; height: 14px; border-radius: 50%; background: #0284c7; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.mk-me.heading i { border-radius: 50% 50% 50% 0; }
.mk-dest { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--bad); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.mk-start { width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(20, 184, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); } }
.flow-line { stroke-dasharray: 10 14; animation: flow 1.1s linear infinite; }
.flow-line.fast { stroke-dasharray: 6 8; animation-duration: .6s; }
.flow-line.slow { animation-duration: 3s; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.tiles-soft { filter: saturate(.8) contrast(.97) brightness(1.02); }

.leaflet-container { font-family: var(--font); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 14px 16px; min-width: 220px; color: var(--text); }
.pop h4 { font-size: 14px; margin: 2px 0 8px; line-height: 1.3; }
.pop p { color: var(--muted); margin: 6px 0 0 !important; font-size: 12px; }
.pop .bar { margin-bottom: 8px; }
.pop-k { font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pop-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pop-row span { display: inline-flex; align-items: center; gap: 4px; }
.pop-btns { display: flex; gap: 6px; }
.pop-btns .btn-sm { flex: 1; }
.tip { border-radius: 8px; font-weight: 600; box-shadow: var(--shadow); }
.leaflet-bar a { color: var(--text); }
.leaflet-control-attribution { background: rgba(255, 255, 255, .85) !important; }

/* ---------- Navigasi ---------- */
.nav-layout { display: grid; grid-template-columns: 400px 1fr; gap: 16px; align-items: start; }
.nav-layout > *, .map-layout > *, .tow-layout > *, .toll-layout > *, .wx-layout > * { min-width: 0; }
.nav-panel { display: flex; flex-direction: column; }
.nav-form { padding: 16px; border-bottom: 1px solid var(--line); position: relative; }
.nav-points { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.nav-stack { display: grid; gap: 8px; }
.nav-pt { position: relative; display: flex; align-items: center; }
.nav-pt .dot { position: absolute; left: 13px; width: 10px; height: 10px; border-radius: 50%; }
.nav-pt .dot.a { background: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.nav-pt .dot.b { background: var(--bad); box-shadow: 0 0 0 3px #fee2e2; }
.nav-pt input { width: 100%; height: 44px; padding: 0 44px 0 34px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); outline: none; font-weight: 600; }
.nav-pt input:focus { border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 3px var(--green-100); }
.nav-pt .in-btn { position: absolute; right: 6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--green); }
.nav-pt .in-btn:hover { background: var(--green-50); }
.nav-opts { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; }
.suggest { list-style: none; position: absolute; left: 16px; right: 16px; z-index: 20; margin-top: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden; }
.suggest li button { width: 100%; display: grid; grid-template-columns: 24px 1fr; gap: 10px; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.suggest li:last-child button { border-bottom: 0; }
.suggest li button:hover, .suggest li button.on { background: var(--green-50); }
.suggest .ic { color: var(--muted); margin-top: 2px; }
.suggest b { display: block; font-size: 13px; }
.suggest small { color: var(--muted); font-size: 12px; }
.suggest .hint { padding: 10px 12px; font-size: 12px; color: var(--muted); }
.nav-body { padding: 16px; }
.nav-hello { display: grid; gap: 12px; color: var(--text-2); }
.nav-hello h3 { font-size: 16px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.route-card { padding: 16px; border-radius: 14px; background: var(--green-50); border: 1px solid var(--green-100); }
.route-time { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.route-time b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--green-600); }
.route-time span { color: var(--text-2); font-weight: 700; }
.route-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.route-meta .delay { color: var(--orange); font-weight: 700; }
.route-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.route-actions .btn-primary { grid-column: 1 / -1; }
.route-actions .btn:not(.btn-primary) { white-space: nowrap; font-size: 12px; padding: 0 8px; }
.seg { display: flex; gap: 4px; padding: 4px; margin: 16px 0 12px; border-radius: 11px; background: var(--surface-3); }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--green-600); box-shadow: var(--shadow-sm); }
.along { list-style: none; display: grid; gap: 0; }
.along li { display: grid; grid-template-columns: 56px 28px 1fr; gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.along li:last-child { border-bottom: 0; }
.along .km { font: 700 12px var(--font); color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.along .ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3); color: var(--green-600); }
.along .ico .ic { width: 15px; height: 15px; }
.along .ico.bad { background: #fee2e2; color: var(--bad); }
.along .ico.warn { background: #fef3c7; color: #a16207; }
.along b { display: block; font-size: 13px; line-height: 1.35; }
.along small { color: var(--muted); font-size: 12px; }
.along button.link { color: var(--green-600); font-weight: 700; font-size: 12px; }
.steps-list { list-style: none; counter-reset: st; }
.steps-list li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: start; }
.steps-list li::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font: 700 11px var(--font); color: var(--muted); }
.steps-list small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-map-wrap { position: sticky; top: 86px; height: calc(100vh - 150px); min-height: 560px; overflow: hidden; }
.nav-banner { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 600; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); }
.nav-banner .nb-dist { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.nav-banner .nb-text { font-size: 16px; font-weight: 700; margin-top: 4px; }
.nav-banner .nb-meta { font-size: 12px; opacity: .85; margin-top: 4px; }
.nav-banner .btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; height: 36px; }
.nav-banner .btn:hover { background: rgba(255, 255, 255, .26); }
.nav-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 500; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }

/* ---------- Lalu lintas / CCTV ---------- */
#cam-filters { margin-bottom: 16px; }
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cam-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s; }
.cam-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cam-screen { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.cam-screen canvas, .modal-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stream-box { position: absolute; inset: 0; background: #000; display: grid; place-items: center; }
.stream-box video, .stream-box img, .stream-box iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.stream-err { color: #cbd5e1; font-size: 13px; padding: 20px; text-align: center; }
.live-badge { display: none; }
.live-badge.on { position: absolute; display: inline-flex; align-items: center; gap: 6px; left: 8px; top: 8px; padding: 3px 8px; border-radius: 6px; background: #dc2626; color: #fff; font: 700 10px var(--mono); letter-spacing: .08em; z-index: 2; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.cam-expand { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; opacity: 0; transition: opacity .15s; }
.cam-card:hover .cam-expand { opacity: 1; }
.cam-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 12px 14px 2px; }
.cam-title { min-width: 0; }
.cam-title h4 { font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-title small { color: var(--muted); font-size: 12px; }
.cam-meta { display: flex; justify-content: space-between; padding: 6px 14px 12px; font-size: 12px; color: var(--muted); }
.cam-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cam-meta .cam-speed { color: var(--text); font-weight: 700; font-family: var(--font); font-size: 13px; }
.cam-meta .ic { width: 14px; height: 14px; color: var(--green); }

.modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(17, 40, 28, .45); backdrop-filter: blur(4px); }
.modal-box { display: grid; grid-template-columns: 1fr 340px; width: min(1280px, 100%); max-height: 100%; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.modal-screen { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.modal-screen:fullscreen { aspect-ratio: auto; }
.modal-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 3; }
.modal-ctrl button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 0, 0, .55); color: #fff; }
.modal-info { position: relative; padding: 20px; overflow-y: auto; border-left: 1px solid var(--line); }
.modal-info h3 { font-size: 18px; line-height: 1.3; margin: 4px 40px 0 0; letter-spacing: -.02em; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; }
.cam-dl { display: grid; gap: 10px; }
.cam-dl div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cam-dl dt { color: var(--muted); font-size: 12px; }
.cam-dl dd { font-weight: 700; font-size: 13px; text-align: right; }
.spark-wrap { margin-top: 16px; }
.spark-wrap small { color: var(--muted); font-size: 12px; }
.spark { width: 100%; height: 64px; margin-top: 6px; }
.spark-line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--green-50); stroke: none; }

/* ---------- Rest area ---------- */
.filters { display: grid; grid-template-columns: 280px 220px auto; gap: 14px; align-items: end; margin-bottom: 16px; }
.filters .check { height: 42px; }
.filters .chips { grid-column: 1 / -1; }
.ra-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); gap: 14px; }
.ra-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.ra-card.passed { opacity: .55; }
.ra-card header { display: flex; align-items: center; gap: 12px; }
.km-sign { flex: none; display: grid; place-items: center; width: 60px; height: 50px; border-radius: 8px; background: var(--green); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--green); text-align: center; line-height: 1; }
.km-sign small { font: 700 9px var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .85); }
.km-sign b { font: 800 16px var(--font); color: #fff; letter-spacing: -.02em; }
.ra-title { flex: 1; min-width: 0; }
.ra-title h4 { font-size: 15px; line-height: 1.3; }
.ra-title small { color: var(--muted); font-size: 12px; }
.ra-dist { text-align: right; flex: none; }
.ra-dist b { display: block; font-size: 18px; font-weight: 800; color: var(--green-600); letter-spacing: -.02em; }
.ra-dist small, .ra-dist span { font-size: 12px; color: var(--muted); }
.ra-park-top, .ra-park-bot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ra-park-top span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.ra-park-top .ic { width: 16px; height: 16px; color: var(--muted); }
.ra-park .bar { margin: 8px 0 6px; }
.ra-park-bot b { font-size: 15px; }
.ra-park-bot small { color: var(--muted); font-size: 12px; }
.ra-park > small { display: block; margin-top: 8px; font-size: 12px; }
.ra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ra-box { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ra-box-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; }
.ra-box-h .ic { width: 15px; height: 15px; color: var(--green); }
.ra-box-h small { margin-left: auto; color: var(--dim); font-size: 11px; }
.ra-box > small { font-size: 12px; font-weight: 600; }
.ev-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.ev-dots i { width: 16px; height: 16px; border-radius: 5px; background: var(--surface-3); border: 1px solid var(--line-2); }
.ev-dots i.on { background: var(--ok); border-color: var(--ok); }
.fuel { list-style: none; display: grid; gap: 3px; font-size: 12px; }
.fuel li { display: flex; justify-content: space-between; gap: 6px; }
.fuel em { font-style: normal; font-weight: 700; }
.f-ok em { color: var(--ok); }
.f-terbatas em { color: var(--warn); }
.f-habis em { color: var(--bad); }
.fac { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.fac li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); }
.fac .ic { width: 14px; height: 14px; color: var(--green); }
.ra-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.ra-report { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.ra-report .chip { height: 30px; font-size: 12px; }
.ra-report .chip:disabled { opacity: .4; cursor: default; }
.ra-foot .btn { height: 32px; font-size: 12px; }

/* ---------- Tarif tol ---------- */
.presets { display: flex; gap: 8px; flex-wrap: wrap; }
.toll-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.toll-form { display: flex; flex-direction: column; gap: 16px; }
.gate-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.gate-row.two { grid-template-columns: 1fr 1fr; }
.gol-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.gol { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: all .15s; }
.gol input { position: absolute; opacity: 0; pointer-events: none; }
.gol-ic { height: 28px; display: grid; place-items: center; color: var(--dim); }
.gol-ic svg { height: 24px; width: auto; max-width: 64px; }
.gol b { font-size: 13px; }
.gol small { color: var(--muted); font-size: 10.5px; line-height: 1.3; }
.gol:hover { border-color: var(--green-500); }
.gol:has(input:checked) { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 1px var(--green); }
.gol:has(input:checked) .gol-ic { color: var(--green); }
.gol:has(input:focus-visible) { outline: 2px solid var(--green-500); outline-offset: 2px; }
.disc-info { font-size: 12px; margin-top: -6px; }
.disc-info span { display: inline-flex; align-items: center; gap: 6px; }
.disc-info .ic { width: 15px; height: 15px; }
.disc-box { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.disc-box h4 { font-size: 13px; margin-bottom: 8px; }
.disc-box ul { list-style: none; display: grid; gap: 6px; font-size: 13px; }
.disc-box li { display: flex; gap: 10px; align-items: center; }
.disc-box li span { color: var(--muted); flex: 1; }
.disc-box li em { font-weight: 800; font-style: normal; color: var(--green); }
.receipt { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.rc-warn { margin: -4px 0 16px; padding: 9px 12px; border-radius: 9px; background: #fef3c7; color: #854d0e; font-size: 12px; font-weight: 700; }
.rc-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.rc-route > div:last-child { text-align: right; }
.rc-route small { display: block; font: 700 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.rc-route b { display: block; font-size: 16px; line-height: 1.25; letter-spacing: -.02em; }
.rc-route span { font-size: 12px; color: var(--muted); }
.rc-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.rc-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 8px; background: var(--surface-3); font-size: 12px; font-weight: 600; }
.rc-chips .ic { width: 14px; height: 14px; color: var(--green); }
.rc-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.rc-table th { text-align: left; font: 700 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 6px 0; border-bottom: 1px solid var(--line); }
.rc-table th:not(:first-child), .rc-table td:not(:first-child) { text-align: right; }
.rc-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.rc-table .mono { font-family: var(--font); font-weight: 600; }
.rc-est { font-style: normal; font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #a16207; background: #fef3c7; padding: 1px 5px; border-radius: 4px; vertical-align: 1px; }
.rc-sum { margin-top: 12px; display: grid; gap: 6px; font-size: 13px; }
.rc-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.rc-sum .mono { font-family: var(--font); font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-disc { color: var(--green); font-weight: 700; }
.rc-total { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--text); align-items: baseline; }
.rc-total span { font-weight: 800; font-size: 14px; }
.rc-total b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: var(--green-600); }
.rc-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 10px; background: var(--green-50); color: var(--text-2); }
.rc-tip .ic { color: var(--green); margin-top: 2px; }
.rc-tip b { display: block; font-size: 13px; color: var(--text); }
.rc-tip small { color: var(--muted); font-size: 12px; }

/* ---------- Cuaca ---------- */
.wx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.hazards { display: grid; gap: 8px; margin-bottom: 22px; }
.hazard { display: flex; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--hz); box-shadow: var(--shadow-sm); }
.lv-awas { --hz: var(--bad); }
.lv-siaga { --hz: var(--orange); }
.lv-waspada { --hz: var(--warn); }
.hz-level { flex: none; width: 84px; display: flex; flex-direction: column; gap: 4px; color: var(--hz); font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hz-body h4 { font-size: 14px; }
.hz-body h4 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.hz-body p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.wx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wx-card { padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wx-card.severe { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed, #fff 55%); }
.wx-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.wx-card h4 { font-size: 15px; }
.wx-card header small { color: var(--muted); font-size: 11px; }
.wx-now { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.wx-temp { font-size: 34px; font-weight: 800; letter-spacing: -.05em; }
.wx-cond { color: var(--text-2); font-weight: 600; font-size: 13px; }
.wx-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wx-meta div { display: grid; justify-items: start; gap: 1px; }
.wx-meta .ic { width: 14px; height: 14px; color: var(--green); }
.wx-meta dt { font-size: 10.5px; color: var(--muted); }
.wx-meta dd { font-weight: 700; font-size: 12.5px; }
.wx-fc { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.wx-fc li { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.wx-fc b { font-weight: 700; font-size: 12.5px; color: var(--text); }
.ferry { position: sticky; top: 86px; }
.ferry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ferry-title { display: flex; gap: 10px; align-items: center; }
.ferry-title > .ic { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: #e0f2fe; color: var(--blue); }
.ferry-title h3 { font-size: 16px; letter-spacing: -.02em; }
.ferry-title small { color: var(--muted); font-size: 12px; }
.ferry-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.ferry-kpi div { padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ferry-kpi small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.ferry-kpi b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.ferry-kpi b span { font-size: 12px; color: var(--dim); }
.ferry-dir { padding: 12px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; }
.ferry-dir.heavy { border-color: var(--green-500); background: var(--green-50); }
.fd-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.fd-title span { color: var(--dim); }
.fd-title .pill { margin-left: auto; }
.fd-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fd-stats b { display: block; font-weight: 800; font-size: 15px; }
.fd-stats small { font-size: 11px; color: var(--muted); }
.fd-note { font-size: 12px; color: var(--text); margin: 8px 0 4px; }
.ferry-dir small.muted { display: block; margin-top: 6px; font-size: 11px; }
.note a, .hz-body a { color: var(--green-600); font-weight: 600; }

/* ---------- Darurat ---------- */
.hotlines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.hotline { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .12s, border-color .15s, box-shadow .15s; }
.hotline:hover { border-color: var(--c); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.hotline:active { transform: scale(.98); }
.hl-ic { grid-row: 1 / 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.hl-ic .ic { width: 22px; height: 22px; }
.hl-txt { min-width: 0; }
.hl-txt b { display: block; font-size: 14px; }
.hl-txt small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.hl-num { grid-column: 2; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--c); font-family: var(--font); }
.hl-call { grid-column: 3; grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; }
.hl-call .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.tow-layout { display: grid; grid-template-columns: 420px 1fr; gap: 16px; align-items: start; }
.tow-form { display: flex; flex-direction: column; gap: 16px; }
.tow-form h3 { font-size: 17px; letter-spacing: -.02em; }
.loc-box { padding: 10px 12px; border-radius: 10px; background: var(--green-50); border: 1px solid var(--green-100); margin-bottom: 8px; }
.loc-box b { display: block; font-size: 14px; }
.loc-box small { color: var(--muted); font-size: 12px; }
.chip-radio { cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--text-2); transition: all .15s; }
.chip-radio:hover span { border-color: var(--green-500); }
.chip-radio input:checked + span { color: #fff; background: var(--green); border-color: var(--green); }
.chip-radio input:focus-visible + span { outline: 2px solid var(--green-500); outline-offset: 2px; }
.tow-right { display: flex; flex-direction: column; gap: 14px; }
.tow-map-wrap { position: relative; height: 400px; overflow: hidden; }
#tw-map { position: absolute; inset: 0; cursor: crosshair; }
.track-row { display: flex; gap: 8px; }
.track-row .select { text-transform: uppercase; font-family: var(--mono); }
.saved-tickets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.saved-tickets .chip { height: 28px; font: 600 12px var(--mono); }
.job-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.job-head small { display: block; font-size: 11px; color: var(--muted); }
.job-head b { font-size: 16px; }
.job-eta { text-align: right; }
.job-eta b { font-size: 24px; font-weight: 800; color: var(--green-600); letter-spacing: -.03em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: 12px; color: var(--dim); }
.steps li::before { content: ''; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--line-2); }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.now::before { background: var(--green-500); }
.steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); font: 700 12px var(--font); font-style: normal; background: #fff; }
.steps .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.steps li.done { color: var(--text); }
.steps li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.steps li.now { color: var(--green-600); font-weight: 700; }
.steps li.now i { border-color: var(--green); color: var(--green); animation: pulse-g 1.6s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .4); } 70% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
.job-dl { display: grid; gap: 8px; margin-bottom: 4px; }
.job-dl div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 13px; }
.job-dl dt { color: var(--muted); }
.job-dl dd { font-weight: 600; }
.tow-status .btn { margin-top: 14px; width: 100%; }

/* ---------- Tampilkan lebih banyak ---------- */
.more-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; grid-column: 1 / -1; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--green-500); color: var(--green-600); font-weight: 700; font-size: 13px; box-shadow: var(--shadow-sm); transition: background .15s; }
.more-btn:hover { background: var(--green-50); }
.more-btn span { color: var(--muted); font-weight: 600; }
.more-less { height: 42px; padding: 0 14px; color: var(--muted); font-weight: 600; font-size: 13px; }
.more-less:hover { color: var(--green-600); }
.scheme-list + div .more-row, .along + .more-row, .steps-list + .more-row { margin-top: 10px; }
.rc-table + .more-row { margin: 10px 0 2px; }
.rc-table + .more-row .more-btn { height: 34px; padding: 0 16px; font-size: 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 3000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; max-width: calc(100vw - 32px); background: var(--text); color: #fff; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-lg); transition: all .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) {
  .clock { display: none; }
  .tab { padding: 8px 9px; }
  .hotlines { grid-template-columns: repeat(2, 1fr); }
  .wx-layout, .toll-layout { grid-template-columns: 1fr; }
  .ferry { position: static; }
  .tow-layout { grid-template-columns: 1fr; }
  .modal-box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal-info { border-left: 0; border-top: 1px solid var(--line); }
  .nav-layout { grid-template-columns: 340px 1fr; }
}
@media (max-width: 920px) {
  /* backdrop-filter membuat menu bawah (position: fixed) ikut menempel di header */
  .topbar { padding: 10px 16px; gap: 12px; backdrop-filter: none; background: #fff; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; justify-content: space-around; gap: 0; padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(17, 40, 28, .06); }
  .tab { flex-direction: column; gap: 3px; padding: 6px 0; font-size: 9.5px; flex: 1; min-width: 0; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabs { overflow: visible; }
  .tab.active { background: transparent; }
  .tab .ic { width: 21px; height: 21px; }
  .topbar-right { margin-left: auto; }
  main { padding: 16px 16px 100px; }
  .footer { padding-bottom: 100px; }
  .toast { bottom: 88px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-wrap { position: relative; top: 0; height: 60vh; min-height: 380px; }
  .nav-layout { grid-template-columns: 1fr; }
  .nav-map-wrap { position: relative; top: 0; height: 58vh; min-height: 360px; order: -1; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-row .kpi.wide { grid-column: 1 / -1; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .check { grid-column: 1 / -1; height: auto; }
  .ra-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand { font-size: 16px; }
  .brand .tld { display: none; }
  .dir-toggle button { padding: 6px 10px; font-size: 12px; }
  .view-head h1 { font-size: 22px; }
  .toolbar, .toolbar .select, .search, .search input { width: 100%; }
  .cam-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .gate-row { grid-template-columns: 1fr; }
  .gate-row .icon-btn { justify-self: center; transform: rotate(90deg); }
  .gate-row.two { grid-template-columns: 1fr; }
  .gol-grid { grid-template-columns: repeat(3, 1fr); }
  .hotlines { grid-template-columns: 1fr; }
  .ra-grid { grid-template-columns: 1fr; }
  .ra-card header { flex-wrap: wrap; }
  .ra-dist { text-align: left; width: 100%; display: flex; gap: 8px; align-items: baseline; }
  .steps li span { font-size: 10.5px; }
  .tow-map-wrap { height: 320px; }
  .modal { padding: 0; }
  .modal-box { border-radius: 0; height: 100%; }
  .hazard { flex-direction: column; gap: 6px; }
  .hz-level { flex-direction: row; width: auto; align-items: center; }
  .route-actions { grid-template-columns: 1fr 1fr; }
  .nav-banner .nb-dist { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- Lapisan peta (popover) & kolom kanan ringkas ---------- */
.map-layers { position: absolute; top: 12px; right: 12px; z-index: 600; }
.map-layers-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.map-layers-btn[aria-expanded=true] { border-color: var(--green-500); color: var(--green-600); }
.map-layers-btn .ic { color: var(--green); }
.map-layers-pop { position: absolute; right: 0; top: 46px; width: 280px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.map-layers-pop .legend { margin-top: 12px; }
.side-more:empty { display: none; }
.side-more .more-row { margin-top: 0; }
.near + .more-row { margin-top: 10px; }
.map-side .kpi-grid { gap: 8px; }
.map-side .kpi { padding: 8px 11px; }
.map-side .kpi small { font-size: 11px; }
.map-side .kpi b { font-size: 19px; margin-top: 0; }
.map-side .side-h { margin-bottom: 10px; }
.map-side .near { gap: 6px; }
.map-side .near-item { padding: 8px 10px; }
.map-side .near-loc { padding: 10px 12px; }
@media (max-width: 600px) { .map-layers-btn span { display: none; } .map-layers-btn { padding: 0 11px; } }
