/* Peta Transportasi — melengkapi bus-sekolah.css (tata letak, panel, legenda, tooltip dipakai bersama) */
.tr-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; border: 1px solid color-mix(in srgb, var(--tfj-navy) 10%, transparent); background: #fff; border-radius: var(--radius-tile); padding: 8px 12px; cursor: pointer; }
.tr-item:hover, .tr-item:focus-visible { background: var(--tfj-tint); }
.tr-item b { display: block; font-size: .9rem; line-height: 1.25; }
.tr-item small { color: var(--tfj-muted); font-size: .74rem; }
.tr-item .roundel, .rd .roundel { width: 36px; height: 36px; font-size: .85rem; flex: none; }
.tr-item .roundel.outline, .rd .roundel.outline { border-width: 4px; }
.tr-item .roundel.sm, .rd .roundel.sm { font-size: .72rem; }
.tr-item .roundel.xs, .rd .roundel.xs { font-size: .55rem; }
.tr-item .roundel.stack i, .rd .roundel.stack i { font-size: .46rem; }
.tr-item .roundel.stack b, .rd .roundel.stack b { font-size: .88rem; display: inline; }
.rd { display: inline-flex; flex: none; }
.rd.big .roundel { width: 52px; height: 52px; font-size: 1.1rem; }
.rd.big .roundel.sm { font-size: .95rem; }
.rd.big .roundel.outline { border-width: 5px; }
.rd.big .roundel.stack i { font-size: .6rem; } .rd.big .roundel.stack b { font-size: 1.1rem; }
.tr-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--tfj-tint); display: inline-grid; place-items: center; flex: none; font-size: 1.1rem; }
.tr-ico.stn { background: #fff; border: 3px solid var(--tfj-navy); border-radius: 50%; width: 28px; height: 28px; }

/* bagian grup (accordion) */
.tr-sec { background: #fff; border: 1px solid color-mix(in srgb, var(--tfj-navy) 10%, transparent); border-radius: var(--radius-tile); overflow: hidden; }
.tr-sec > summary { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; list-style: none; }
.tr-sec > summary::-webkit-details-marker { display: none; }
.tr-sec > summary:hover { background: var(--tfj-tint); }
.tr-sec .mi { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.tr-sec .tt { flex: 1; min-width: 0; font-weight: 800; font-size: .92rem; }
.tr-sec .tt small { color: var(--tfj-muted); font-weight: 600; margin-left: 4px; }
.tr-sec .prev { padding-left: 8px; }
.tr-sec .prev .roundel { width: 26px; height: 26px; font-size: .6rem; margin-left: -8px; box-shadow: 0 0 0 2px #fff; border-width: 3px; }
.tr-sec .prev .roundel.sm { font-size: .52rem; } .tr-sec .prev .roundel.xs { font-size: .42rem; }
.tr-sec .prev .roundel.stack i { font-size: .34rem; } .tr-sec .prev .roundel.stack b { font-size: .6rem; }
.tr-sec .chev { width: 9px; height: 9px; border-right: 2.5px solid var(--tfj-blue); border-bottom: 2.5px solid var(--tfj-blue); transform: rotate(45deg); transition: transform .2s; margin: 0 4px 3px 0; flex: none; }
.tr-sec[open] > summary .chev { transform: rotate(-135deg); margin-top: 5px; margin-bottom: 0; }
.tr-sec[open] > summary .prev { visibility: hidden; }
.tr-sub { list-style: none; margin: 0; padding: 4px 10px 10px; display: grid; gap: 4px; border-top: 1px solid color-mix(in srgb, var(--tfj-navy) 8%, transparent); background: color-mix(in srgb, var(--tfj-tint) 50%, #fff); }
.tr-sub .tr-item { border-radius: var(--radius-chip); padding: 6px 10px; }
.tr-cap { list-style: none; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); margin: 10px 4px 0; }

/* daftar halte/stasiun pada detail jalur */
.tr-stops { list-style: none; margin: 0; padding: 0 0 0 8px; position: relative; }
.tr-stops::before { content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--rc, var(--tfj-blue)); }
/* daftar halte rute dengan bus live: ruang kiri untuk no body, garis digeser */
.tr-stops.tr-live { padding-left: 84px; } .tr-stops.tr-live::before { left: 93px; }
.bus-row { position: relative; list-style: none; min-height: 28px; display: flex; align-items: center; margin: 1px 0; cursor: pointer; }
.bus-row .bb-dot { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--bc, var(--tfj-blue)); border: 2px solid #fff; box-shadow: 0 0 0 2.5px var(--tfj-navy); z-index: 2; }
.bus-row .bb-no { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); background: var(--tfj-navy); color: #fff; font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 999px; white-space: nowrap; letter-spacing: .01em; }
.bus-row .bb-meta { margin-left: 32px; font-size: .74rem; color: var(--tfj-muted); line-height: 1.2; } .bus-row .bb-meta b { color: var(--tfj-navy); }
.bus-row:hover .bb-meta { color: var(--tfj-navy); }
.tr-stops li button { width: 100%; text-align: left; font: inherit; background: none; border: 0; display: flex; align-items: flex-start; gap: 12px; padding: 6px 4px; cursor: pointer; border-radius: 8px; }
.tr-stops li button:hover { background: var(--tfj-tint); }
.tr-stops .d { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--rc, var(--tfj-blue)); flex: none; margin-top: 3px; z-index: 1; }
.tr-stops .d.x { width: 18px; height: 18px; border-width: 4px; border-color: var(--tfj-navy); margin: 1px -2px 0 -2px; }
.tr-stops .nm { font-size: .86rem; font-weight: 700; flex: 1; min-width: 0; }
.tr-stops .nm small { display: block; font-weight: 400; color: var(--tfj-muted); font-size: .72rem; }
.tr-stops .integ { margin-top: 3px; }
.tr-stops .num { font-size: .7rem; font-weight: 800; color: var(--tfj-muted); min-width: 28px; font-family: var(--font-route-narrow); }

/* chip integrasi (roundel kecil) */
.tjchips .roundel.outline { border: 2.5px solid var(--rc); background: #fff; color: var(--tfj-ink); }
.dirtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 20px 0; }
.dirtabs button { font: inherit; font-size: .76rem; font-weight: 700; border: 2px solid var(--tfj-blue); border-radius: var(--radius-pill); padding: 5px 12px; background: transparent; color: var(--tfj-blue); cursor: pointer; max-width: 100%; text-align: left; }
.dirtabs button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; }
.am { display: flex; flex-wrap: wrap; gap: 6px; }
.am span { font-size: .72rem; font-weight: 700; background: var(--tfj-tint); color: var(--tfj-navy); border-radius: var(--radius-pill); padding: 3px 10px; }
.lg-c { display: flex; align-items: center; gap: 8px; line-height: 1.7; cursor: pointer; }
.lg-c input { accent-color: var(--tfj-blue); margin: 0; width: 14px; height: 14px; }
.lg-c .lg-l { height: 5px; }
#legendBody { max-height: 30vh; overflow: auto; }

/* kode GTFS */
.sid { font: 600 .68rem/1 ui-monospace, Consolas, monospace; background: var(--tfj-tint); color: var(--tfj-navy); border-radius: 5px; padding: 2px 5px; white-space: nowrap; }
.mut { color: var(--tfj-muted); font-weight: 600; }

/* rencana perjalanan */
.rp { margin: 0 20px 10px; background: #fff; border: 1px solid color-mix(in srgb, var(--tfj-navy) 12%, transparent); border-radius: var(--radius-tile); }
.rp > summary { cursor: pointer; padding: 9px 14px; font-weight: 800; font-size: .92rem; list-style: none; }
.rp > summary::-webkit-details-marker { display: none; }
.rp-f { padding: 0 12px 12px; display: grid; gap: 8px; }
.rp-row { position: relative; display: flex; align-items: center; gap: 8px; }
.rp-row input { flex: 1; min-width: 0; font: inherit; font-size: .88rem; border: 1.5px solid color-mix(in srgb, var(--tfj-navy) 18%, transparent); border-radius: var(--radius-chip); padding: 8px 10px; }
.rp-row input:focus { outline: 2px solid var(--tfj-blue); border-color: transparent; }
.pdot, .ar { display: inline-block; border-radius: 50%; background-color: #14293d; background-repeat: no-repeat; background-position: center; background-size: 64%; font-size: 0; line-height: 0; flex: none; }
.pdot.up, .ar.up { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E"); }
.pdot.dn, .ar.dn { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v15M5.5 12.5L12 19l6.5-6.5'/%3E%3C/svg%3E"); }
.pdot { width: 22px; height: 22px; }

.ar { width: 16px; height: 16px; vertical-align: middle; margin: -2px 3px 0 0; overflow: hidden; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sug { position: absolute; left: 20px; right: 0; top: calc(100% + 2px); z-index: 30; background: #fff; border: 1px solid color-mix(in srgb, var(--tfj-navy) 18%, transparent); border-radius: var(--radius-chip); box-shadow: 0 10px 30px rgba(20, 41, 61, .18); max-height: 280px; overflow: auto; }
.sug button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; font: inherit; font-size: .84rem; background: none; border: 0; padding: 7px 10px; cursor: pointer; }
.sug button:hover { background: var(--tfj-tint); }
.sug .n { flex: 1; min-width: 0; font-weight: 700; }
.sug .roundel { width: 22px; height: 22px; font-size: .5rem; border-width: 2.5px; }
.rp-btns { display: flex; gap: 6px; }
.rp-btns button { font: inherit; font-size: .8rem; font-weight: 700; border: 2px solid var(--tfj-blue); background: transparent; color: var(--tfj-blue); border-radius: var(--radius-pill); padding: 6px 14px; cursor: pointer; }
.rp-btns .go { background: var(--tfj-blue); color: #fff; flex: 1; }
.rp-act { margin-top: 0; }
.rp-act button { border-color: #14293d; color: #14293d; }
.rp-act button:hover { background: var(--tfj-tint); }
.rp-out { padding: 0 20px 20px; }
.rp-out .dirtabs { margin: 8px 0 0; }
.rp-h { font-size: .95rem; margin: 6px 0 0; line-height: 1.35; }
.rp-h .g, .rp-h .r { color: #14293d; } .rp-h .arr { color: var(--tfj-muted); }
.rp-tr { font-size: .8rem; margin: 10px 0 0; }
.sg { display: inline-block; font: inherit; font-size: .72rem; font-weight: 700; background: var(--tfj-tint); color: var(--tfj-navy); border: 0; border-radius: var(--radius-pill); padding: 3px 9px; margin: 2px 2px 0 0; }
button.sg { cursor: pointer; } button.sg:hover { background: color-mix(in srgb, var(--tfj-blue) 18%, #fff); }
.pl-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pl { position: relative; display: flex; gap: 12px; padding: 0 0 14px 2px; }
.pl::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: -2px; width: 4px; border-radius: 2px; background: var(--rc, #14293d); }
.pl.walk::before { background: repeating-linear-gradient(#14293d 0 3px, transparent 3px 8px); width: 3px; left: 8.5px; }
.pl:last-child::before { display: none; }
.pl-dot { width: 14px; height: 14px; border-radius: 50%; border: 3.5px solid var(--rc, #14293d); background: #fff; flex: none; margin-top: 3px; z-index: 1; margin-left: 1px; }
.pl b { font-size: .86rem; line-height: 1.4; } .pl small { display: block; color: var(--tfj-muted); font-size: .76rem; margin-top: 2px; }
.pl .roundel { width: 26px; height: 26px; font-size: .62rem; vertical-align: middle; border-width: 3px; }
.pl .roundel.sm { font-size: .54rem; } .pl .roundel.xs { font-size: .44rem; }
.pl .exh { color: #14293d; font-weight: 700; }
#listView.planning .bs-tools, #listView.planning #hits, #listView.planning #list, #listView.planning .bs-foot, #listView.planning .bs-info { display: none; }

/* pintu keluar */
.pt-h { font-weight: 800; font-size: .8rem; margin: 10px 0 4px; color: var(--tfj-navy); }
.pt-h span { color: var(--tfj-muted); font-weight: 600; }
.pt-grp .ex-ref { background: var(--tfj-navy); font-size: .7rem; }
.xt { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.xt li { background: #fff; border: 1px solid color-mix(in srgb, var(--tfj-navy) 10%, transparent); border-radius: var(--radius-tile); padding: 6px 8px; }
.ex-h { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
.ex-ref { width: 28px; height: 28px; border-radius: 50%; background: var(--tfj-navy); color: #fff; font-weight: 800; font-size: .8rem; display: inline-grid; place-items: center; flex: none; }
.ex-signs { margin: 6px 0 0 38px; }

/* trip */
.trips { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 320px; overflow: auto; }
.trips button { width: 100%; text-align: left; font: inherit; background: #fff; border: 1.5px solid color-mix(in srgb, var(--tfj-navy) 12%, transparent); border-radius: var(--radius-chip); padding: 6px 10px; cursor: pointer; }
.trips button b { display: block; font-size: .84rem; } .trips button small { display: block; color: var(--tfj-muted); font-size: .72rem; }
.trips button[aria-pressed="true"] { border-color: var(--rc, var(--tfj-blue)); background: var(--tfj-tint); }

/* poster */
.pz { border: 0; border-radius: var(--radius-card); padding: 0; width: min(920px, 94vw); max-height: 92vh; box-shadow: 0 24px 80px rgba(20,41,61,.35); }
.pz::backdrop { background: rgba(20,41,61,.55); }
.pz-in { display: grid; grid-template-columns: 300px 1fr; max-height: 92vh; }
.pz-ctl { padding: 20px; overflow: auto; position: relative; }
.pz-ctl h2 { font-size: 1.05rem; margin: 0 28px 4px 0; }
.pz-x { position: absolute; right: 12px; top: 10px; border: 0; background: var(--tfj-tint); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; }
.pz-g { margin: 0 0 14px; } .pz-g > b { display: block; font-size: .78rem; margin-bottom: 6px; }
.pz-opt { display: grid; gap: 6px; }
.pz-opt button, .pz-fmt button { font: inherit; text-align: left; border: 2px solid color-mix(in srgb, var(--tfj-navy) 15%, transparent); background: #fff; border-radius: var(--radius-chip); padding: 7px 12px; cursor: pointer; }
.pz-opt button span { display: block; font-weight: 800; font-size: .86rem; } .pz-opt small { color: var(--tfj-muted); font-size: .72rem; }
.pz-fmt { display: flex; gap: 6px; } .pz-fmt button { flex: 1; text-align: center; font-weight: 800; }
.pz button[aria-pressed="true"] { border-color: var(--tfj-blue); background: var(--tfj-tint); }
.pz select { width: 100%; font: inherit; font-size: .82rem; padding: 7px; border-radius: var(--radius-chip); border: 2px solid color-mix(in srgb, var(--tfj-navy) 15%, transparent); }
.pz-go { width: 100%; font: inherit; font-weight: 800; background: var(--tfj-blue); color: #fff; border: 0; border-radius: var(--radius-pill); padding: 11px; cursor: pointer; }
.pz-go:disabled { opacity: .55; cursor: wait; }
.pz-prev { background: #e9eef3; display: grid; place-items: center; padding: 18px; overflow: auto; }
.pz-prev canvas { max-width: 100%; max-height: 80vh; width: auto; height: auto; box-shadow: 0 6px 24px rgba(20,41,61,.25); background: #fff; }
.pz-prev.busy canvas { opacity: .45; }
@media (max-width: 760px) { .pz-in { grid-template-columns: 1fr; overflow: auto; } .pz-prev canvas { max-height: 50vh; } }
/* lapisan (modal) */
.layers-dlg { width: min(380px, 92vw); }
.layers-dlg .pz-ctl { padding: 20px 20px 16px; }
.layers-dlg #legendBody .lg-h { margin: 16px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--tfj-blue); text-transform: none; }
.layers-dlg #legendBody .lg-h:first-child { margin-top: 4px; }
.layers-dlg #legendBody .lg-c { font-size: .88rem; padding: 3px 0; }
/* panel samping: bisa disembunyikan (desktop) / bottom sheet (mobile) */
/* tombol panel: setengah lingkaran biru menempel di tepi kanan panel, tengah vertikal */
.pn-toggle { position: absolute; left: 420px; top: 50%; transform: translateY(-50%); z-index: 30; width: 24px; height: 68px; display: grid; place-items: center; background: var(--tfj-blue); color: #fff; border: 0; border-radius: 0 34px 34px 0; box-shadow: 3px 0 10px rgba(20,41,61,.25); cursor: pointer; transition: left .22s ease, background .15s; padding: 0 2px 0 0; }
.pn-toggle svg { width: 15px; height: 15px; transition: transform .22s; }
.bs.collapsed .pn-toggle { left: 0; } .bs.collapsed .pn-toggle svg { transform: rotate(180deg); }
.pn-toggle:hover { background: var(--tfj-navy); }
.bs { position: relative; transition: grid-template-columns .22s ease; height: calc(100vh - 102px); }
.bs.collapsed { grid-template-columns: 0 minmax(0, 1fr); }
.bs.collapsed .bs-side { visibility: hidden; border: 0; }
.sheet-handle { display: none; }
@media (max-width: 900px) {
  .bs { display: block; height: calc(100dvh - 68px); min-height: 480px; position: relative; overflow: hidden; }
  .bs.collapsed { display: block; }
  .bs.collapsed .bs-side { visibility: visible; }
  .bs-map { order: 0; position: absolute; inset: 0; height: auto; min-height: 0; z-index: 1; }
  .pn-toggle { display: none; }
  .bs-side { position: absolute; left: 0; right: 0; bottom: 0; height: 88%; z-index: 20; border-right: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -8px 30px rgba(20,41,61,.28); overflow-y: auto; overscroll-behavior: contain; transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .bs-side[data-sheet="full"] { transform: translateY(0); }
  .bs-side[data-sheet="half"] { transform: translateY(calc(100% - 48vh)); }
  .bs-side[data-sheet="min"] { transform: translateY(calc(100% - 120px)); }
  .bs-side.dragging { transition: none; }
  .sheet-handle { display: flex; justify-content: center; position: sticky; top: 0; z-index: 6; padding: 12px 0 10px; background: var(--tfj-cream); cursor: grab; touch-action: none; border-radius: 18px 18px 0 0; }
  .sheet-handle i { width: 46px; height: 5px; border-radius: 3px; background: #aab6c3; }
  .bs-map .maplibregl-ctrl-bottom-right { margin-bottom: 128px; }
  .bs-hint { display: none; }
}
/* lokasi saat ini */
.rp-loc { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--tfj-navy) 18%, transparent); background: #fff; color: var(--tfj-blue); border-radius: var(--radius-chip); cursor: pointer; }
.rp-loc:hover { background: var(--tfj-tint); } .rp-loc.busy svg { animation: rpspin 1s linear infinite; }
@keyframes rpspin { to { transform: rotate(360deg); } }
.sug .hd { padding: 7px 12px 3px; font-size: .7rem; font-weight: 700; color: var(--tfj-muted); text-transform: uppercase; letter-spacing: .04em; }

/* lapisan & legenda: pojok kanan atas, di bawah tombol */
.bs-stack { position: absolute; top: 58px; right: 12px; z-index: 800; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.bs-stack .bs-legend { position: static; width: max-content; max-width: 250px; }
#symBody { padding: 0 12px 10px; max-height: 34vh; overflow: auto; }
.sy { display: flex; align-items: center; gap: 9px; line-height: 1.5; margin: 2px 0; }
.sy > i { flex: none; width: 26px; display: grid; place-items: center; }
.sy .ring { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2.5px solid #5a6a7a; }
.sy .ring.h { border-color: #18549c; width: 14px; height: 14px; } .sy .ring.s { border-color: #14293d; width: 16px; height: 16px; border-width: 3px; }
.sy .dot { width: 12px; height: 12px; border-radius: 50%; background: #1267ff; border: 2.5px solid #fff; box-shadow: 0 0 0 5px rgba(18,103,255,.2); }
.sy .xs { width: 16px; height: 16px; border-radius: 50%; background: #14293d; color: #fff; font-size: .55rem; font-weight: 800; display: grid; place-items: center; }
.sy .walk { width: 24px; border-top: 3px dotted #14293d; } .sy .ln { width: 24px; height: 5px; border-radius: 3px; background: #1a9d4b; box-shadow: 0 0 0 1.5px #fff; }
.sy .arw { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid #14293d; }
.sy .area { width: 22px; height: 12px; border-radius: 3px; border: 1px solid rgba(20,41,61,.35); }
.bs-map.dark .sy .ring, .bs-map.dark .sy .xs { box-shadow: none; }

.sug-e { font: inherit; font-size: .78rem; font-weight: 700; color: var(--tfj-navy); background: #fff3c4; border-radius: var(--radius-pill); padding: 6px 14px; text-decoration: none; display: inline-block; }
.sug-e:hover { background: #ffe58a; }

/* tombol lapor kesalahan peta — di sebelah tombol ⓘ atribusi */
.map-report { position: absolute; right: 46px; bottom: 10px; z-index: 1; display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.92); color: var(--tfj-navy); border-radius: var(--radius-pill); padding: 4px 12px 4px 5px; font-size: .74rem; text-decoration: none; box-shadow: 0 1px 6px rgba(20,41,61,.25); line-height: 1.2; }
.map-report:hover { background: #fff3c4; }
.map-report .mr-ico { width: 20px; height: 20px; border-radius: 50%; background: #e11d24; color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .8rem; flex: none; }
.map-report b { color: #c20024; }
.map-report .mr-s { display: none; font-weight: 700; color: #c20024; }
/* setelah 30 detik: diperkecil dan pindah ke kiri bawah */
.map-report.compact { left: 12px; right: auto; padding: 3px 10px 3px 4px; font-size: .68rem; }
.map-report.compact .mr-t { display: none; } .map-report.compact .mr-s { display: inline; }
.map-report.compact .mr-ico { width: 17px; height: 17px; font-size: .7rem; }
/* hak cipta peta: kiri bawah; saat tombol lapor mengecil ke kiri, teks ini naik di atasnya */
.map-copy { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-size: .68rem; font-weight: 600; color: var(--tfj-navy); background: rgba(255,255,255,.88); padding: 3px 10px; border-radius: var(--radius-pill); box-shadow: 0 1px 6px rgba(20,41,61,.2); pointer-events: none; line-height: 1.2; }
.map-report.compact + .map-copy { bottom: 42px; }
.bs-map.dark .map-copy { background: rgba(20,24,28,.92); color: #e7edf3; }
.bs-map.dark .map-report .mr-s { color: #ff8a8a; }
.bs-map.dark .map-report { background: rgba(20,24,28,.92); color: #e7edf3; } .bs-map.dark .map-report b { color: #ff8a8a; }
@media (max-width: 900px) { .map-report { bottom: 90px; right: 12px; } .map-report .mr-t { max-width: 150px; } .map-report.compact { left: 12px; right: auto; } .map-copy { bottom: 90px; } .map-report.compact + .map-copy { bottom: 122px; } }

.bs-hint { bottom: 56px !important; max-width: min(320px, calc(100% - 150px)); }

/* ===== Layar penuh: peta memenuhi viewport, panel & navbar mengambang ===== */
.pt-page { overflow: hidden; }
.pt-page .bs { position: fixed; inset: 0; height: 100dvh; min-height: 0; display: block; background: #dfe7ee; }
.pt-page .bs-map { position: absolute; inset: 0; height: auto; min-height: 0; z-index: 1; }
.pt-page #map { position: absolute; inset: 0; }
/* panel samping: kartu mengambang di atas peta */
.pt-page .bs-side { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 400px; height: auto; z-index: 20; border: 0; border-radius: 20px; box-shadow: 0 10px 40px rgba(20,41,61,.28); padding-top: 0; transition: top .25s ease, transform .22s ease, opacity .22s; }
.pt-page.pt-nav-on .bs-side { top: 84px; }
.pt-page .bs-intro { padding: 16px 20px 6px; }
.pt-page .pn-toggle { left: 412px; z-index: 30; }
.pt-page .bs.collapsed .pn-toggle { left: 0; }
.pt-page .bs.collapsed .bs-side { visibility: hidden; opacity: 0; transform: translateX(-30px); }
/* navbar mengambang: tetap di atas, hilang otomatis */
.pt-page .hdr { position: fixed; top: 12px; left: 50%; right: auto; margin: 0; transform: translate(-50%, -160%); opacity: 0; pointer-events: none; z-index: 900; transition: transform .3s ease, opacity .25s ease; }
.pt-page.pt-nav-on .hdr { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pt-page .site-header.sembunyi .hdr { transform: translate(-50%, -160%); }
.pt-page.pt-nav-on .site-header.sembunyi .hdr { transform: translate(-50%, 0); }
.pt-navtab { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 899; width: 84px; height: 20px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.92); border-radius: 0 0 14px 14px; box-shadow: 0 2px 10px rgba(20,41,61,.22); display: grid; place-items: center; transition: opacity .25s; }
.pt-navtab i { width: 32px; height: 4px; border-radius: 2px; background: #aab6c3; }
.pt-page.pt-nav-on .pt-navtab { opacity: 0; pointer-events: none; }
/* tombol peta: satu kolom rapi, lebar sama */
.pt-page .bs-ctl { top: 12px; right: 12px; flex-direction: column; align-items: flex-end; gap: 8px; transition: top .25s ease; }
.pt-page.pt-nav-on .bs-ctl { top: 84px; }
.pt-page .bs-ctl > button, .pt-page .bs-stack .bs-legend { width: 156px; box-sizing: border-box; }
.pt-page .bs-ctl > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; padding: 9px 14px; font-size: .8rem; border-radius: 14px; box-shadow: 0 2px 12px rgba(20,41,61,.22); }
.pt-page .bs-stack { position: static; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pt-page .bs-stack .bs-legend { max-width: none; border-radius: 14px; box-shadow: 0 2px 12px rgba(20,41,61,.22); background: #fff; }
.pt-page .bs-legend summary { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; font-size: .8rem; }
.pt-page .bs-legend summary::after { content: "▾"; font-size: .7rem; }
.pt-page .bs-legend:not([open]) summary::after { content: "▸"; }
.pt-page .bs-map.dark .bs-ctl > button { background: #222a31; color: #e7edf3; }
.pt-page .bs-map.dark .bs-stack .bs-legend { background: #222a31; }
.pt-page .bs-hint { bottom: 18px !important; }
.pt-page .map-copy, .pt-page .map-report { z-index: 5; }
@media (max-width: 900px) {
  .pt-page .bs-side { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 88%; border-radius: 18px 18px 0 0; }
  .pt-page.pt-nav-on .bs-side { top: auto; }
  .pt-page .bs-ctl > button, .pt-page .bs-stack .bs-legend { width: 132px; }
  .pt-page.pt-nav-on .bs-ctl { top: 76px; }
  .pt-page .hdr { width: calc(100% - 24px); }
}

/* ===== Satu tombol "Pengaturan peta" di kiri, menu terbuka di bawahnya ===== */
.pt-page .bs-ctl { right: auto; left: 424px; align-items: flex-start; transition: top .25s ease, left .22s ease; }
.pt-page .bs.collapsed .bs-ctl { left: 48px; }
.pt-page .bs-ctl > .ctl-main { width: auto; padding: 10px 16px 10px 12px; justify-content: flex-start; gap: 8px; font-size: .82rem; }
.pt-page .bs-ctl > .ctl-main svg { flex: none; color: var(--tfj-blue); }
.pt-page .ctl-menu { display: flex; flex-direction: column; gap: 4px; width: 200px; padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 8px 30px rgba(20,41,61,.28); }
.pt-page .ctl-menu[hidden] { display: none; }
.pt-page .bs-ctl .ctl-menu > button { width: 100%; box-shadow: none; border-radius: 10px; background: transparent; padding: 9px 10px; }
.pt-page .bs-ctl .ctl-menu > button:hover { background: var(--tfj-tint); }
.pt-page .ctl-menu .bs-stack { align-items: stretch; gap: 4px; }
.pt-page .ctl-menu .bs-stack .bs-legend { width: 100%; box-shadow: none; background: transparent; border-radius: 10px; max-width: none; }
.pt-page .ctl-menu .bs-legend[open] { background: var(--tfj-tint); }
.pt-page .ctl-menu .bs-legend summary { padding: 9px 10px; }
.pt-page .ctl-menu .bs-legend summary:hover { background: var(--tfj-tint); border-radius: 10px; }
.pt-page .bs-map.dark .ctl-menu, .pt-page .bs-map.dark .bs-ctl > .ctl-main { background: #222a31; color: #e7edf3; }
.pt-page .bs-map.dark .bs-ctl .ctl-menu > button { background: transparent; }
.pt-page .bs-map.dark .ctl-menu .bs-stack .bs-legend { background: transparent; }
.pt-page .bs-map.dark .ctl-menu .bs-legend[open], .pt-page .bs-map.dark .ctl-menu button:hover { background: #2d373f; }
@media (max-width: 900px) {
  .pt-page .bs-ctl, .pt-page .bs.collapsed .bs-ctl { left: 12px; }
  .pt-page .bs-ctl > .ctl-main { width: auto; }
  .pt-page .ctl-menu { width: 200px; }
  /* tombol zoom/lokasi, lapor & hak cipta ikut naik-turun mengikuti kartu (bottom sheet) */
  .pt-page .maplibregl-ctrl-bottom-right, .pt-page .map-report, .pt-page .map-copy { transition: margin-bottom .28s cubic-bezier(.2,.8,.2,1), bottom .28s cubic-bezier(.2,.8,.2,1); }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .maplibregl-ctrl-bottom-right { margin-bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="full"]) .maplibregl-ctrl-bottom-right { margin-bottom: calc(88dvh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .maplibregl-ctrl-bottom-right { margin-bottom: 86px; }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .map-report { bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .map-copy { bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .map-report.compact + .map-copy { bottom: calc(48vh + 40px); }
  .pt-page .bs:has(.bs-side[data-sheet="full"]) .map-report, .pt-page .bs:has(.bs-side[data-sheet="full"]) .map-copy { visibility: hidden; }
}

/* ===== Pilihan rute (kartu), daftar halte yang dilewati ===== */
.ro-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ro-card { font: inherit; text-align: left; background: #fff; border: 2px solid color-mix(in srgb, var(--tfj-navy) 14%, transparent); border-radius: 14px; padding: 9px 11px; cursor: pointer; display: grid; gap: 6px; align-content: start; min-width: 0; }
.ro-card[aria-pressed="true"] { border-color: var(--tfj-blue); background: color-mix(in srgb, var(--tfj-blue) 7%, #fff); }
.ro-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.ro-l { font-size: .78rem; color: var(--tfj-muted); } .ro-card[aria-pressed="true"] .ro-l { color: var(--tfj-blue); }
.ro-t { font-size: 1.05rem; white-space: nowrap; }
.ro-mode { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; }
.ro-mode .roundel { width: 24px; height: 24px; font-size: .55rem; border-width: 3px; }
.ro-mode .roundel.sm { font-size: .48rem; } .ro-mode .roundel.xs { font-size: .4rem; }
.ms-w { font-style: normal; font-size: .95rem; width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--tfj-tint); }
.ms-ar { font-style: normal; font-size: .72rem; color: var(--tfj-muted); font-weight: 800; }
.ro-card small { color: var(--tfj-muted); font-size: .72rem; } .ro-card small b { color: var(--tfj-navy); }
.ro-solo { margin: 10px 0 4px; font-size: .9rem; }
.pl-stops { margin-top: 6px; }
.pl-stops > summary { cursor: pointer; font-size: .76rem; font-weight: 700; color: var(--tfj-blue); list-style: none; }
.pl-stops > summary::-webkit-details-marker { display: none; }
.pl-stops > summary::after { content: " ▾"; } .pl-stops[open] > summary::after { content: " ▴"; }
.pl-stops ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 4px; border-left: 3px solid var(--rc, var(--tfj-blue)); }
.pl-stops li button { font: inherit; font-size: .78rem; background: none; border: 0; text-align: left; padding: 3px 0 3px 10px; cursor: pointer; color: var(--tfj-navy); position: relative; width: 100%; }
.pl-stops li button::before { content: ""; position: absolute; left: -9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--rc, var(--tfj-blue)); }
.pl-stops li.end button { font-weight: 800; }
.rp-dock { display: none; }

@media (max-width: 900px) {
  /* kartu rencana perjalanan menjadi bar di atas peta */
  .pt-page .rp-dock { display: block; position: absolute; left: 12px; right: 12px; top: 12px; z-index: 850; transition: top .25s ease; }
  .pt-page.pt-nav-on .rp-dock { top: 76px; }
  .pt-page .rp-dock .rp { margin: 0; border: 0; border-radius: 16px; box-shadow: 0 4px 18px rgba(20,41,61,.28); }
  .pt-page .rp > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pt-page .rp > summary::before { content: "⌕"; font-size: 1.15rem; color: var(--tfj-blue); font-weight: 800; }
  .pt-page .bs-ctl { top: 66px; } .pt-page.pt-nav-on .bs-ctl { top: 130px; }
  .pt-page .rp-h { display: none; }
  .pt-page .bs-side[data-sheet="half"] { padding-bottom: calc(88dvh - 48vh + 24px); }
  .pt-page .bs-side[data-sheet="full"] { padding-bottom: 24px; }
  #planOut.rp-out { padding: 0 16px 20px; }
  /* detail jalur/lin: lebih ringkas */
  .pt-page .bs-dhead { position: sticky; top: 27px; padding: 6px 16px 8px; }
  .pt-page .bs-back { padding: 0 0 4px; font-size: .78rem; }
  .pt-page .bs-title { gap: 10px; } .pt-page .bs-title h2 { font-size: 1.12rem; }
  .pt-page .bs-title .rd.big .roundel { width: 42px; height: 42px; font-size: .95rem; }
  .pt-page .bs-title .code { margin-top: 1px; font-size: .74rem; }
  .pt-page .bs-act { flex-wrap: nowrap; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; }
  .pt-page .bs-act::-webkit-scrollbar { display: none; }
  .pt-page .bs-act button, .pt-page .bs-act .sug-e { flex: none; font-size: .74rem; padding: 6px 12px; white-space: nowrap; }
  .pt-page .bs-names { margin: 8px 16px 0; padding: 8px 12px; }
  .pt-page .bs-names .v { font-size: 1rem; }
  .pt-page .bs-stats { padding: 8px 16px 2px; gap: 6px; }
  .pt-page .bs-stat { padding: 7px 10px; } .pt-page .bs-stat b { font-size: .95rem; }
  .pt-page .bs-sec { padding-left: 16px; padding-right: 16px; }
  .pt-page .dirtabs { margin: 8px 16px 0; }
}

/* ===== Pengaturan peta di kiri bawah; hak cipta + lapor menyatu dengan tombol ⓘ ===== */
.pt-page .bs-ctl, .pt-page.pt-nav-on .bs-ctl { top: auto; bottom: 12px; left: 424px; flex-direction: column-reverse; align-items: flex-start; }
.pt-page .bs.collapsed .bs-ctl { left: 48px; }
.pt-page .map-foot { position: absolute; right: 46px; bottom: 10px; z-index: 5; display: flex; align-items: center; gap: 4px 10px; background: rgba(255,255,255,.92); border-radius: 14px; padding: 5px 12px; box-shadow: 0 1px 6px rgba(20,41,61,.22); font-size: .72rem; line-height: 1.2; transition: bottom .28s cubic-bezier(.2,.8,.2,1); }
.pt-page .map-foot .map-copy, .pt-page .map-foot .map-report, .pt-page .map-foot .map-report.compact { position: static; background: none; box-shadow: none; padding: 0; margin: 0; font-size: inherit; pointer-events: auto; }
.pt-page .map-foot .map-copy { pointer-events: none; font-weight: 600; color: var(--tfj-navy); }
.pt-page .map-foot .map-report .mr-ico { width: 16px; height: 16px; font-size: .68rem; }
.pt-page .map-foot .map-report { gap: 5px; }
.pt-page .map-foot .map-report:hover { background: none; text-decoration: underline; }
.pt-page .map-foot .map-report .mr-t { display: none; } .pt-page .map-foot .map-report .mr-s { display: inline; }
.pt-page .map-foot .map-report.compact + .map-copy { bottom: auto; }
.pt-page .bs-map.dark .map-foot { background: rgba(20,24,28,.92); } .pt-page .bs-map.dark .map-foot .map-copy { color: #e7edf3; }
.pt-page .bs-hint:empty { display: none; }
/* tile info (bus/kereta): netral */
.pt-page .bs-info-item, .pt-page .bs-info-item:nth-child(2) { background: #fff; color: var(--tfj-navy); border: 1px solid color-mix(in srgb, var(--tfj-navy) 10%, transparent); padding: 7px 12px; }
.pt-page .bs-info-item b { font-size: .8rem; font-weight: 700; }
/* kartu pilihan rute: lebih ringan */
.ro-card { border-width: 1.5px; border-radius: 12px; }
.ro-card[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 1.5px var(--tfj-blue); }
.pl b { font-weight: 700; }
@media (max-width: 900px) {
  .pt-page .bs-ctl, .pt-page.pt-nav-on .bs-ctl, .pt-page .bs.collapsed .bs-ctl { top: auto; left: 12px; bottom: 12px; }
  .pt-page .map-foot { flex-direction: column; align-items: flex-end; gap: 2px; }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .bs-ctl { bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="full"]) .bs-ctl { bottom: calc(88dvh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .bs-ctl { bottom: 90px; }
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .map-foot { bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="full"]) .map-foot { bottom: calc(88dvh + 8px); visibility: hidden; }
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .map-foot { bottom: 90px; }
  .pt-page .bs-ctl { transition: bottom .28s cubic-bezier(.2,.8,.2,1); }
}
@media (max-width: 900px) {
  .pt-page .ctl-main > span { display: none; }
  .pt-page .bs-ctl > .ctl-main { padding: 11px; border-radius: 14px; }
  .pt-page .map-foot { font-size: .66rem; padding: 4px 10px; }
}

/* ===== Lencana pintu (kuning, garis navy) & ikon fasilitas resmi ===== */
.ex-ref, .pt-grp .ex-ref { width: 28px; height: 28px; border-radius: 8px; background: var(--tfj-gold); color: var(--tfj-navy); border: 2px solid var(--tfj-navy); font-weight: 800; font-size: .8rem; box-sizing: border-box; }
.am { gap: 8px; }
.am span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; background: #fff; border: 1px solid color-mix(in srgb, var(--tfj-navy) 12%, transparent); font-weight: 600; }
.am span:not(:has(img)) { padding-left: 12px; }
.am img { width: 24px; height: 24px; flex: none; }
.ex-signs .sg { display: inline-flex; align-items: center; gap: 5px; }
.ex-signs .sg img { width: 18px; height: 18px; flex: none; border-radius: 4px; }
/* hak cipta + lapor di dalam tombol ⓘ */
.attr-extra { display: flex; flex-direction: column; gap: 3px; padding-right: 6px; font-size: .72rem; line-height: 1.3; }
.attr-extra .map-copy { position: static; background: none; box-shadow: none; padding: 0; font-weight: 600; color: var(--tfj-navy); pointer-events: none; }
.attr-extra .map-report, .attr-extra .map-report.compact { position: static; background: none; box-shadow: none; padding: 0; gap: 5px; width: max-content; font-size: inherit; }
.attr-extra .map-report .mr-t { display: none; } .attr-extra .map-report .mr-s { display: inline; }
.attr-extra .map-report .mr-ico { width: 16px; height: 16px; font-size: .68rem; }
.attr-extra .map-report:hover { background: none; text-decoration: underline; }

/* ===== Gaya sheet ala aplikasi peta modern: putih bersih, pencarian di atas, ubin moda, daftar berkelompok ===== */
.pt-page .bs-side { background: #fff; box-shadow: 0 -1px 0 rgba(16,24,40,.04), 0 -8px 32px rgba(16,24,40,.16); }
.pt-page .sheet-handle { background: #fff; }
.pt-page #listView { display: flex; flex-direction: column; }
.pt-page .bs-tools { order: -1; position: sticky; top: 0; background: #fff; border: 0; padding: 12px 16px 8px; }
.pt-page .bs-tools input { background: #f1f2f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px; border: 0; border-radius: 14px; padding: 13px 16px 13px 42px; font-size: .95rem; }
.pt-page .bs-tools input:focus { outline: 2px solid var(--tfj-blue); }
.pt-page .bs-cats button { background: #f1f2f4; }
.pt-page .bs-cats button[aria-pressed="true"] { background: var(--tfj-navy); color: #fff; }
.pt-page .bs-intro { display: none; }
.pt-page .bs-info { margin: 4px 16px 12px; gap: 10px; }
.pt-page .bs-info-item, .pt-page .bs-info-item:nth-child(2) { flex-direction: column; justify-content: center; gap: 6px; padding: 14px 8px 12px; border: 0; border-radius: 20px; background: #f4f5f7; cursor: pointer; font: inherit; text-align: center; }
.pt-page .bs-info-item:hover { background: #eceef1; }
.pt-page .bs-info-item img { width: 56px; height: 56px; object-fit: contain; }
.pt-page .bs-info-item b { font-size: .85rem; font-weight: 700; }
.pt-page .bs-list { padding: 4px 16px 6px; gap: 10px; }
.pt-page .tr-sec { background: #f4f5f7; border: 0; border-radius: 20px; }
.pt-page .tr-sec > summary:hover { background: #eceef1; }
.pt-page .tr-sub { background: transparent; border-top: 1px solid rgba(16,24,40,.07); padding: 2px 0 6px; gap: 0; }
.pt-page .tr-sub li + li .tr-item { border-top: 1px solid rgba(16,24,40,.06); }
.pt-page .tr-sub .tr-item, .pt-page .tr-item { background: transparent; border: 0; border-radius: 0; padding: 9px 14px; }
.pt-page .tr-sub .tr-item:hover { background: #eceef1; }
.pt-page .rp { background: #fff; }
.pt-page .rp-dock .rp:not([open]) { border-radius: 999px; }
.pt-page .rp-dock .rp[open] { border-radius: 20px; }
/* kontrol zoom/lokasi seragam dengan tombol lain */
.pt-page .maplibregl-ctrl-group { border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.14), 0 0 0 1px rgba(16,24,40,.04); }
.pt-page .maplibregl-ctrl-group button { width: 40px; height: 40px; }

/* ===== Terinspirasi BusRouter: tampilan dua arah, animasi sheet, kaca buram ===== */
.dl { margin-top: 8px; }
.dl-h { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: .74rem; font-weight: 800; color: var(--rc, var(--tfj-blue)); padding: 0 4px 6px; }
.dl-h span:first-child { text-align: right; } .dl-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-r { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: stretch; min-height: 34px; animation: dlin .4s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n, 0) * 22ms); }
.dl-a, .dl-b { display: flex; align-items: center; min-width: 0; }
.dl-a { justify-content: flex-end; text-align: right; } .dl-b { justify-content: flex-start; text-align: left; }
.dl-r button { font: inherit; font-size: .8rem; font-weight: 600; background: none; border: 0; padding: 4px 2px; cursor: pointer; color: var(--tfj-navy); line-height: 1.25; border-radius: 6px; }
.dl-r button:hover { background: var(--tfj-tint); }
.dl-m { display: flex; justify-content: center; gap: 8px; }
.dl-m i { position: relative; width: 4px; background: var(--rc, var(--tfj-blue)); border-radius: 2px; }
.dl-m i:not(.on) { opacity: .28; }
.dl-m i.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; border: 2.5px solid var(--rc, var(--tfj-blue)); }
@keyframes dlin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* transisi antar tampilan panel */
#detailView:not([hidden]) > *, #listView > * { animation: pnin .32s cubic-bezier(.2,.8,.2,1) both; }
#detailView:not([hidden]) > *:nth-child(2) { animation-delay: .04s; } #detailView:not([hidden]) > *:nth-child(3) { animation-delay: .08s; } #detailView:not([hidden]) > *:nth-child(n+4) { animation-delay: .12s; }
@keyframes pnin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ro-card, .tr-sec, .bs-info-item, .bs-cats button, .ctl-main { transition: background-color .15s ease-out, box-shadow .15s ease-out, transform .15s ease-out; }
.bs-info-item:active, .ro-card:active { transform: scale(.98); }
.tr-sec .chev { transition: transform .22s ease; }
/* kaca buram pada sheet & panel */
@supports (backdrop-filter: blur(4px)) {
  .pt-page .bs-side { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
  .pt-page .sheet-handle, .pt-page .bs-tools { background: transparent; }
  .pt-page .bs-dhead { background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) { .dl-r, #detailView > *, #listView > * { animation: none !important; } }

/* ===== Sub-menu kategori, pola operasi rute, strip pintu keluar ===== */
.bs-cats.sub { margin-top: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; animation: pnin .25s ease-out both; }
.bs-cats.sub::-webkit-scrollbar { display: none; }
.bs-cats.sub[hidden] { display: none; }
.pt-page .bs-cats.sub button { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tfj-navy) 18%, transparent); font-weight: 600; }
.pt-page .bs-cats.sub button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; box-shadow: none; }
.pat { display: flex; align-items: center; gap: 10px; margin: 8px 16px 0; padding: 8px 12px; border-radius: 14px; background: var(--tfj-tint); }
.pat i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tfj-blue); font-weight: 800; flex: none; }
.pat b { display: block; font-size: .84rem; } .pat small { color: var(--tfj-muted); font-size: .74rem; }
.tr-stops .tr-loop { list-style: none; display: flex; align-items: center; gap: 8px; margin: 6px 0 2px 2px; font-size: .78rem; font-weight: 700; color: var(--tfj-muted); }
.tr-stops .tr-loop i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tfj-tint); color: var(--tfj-blue); }
.ex-strip { margin: 10px 16px 0; padding: 10px 12px; border-radius: 16px; background: var(--tfj-navy); color: #fff; text-align: center; }
.ex-strip > b { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.ex-strip > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ex-badge { width: 32px; height: 32px; border-radius: 9px; background: var(--tfj-gold); color: var(--tfj-navy); border: 2px solid #fff; font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; transition: transform .15s ease-out; }
.ex-badge:hover { transform: translateY(-2px); } .ex-badge:active { transform: scale(.94); }
.pt-page #listView[hidden], .pt-page #detailView[hidden] { display: none; }

/* ===== Putaran 5: navbar+rencana menyatu, sheet solid, tombol kembali & pengaturan, detail ala aplikasi native ===== */
/* sheet solid (tanpa tembus pandang) */
.pt-page .bs-side, .pt-page .sheet-handle, .pt-page .bs-tools, .pt-page .bs-dhead { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.pt-page .sheet-handle { z-index: 8; }
/* tombol pengaturan di kolom kontrol kanan (di bawah GPS) */
.pt-page .maplibregl-ctrl-bottom-right #ctl { position: relative; top: auto; left: auto; bottom: auto; right: auto; float: right; clear: both; transition: none; }
.pt-page #ctl .ctl-main { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 14px; box-shadow: 0 1px 3px rgba(16,24,40,.14), 0 0 0 1px rgba(16,24,40,.04); }
.pt-page #ctl .ctl-main > span { display: none; }
.pt-page #ctl .ctl-menu { position: absolute; right: calc(100% + 8px); bottom: 0; top: auto; }
/* tombol kembali melayang di kiri bawah */
.fab-back { display: none; position: absolute; left: 12px; bottom: 12px; z-index: 30; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--tfj-navy); box-shadow: 0 2px 10px rgba(16,24,40,.25); cursor: pointer; place-items: center; transition: bottom .28s cubic-bezier(.2,.8,.2,1), left .22s ease, transform .15s ease-out; }
.fab-back:active { transform: scale(.94); }
.has-back .fab-back { display: grid; animation: pnin .25s ease-out both; }
.pt-page .bs-dhead .bs-back, .pt-page .rp-head { display: none; }
@media (min-width: 901px) { .pt-page .fab-back { left: 424px; } .pt-page .bs.collapsed ~ .bs-map .fab-back, .pt-page .bs.collapsed .fab-back { left: 48px; } }
@media (max-width: 900px) {
  .pt-page .bs:has(.bs-side[data-sheet="half"]) .fab-back { bottom: calc(48vh + 8px); }
  .pt-page .bs:has(.bs-side[data-sheet="full"]) .fab-back { bottom: calc(88dvh + 8px); visibility: hidden; }
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .fab-back { bottom: 90px; }
  .pt-page .bs-tools { top: 27px; }
  /* navbar dan bar rencana menjadi satu kartu */
  .pt-page.pt-nav-on .rp-dock { top: calc(12px + var(--hdr-h, 58px)); }
  .pt-page.pt-nav-on .hdr { border-radius: 24px 24px 0 0; }
  .pt-page.pt-nav-on .rp-dock .rp:not([open]), .pt-page.pt-nav-on .rp-dock .rp[open] { border-radius: 0 0 24px 24px; border-top: 1px solid rgba(16,24,40,.07); box-shadow: 0 10px 24px rgba(16,24,40,.16); }
}
/* chip lin di kiri nama halte & titik terisi */
.dl-c { display: inline-flex; gap: 2px; flex: none; margin: 0 4px; }
.dl-c .roundel { width: 20px; height: 20px; font-size: .42rem; border-width: 2.5px; }
.dl-r .dl-a, .dl-r .dl-b { flex-wrap: nowrap; }
.dl-m i.on::after { background: var(--rc, var(--tfj-blue)); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--rc, var(--tfj-blue)); width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.tr-stops .d { background: var(--rc, var(--tfj-blue)); border-color: #fff; box-shadow: 0 0 0 2px var(--rc, var(--tfj-blue)); }
.tr-stops .d.x { background: var(--tfj-navy); box-shadow: 0 0 0 2px var(--tfj-navy); }
/* legenda */
.sy .xb { width: 18px; height: 18px; border-radius: 5px; background: var(--tfj-gold); border: 2px solid var(--tfj-navy); color: var(--tfj-navy); font-size: .58rem; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; }
.sy .flow { width: 26px; height: 6px; border-radius: 3px; background: #1a9d4b; position: relative; }
.sy .flow::after { content: ""; position: absolute; left: 2px; right: 2px; top: 2px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 4px, transparent 4px 7px); }
/* detail ala aplikasi native */
.dirtabs.seg { display: flex; gap: 2px; padding: 3px; margin: 10px 16px 0; background: #f1f2f4; border-radius: 12px; }
.dirtabs.seg button { flex: 1; min-width: 0; border: 0; border-radius: 9px; padding: 6px 4px; font-size: .76rem; font-weight: 700; color: var(--tfj-muted); background: transparent; text-align: center; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: background-color .15s ease-out, color .15s ease-out, box-shadow .15s ease-out; }
.dirtabs.seg button[aria-pressed="true"] { background: #fff; color: var(--tfj-navy); box-shadow: 0 1px 3px rgba(16,24,40,.18); }
.pt-page .bs-stats { display: flex; gap: 0; padding: 14px 8px 6px; }
.pt-page .bs-stat { flex: 1; min-width: 0; background: none; border-radius: 0; text-align: center; padding: 2px 6px; border-left: 1px solid rgba(16,24,40,.08); }
.pt-page .bs-stat:first-child { border-left: 0; }
.pt-page .bs-stat b { font-size: 1.1rem; white-space: normal; line-height: 1.2; } /* jam layanan ("04:30–20:20") boleh pecah di tanda pisah, bukan menimpa tile sebelah */
.pt-page .bs-stat small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-page .bs-act button, .pt-page .bs-act .sug-e { border: 0; background: #f1f2f4; color: var(--tfj-navy); }
.pt-page .bs-act button[aria-pressed="true"] { background: var(--tfj-navy); color: #fff; }
.pt-page .bs-act .sug-e { background: none; color: var(--tfj-muted); text-decoration: underline; padding-left: 4px; padding-right: 4px; font-weight: 600; }
.pt-page .rp-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 16px; overflow: visible; }
.pt-page .rp-act button { border: 0; border-radius: 14px; padding: 12px 8px; font-size: .86rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--tfj-blue); color: #fff; }
.pt-page .rp-act button + button { background: #f1f2f4; color: var(--tfj-navy); }
.pt-page .rp-act button:first-child .ar { background-color: rgba(255,255,255,.25); }
.pt-page .bs-dhead { padding: 10px 16px 10px; }
.pt-page .bs-sec h3 { font-size: .92rem; }

/* ===== Detail halte: roundel rute di header, tab, baris dengan jarak berikon pejalan kaki ===== */
.hd-ic { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: 0 0 0 1px rgba(16,24,40,.08); }
.hd-routes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hd-r { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; transition: transform .15s ease-out; }
.hd-r:active { transform: scale(.94); }
.hd-r .roundel { width: 34px; height: 34px; font-size: .72rem; border-width: 3.5px; }
.hd-r .roundel.sm { font-size: .62rem; } .hd-r .roundel.xs { font-size: .5rem; }
.dt-tabs { margin-top: 12px; }
.dt-p[hidden] { display: none; }
.dt-p { animation: pnin .25s ease-out both; }
.bs-pts button.pr { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border: 0; background: transparent; border-radius: 12px; }
.bs-pts button.pr:hover { background: #f1f2f4; }
.bs-pts li + li button.pr { border-top: 1px solid rgba(16,24,40,.06); border-radius: 0; }
.pr-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px rgba(16,24,40,.08); }
.pr-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-b b { font-size: .88rem; line-height: 1.25; }
.pr-ch { display: flex; flex-wrap: wrap; gap: 3px; }
.pr-ch .roundel { width: 22px; height: 22px; font-size: .5rem; border-width: 3px; }
.pr-ch .roundel.sm { font-size: .44rem; } .pr-ch .roundel.xs { font-size: .38rem; }
.pr-d { display: inline-flex; align-items: center; gap: 3px; flex: none; color: var(--tfj-muted); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.pr-d img { width: 20px; height: 20px; }

/* ===== Ikon aksi di sebelah nama, baris halte lebih besar, detail pintu ===== */
.hd-tools { margin-left: auto; display: flex; gap: 6px; flex: none; align-self: flex-start; }
.bs-title > div:not(.hd-tools) { min-width: 0; flex: 1 1 auto; }
.hd-tool { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; padding: 0; position: relative; transition: background-color .15s ease-out, transform .15s ease-out; }
.hd-tool:hover { background: #e6e8eb; } .hd-tool:active { transform: scale(.92); }
.hd-tool .ok { display: none; }
.hd-tool.done { background: var(--tfj-blue); color: #fff; } .hd-tool.done svg:not(.ok) { display: none; } .hd-tool.done .ok { display: block; }
.pt-page .bs-act button.hd-tool { padding: 0; }
.pr-ic { width: 48px; height: 48px; border-radius: 12px; }
.pr-b { gap: 5px; }
.pr-ch .roundel { width: 24px; height: 24px; }
.dt-tabs button { white-space: normal; line-height: 1.2; }
.dr-rt { list-style: none; margin: 8px 0 2px 38px; padding: 0; display: grid; gap: 8px; }
.dr-rt li { display: flex; align-items: center; gap: 10px; }
.dr-rt .roundel { width: 30px; height: 30px; font-size: .62rem; border-width: 3px; flex: none; }
.dr-rt .roundel.sm { font-size: .54rem; } .dr-rt .roundel.xs { font-size: .44rem; }
.dr-rt b { display: block; font-size: .82rem; line-height: 1.25; } .dr-rt small { display: block; color: var(--tfj-muted); font-size: .74rem; line-height: 1.3; }
.dirtabs.seg.dt-tabs button { white-space: normal; line-height: 1.15; overflow: visible; text-overflow: clip; }

/* ===== Variasi perjalanan (trip) terlipat ===== */
.trip-d { margin: 12px 16px 0; padding: 0; background: #f4f5f7; border-radius: 16px; }
.trip-d > summary { cursor: pointer; list-style: none; padding: 12px 14px; font-weight: 700; font-size: .86rem; display: flex; align-items: baseline; gap: 8px; }
.trip-d > summary::-webkit-details-marker { display: none; }
.trip-d > summary small { color: var(--tfj-muted); font-weight: 500; font-size: .74rem; flex: 1; }
.trip-d > summary::after { content: "▾"; color: var(--tfj-muted); }
.trip-d[open] > summary::after { content: "▴"; }
.trip-d .trips { padding: 0 8px 8px; max-height: none; }
.trip-d .trips button { background: #fff; border: 1.5px solid transparent; }
.trip-d .trips button[aria-pressed="true"] { border-color: var(--tfj-blue); }

/* ===== Pintu/platform halte: kotak navy berhuruf putih ===== */
.dbx { display: inline-flex; gap: 4px; flex: none; }
.dbx i { font-style: normal; width: 30px; height: 30px; border-radius: 9px; background: var(--tfj-navy); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; }
.sy .pb { width: 18px; height: 18px; border-radius: 5px; background: var(--tfj-navy); color: #fff; font-size: .58rem; font-weight: 800; display: grid; place-items: center; }
.dr-rt li { border: 0; background: none; padding: 0; border-radius: 0; font-size: .84rem; }
.dr-rt { margin: 8px 0 2px 4px; gap: 8px; }
.dr-rt li > span { line-height: 1.3; } .dr-rt li b { display: inline; font-size: inherit; }
.dr-rt em { font-style: normal; color: var(--tfj-muted); font-weight: 600; }

/* ===== Putaran 6 ===== */
.hd-tool { width: 34px; height: 34px; text-decoration: none; }
.hd-tools { gap: 5px; }
a.hd-tool { color: var(--tfj-navy); }
.pt-page .bs-act { padding-top: 0; }

/* ===== Bus live: tooltip, status GPS, skema dua arah, ETA halte ===== */
.lt { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.lt .roundel { flex: none; width: 40px; height: 40px; font-size: .95rem; }
.lt-b { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lt-b b { font-size: .95rem; line-height: 1.2; color: var(--tfj-navy); }
.lt-n { font-size: .78rem; color: var(--tfj-muted); font-weight: 600; }
.lt-s { font-size: .74rem; font-weight: 700; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.lt-s i, .eta-d { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9ca3af; }
.lt-s.g, .eta .g { color: #15803d; } .lt-s.g i, .eta-d.g { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); }
.lt-s.o { color: #b45309; } .lt-s.o i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.lt-s.x, .lt-s.s { color: var(--tfj-muted); }
.eta { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--tfj-navy); font-size: .74rem; font-weight: 600; }
.eta b { font-weight: 800; } .eta-d.s { background: #9ca3af; } .eta-d.n { background: #cbd5e1; }
.dl-bn { flex: none; margin: 0 4px; padding: 1px 6px; border-radius: 999px; background: var(--bc, var(--tfj-blue)); color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; border: 1.5px solid #fff; box-shadow: 0 0 0 1.5px var(--bc, var(--tfj-blue)); }
.dl-bn.st-o { box-shadow: 0 0 0 1.5px #f59e0b; } .dl-bn.st-x, .dl-bn.st-s { opacity: .6; }
.dl-bus { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: var(--bc, var(--tfj-blue)); border: 2.5px solid #fff; box-shadow: 0 0 0 2px #16a34a; z-index: 2; }
.dl-bus.st-o { box-shadow: 0 0 0 2px #f59e0b; } .dl-bus.st-x, .dl-bus.st-s { box-shadow: 0 0 0 2px #9ca3af; opacity: .7; }
.lt-x { font-size: .76rem; color: var(--tfj-navy); font-weight: 600; line-height: 1.25; margin-top: 2px; } .lt-x b { font-weight: 800; }

/* ===== Putaran bus: skema dua arah, linimasa bus di kartu halte ===== */
.dl-r { align-items: stretch; }
.dl-n { display: flex; flex-direction: column; min-width: 0; padding: 3px 0; gap: 3px; }
.dl-a .dl-n { align-items: flex-end; text-align: right; } .dl-b .dl-n { align-items: flex-start; text-align: left; }
.dl-n > button { padding: 1px 2px; }
.dl-n .dl-c { margin: 0; flex-wrap: wrap; } .dl-a .dl-n .dl-c { justify-content: flex-end; }
.dl-h .dl-f { font: inherit; font-size: .74rem; font-weight: 800; color: var(--rc, var(--tfj-blue)); background: none; border: 1.5px solid transparent; border-radius: 999px; padding: 3px 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dl-h .dl-f:first-child { text-align: right; justify-self: end; } .dl-h .dl-f:last-child { justify-self: start; }
.dl-h .dl-f:hover { background: var(--tfj-tint); }
.dl-h .dl-f[aria-pressed="true"] { background: var(--rc, var(--tfj-blue)); color: #fff; }
.dl-bb { display: flex; flex-wrap: wrap; gap: 4px; } .dl-a .dl-bb { justify-content: flex-end; }
.dl-bn { cursor: pointer; padding: 2px 9px; font-size: .66rem; font-weight: 800; border-radius: 999px; border: 2px solid #fff; background: var(--bc, var(--tfj-blue)); color: #fff; white-space: nowrap; box-shadow: 0 0 0 2px #16a34a, 0 2px 6px rgba(0,20,40,.25); margin: 0 2px; }
.dl-bn.st-o { box-shadow: 0 0 0 2px #f59e0b, 0 2px 6px rgba(0,20,40,.25); } .dl-bn.st-x, .dl-bn.st-s { box-shadow: 0 0 0 2px #9ca3af, 0 2px 6px rgba(0,20,40,.2); }
.dl-bn:hover { filter: brightness(1.08); }
.dl-m i.bus-here::after { background: var(--bc, var(--tfj-blue)); border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--bc, var(--tfj-blue)), 0 2px 5px rgba(0,20,40,.3); width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; }
.bt { display: flex; flex-direction: column; gap: 2px; }
.bt-ax, .bt-r { display: grid; grid-template-columns: minmax(104px, 36%) 1fr; column-gap: 8px; align-items: center; }
.bt-ax { padding-bottom: 2px; } .bt-axl { position: relative; height: 14px; }
.bt-axl i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: .62rem; font-weight: 700; color: var(--tfj-muted); white-space: nowrap; }
.bt-r { padding: 8px 0; border-top: 1px solid var(--tfj-line, rgba(20,41,61,.09)); }
.bt-r:first-of-type { border-top: 0; }
.bt-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bt-l .roundel { flex: none; width: 36px; height: 36px; font-size: .86rem; }
.bt-t { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.bt-h { font-size: .74rem; font-weight: 700; color: var(--tfj-navy); line-height: 1.2; overflow-wrap: anywhere; }
.bt-p { font-size: .66rem; font-weight: 700; color: var(--rc); line-height: 1.2; } .bt-p i { font-style: normal; opacity: .75; }
.bt-tl { position: relative; height: 46px; } .bt-tl.two { height: 74px; }
.bt-b { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0; background: none; border: 0; padding: 2px 3px; border-radius: 8px; color: var(--rc); font: inherit; cursor: pointer; }
.bt-b.r2 { top: 28px; } .bt-b svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(0,20,40,.3)); }
.bt-b b { font-size: .7rem; font-weight: 800; color: #15803d; white-space: nowrap; line-height: 1.1; }
.bt-b:hover { background: color-mix(in srgb, var(--rc) 12%, transparent); }
.bt-r.idle .bt-tl { height: auto; min-height: 0; display: flex; align-items: center; } .bt-idle { font-size: .72rem; color: var(--tfj-muted); font-weight: 600; line-height: 1.3; }
.rt-live { display: flex; align-items: center; gap: 8px; margin: 10px 20px 0; padding: 8px 12px; border-radius: 12px; background: var(--tfj-tint); font-size: .82rem; color: var(--tfj-navy); }
.rt-live small { color: var(--tfj-muted); font-weight: 600; }
.rl-d { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #cbd5e1; }
.rl-d.g { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); } .rl-d.o { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.22); } .rl-d.x, .rl-d.s { background: #9ca3af; }
.bt-p { display: flex; align-items: center; gap: 4px; color: var(--tfj-navy); } .bt-dr { display: inline-flex; gap: 2px; }
.bt-dr i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; background: #14293d; color: #fff; font-size: .64rem; font-weight: 800; display: inline-grid; place-items: center; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(20,41,61,.25); }
.bt-dir { font-size: .64rem; font-weight: 700; color: var(--tfj-muted); align-self: end; }
.bt-b { flex-direction: row; align-items: center; gap: 5px; padding: 2px 6px 2px 3px; top: 0; }
.bt-b.r2 { top: 0; }
.bt-i { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.bt-i b { font-size: .76rem; }
.bt-i small { font-size: .6rem; font-weight: 700; color: var(--tfj-muted); letter-spacing: .01em; white-space: nowrap; }
.bt-tl.two { height: auto; }
/* pintu bertumpuk per pintu; ikon rute header halte kecil + filter */
.bt-p { display: flex; align-items: flex-start; gap: 6px; } .bt-p em { font-style: normal; font-size: .66rem; font-weight: 700; color: var(--tfj-muted); padding-top: 2px; }
.bt-pg { display: flex; flex-direction: column; gap: 3px; }
.hd-routes { gap: 5px; }
.hd-r { border-radius: 50%; transition: transform .15s ease-out, opacity .15s, box-shadow .15s; }
.hd-r .roundel { width: 26px; height: 26px; font-size: .6rem; border-width: 2.5px; }
.hd-r .roundel.sm { font-size: .52rem; } .hd-r .roundel.xs { font-size: .42rem; }
.hd-r .roundel.stack i { font-size: .34rem; } .hd-r .roundel.stack b { font-size: .6rem; }
.hd-routes.has-rf .hd-r[aria-pressed="false"] { opacity: .4; }
.hd-r[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tfj-navy); }
/* jadwal kereta berikutnya per arah */
.tt { display: flex; flex-direction: column; }
.tt-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--tfj-line, rgba(20,41,61,.09)); }
.tt-r:first-child { border-top: 0; }
.tt-l { display: flex; align-items: center; gap: 9px; min-width: 0; } .tt-l .roundel { flex: none; width: 34px; height: 34px; font-size: .8rem; }
.tt-l small { display: block; font-size: .62rem; font-weight: 700; color: var(--tfj-muted); text-transform: uppercase; letter-spacing: .04em; line-height: 1; }
.tt-l b { font-size: .88rem; color: var(--tfj-navy); line-height: 1.2; overflow-wrap: anywhere; }
.tt-t { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 8px; text-align: right; max-width: 52%; }
.tt-t span { font-size: .82rem; font-weight: 700; color: var(--tfj-muted); font-variant-numeric: tabular-nums; } .tt-t span.n { font-size: 1rem; font-weight: 800; color: var(--tfj-navy); }
.tt-t small { flex-basis: 100%; font-size: .68rem; font-weight: 700; color: #15803d; }
/* Sekitar Anda */
.nb-pin { width: 52px; height: 52px; border-radius: 16px; background: #e8f1fb; color: #1a73e8; display: grid; place-items: center; flex: none; }
.nb-hero { margin: 12px 20px 0; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #eef5fd, #fff 70%); border: 1px solid rgba(26,115,232,.18); box-shadow: 0 4px 14px rgba(20,41,61,.06); }
.nb-k { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1a73e8; margin-bottom: 8px; }
.nb-h1, .nb-r { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: inherit; }
.nb-m { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; } .nb-m b { font-size: .98rem; color: var(--tfj-navy); line-height: 1.2; }
.nb-kt { font-size: .7rem; font-weight: 700; color: var(--tfj-muted); }
.nb-d { display: flex; flex-direction: column; align-items: flex-end; flex: none; font-size: .78rem; color: var(--tfj-navy); line-height: 1.15; } .nb-d img { display: inline-block; vertical-align: -4px; margin-right: 2px; } .nb-d small { font-size: .66rem; font-weight: 700; color: var(--tfj-muted); }
.nb-ch { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; } .nb-m .nb-ch { margin-top: 0; }
.nb-ch .tjchips, .nb-m .tjchips { display: inline-flex; flex-wrap: wrap; gap: 3px; } .nb-ch .roundel, .nb-m .roundel { width: 24px; height: 24px; font-size: .52rem; border-width: 2.5px; }
.nb-eta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .nb-eta:empty { display: none; }
.nb-e { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: #fff; border: 1px solid rgba(20,41,61,.12); }
.nb-e i { font-style: normal; font-size: .62rem; font-weight: 800; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; } .nb-e b { font-size: .74rem; font-weight: 800; color: #15803d; }
.nb-hero .bs-act { padding: 12px 0 0; }
.nb-f { display: flex; gap: 6px; padding: 14px 20px 4px; overflow-x: auto; }
.nb-f button { flex: none; font: inherit; font-size: .76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(20,41,61,.14); background: #fff; color: var(--tfj-navy); cursor: pointer; }
.nb-f button[aria-pressed="true"] { background: var(--tfj-navy); color: #fff; border-color: var(--tfj-navy); }
.nb-list { list-style: none; margin: 0; padding: 4px 20px 24px; } .nb-list li { border-top: 1px solid var(--tfj-line, rgba(20,41,61,.09)); padding: 10px 0; } .nb-list li:first-child { border-top: 0; }
.nb-list[data-f="s"] li:not([data-k="s"]), .nb-list[data-f="H"] li:not([data-k="H"]), .nb-list[data-f="B"] li:not([data-k="B"]) { display: none; }
/* rencana perjalanan: opsi atas-bawah, rincian dengan garis rute */
.po-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.po-i { border: 1.5px solid rgba(20,41,61,.12); border-radius: 18px; background: #fff; overflow: hidden; }
.po-i.on { border-color: var(--tfj-navy); box-shadow: 0 4px 16px rgba(20,41,61,.1); }
.po { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.po-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .po-l { font-size: .96rem; color: var(--tfj-navy); }
.po-i.on .po-l::after { content: "dipilih"; margin-left: 8px; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--tfj-navy); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.po-f { display: flex; align-items: baseline; gap: 5px; } .po-f small { font-size: .62rem; font-weight: 700; color: var(--tfj-muted); text-transform: uppercase; letter-spacing: .05em; }
.po-f b { font-size: 1.2rem; font-weight: 800; color: #0f6b3a; background: #e6f6ec; padding: 2px 10px; border-radius: 10px; }
.po-mid { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.po-mode { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; } .po-mode .roundel { width: 28px; height: 28px; font-size: .62rem; border-width: 3px; }
.po-mode .ms-ar { font-style: normal; color: var(--tfj-muted); font-weight: 800; } .ms-w { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tfj-tint); font-style: normal; } .ms-w img { width: 16px; height: 16px; }
.po-t { font-size: .8rem; color: var(--tfj-muted); font-weight: 600; } .po-t b { color: var(--tfj-navy); font-size: .9rem; }
.po-i > .pl-list { margin: 0; padding: 4px 14px 14px; border-top: 1px dashed rgba(20,41,61,.14); list-style: none; }
.pl-list > li.pl { padding: 12px 0 0; }
.pt-ti { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; color: var(--tfj-navy); } .pt-ti .roundel { width: 30px; height: 30px; font-size: .68rem; border-width: 3px; flex: none; }
.pt-ti .mut { color: var(--tfj-muted); font-weight: 600; font-size: .82rem; }
.pt-fare { margin-left: auto; font-size: 1rem; font-weight: 800; color: #0f6b3a; background: #e6f6ec; padding: 2px 10px; border-radius: 10px; } .pt-fare .rf { font-size: .74rem; font-weight: 700; }
.pt-wk { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tfj-tint); flex: none; } .pt-wk img { width: 17px; height: 17px; }
.pt-sub { display: block; margin: 2px 0 0 36px; color: var(--tfj-muted); font-size: .76rem; } .pl .exh { display: block; margin: 2px 0 0 36px; }
.pt-line { margin: 6px 0 0 14px; border-left: 5px solid var(--rc); padding: 0 0 0 18px; position: relative; }
.pt-row { position: relative; padding: 4px 0; font-size: .86rem; line-height: 1.25; }
.pt-row::before { content: ""; position: absolute; left: -29px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--rc); }
.pt-row.s::before, .pt-row.e::before { left: -32px; top: 5px; width: 19px; height: 19px; border-width: 4px; } .pt-row.s::before { background: var(--rc); }
.pt-row b, .pt-row button { font: inherit; font-weight: 800; color: var(--tfj-navy); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; } .pt-row.m button { font-weight: 600; font-size: .8rem; color: var(--tfj-navy); }
.pt-row small { display: block; color: var(--tfj-muted); font-size: .72rem; font-weight: 600; } .pt-row.m::before { width: 9px; height: 9px; left: -27px; top: 9px; border-width: 2.5px; }
.pt-bus { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--rc); } .pt-bus:empty { display: none; }
.pb-g { display: inline-flex; } .pb-t { font-size: .78rem; color: var(--tfj-navy); } .pb-t b { color: #15803d; font-weight: 800; } .pb-t small { display: inline; font-size: .66rem; color: var(--tfj-muted); font-weight: 700; }
.pt-via { margin: 2px 0; } .pt-via > summary { cursor: pointer; font-size: .74rem; font-weight: 700; color: var(--tfj-muted); padding: 3px 0; list-style: none; } .pt-via > summary::-webkit-details-marker { display: none; } .pt-via > summary::after { content: " \25be"; }
.pt-via ol { list-style: none; margin: 0; padding: 0; }
.rp-info { margin: 10px 0 0; font-size: .78rem; color: var(--tfj-muted); } .rp-info summary { cursor: pointer; font-weight: 700; } .rp-info p { margin: 6px 0 0; }
#pFareNote:empty { display: none; }
.tt-now { padding: 4px 0 10px; border-bottom: 1px dashed rgba(20,41,61,.14); margin-bottom: 4px; } .tt-now > small { display: block; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tfj-muted); margin-bottom: 6px; } .tt-now small i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; }
.tt-nr { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .82rem; } .tt-nr .roundel { width: 26px; height: 26px; font-size: .62rem; flex: none; } .tt-nr b { color: var(--tfj-navy); } .tt-nr span { color: var(--tfj-muted); font-weight: 600; }
/* rincian rencana baru menggantikan tata letak lama .pl (flex + garis ::before) */
.po-i .pl { display: block; gap: 0; position: static; }
.po-i .pl::before { display: none; }
.po-i .pl small { margin-top: 0; }
.po-i .pl b { font-size: inherit; line-height: inherit; }
.po-i .pl .pt-ti .roundel { width: 30px; height: 30px; font-size: .68rem; }
.po-i .pl .pt-row small { margin-top: 1px; }
/* tooltip halte/stasiun tersemat, daftar rute berkelompok, tombol rencana lebih kecil, ikon kategori */
.bs-tip .maplibregl-popup-content { padding: 10px 12px; border-radius: 14px; }
.bs-tip.pinned .maplibregl-popup-content { pointer-events: auto; padding: 10px 10px 10px 14px; }
.tip-b { display: flex; align-items: center; gap: 12px; } .tip-m { min-width: 0; line-height: 1.3; } .tip-m small { margin-top: 3px; } .tip-m .integ { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: 220px; }
.tip-m .roundel { width: 26px; height: 26px; font-size: .56rem; border-width: 3px; }
.tip-go { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tfj-navy); color: #fff; font-size: 1.5rem; line-height: 1; padding: 0 0 3px; cursor: pointer; display: grid; place-items: center; }
.tip-go:hover { background: var(--tfj-blue); }
.rt-list { list-style: none; margin: 0; padding: 0; }
.rt-g { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tfj-muted); padding: 12px 0 4px; } .rt-g:first-child { padding-top: 2px; }
.rt-i b { font-size: .92rem; color: var(--tfj-navy); } .rt-i b .mut { font-weight: 600; font-size: .84rem; color: var(--tfj-muted); } .rt-i small { display: block; font-size: .74rem; color: var(--tfj-muted); margin-top: 1px; }
.pt-page .rp-act { padding: 6px 16px; gap: 8px; }
.pt-page .rp-act button { padding: 7px 8px; font-size: .78rem; border-radius: 12px; gap: 5px; }
.pt-page .rp-act button .ar { width: 18px; height: 18px; }
.cat-ic { display: inline-flex; gap: 2px; margin-right: 5px; vertical-align: -4px; } .cat-ic img { width: 18px; height: 18px; display: block; }
.cat-ic img { background: #fff; border-radius: 6px; padding: 1px; box-shadow: 0 0 0 1px rgba(20,41,61,.1); }
/* putaran 9: ikon kategori polos, tooltip, linimasa ringkas, chip filter rute */
.cat-ic { gap: 3px; margin-right: 6px; vertical-align: -6px; } .cat-ic svg { display: block; width: 24px; height: 24px; }
.cat-ic img { all: unset; }
.tip-go { width: auto; height: auto; border-radius: 0; background: none; color: var(--tfj-navy); font-size: 2rem; font-weight: 300; padding: 0 2px 4px; } .tip-go:hover { background: none; color: var(--tfj-blue); }
.tip-view { display: block; margin-top: 8px; padding: 0; background: none; border: 0; font: inherit; font-size: .78rem; font-weight: 800; color: var(--tfj-blue); cursor: pointer; } .tip-view:hover { text-decoration: underline; }
.bt-tl { height: auto !important; } .bt-ch { position: relative; }
.bt-more { display: block; margin-top: 4px; padding: 5px 0 0; background: none; border: 0; font: inherit; font-size: .74rem; font-weight: 800; color: var(--rc); cursor: pointer; text-align: left; } .bt-more:hover { text-decoration: underline; }
.code.eyebrow { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tfj-muted); margin: 0 0 3px; }
.hd-routes { gap: 10px 9px; padding: 3px 2px; }
.hd-r { padding: 2px; }
.hd-routes.has-rf .hd-r[aria-pressed="false"] { opacity: .38; filter: saturate(.6); }
.hd-r[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--tfj-navy); background: #fff; }
.bt-more::after { content: " \25be"; } .bt-more[aria-expanded="true"]::after { content: " \25b4"; }
/* putaran 10 */
.cat-ic { gap: 2px; margin-right: 6px; vertical-align: -7px; } .cat-ic img { all: unset; display: block; width: 26px; height: 26px; }
.bs-cats button[aria-pressed="true"] .cat-ic img { filter: brightness(0) invert(1); }
.pt-page .bs-dhead .bs-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: #f1f2f4; color: var(--tfj-navy); font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.pt-page .bs-dhead .bs-back:hover { background: var(--tfj-tint); }
.ms-w { background: none !important; } .pt-wk { background: none !important; } .ms-w img, .pt-wk img { width: 22px; height: 22px; }
.po-sum { display: flex; align-items: center; gap: 10px; padding: 6px 2px 8px; position: sticky; top: 0; z-index: 3; background: #fff; }
.po-sc { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px; flex: 1; min-width: 0; } .po-sc .roundel { width: 30px; height: 30px; font-size: .66rem; border-width: 3px; }
.po-sum b { font-size: .92rem; color: var(--tfj-navy); white-space: nowrap; }
.po-x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); font-size: 1rem; cursor: pointer; } .po-x:hover { background: var(--tfj-tint); }
.pt-page .rp-h { margin: 4px 0 8px; font-size: .86rem; }
.po-i:not(.open) .po::after { content: "Lihat rincian \25be"; align-self: flex-start; font-size: .72rem; font-weight: 800; color: var(--tfj-blue); }
.po-i.open .po::after { content: "Sembunyikan rincian \25b4"; align-self: flex-start; font-size: .72rem; font-weight: 800; color: var(--tfj-muted); }
.pt-line { border-left: 0; margin-left: 14px; padding-left: 18px; }
.pt-row::after { content: ""; position: absolute; left: -25px; top: 14px; bottom: 0; width: 5px; background: var(--rc); }
.pt-row.e::after { display: none; }
.pt-via > summary { position: relative; } .pt-via > summary::before { content: ""; position: absolute; left: -25px; top: 0; bottom: 0; width: 5px; background: var(--rc); }
.pt-fare.free { background: none; padding: 0; } .pt-free { font-size: .72rem; font-weight: 700; color: var(--tfj-muted); }
.pt-bus { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--rc); }
.pb-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 9px; border-radius: 16px; background: color-mix(in srgb, var(--rc) 12%, #fff); border: 1.5px solid color-mix(in srgb, var(--rc) 28%, #fff); }
.pb-t { display: flex; flex-direction: column; line-height: 1.1; } .pb-t b { font-size: .9rem; color: #15803d; } .pb-t small { display: block; margin-top: 2px; font-size: .62rem; font-weight: 700; color: var(--tfj-muted); letter-spacing: .02em; }
.pb-n { font-size: .74rem; color: var(--tfj-muted); font-weight: 600; } .pb-n b { color: #15803d; }
/* garis rincian: menyambung rapat dari titik halte ke titik halte (tanpa celah, tanpa kelebihan di ujung) */
.pt-row::after { top: 0; bottom: 0; } .pt-row.s::after { top: 14px; } .pt-row.e::after { display: block; bottom: auto; height: 14px; }
.pt-via { margin: 0; }
/* putaran 11 */
.bus-ic { display: block; width: 24px; height: 24px; flex: none; }
.bs-dhead + .hd-tools { margin: 6px 20px 4px; justify-content: flex-start; gap: 8px; }
.hd-routes { gap: 4px 4px; padding: 2px 0; } .hd-r { padding: 1px; }
.bt-ax, .bt-r { display: block; }
.bt-ax { padding-bottom: 0; } .bt-ax .bt-dir { display: block; margin: 0 0 2px; } .bt-axl { margin-bottom: 4px; }
.bt-l { margin-bottom: 8px; align-items: flex-start; } .bt-t { flex: 1; min-width: 0; }
.bt-p { flex-wrap: wrap; row-gap: 3px; } .bt-pg { flex-direction: row; flex-wrap: wrap; gap: 3px 6px; }
.bt-b { flex-direction: column; align-items: flex-start; gap: 1px; padding: 5px 11px 5px 9px; border-radius: 14px; background: color-mix(in srgb, var(--rc) 11%, #fff); border: 1.5px solid color-mix(in srgb, var(--rc) 26%, #fff); }
.bt-top { display: inline-flex; align-items: center; gap: 6px; } .bt-top b { font-size: .84rem; color: #15803d; white-space: nowrap; }
.bt-b > small { font-size: .62rem; font-weight: 700; color: var(--tfj-muted); letter-spacing: .01em; white-space: nowrap; margin-left: 30px; }
.bt-more { margin-top: 8px; }
.pb-g .bus-ic { width: 22px; height: 22px; }
/* sheet diperkecil: hanya nama & rute */
@media (max-width: 900px) {
  .pt-page .bs-side[data-sheet="min"] .bs-dhead .bs-back, .pt-page .bs-side[data-sheet="min"] .bs-dhead .code.eyebrow, .pt-page .bs-side[data-sheet="min"] .bs-dhead + .hd-tools { display: none; }
  .pt-page .bs-side[data-sheet="min"] .bs-dhead { padding-top: 2px; }
  .pt-page .bs-side[data-sheet="min"] .bs-title h2 { font-size: 1.05rem; }
  .pt-page .bs-side[data-sheet="min"] .hd-routes { flex-wrap: nowrap; overflow: hidden; margin-top: 6px; }
}
/* tema gelap: seluruh halaman peta ikut */
.pt-dark { --tfj-navy: #e6edf5; --tfj-muted: #9fb0c2; --tfj-tint: #26323f; --tfj-blue: #5aa2f0; --tfj-cream: #11171d; --tfj-line: rgba(255,255,255,.1); color-scheme: dark; background: #11171d; }
.pt-dark .site-header, .pt-dark .site-header .nav, .pt-dark .site-header nav { background: #1a222a; }
.pt-dark .bs-side, .pt-dark .sheet-handle, .pt-dark .bs-tools, .pt-dark .bs-dhead, .pt-dark .po-sum, .pt-dark .rp, .pt-dark .po-i, .pt-dark .ro-card, .pt-dark .xt li, .pt-dark .tr-sec, .pt-dark .bs-info-item, .pt-dark .am span, .pt-dark .nb-e, .pt-dark .sug, .pt-dark .trips button, .pt-dark .trip-d .trips button, .pt-dark .fab-back, .pt-dark .rp-loc, .pt-dark .map-foot, .pt-dark .maplibregl-popup-content { background: #1a222a !important; color: var(--tfj-navy); }
.pt-dark .bs-side { box-shadow: 0 -8px 32px rgba(0,0,0,.5); }
.pt-dark .tr-sec, .pt-dark .trip-d { background: #202a33 !important; }
.pt-dark .bs-tools input, .pt-dark .bs-cats button, .pt-dark .bs-act button, .pt-dark .bs-act .sug-e, .pt-dark .hd-tool, .pt-dark .po-x, .pt-dark .dirtabs.seg, .pt-dark .pt-page .rp-act button + button, .pt-dark .rp-act button + button, .pt-dark .bs-dhead .bs-back, .pt-dark .bs-pts button.pr:hover { background-color: #2a3540; color: var(--tfj-navy); }
.pt-dark .dirtabs.seg button[aria-pressed="true"], .pt-dark .ro-card[aria-pressed="true"] { background: #3a4958; color: #fff; }
.pt-dark .bs-ctl > button, .pt-dark .ctl-menu, .pt-dark .bs-ctl > .ctl-main, .pt-dark .bs-stack .bs-legend { background: #222a31; color: var(--tfj-navy); }
.pt-dark .bs-ctl .ctl-menu > button, .pt-dark .bs-ctl .ctl-menu summary { color: var(--tfj-navy); background: transparent; }
.pt-dark .bs-cats button[aria-pressed="true"], .pt-dark .bs-act button[aria-pressed="true"], .pt-dark .nb-f button[aria-pressed="true"], .pt-dark .ex-ref, .pt-dark .dbx i, .pt-dark .sy .pb, .pt-dark .ex-strip, .pt-dark .bus-row .bb-no { background: #3d5268; color: #fff; border-color: #3d5268; }
.pt-dark .bs-cats button[aria-pressed="true"] .cat-ic img { filter: none; }
.pt-dark .bus-ic, .pt-dark .pr-ic, .pt-dark .hd-ic, .pt-dark .cat-ic img, .pt-dark .pt-wk img { filter: invert(1) hue-rotate(180deg); }
.pt-dark .bt-b, .pt-dark .pb-chip { background: color-mix(in srgb, var(--rc) 20%, #1a222a); border-color: color-mix(in srgb, var(--rc) 45%, #1a222a); }
.pt-dark .bt-top b, .pt-dark .pb-t b, .pt-dark .pb-n b { color: #4ade80; }
.pt-dark .maplibregl-popup-tip { border-top-color: #1a222a; border-bottom-color: #1a222a; } .pt-dark .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: #1a222a; } .pt-dark .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: #1a222a; }
.pt-dark .bs-side input, .pt-dark .bs-tools input { color: #e6edf5; }
.pt-dark .tr-stops .d, .pt-dark .pl-dot, .pt-dark .pt-row::before { background: #1a222a; }
.pt-dark .rt-live { background: #26323f; }
/* putaran 12 */
.pt-page .bs-dhead { top: 25px; box-shadow: 0 -10px 0 #fff; z-index: 5; }
.pt-dark .bs-dhead, .pt-dark .po-bk, .pt-dark .po-sum { box-shadow: 0 -10px 0 #1a222a; }
.po-bk { position: sticky; top: 25px; z-index: 4; background: #fff; padding: 6px 16px 0; box-shadow: 0 -10px 0 #fff; }
.po-sum { top: 62px; padding: 6px 16px 8px; }
.po-bk .bs-back { background: #f1f2f4; color: var(--tfj-navy); } .po-bk .bs-back:hover { background: var(--tfj-tint); }
.po-bk .bs-back { display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 5px 12px; border: 0; border-radius: 999px; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
/* tombol "kembali" melayang di peta hanya saat sheet diperkecil (selain itu sudah ada "← Semua jalur" di kartu) */
.fab-back { background: var(--tfj-blue); color: #fff; }
.pt-dark .fab-back { background: #2f6fb8 !important; color: #fff; }
.rp > summary { display: flex; align-items: center; gap: 8px; }
.rp-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-a { display: inline-flex; gap: 4px; flex: none; margin-left: auto; }
.rp-a button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; } .rp-a button:hover { background: var(--tfj-tint); }
.pt-dark .rp-a button { background: #2a3540; }
.bt-b { cursor: default; }
.bt-ch.flow { display: flex; flex-wrap: wrap; gap: 8px; } .bt-ch.flow .bt-b { position: static; transform: none; }
.pt-dark .po-bk { background: #1a222a !important; }

/* putaran 13 */
.bt-r { padding: 14px 0; } .bt-l { margin-bottom: 10px; }
.bt-h { font-size: .84rem; }
.bt-p { font-size: .66rem; }
.bt-pg { gap: 3px 8px; } .bt-dr { gap: 3px; } .bt-dr i { width: 19px; height: 19px; border-radius: 6px; font-size: .64rem; }
.bt-ch.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; } .bt-ch.flow.r { justify-content: flex-end; }
.bt-ch.flow .bt-b { position: static; transform: none; min-width: 108px; }
.bt-r.rt .bt-tl { text-align: right; } .bt-r.rt .bt-more { margin-left: auto; text-align: right; width: 100%; }
.bt-more { color: var(--tfj-blue); } .bt-more::after { content: " \25be"; }
.bt-b > small { margin-left: 0; font-weight: 700; } .bt-b > em { font-style: normal; font-size: .62rem; font-weight: 800; color: var(--tfj-blue); }
.bt-b { align-items: flex-start; gap: 2px; padding: 7px 12px 7px 10px; }
.bt-top { gap: 7px; } .bt-top b { font-size: .9rem; }
.bt-idle { font-size: .76rem; }
/* bus pada skema dua arah: segitiga searah tujuan; lencana no. bus di pojok luar */
.dl-m i.bus-here::after { width: 16px; height: 14px; margin: -7px 0 0 -8px; border: 0; border-radius: 0; background: var(--bc, var(--tfj-blue)); box-shadow: none; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.dl-m i.bus-here.bu::after { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dl-a .dl-bb { align-self: flex-start; justify-content: flex-start; } .dl-b .dl-bb { align-self: flex-end; justify-content: flex-end; }
.dl-a .dl-n, .dl-b .dl-n { width: 100%; }
/* kartu rute: tab arah di bawah header; info bus aktif jadi sel ke-4 */
.bs-dhead ~ .dirtabs.seg, .hd-tools ~ .dirtabs.seg { margin-top: 8px; }
.dirtabs.seg button { min-width: 0; white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pt-page .bs-stats .rt-live { margin: 0; padding: 0; background: none; border-radius: 0; display: block; text-align: center; flex: 1; cursor: default; }
.bs-stats .rt-live b { display: inline-flex; align-items: center; gap: 6px; } .bs-stats .rt-live .rl-d { width: 9px; height: 9px; }
.pt-dark .bs-stats .rt-live { background: none; }
/* stroke roundel kereta (outline) seragam: 10% diameter */
.roundel.outline { border-width: 4.5px; }
.prev .roundel.outline { border-width: 3.5px; }
.view-grid .lcard .roundel.outline { border-width: 5.5px; }
.sx-chip .roundel.outline { border-width: 3.5px; }
.sx-r .roundel.outline { border-width: 3px; }
.sx-line .sx-chip .roundel.outline { border-width: 4px; }
.sx-chips2 .sx-chip .roundel.outline { border-width: 3px; }
.tf-rnd .roundel.outline { border-width: 2.5px; }
.tr-item .roundel.outline { border-width: 3.5px; }
.rd .roundel.outline { border-width: 3.5px; }
.rd.big .roundel.outline { border-width: 5px; }
.tr-sec .prev .roundel.outline { border-width: 2.5px; }
.sug .roundel.outline { border-width: 2px; }
.pl .roundel.outline { border-width: 2.5px; }
.ro-mode .roundel.outline { border-width: 2.5px; }
.pt-page .bs-title .rd.big .roundel.outline { border-width: 4px; }
.dl-c .roundel.outline { border-width: 2px; }
.hd-r .roundel.outline { border-width: 2.5px; }
.pr-ch .roundel.outline { border-width: 2.5px; }
.dr-rt .roundel.outline { border-width: 3px; }
.lt .roundel.outline { border-width: 4px; }
.bt-l .roundel.outline { border-width: 3.5px; }
.tt-l .roundel.outline { border-width: 3.5px; }
.nb-ch .roundel.outline { border-width: 2.5px; }
.nb-m .roundel.outline { border-width: 2.5px; }
.po-mode .roundel.outline { border-width: 3px; }
.pt-ti .roundel.outline { border-width: 3px; }
.tt-nr .roundel.outline { border-width: 2.5px; }
.po-i .pl .pt-ti .roundel.outline { border-width: 3px; }
.tip-m .roundel.outline { border-width: 2.5px; }
.po-sc .roundel.outline { border-width: 3px; }
/* putaran 14 */
.dl-m i.bus-here::after { width: 18px; height: 18px; margin: -9px 0 0 -9px; clip-path: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2.6 3.2Q8 1.4 13.4 3.2Q15.2 3.9 14.1 5.5L9.3 13.1Q8 15 6.7 13.1L1.9 5.5Q.8 3.9 2.6 3.2Z%27/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M2.6 3.2Q8 1.4 13.4 3.2Q15.2 3.9 14.1 5.5L9.3 13.1Q8 15 6.7 13.1L1.9 5.5Q.8 3.9 2.6 3.2Z%27/%3E%3C/svg%3E") center/contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0,20,40,.35)); }
.dl-m i.bus-here.bu::after { transform: rotate(180deg); }
.dl-m i { margin: -1px 0; } .dl-r { margin-bottom: -1px; } .dl { display: flex; flex-direction: column; gap: 0; }
.dl-n > button { display: flex; flex-direction: column; line-height: 1.15; } .dl-a .dl-n > button { align-items: flex-end; } .dl-b .dl-n > button { align-items: flex-start; }
.dl-m1 { font-weight: 700; } .dl-m2 { font-size: .68rem; font-weight: 600; color: var(--tfj-muted); }
/* kartu bus terpilih */
.bc { padding: 0 20px 24px; }
.bc-id { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 8px; background: var(--tfj-tint); color: var(--tfj-navy); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.bc-s { margin: 12px 0 4px; } .bc-h { margin: 14px 0 6px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tfj-muted); }
.bc-l { list-style: none; margin: 0; padding: 0; position: relative; }
.bc-l li { position: relative; padding-left: 26px; }
.bc-l li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 5px; background: var(--rc); }
.bc-l li:first-child::before { top: 18px; } .bc-l li:last-child::before { bottom: auto; height: 18px; }
.bc-l li::after { content: ""; position: absolute; left: 3px; top: 12px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3.5px solid var(--rc); box-sizing: border-box; }
.bc-l li.nx::after { background: var(--rc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc) 25%, transparent); }
.bc-l li button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 4px; cursor: pointer; border-radius: 8px; } .bc-l li button:hover { background: var(--tfj-tint); }
.bc-n { font-size: .9rem; font-weight: 600; color: var(--tfj-navy); line-height: 1.2; } .bc-l li.nx .bc-n { font-weight: 800; }
.bc-n small { display: block; font-size: .66rem; font-weight: 700; color: var(--tfj-muted); }
.bc-e { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.15; } .bc-e b { font-size: .84rem; color: #15803d; } .bc-e small { font-size: .66rem; font-weight: 700; color: var(--tfj-muted); }
.pt-dark .bc-l li::after { background: #1a222a; } .pt-dark .bc-l li.nx::after { background: var(--rc); } .pt-dark .bc-e b { color: #4ade80; }
@media (max-width: 900px) {
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .fab-back { bottom: 134px; }
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .bs-ctl, .pt-page .bs:has(.bs-side[data-sheet="min"]) .map-foot { bottom: 134px; }
}
.bc-src { margin: 8px 0 0; font-size: .72rem; font-weight: 700; color: var(--tfj-muted); }
/* putaran 15 */
.pt-page .bs-dhead .bs-back, .po-bk { display: none; } /* tombol kembali = "<" melayang di peta */
.hd-link { color: inherit; text-decoration: none; } .hd-link span { margin-left: 6px; font-weight: 400; color: var(--tfj-blue); } a.hd-link.sm { color: var(--tfj-blue); font-weight: 700; } a.hd-link:hover { text-decoration: underline; }
.pt-page .bs-dhead { position: sticky; padding-top: 10px; }
.bs-dhead > .hd-tools { position: absolute; top: 8px; right: 14px; margin: 0; gap: 6px; }
.bs-dhead:has(> .hd-tools) .bs-title { padding-top: 40px; }
.pt-page .bs-side[data-sheet="min"] .bs-dhead > .hd-tools { display: none; } .pt-page .bs-side[data-sheet="min"] .bs-dhead:has(> .hd-tools) .bs-title { padding-top: 0; }
.bt-ch { position: relative; } .bt-ch:not(.flow) .bt-b { position: absolute; transform: none; min-width: 0; width: 112px; }
.bt-ax { display: block; padding-bottom: 2px; } .bt-axl { position: relative; height: 14px; margin-bottom: 4px; }
.bs-dhead > .hd-tools { top: 6px; } .bs-dhead:has(> .hd-tools) .bs-title { padding-top: 36px; } .bs-dhead > .hd-tools .hd-tool { width: 32px; height: 32px; }
/* putaran 16 */
.bs-toast { position: absolute; left: 50%; top: 84px; transform: translate(-50%, -12px); z-index: 60; max-width: calc(100% - 32px); padding: 9px 16px; border-radius: 999px; background: rgba(20,41,61,.94); color: #fff; font-size: .82rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,20,40,.3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-toast.on { opacity: 1; transform: translate(-50%, 0); }
.bs-toast.busy::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 8px; vertical-align: -1px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tt-tabs { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0 2px; padding-bottom: 4px; scrollbar-width: none; } .tt-tabs::-webkit-scrollbar { display: none; }
.tt-tabs button { flex: none; font: inherit; font-size: .76rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(20,41,61,.14); background: transparent; color: var(--tfj-navy); cursor: pointer; white-space: nowrap; }
.tt-tabs button[aria-pressed="true"] { background: var(--tfj-navy); border-color: var(--tfj-navy); color: #fff; }
.pt-dark .tt-tabs button { border-color: rgba(255,255,255,.18); } .pt-dark .tt-tabs button[aria-pressed="true"] { background: #3d5268; border-color: #3d5268; }
/* menu pengaturan peta */
.pt-page .ctl-menu { width: 232px; padding: 8px; gap: 2px; border-radius: 20px; box-shadow: 0 10px 30px rgba(16,24,40,.22), 0 0 0 1px rgba(20,41,61,.06); }
.pt-page .ctl-menu > button, .pt-page .ctl-menu .bs-legend > summary { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border: 0; border-radius: 13px; background: transparent; font: inherit; font-size: .88rem; font-weight: 700; color: var(--tfj-navy); text-align: left; cursor: pointer; list-style: none; transition: background-color .15s; }
.pt-page .ctl-menu > button:hover, .pt-page .ctl-menu .bs-legend > summary:hover, .pt-page .ctl-menu .bs-legend[open] > summary { background: #e6eef9; }
.pt-page .ctl-menu .bs-legend > summary::-webkit-details-marker { display: none; }
.pt-page .ctl-menu .bs-legend > summary::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; opacity: .55; } .pt-page .ctl-menu .bs-legend[open] > summary::after { transform: rotate(45deg); }
.pt-page .ctl-menu .bs-stack { gap: 2px; }
.pt-page .ctl-menu .bs-legend { background: transparent; box-shadow: none; border-radius: 13px; }
.pt-page .bs-ctl > .ctl-main:hover { background: #eef3fa; }
.pt-dark .ctl-menu > button:hover, .pt-dark .ctl-menu .bs-legend > summary:hover, .pt-dark .ctl-menu .bs-legend[open] > summary { background: #2f3b46 !important; }
.pt-dark .bs-ctl > .ctl-main:hover { background: #2d373f !important; }
/* kartu penuh: tombol kembali bulat di atas logo; hitung ulang rapat di layar sempit */
.pt-page .bs-side[data-sheet="full"] .bs-dhead .bs-back { display: inline-flex; position: absolute; left: 16px; top: 8px; width: 34px; height: 34px; margin: 0; padding: 0; justify-content: center; border-radius: 50%; background: var(--tfj-blue); color: #fff; font-size: 0; }
.pt-page .bs-side[data-sheet="full"] .bs-dhead .bs-back::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
.pt-dark .bs-side[data-sheet="full"] .bs-dhead .bs-back { background: #2f6fb8; }
.pt-page .bs-side[data-sheet="full"] .bs-dhead:has(.bs-back) .bs-title { padding-top: 44px; }
@media (max-width: 480px) {
  .pt-page .bs-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 0; padding: 10px 12px 6px; }
  .pt-page .bs-stats .bs-stat { min-width: 0; } .pt-page .bs-stats .bs-stat b { font-size: 1.05rem; white-space: nowrap; }
  .dirtabs.seg button { padding: 6px 4px; font-size: .74rem; }
}
@media (max-width: 460px) {
  .pt-page .hdr { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .pt-page .hdr .logo img { width: 98px; height: auto; }
  .pt-page .hdr-tools { gap: 5px; flex: none; }
  .pt-page .hdr-tools .btn { padding: 8px 12px; font-size: .8rem; min-height: 0; }
}
@media (max-width: 370px) { .pt-page .hdr .hdr-cta { display: none; } }
/* putaran 17 */
.pt-page .bs-cats { flex-wrap: nowrap; gap: 6px; } .pt-page .bs-cats button { padding: 6px 11px; font-size: .78rem; gap: 4px; white-space: nowrap; }
.pt-page .bs-cats .cat-ic { margin-right: 3px; vertical-align: -5px; } .pt-page .bs-cats .cat-ic img, .pt-page .bs-cats .cat-ic svg { width: 17px; height: 17px; }
.pt-page .bs-cats button small { font-size: .68rem; margin-left: 2px; }
.tr-sec > summary { flex-wrap: wrap; row-gap: 8px; }
.tr-sec .tt { flex: 1 1 0; } .tr-sec .chev { order: 2; }
.tr-sec .prev { order: 3; flex: 1 0 100%; display: flex; padding-left: 44px; }
.tr-sec .prev .roundel:first-child { margin-left: 0; }
.tr-sec .tt small { margin-left: 6px; font-size: .74rem; }
.hd-ic { width: 40px; height: 40px; border-radius: 12px; align-self: flex-start; margin-top: 2px; }
.code.eyebrow { font-size: .58rem; margin: 0 0 1px; }
.bt-b[data-train] { cursor: pointer; font: inherit; text-align: left; } .bt-b[data-train]:hover { filter: brightness(.97); }
/* putaran 18 */
/* tombol bagikan/GPS/edit hanya di kartu layar penuh (layar sempit) */
@media (max-width: 900px) {
  .pt-page .bs-side:not([data-sheet="full"]) .bs-dhead > .hd-tools { display: none; }
  .pt-page .bs-side:not([data-sheet="full"]) .bs-dhead:has(> .hd-tools) .bs-title { padding-top: 0; }
}
/* tombol posisi (GPS) di bawah zoom */
.maplibregl-ctrl-bottom-right { display: flex; flex-direction: column; align-items: flex-end; }
.maplibregl-ctrl-bottom-right .maplibregl-ctrl { float: none; clear: none; }
.maplibregl-ctrl-bottom-right > .maplibregl-ctrl:has(.live-rf) { order: 1; }
.maplibregl-ctrl-bottom-right > #ctl { order: 2; }
.maplibregl-ctrl-bottom-right > .maplibregl-ctrl:has(.maplibregl-ctrl-zoom-in) { order: 3; }
.maplibregl-ctrl-bottom-right > .maplibregl-ctrl:has(.maplibregl-ctrl-geolocate) { order: 4; }
/* layar sempit: statistik & tab arah satu baris */
@media (max-width: 480px) {
  .pt-page .bs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 10px 6px 6px; }
  .pt-page .bs-stats .bs-stat { padding: 0 2px; } .pt-page .bs-stats .bs-stat b { font-size: .86rem; letter-spacing: -.01em; } .pt-page .bs-stats .bs-stat small { font-size: .62rem; line-height: 1.15; }
  .dirtabs.seg button { font-size: .72rem; padding: 6px 3px; }
}
@media (max-width: 370px) {
  .pt-page .bs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .pt-page .bs-stats .bs-stat b { font-size: 1rem; }
}

/* ===== Gerak: token kurva, entri menu/hasil rute, umpan tekan, sheet mobile ===== */
.pt-page { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
@keyframes pt-fade { from { opacity: 0; } }
@keyframes pt-pop { from { opacity: 0; transform: scale(.96) translateY(4px); } }

/* kurva ease-out kuat untuk entri yang sudah ada */
#detailView:not([hidden]) > *, #listView > *, .dl-r, .dt-p, .bs-cats.sub, .has-back .fab-back { animation-timing-function: var(--ease-out); }

/* navbar masuk/keluar & panel samping: gerak di layar = ease-in-out, masuk = ease-out */
.pt-page .hdr { transition: transform .3s var(--ease-out), opacity .25s var(--ease-out); }
.pt-page .bs { transition: grid-template-columns .22s var(--ease-in-out); }
.pn-toggle { transition: left .22s var(--ease-in-out), background .15s; }
.pt-page .bs-side { transition: top .25s var(--ease-out), transform .22s var(--ease-out), opacity .22s var(--ease-out), visibility .22s; }

/* menu pengaturan peta: tumbuh dari tombolnya (bukan dari tengah) */
.pt-page .ctl-menu:not([hidden]) { transform-origin: bottom right; animation: pt-pop .16s var(--ease-out) both; }

/* isi yang terbuka (Rencanakan perjalanan, Lapisan, Legenda); hasil rute TIDAK dianimasi: #planOut dirender ulang berkala sehingga animasi akan restart terus */
.pt-page .rp[open] > .rp-f, .pt-page .ctl-menu .bs-legend[open] > div { animation: pnin .22s var(--ease-out) both; }

/* umpan tekan */
.pt-page .bs-cats button, .pt-page .bs-act button, .pt-page .rp-btns button, .pt-page .ctl-menu > button, .pt-page .ctl-main { transition: background-color .15s ease-out, box-shadow .15s ease-out, transform .15s var(--ease-out); }
.pt-page .bs-cats button:active, .pt-page .bs-act button:active, .pt-page .rp-btns button:active, .pt-page .ctl-menu > button:active, .pt-page .ctl-main:active { transform: scale(.97); }

/* sheet mobile: transisi 'bs-side' desktop menimpa sheet (.22s ease) — kembalikan ke kurva & durasi sheet agar sinkron dengan kontrol peta (.28s) */
@media (max-width: 900px) {
  .pt-page .bs-side { transition: top .25s var(--ease-out), transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s var(--ease-out); }
  .pt-page .bs-side.dragging { transition: none; }
}

/* hover hanya untuk pointer halus (sentuh memicu hover palsu) */
@media (hover: none) { .ex-badge:hover { transform: none; } }

/* reduced motion: pertahankan fade, buang gerak posisi/skala */
@media (prefers-reduced-motion: reduce) {
  #detailView:not([hidden]) > *, #listView > *, .dl-r, .dt-p, .bs-cats.sub, .has-back .fab-back,
  .pt-page .rp[open] > .rp-f, .pt-page .ctl-menu .bs-legend[open] > div, .pt-page .ctl-menu:not([hidden]) { animation: pt-fade .2s ease-out both !important; animation-delay: 0s !important; }
  .pt-page .hdr { transition: opacity .2s ease-out; }
  .pt-page .bs.collapsed .bs-side { transform: none; }
  .pt-page .bs-cats button:active, .pt-page .bs-act button:active, .pt-page .rp-btns button:active, .pt-page .ctl-menu > button:active, .pt-page .ctl-main:active { transform: none; }
}

/* ===== Putaran 16: GPS di kolom cari, tombol kembali, bar rute biru ===== */
.bs-q { display: flex; align-items: center; gap: 8px; }
.bs-q input { flex: 1; min-width: 0; }
.q-loc { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-blue); display: grid; place-items: center; cursor: pointer; padding: 0; }
.q-loc:hover { background: var(--tfj-tint); } .q-loc:active { transform: scale(.94); }
.pt-dark .q-loc { background: #2a3540; color: #e6edf5; }
/* GPS: di kolom cari pada mobile; di desktop tetap di pojok kanan bawah peta */
@media (max-width: 900px) { .maplibregl-ctrl-bottom-right > .maplibregl-ctrl:has(.maplibregl-ctrl-geolocate) { display: none; } }
@media (min-width: 901px) { .q-loc { display: none; } }

/* tombol kembali: tidak biru; label operator ("BRT Transjakarta") dihapus */
.fab-back { background: #fff; color: var(--tfj-navy); }
.pt-dark .fab-back { background: #2a3540 !important; color: #e6edf5; }
.pt-page .bs-dhead .code.eyebrow { display: none; }
@media all { /* tombol kembali di dalam kartu sidebar: sama untuk desktop dan mobile */
  .has-back .fab-back { display: none; }
  body:has(#planOut:not([hidden])) .fab-back { display: grid; }
  .pt-page .bs-side[data-sheet] .bs-dhead .bs-back { display: inline-flex; position: absolute; left: 16px; top: 8px; z-index: 2; width: 34px; height: 34px; margin: 0; padding: 0; align-items: center; justify-content: center; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); font-size: 0; }
  .pt-page .bs-side[data-sheet] .bs-dhead .bs-back::before { content: ""; width: 9px; height: 9px; margin-left: 4px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
  .pt-dark .bs-side[data-sheet] .bs-dhead .bs-back { background: #2a3540; color: #e6edf5; }
  .pt-page .bs-dhead:has(.bs-back) .bs-title { padding-top: 44px !important; }
  .pt-page .bs-side[data-sheet="min"] .bs-dhead .bs-back { top: 10px; }
  .pt-page .bs-side[data-sheet="min"] .bs-dhead:has(.bs-back) .bs-title { padding-top: 0 !important; padding-left: 46px; }
}

/* bar rencana perjalanan aktif: biru FDTJ, teks putih */
.pt-page .rp:has(.rp-t) { background: var(--tfj-blue); border-color: transparent; }
.pt-page .rp > summary:has(.rp-t), .pt-page .rp > summary:has(.rp-t)::before { color: #fff; }
.pt-page .rp-a button { background: rgba(255,255,255,.18); color: #fff; }
.pt-page .rp-a button:hover { background: rgba(255,255,255,.3); }

/* ===== Putaran 17 ===== */
/* garis arah: mulai di titik pertama, berakhir di titik terakhir */
.dl-m i.st { background: linear-gradient(to bottom, transparent 50%, var(--rc, var(--tfj-blue)) 50%); }
.dl-m i.en { background: linear-gradient(to bottom, var(--rc, var(--tfj-blue)) 50%, transparent 50%); }
.dl-m i.st.en { background: none; }
/* grup yang terbuka: tanpa jarak di bawah "N rute" (chip pratinjau tidak lagi memakan satu baris) */
.tr-sec[open] > summary .prev { display: none; }
@media all {
  /* header kartu: tombol kembali + roundel/ikon sebaris dan berukuran sama (34px) */
  .pt-page .bs-dhead:has(.bs-back) { --bt: 10px; }
  .pt-page .bs-side:not([data-sheet="min"]) .bs-dhead:has(.bs-back):has(> .hd-tools) { --bt: 52px; }
  .pt-page .bs-side[data-sheet] .bs-dhead .bs-back { top: var(--bt, 10px); }
  .pt-page .bs-dhead:has(.bs-back) .bs-title { padding-top: calc(var(--bt, 10px) - 10px) !important; padding-left: 46px !important; align-items: flex-start; }
  .pt-page .bs-dhead .bs-title .rd.big .roundel { width: 34px; height: 34px; font-size: .78rem; }
  .pt-page .bs-dhead .bs-title .rd.big .roundel.sm { font-size: .66rem; } .pt-page .bs-dhead .bs-title .rd.big .roundel.xs { font-size: .52rem; }
  .pt-page .bs-dhead .bs-title .hd-ic { width: 34px; height: 34px; border-radius: 10px; margin-top: 0; }
  .pt-page .bs-dhead:has(.bs-back) .bs-title h2 { margin-top: 5px; }
}
@media (max-width: 900px) {
  /* tombol zoom tidak tertutup sheet saat diperkecil (tinggi tampak sheet 120px) */
  .pt-page .bs:has(.bs-side[data-sheet="min"]) .maplibregl-ctrl-bottom-right { margin-bottom: 130px; }
  /* gutter scrollbar simetris agar isi sheet tepat di tengah */
  .pt-page .bs-side { scrollbar-gutter: stable both-edges; }
}

/* rute aktif (kartu bus): halte + integrasi + posisi bus */
.bc-l li { display: flex; align-items: flex-start; padding-left: 26px; }
.bc-l li .bc-row { all: unset; box-sizing: border-box; flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 9px 4px; cursor: pointer; border-radius: 8px; }
.bc-l li .bc-row:hover { background: var(--tfj-tint); }
.bc-go { all: unset; box-sizing: border-box; flex: none; width: 32px; height: 36px; margin-top: 5px; display: grid; place-items: center; color: var(--tfj-blue); cursor: pointer; border-radius: 8px; }
.bc-go:hover { background: var(--tfj-tint); } .bc-go:active { transform: scale(.92); }
.bc-n { min-width: 0; }
.bc-i { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.bc-i .roundel { width: 22px; height: 22px; font-size: .5rem; border-width: 2.5px; }

.bc-l li.ps .bc-n { color: var(--tfj-muted); font-weight: 600; }
.bc-l li.ps::after { background: color-mix(in srgb, var(--rc) 35%, #fff); }
.bc-l li.ps::before { opacity: .45; }
.bc-l li.bc-t { padding-left: 26px; } .bc-l li.bc-t::before, .bc-l li.bc-t::after { display: none; }
.bc-l li.bc-t button { all: unset; box-sizing: border-box; padding: 8px 4px; font-size: .76rem; font-weight: 700; color: var(--tfj-blue); cursor: pointer; }
.bc-l li.bus-now::before { top: 0; bottom: 0; }
.bc-l li.bus-now::after { left: 0; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; background: var(--rc) url("assets/icons-tfj/bus-polos.svg") center / 12px no-repeat; border: 2.5px solid #fff; box-shadow: 0 0 0 2px var(--rc); filter: none; }
.bc-l li.bus-now .bn { padding: 9px 4px; font-size: .78rem; font-weight: 700; color: var(--tfj-navy); background: color-mix(in srgb, var(--rc) 10%, #fff); border-radius: 8px; margin: 4px 0; flex: 1; padding-left: 10px; }
.bc-l li:first-child::before, .bc-l li.bc-t + li::before { top: 0; }
.bc-l li:last-child::before { bottom: auto; height: 18px; }
.pt-dark .bc-l li.bus-now .bn { background: color-mix(in srgb, var(--rc) 22%, #1a222a); }
@media (max-width: 900px) { .pt-page .bs-dhead { touch-action: none; } }
.bc-l li .bc-go { all: unset; box-sizing: border-box; flex: none; width: 32px; height: 36px; margin-top: 5px; padding: 0; display: grid; place-items: center; color: var(--tfj-blue); cursor: pointer; border-radius: 8px; }
.bc-l li .bc-go:hover { background: var(--tfj-tint); }
.bc-l li.bc-t button { width: auto; display: block; }

/* ===== Putaran 18: menu titik tiga, bar rencana biru + logo, pemilih pintu ===== */
.pt-page .bs-side[data-sheet] .bs-dhead > .hd-tools { display: block; position: absolute; top: 10px; right: 14px; margin: 0; z-index: 8; }
.pt-page .bs-side[data-sheet="min"] .bs-dhead > .hd-tools { display: none; }
.pt-page .bs-dhead:has(> .hd-tools) .bs-title { padding-top: 0 !important; padding-right: 44px; }
.pt-page .bs-dhead { padding-top: 10px; }
.hd-more { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .15s ease-out, transform .15s var(--ease-out); }
.hd-more:hover { background: #e6e8eb; } .hd-more:active { transform: scale(.92); }
.hd-more[aria-expanded="true"] { background: var(--tfj-blue); color: #fff; }
.hd-menu { position: absolute; top: 40px; right: 0; width: 220px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(20,41,61,.28); display: flex; flex-direction: column; gap: 2px; transform-origin: top right; animation: pt-pop .16s var(--ease-out) both; }
.hd-menu[hidden] { display: none; }
.hd-menu .hd-tool, .pt-page .bs-act .hd-menu .hd-tool { width: 100%; height: auto; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 10px 10px; font: inherit; font-size: .84rem; font-weight: 700; color: var(--tfj-navy); text-align: left; text-decoration: none; }
.hd-menu .hd-tool:hover { background: var(--tfj-tint); }
.hd-menu .hd-tool svg { flex: none; }
.pt-dark .hd-more, .pt-dark .hd-menu { background: #2a3540; color: #e6edf5; }
@media all {
  .pt-page .bs-side:not([data-sheet="min"]) .bs-dhead:has(.bs-back):has(> .hd-tools) { --bt: 10px; }
}
/* bar "Rencanakan perjalanan": biru FDTJ, teks putih, navicon putih di kanan */
.pt-page .rp > summary { background: var(--tfj-blue); color: #fff; border-radius: inherit; }
.pt-page .rp[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pt-page .rp > summary::before { color: #fff; }
.pt-page .rp > summary:not(:has(.rp-t))::after { content: ""; margin-left: auto; width: 26px; height: 26px; flex: none; background: url("assets/fdtj-roundel-putih.png") center / contain no-repeat; }
.pt-page .rp > summary:has(.rp-t) { background: transparent; }
/* pemilih pintu halte */
.dr-pick { display: flex; gap: 6px; margin: 4px 0 10px; overflow-x: auto; scrollbar-width: none; }
.dr-pick::-webkit-scrollbar { display: none; }
.dr-pick button { flex: none; border: 0; border-radius: 12px; padding: 7px 14px; font: inherit; font-size: .82rem; font-weight: 800; color: var(--tfj-navy); background: #f1f2f4; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1.15; transition: background-color .15s ease-out, color .15s ease-out, transform .15s var(--ease-out); }
.dr-pick button small { font-size: .66rem; font-weight: 700; opacity: .7; }
.dr-pick button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; }
.dr-pick button:active { transform: scale(.96); }
.pt-dark .dr-pick button:not([aria-pressed="true"]) { background: #2a3540; color: #e6edf5; }
@media (prefers-reduced-motion: reduce) { .hd-menu { animation: pt-fade .2s ease-out both; } }
.pt-page .bs-dhead > .hd-tools .hd-menu .hd-tool { width: 100%; height: auto; min-height: 40px; border-radius: 10px; background: transparent; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 8px 10px; white-space: nowrap; }
.pt-page .bs-dhead > .hd-tools .hd-menu .hd-tool:hover { background: var(--tfj-tint); }

/* ===== Putaran 19: hasil bus, placeholder bergeser, tooltip satu kartu ===== */
.tr-item.bh { gap: 8px; padding: 8px 12px; }
.tr-item.bh .bh-id { flex: none; border: 2px solid var(--tfj-navy); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .8rem; line-height: 1.3; color: var(--tfj-navy); }
.tr-item.bh .roundel, .tr-item.bh .rd .roundel { width: 28px; height: 28px; font-size: .64rem; border-width: 3px; }
.tr-item.bh .roundel.sm { font-size: .54rem; } .tr-item.bh .roundel.xs { font-size: .44rem; }
.tr-item.bh .bh-d { min-width: 0; flex: 1; font-size: .86rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-wrap { position: relative; flex: 1; min-width: 0; display: block; }
.q-wrap input { width: 100%; }
.q-ph { position: absolute; top: 0; bottom: 0; overflow: hidden; pointer-events: none; color: var(--tfj-muted); }
.q-ph span { position: absolute; left: 0; top: 50%; margin-top: -.62em; line-height: 1.24; white-space: nowrap; animation: qph-in .42s var(--ease-out) both; }
.q-ph span.out { animation: qph-out .42s var(--ease-in-out) both; }
.q-wrap.hold .q-ph { display: none; }
@keyframes qph-in { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes qph-out { from { transform: none; opacity: 1; } to { transform: translateY(-120%); opacity: 0; } }
.tip-b { cursor: pointer; }
.tip-m .tip-k { display: flex; align-items: center; gap: 6px; margin: 0 0 3px; font-weight: 700; }

/* ===== Putaran 20: pill nomor body seragam, tooltip seragam, header arah + jalur sebaris ===== */
.bn-pill { display: inline-block; flex: none; border: 2px solid var(--tfj-navy); border-radius: 999px; padding: 2px 10px; font-weight: 800; font-size: .8rem; line-height: 1.3; color: var(--tfj-navy); letter-spacing: .01em; white-space: nowrap; background: transparent; }
.bc-id { margin-top: 6px; padding: 0; border-radius: 0; background: none; }
.tip-m .tip-k .bn-pill { font-size: .72rem; padding: 1px 8px; border-width: 1.5px; }
.tip-m .tip-r { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: var(--tfj-navy); }
.tip-m .tip-r .roundel { width: 24px; height: 24px; font-size: .54rem; border-width: 3px; }
.tip-m .lt-x, .tip-m .lt-s { display: flex; margin-top: 5px; }
.pt-dark .bn-pill { color: #e6edf5; border-color: #e6edf5; }
.bt-l .bt-t { flex: 1; min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; container-type: inline-size; }
.bt-l .bt-t .bt-h { flex: 1 1 auto; min-width: 0; font-size: .86rem; overflow-wrap: normal; }
.bt-l .bt-t .bt-p { flex: none; margin-left: auto; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 6px; }
.bt-l .bt-t .bt-p em { padding-top: 0; }
.bt-l .bt-t .bt-pg { flex-direction: row; flex-wrap: nowrap; gap: 3px; }
@container (max-width: 250px) { .bt-p { flex-direction: column; align-items: flex-end; gap: 2px; } }
.bs-hits > * { min-width: 0; }
.tr-item.bh { min-width: 0; overflow: hidden; }
.tip-m .lt-x { display: block; }

/* ===== Putaran 21: tooltip ringkas, header stasiun, animasi tooltip ===== */
.tip-m .tip-d { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.tip-m .tip-d b { font-size: .95rem; line-height: 1.2; min-width: 0; }
.tip-m .tip-d .roundel { flex: none; width: 22px; height: 22px; font-size: .5rem; border-width: 2.5px; }
.tip-m .tip-d .roundel.sm { font-size: .44rem; } .tip-m .tip-d .roundel.xs { font-size: .38rem; }
.tip-m .lt-x { margin-top: 5px; font-size: .78rem; font-weight: 600; color: var(--tfj-navy); line-height: 1.3; }
.tip-m .lt-s { margin-top: 4px; }
.pt-page .bs-dhead.stn:has(.bs-back) .bs-title { align-items: center; min-height: 34px; }
.pt-page .bs-dhead.stn .bs-title h2 { margin-top: 0; font-size: 1.28rem; line-height: 1.15; }
.pt-page .bs-dhead.stn .bs-title .rd.big .roundel { width: 36px; height: 36px; }
/* tooltip tersemat muncul dari titik jangkarnya; tooltip hover (sering) tidak dianimasikan */
.bs-tip.pinned .maplibregl-popup-content { animation: pt-pop .16s var(--ease-out) both; }
.bs-tip.maplibregl-popup-anchor-bottom .maplibregl-popup-content { transform-origin: 50% 100%; }
.bs-tip.maplibregl-popup-anchor-top .maplibregl-popup-content { transform-origin: 50% 0; }
.bs-tip.maplibregl-popup-anchor-left .maplibregl-popup-content { transform-origin: 0 50%; }
.bs-tip.maplibregl-popup-anchor-right .maplibregl-popup-content { transform-origin: 100% 50%; }
.bs-tip.maplibregl-popup-anchor-top-left .maplibregl-popup-content { transform-origin: 0 0; }
.bs-tip.maplibregl-popup-anchor-top-right .maplibregl-popup-content { transform-origin: 100% 0; }
.bs-tip.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content { transform-origin: 0 100%; }
.bs-tip.maplibregl-popup-anchor-bottom-right .maplibregl-popup-content { transform-origin: 100% 100%; }
.tip-go { transition: transform .15s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tip-b:hover .tip-go { transform: translateX(3px); } }
.tr-item { transition: background-color .15s ease-out, transform .15s var(--ease-out); }
.tr-item:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .bs-tip.pinned .maplibregl-popup-content { animation: pt-fade .2s ease-out both; } .tip-b:hover .tip-go, .tr-item:active { transform: none; } }

/* ===== Putaran 22: kolom cari, placeholder kata, panel rencana, pilihan rute, info armada, footer ===== */
.pt-page .bs-tools { padding: 8px 16px 2px; }
.pt-page .bs-tools input { padding: 10px 14px 10px 40px; font-size: .9rem; border-radius: 12px; background-position: 13px center; background-size: 17px; }
.q-loc { width: 38px; height: 38px; }
.pt-page .bs-list { padding-top: 0; }
.tr-cap { margin-top: 2px; }
.q-ph { display: flex; align-items: center; gap: .3em; }
.q-ph > span { position: static; margin: 0; animation: none; white-space: nowrap; }
.q-ph .ph-w { position: relative; display: block; height: 1.3em; overflow: hidden; transition: width .38s var(--ease-out); }
.q-ph .ph-w span { position: absolute; left: 0; top: 0; margin: 0; line-height: 1.3; white-space: nowrap; animation: qph-in .42s var(--ease-out) both; }
.q-ph .ph-w span.out { animation: qph-out .42s var(--ease-in-out) both; }
@media (prefers-reduced-motion: reduce) { .q-ph .ph-w { transition: none; } .q-ph .ph-w span { animation: pt-fade .2s ease-out both; } }
/* panel rencana aktif (biru): semua tombol tetap terlihat */
.pt-page .rp:has(.rp-t) .rp-btns button { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.12); }
.pt-page .rp:has(.rp-t) .rp-btns .go { background: #fff; color: var(--tfj-blue); border-color: #fff; }
.pt-page .rp:has(.rp-t) .pdot { box-shadow: 0 0 0 2px rgba(255,255,255,.95); }
.pt-page .rp:has(.rp-t) .rp-loc { border-color: #fff; }
/* pilihan rute -> rincian */
.po-cap { margin: 12px 2px 0; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); }
.po-list .po-i { border-radius: 18px; transition: box-shadow .18s var(--ease-out), border-color .18s; }
.po-list .po-i:not(.open) .po { border-radius: 18px; transition: background-color .15s ease-out, transform .15s var(--ease-out); gap: 9px; }
@media (hover: hover) and (pointer: fine) { .po-list .po-i:not(.open):hover { box-shadow: 0 6px 18px rgba(20,41,61,.12); border-color: rgba(20,41,61,.28); } }
.po:active { transform: scale(.985); }
.po-i.on:not(.open) { border-color: rgba(20,41,61,.12); box-shadow: none; }
.po-i.on .po-l::after { content: none; }
.po-l { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; }
.po-k { width: 10px; height: 10px; border-radius: 50%; background: var(--k, #9aa5b1); display: inline-block; flex: none; }
.k-fast { --k: #1d6fd6; } .k-cheap { --k: #16a34a; } .k-comfy { --k: #7c3aed; } .k-alt { --k: #9aa5b1; }
.po-d { font-size: .8rem; color: var(--tfj-muted); font-weight: 700; } .po-d b { font-size: 1.5rem; font-weight: 800; color: var(--tfj-navy); letter-spacing: -.01em; }
.po-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--tfj-muted); font-weight: 600; } .po-bot b { color: var(--tfj-navy); }
.po-bot .po-f b { font-size: .95rem; padding: 2px 9px; }
.po-meta { display: flex; align-items: center; gap: 14px; font-size: .76rem; color: var(--tfj-muted); font-weight: 600; } .po-meta img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.pd-h { display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; }
.pd-back { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease-out, transform .15s var(--ease-out); } .pd-back:hover { background: var(--tfj-tint); } .pd-back:active { transform: scale(.92); }
.pd-t { flex: 1; min-width: 0; } .pd-t b { display: block; font-size: 1.15rem; line-height: 1.2; color: var(--tfj-navy); } .pd-t small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--tfj-muted); font-size: .76rem; margin-top: 3px; font-weight: 600; }
.pd-k { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--tfj-navy); }
.pd-f b { font-size: 1.05rem; }
.rp-out.vin > * { animation: pnin .28s var(--ease-out) both; } .rp-out.vin > *:nth-child(2) { animation-delay: .03s; } .rp-out.vin > *:nth-child(3) { animation-delay: .06s; } .rp-out.vin > *:nth-child(n+4) { animation-delay: .09s; }
@media (prefers-reduced-motion: reduce) { .rp-out.vin > * { animation: pt-fade .2s ease-out both; } }
/* info armada */
.fl { margin: 12px 0 4px; padding: 12px 14px; border-radius: 16px; background: #f5f7fa; }
.fl-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; } .fl-h b { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); }
.fl dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } .fl dl > div { min-width: 0; }
.fl dt { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tfj-muted); } .fl dd { margin: 1px 0 0; font-size: .86rem; font-weight: 700; color: var(--tfj-navy); overflow-wrap: anywhere; }
.fl small { display: block; margin-top: 10px; font-size: .68rem; color: var(--tfj-muted); } .fl small a { color: var(--tfj-blue); font-weight: 700; }
.pt-dark .fl { background: #222d37; }
.ev-chip { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 800; font-size: .68rem; color: #0f6b3a; background: #e6f6ec; padding: 2px 8px; border-radius: 999px; white-space: nowrap; } .ev-chip.sm { padding: 1px 6px; margin-left: auto; }
.tip-m .tip-f { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: .74rem; font-weight: 700; color: var(--tfj-muted); }
/* footer sumber data */
.bs-foot.src { margin: 14px 16px 20px; padding: 14px 16px; border-radius: 16px; background: #f5f7fa; font-size: .76rem; color: var(--tfj-muted); }
.sf-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--tfj-navy); font-size: .82rem; }
.sf-i { width: 18px; height: 18px; border-radius: 50%; background: var(--tfj-blue); color: #fff; display: inline-grid; place-items: center; font-size: .66rem; font-weight: 800; }
.sf-l { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.sf-l li { display: flex; align-items: baseline; gap: 10px; } .sf-l li b { flex: none; width: 54px; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); }
.sf-l a { color: var(--tfj-blue); font-weight: 700; text-decoration: none; } .sf-l a:hover { text-decoration: underline; }
.bs-foot.src p { margin: 0; line-height: 1.45; }
.pt-dark .bs-foot.src { background: #222d37; } .pt-dark .sf-h { color: #e6edf5; }
.po-i:not(.open) .po::after { content: none; }
.po-meta span { display: inline-flex; align-items: center; gap: 5px; }
.po-meta img { margin: 0; vertical-align: 0; }
.po-list .po-i:not(.open) .po-top::after { content: none; }

/* ===== Putaran 23: info armada (ikon i), ringkasan sticky solid, titik terisi, filter moda ===== */
.tip-m .tip-k .ev-chip { margin-left: 2px; }
.tip-m .lt-x, .tip-m .lt-s { display: block; margin-top: 4px; }
.tip-m .lt-s { display: flex; }
.bn-pill.bn-i { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font: inherit; font-weight: 800; font-size: .8rem; line-height: 1.3; padding: 2px 6px 2px 10px; transition: background-color .15s ease-out, transform .15s var(--ease-out); }
.bn-pill.bn-i i { width: 17px; height: 17px; border-radius: 50%; background: var(--tfj-navy); color: #fff; font-style: normal; font-size: .64rem; display: inline-grid; place-items: center; font-family: Georgia, serif; }
.bn-pill.bn-i[aria-expanded="true"] { background: var(--tfj-navy); color: #fff; } .bn-pill.bn-i[aria-expanded="true"] i { background: #fff; color: var(--tfj-navy); }
@media (hover: hover) and (pointer: fine) { .bn-pill.bn-i:hover { background: var(--tfj-tint); } .bn-pill.bn-i[aria-expanded="true"]:hover { background: var(--tfj-navy); } }
.bn-pill.bn-i:active { transform: scale(.96); }
.fl[hidden] { display: none; }
.fl:not([hidden]) { animation: pnin .22s var(--ease-out) both; }
.pt-dark .bn-pill.bn-i i { background: #e6edf5; color: #14293d; }
/* hasil cari bus: teks tujuan boleh turun baris */
.tr-item.bh { align-items: center; overflow: visible; }
.tr-item.bh .bh-d { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
/* ringkasan rute: menempel di atas, solid */
.pd-top { position: sticky; top: 0; z-index: 8; margin: 0 -16px; padding: 4px 16px 0; background: #fff; box-shadow: 0 1px 0 rgba(20,41,61,.08); }
.pd-top .po-sum { position: static; padding: 6px 2px 10px; background: #fff; }
.pt-dark .pd-top, .pt-dark .pd-top .po-sum { background: #1a222a; }
@media (max-width: 900px) { .pt-page .bs-tools, .pd-top { touch-action: none; } }
/* garis tidak boleh menembus titik: titik di atas garis, titik pertama dimulai di titik */
.pt-row::before { z-index: 2; } .pt-row::after, .pt-via > summary::before { z-index: 1; }
.bc-l li:first-child::before, .bc-l li.bc-t + li::before { top: 18px; }
/* filter moda planner */
.po-flt { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.po-flt button { font: inherit; font-size: .78rem; font-weight: 700; border: 0; background: #f1f2f4; color: var(--tfj-navy); border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, transform .15s var(--ease-out); }
.po-flt button[aria-pressed="true"] { background: var(--tfj-navy); color: #fff; }
.po-flt button:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .po-flt button[aria-pressed="false"]:hover { background: var(--tfj-tint); } }
.pt-dark .po-flt button { background: #2a3540; color: #e6edf5; } .pt-dark .po-flt button[aria-pressed="true"] { background: #e6edf5; color: #14293d; }

/* ===== Putaran 24: kolom cari X, header menempel, kartu bus, penanda bus di garis halte, tooltip ===== */
.q-wrap input::-webkit-search-cancel-button { display: none; }
.pt-page .bs-tools input { padding-right: 38px; }
.q-x { position: absolute; right: 9px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border: 0; border-radius: 50%; background: rgba(20,41,61,.14); color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 2; transition: background-color .15s ease-out, transform .15s var(--ease-out); }
.q-x[hidden] { display: none; }
.q-x:active { transform: scale(.9); }
@media (hover: hover) and (pointer: fine) { .q-x:hover { background: rgba(20,41,61,.24); } }
.pt-dark .q-x { background: rgba(255,255,255,.2); color: #e6edf5; }
/* header kartu detail menempel saat digulir */
.pt-page #detailView .bs-dhead { position: sticky; top: 0; z-index: 9; background: #fff; box-shadow: 0 1px 0 rgba(20,41,61,.07); }
/* tooltip: Jenis (nomor) + indikator GPS */
.tip-m .tip-k { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.gps-w { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--tfj-muted); }
.gps { width: 9px; height: 9px; border-radius: 50%; background: #9ca3af; display: inline-block; flex: none; }
.gps.g { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.2); } .gps.o { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
.tip-m .lt-x { margin-top: 5px; }
/* header kartu bus: nomor body, lalu (rute) arah */
.pt-page .bs-dhead.bus .bs-title { align-items: flex-start; }
.bs-dhead.bus .bt-col { min-width: 0; }
.bs-dhead.bus .bc-id { margin: 0; }
.bs-dhead.bus .bt-r2 { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.pt-page .bs-dhead.bus .bt-r2 h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; min-width: 0; }
.bs-dhead.bus .bt-r2 .rd { flex: none; } .pt-page .bs-dhead.bus .bt-r2 .roundel { width: 30px; height: 30px; font-size: .66rem; border-width: 3px; }
.pt-page .bs-dhead.bus .bt-r2 .roundel.sm { font-size: .54rem; } .pt-page .bs-dhead.bus .bt-r2 .roundel.xs { font-size: .44rem; }
/* penanda bus bergerak di garis halte */
.bc-l li.bus-now { position: relative; display: block; height: 44px; padding: 0; }
.bc-l li.bus-now::after { display: none; }
.bc-l li.bus-now .bm { position: absolute; left: -3.5px; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .6rem; line-height: 1; z-index: 2; box-shadow: 0 0 0 2.5px var(--gs, #9ca3af), 0 0 0 4.5px #fff, 0 2px 7px rgba(0,0,0,.3); transition: top .7s linear; }
.bc-l li.bus-now .bm b { font-weight: 800; } .bc-l li.bus-now .bm.sm { font-size: .48rem; }
.bm.st-g { --gs: #16a34a; } .bm.st-o { --gs: #f59e0b; } .bm.st-x, .bm.st-s { --gs: #9ca3af; }
.pt-dark .bc-l li.bus-now .bm { box-shadow: 0 0 0 2.5px var(--gs, #9ca3af), 0 0 0 4.5px #1a222a, 0 2px 7px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .bc-l li.bus-now .bm { transition: none; } }

/* ===== Putaran 25: header seragam, roundel tidak terpotong, posisi bus di rute (plat + penanda bulat) ===== */
.pt-page .bs-side[data-sheet] .bs-dhead:has(.bs-back) .bs-back { top: 50%; margin-top: -17px; }
.pt-page .bs-side[data-sheet] .bs-dhead:has(.bs-back) { padding-bottom: 10px; }
.pt-page .bs-dhead:has(.bs-back) .bs-title { padding-top: 0 !important; align-items: center; min-height: 34px; }
.pt-page .bs-dhead.bus:has(.bs-back) .bs-title { align-items: center; }
/* roundel JAK 43B: satu baris, melebar sesuai isi, tidak dipotong */
.tip-m .tip-d .roundel.stack, .pt-page .bs-dhead.bus .bt-r2 .roundel.stack { width: auto; min-width: 28px; padding: 0 9px; border-radius: 999px; flex-direction: row; align-items: center; justify-content: center; gap: 3px; overflow: visible; }
.tip-m .tip-d .roundel.stack { height: 24px; } .pt-page .bs-dhead.bus .bt-r2 .roundel.stack { height: 30px; }
.tip-m .tip-d .roundel.stack i, .pt-page .bs-dhead.bus .bt-r2 .roundel.stack i { font-size: .46rem; font-style: normal; line-height: 1; }
.tip-m .tip-d .roundel.stack b, .pt-page .bs-dhead.bus .bt-r2 .roundel.stack b { font-size: .74rem; line-height: 1; display: inline; }
.tip-m .tip-d .roundel { width: auto; min-width: 24px; padding: 0 4px; } .pt-page .bs-dhead.bus .bt-r2 .roundel { width: auto; min-width: 30px; padding: 0 5px; }
/* posisi bus di daftar halte rute: nomor body = plat (sudut membulat), penanda = lingkaran seperti kartu bus */
.bus-row .bb-no { background: #1b4ca6; color: #fff; font-size: .68rem; letter-spacing: .03em; padding: 3px 9px; border-radius: 9px; box-shadow: inset 0 0 0 2px #1b4ca6, inset 0 0 0 3.5px #fff, 0 1px 3px rgba(0,20,40,.25); }
.bus-row .bb-dot { left: -2px; width: 26px; height: 26px; border: 0; display: grid; place-items: center; font-size: .6rem; line-height: 1; box-shadow: 0 0 0 2.5px var(--gs, #9ca3af), 0 0 0 4.5px #fff, 0 2px 7px rgba(0,0,0,.3); }
.bus-row .bb-dot b { font-weight: 800; } .bus-row .bb-dot.sm { font-size: .48rem; }
.bus-row .bb-meta { margin-left: 36px; }
.pt-dark .bus-row .bb-no { background: #1b4ca6; color: #fff; border-color: transparent; }

/* ===== Putaran 26: placeholder kata sejajar ===== */
.q-ph > span { top: auto; }
.q-ph .ph-w { top: 0; margin: 0; }

/* ===== Putaran 27: penanda tetesan di daftar/skema, roundel bertumpuk berpadding ===== */
.dm { position: absolute; width: 0; height: 0; z-index: 3; pointer-events: none; }
.dm svg { position: absolute; left: -20px; top: -17px; width: 40px; height: 40px; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,20,40,.35)); }
.dm.up svg { top: -23px; transform: rotate(180deg); }
.dm b { position: absolute; left: -15px; top: -6px; width: 30px; text-align: center; font-size: .6rem; line-height: 12px; font-weight: 800; white-space: nowrap; }
.dm.sm b { font-size: .46rem; }
.dl { position: relative; }
.dm.dd { z-index: 4; } .dm.dd.go { transition: left .7s linear, top .7s linear; }
.bc-l li.bus-now { height: 60px; } .bc-l li.bus-now .dm { left: 9.5px; transition: top .7s linear; }
.bus-row { min-height: 44px; } .bus-row .dm { left: 11px; top: 50%; }
@media (prefers-reduced-motion: reduce) { .dm.dd.go, .bc-l li.bus-now .dm { transition: none; } }
/* roundel dengan dua baris (JAK 48A): melebar sesuai isi, ada padding, tidak kepotong/offset */
.roundel.stack { width: auto !important; aspect-ratio: 1; padding: 0 .38em; box-sizing: border-box; white-space: nowrap; }

/* tombol "halte yang sudah dilewati" sejajar ikon posisi bus (ikut bergerak turun bersama ikon) */
.bc-l li.bus-now .bc-tg { all: unset; box-sizing: border-box; position: absolute; left: 40px; right: 4px; padding: 3px 0; font-size: .76rem; font-weight: 700; color: var(--tfj-blue); cursor: pointer; line-height: 1.2; transition: top .7s linear; z-index: 3; }
@media (prefers-reduced-motion: reduce) { .bc-l li.bus-now .bc-tg { transition: none; } }

/* iPhone/iPad: Safari memperbesar halaman bila kolom input berhuruf < 16px; paksa 16px agar tombol/kolom cari tidak memicu zoom */
@supports (-webkit-touch-callout: none) {
  .pt-page input, .pt-page select, .pt-page textarea, .pt-page .bs-tools input, .pt-page .rp-row input, .bs-q input { font-size: 16px !important; }
}

/* titik integrasi: satu baris yang bisa digeser kiri-kanan; panah bawah membuka semua (beberapa baris) */
.tr-stops .integ, .bc-i { display: flex; align-items: flex-start; gap: 4px; }
.ig-sc { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.ig-sc::-webkit-scrollbar { display: none; }
.ig-sc .tjchips { display: inline-flex; flex-wrap: nowrap; gap: 3px; vertical-align: top; }
.ig-sc .tjchips > * { flex: none; }
.ig-sc.open { overflow: visible; white-space: normal; }
.ig-sc.open .tjchips { display: flex; flex-wrap: wrap; }
.ig-x { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #f1f2f4; display: grid; place-items: center; cursor: pointer; margin-top: 0; }
.ig-x::before { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--tfj-navy); border-bottom: 2px solid var(--tfj-navy); transform: translateY(-1.5px) rotate(45deg); transition: transform .2s var(--ease-out, ease-out); }
.ig-x[aria-expanded="true"]::before { transform: translateY(1.5px) rotate(225deg); }
.ig-x:hover { background: var(--tfj-tint); }
.pt-dark .ig-x { background: #2a3540; }
.trips .tv-main { font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--rc, var(--tfj-blue)); border-radius: 999px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
.trips .tv-poros { background: #f59e0b; color: #14293d; }

/* judul "Halte kedua arah" + tombol ikon (bus, integrasi) rata kanan */
.dl-th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dl-th h3 { margin: 0; }
.dl-tg { display: inline-flex; gap: 6px; }
.dl-tg button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; padding: 0; opacity: .5; transition: background-color .15s ease-out, opacity .15s, transform .15s var(--ease-out, ease-out); }
.dl-tg button[aria-pressed="true"] { background: var(--rc, var(--tfj-blue)); color: #fff; opacity: 1; }
.dl-tg button[aria-pressed="true"] img { filter: brightness(0) invert(1); }
.dl-tg button:active { transform: scale(.92); }
.dl-sec.no-integ .dl-c { display: none; }
.dl-sec.no-bus .dl .dm, .dl-sec.no-bus .dl-bb { display: none; }
.dl-sec.no-bus .dl-m i.bus-here::after { clip-path: none; -webkit-mask: none; mask: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--rc, var(--tfj-blue)); border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--rc, var(--tfj-blue)); }

/* pil "Jalur N" (terminal) + integrasi di kolom dua arah */
.jl-p { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--tfj-navy); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .01em; cursor: pointer; white-space: nowrap; margin-right: 3px; }
.jl-p:hover { filter: brightness(1.2); }
.tjchips.jl { margin-right: 3px; }
.dl-n .dl-c { display: flex; width: 100%; max-width: 100%; min-width: 0; flex: 0 1 auto; flex-wrap: nowrap; gap: 4px; margin: 0; }
.dl-n .dl-c .ig-sc { flex: 1; min-width: 0; }
.dl-a .dl-c .ig-sc { text-align: right; } .dl-a .dl-c { flex-direction: row-reverse; }
.dl-c .jl-p { height: 20px; font-size: .58rem; padding: 0 7px; }

/* skema dua arah: nomor body disembunyikan; muncul di sebelah penanda bus yang diklik (klik lagi untuk menutup, klik nomor untuk lihat di peta) */
.dl .dm.dd svg { pointer-events: auto; cursor: pointer; }
.dm-no { position: absolute; top: -10px; right: 22px; pointer-events: auto; cursor: pointer; white-space: nowrap; padding: 2px 9px; border-radius: 999px; border: 2px solid #fff; background: var(--tfj-navy); color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0,20,40,.3); z-index: 5; }
.dm.up .dm-no { right: auto; left: 22px; }
.dl-bb { display: none; }

/* nomor lambung bus: pil biru bulat penuh (cincin putih ganda), tidak keluar/terpotong panel */
.bus-row { flex-wrap: wrap; row-gap: 2px; }
.bus-row .bb-no { position: static; transform: none; flex: none; max-width: 100%; margin-left: 38px; padding: 3px 11px; border-radius: 999px; line-height: 1.2; box-shadow: inset 0 0 0 2px #1b4ca6, inset 0 0 0 3.5px #fff, 0 1px 3px rgba(0,20,40,.25); overflow: hidden; text-overflow: ellipsis; }
.bus-row .bb-meta { margin-left: 8px; }
.dm-no { background: #1b4ca6; padding: 3px 11px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 2px #1b4ca6, inset 0 0 0 3.5px #fff, 0 1px 3px rgba(0,20,40,.25); }
.bus-row { padding-left: 38px; column-gap: 8px; }
.bus-row .bb-no, .bus-row .bb-meta { margin-left: 0; }

/* filter tujuan bertingkat + panah lingkaran arah (stasiun) */
.tt-tabs.tt-sub { margin-top: 0; } .tt-tabs.tt-sub button { font-size: .72rem; padding: 5px 11px; }
.tt-ar { display: inline-grid; place-items: center; vertical-align: -4px; margin-right: 5px; color: var(--tfj-blue); flex: none; }
.tt-ar svg { display: block; transform: rotate(calc(var(--a, 90deg) - 90deg)); transition: transform .3s var(--ease-out, ease-out); }
.tt-tabs button .tt-ar { margin: -2px 6px -2px -4px; vertical-align: -5px; } .tt-tabs button .tt-ar svg { width: 18px; height: 18px; } .tt-tabs button .tt-ar circle { stroke: #fff; stroke-width: 1.6; }
.bt-h .tt-ar svg { width: 20px; height: 20px; }

/* Bus menuju halte: sakelar linimasa/daftar + tampilan daftar */
.bt-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bt-hd h3 { margin: 0; }
.bt-vw { display: inline-flex; gap: 2px; background: #f1f2f4; border-radius: 999px; padding: 2px; flex: none; }
.bt-vw button { width: 30px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--tfj-muted); display: grid; place-items: center; cursor: pointer; padding: 0; }
.bt-vw button[aria-pressed="true"] { background: #fff; color: var(--tfj-navy); box-shadow: 0 1px 3px rgba(20,41,61,.18); }
.bt.bt-list { display: block; }
.bl-r { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid rgba(20,41,61,.09); cursor: default; }
.bl-r:first-child { border-top: 0; } .bl-r[data-bus] { cursor: pointer; } .bl-r[data-bus]:hover { background: var(--tfj-tint); border-radius: 10px; }
.bl-r .roundel { flex: none; }
.bl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .bl-t b { font-size: .92rem; line-height: 1.25; color: var(--tfj-navy); } .bl-t small { font-size: .74rem; color: var(--tfj-muted); }
.bl-e { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.bl-e b { font-size: 1.05rem; font-weight: 800; color: #168a3c; } .bl-e b.now { color: #e4002b; }
.bl-e span { font-size: .76rem; font-weight: 700; color: var(--tfj-navy); } .bl-e small { font-size: .66rem; color: var(--tfj-muted); }
.bl-r.idle { opacity: .75; }

/* panah arah di peta (stasiun terpilih) */
.map-ttar { pointer-events: none; z-index: 6; }
.map-ttar .tt-ar { margin: 0; vertical-align: top; color: var(--tfj-blue); filter: drop-shadow(0 1px 3px rgba(0,20,40,.45)); }
.map-ttar .tt-ar svg { width: 28px; height: 28px; }
.map-ttar .tt-ar circle { stroke: #fff; stroke-width: 1.6; }

/* Pumpunan (kawasan terpadu) */
.pum { background: color-mix(in srgb, #7c3aed 7%, #fff); border: 1.5px solid color-mix(in srgb, #7c3aed 28%, transparent); border-radius: 16px; padding: 12px 12px 6px; }
.pum-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.pum-h small { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6d28d9; }
.pum-h h3, .pum > h3 { margin: 2px 0 0; font-size: 1rem; color: var(--tfj-navy); }
.pum-go { flex: none; border: 0; border-radius: 999px; background: #6d28d9; color: #fff; font: inherit; font-size: .74rem; font-weight: 800; padding: 6px 12px; cursor: pointer; }
.pum-l { display: grid; gap: 2px; }
.pum-i { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 5px; padding: 8px 8px; border-radius: 10px; cursor: pointer; }
.pum-i:hover { background: rgba(124,58,237,.1); }
.pum-i.cur { background: #fff; box-shadow: inset 0 0 0 1.5px #6d28d9; }
.pum-n { display: flex; flex-direction: column; } .pum-n b { font-size: .88rem; color: var(--tfj-navy); line-height: 1.25; } .pum-n small { font-size: .7rem; color: var(--tfj-muted); }
.pum-i .integ { display: flex; align-items: flex-start; gap: 4px; }
.pt-dark .pum { background: rgba(124,58,237,.14); } .pt-dark .pum-i.cur { background: #1a222a; }

.tt-ar.sm { margin: 0 4px; vertical-align: -3px; } .tt-ar.sm svg { width: 16px; height: 16px; }

/* daftar kedatangan: ikon panah arah, baris beruntun saat >1 bus dibuka */
.bl-t b .tt-ar { margin-right: 7px; vertical-align: -5px; } .bl-t b .tt-ar svg { width: 20px; height: 20px; }
.bl-r.multi { cursor: pointer; } .bl-r.multi:hover { background: var(--tfj-tint); border-radius: 10px; }
.bl-g { border-top: 1px solid rgba(20,41,61,.09); } .bl-g .bl-a { border-top: 1px solid rgba(20,41,61,.06); } .bl-g .bl-a:first-child { border-top: 0; }
.bl-x { all: unset; box-sizing: border-box; display: block; margin: 0 0 8px 52px; padding: 4px 8px; border-radius: 8px; font-size: .74rem; font-weight: 700; color: var(--tfj-blue); cursor: pointer; } .bl-x:hover { background: var(--tfj-tint); }

/* Pumpunan: pil pilihan (Halte CSW / MRT ASEAN), mirip pil jalur Court Sq */
.pum-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; } .pum-tabs::-webkit-scrollbar { display: none; }
.pum-tabs button { flex: none; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; font: inherit; border: 1.5px solid rgba(20,41,61,.16); background: #fff; color: var(--tfj-navy); border-radius: 14px; padding: 7px 14px; cursor: pointer; line-height: 1.2; }
.pum-tabs button .pum-tl { font-size: .84rem; font-weight: 800; } .pum-tabs button small { font-size: .66rem; color: var(--tfj-muted); font-weight: 600; }
.pum-tabs button[aria-pressed="true"] { border-color: var(--tfj-blue); background: color-mix(in srgb, var(--tfj-blue) 10%, #fff); box-shadow: 0 0 0 1px var(--tfj-blue) inset; }
.pum-g[hidden] { display: none; } .pum-g { display: grid; gap: 2px; }
.pt-dark .pum-tabs button { background: #1a222a; border-color: rgba(255,255,255,.18); }
/* daftar kedatangan bus: nomor rute sebanding dengan ikon panah */
.bl-r .roundel { width: 32px; height: 32px; font-size: .62rem; border-width: 3px; }
.bl-t b .tt-ar.sm { margin: 0 8px 0 0; vertical-align: -6px; } .bl-t b .tt-ar.sm svg { width: 24px; height: 24px; }
.bl-t b { display: inline-flex; align-items: center; }

/* ikon panah biru menggantikan kata "arah" / glyph panah di semua daftar */
.bs-title h2 .tt-ar.sm, .rt-i b .tt-ar.sm, .bh-d .tt-ar.sm, .bt-h .tt-ar.sm, .tt-nr .tt-ar.sm, .dr-rt .tt-ar.sm { margin: 0 6px 0 0; vertical-align: -5px; }
.bs-title h2 .tt-ar.sm svg, .rt-i b .tt-ar.sm svg, .bh-d .tt-ar.sm svg, .bt-h .tt-ar.sm svg, .dr-rt .tt-ar.sm svg { width: 22px; height: 22px; }
.dirtabs button .tt-ar.sm { margin: 0 5px 0 0; vertical-align: -4px; } .dirtabs button .tt-ar.sm svg { width: 17px; height: 17px; }
.bs-act button .tt-ar.sm, .rp-btns button .tt-ar.sm { margin: 0 5px 0 0; vertical-align: -4px; } .bs-act button .tt-ar.sm svg { width: 18px; height: 18px; }
.dirtabs button[aria-pressed="true"] .tt-ar circle, .bs-act button .tt-ar circle { stroke: #fff; stroke-width: 1.4; }

/* ikon pola rute (⇄ → ⟲) memakai lingkaran biru yang sama */
.pat .tt-ar { width: auto; height: auto; background: none; margin: 0; display: inline-grid; } .pat .tt-ar svg { width: 30px; height: 30px; transform: none; }
.tt-ar svg { transform: rotate(calc(var(--a, 90deg) - 90deg)); }
b .tt-ar.sm, h2 .tt-ar.sm, small .tt-ar.sm { margin: 0 5px; vertical-align: -4px; }
h2 .tt-ar.sm svg { width: 24px; height: 24px; } small .tt-ar.sm svg { width: 15px; height: 15px; }
.tr-loop .tt-ar { margin: 0 6px 0 0; }

/* tombol "Rute" (dropdown berangkat/tujuan) di kiri titik tiga */
.hd-plan { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px 0 11px; border: 0; border-radius: 999px; background: var(--tfj-blue); color: #fff; font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; flex: none; transition: transform .15s var(--ease-out, ease-out), filter .15s; }
.hd-plan:hover { filter: brightness(1.1); } .hd-plan:active { transform: scale(.95); }
.hd-cv { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease-out, ease-out); margin-left: 1px; }
.hd-plan[aria-expanded="true"] .hd-cv { transform: translateY(1px) rotate(225deg); }
.hd-pmenu { position: absolute; top: 44px; right: 0; width: 230px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(20,41,61,.28); display: flex; flex-direction: column; gap: 2px; transform-origin: top right; animation: pt-pop .16s var(--ease-out) both; z-index: 5; }
.hd-pmenu[hidden] { display: none; }
.hd-pmenu .hd-pitem { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; font-size: .86rem; font-weight: 700; color: var(--tfj-navy); cursor: pointer; }
.hd-pmenu .hd-pitem:hover { background: var(--tfj-tint); }
.hd-pmenu .tt-ar svg { width: 22px; height: 22px; }
.pt-dark .hd-pmenu { background: #1a222a; }
.bs-dhead > .hd-tools { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.pt-page .bs-side[data-sheet] .bs-dhead > .hd-tools { display: flex; flex-direction: row; align-items: center; gap: 6px; }
.pt-page .bs-dhead:has(> .hd-tools .hd-plan) .bs-title { padding-right: 132px; }
.pt-page .bs-side[data-sheet="min"] .bs-dhead > .hd-tools { display: none; }

/* ---- revisi ikon: lingkaran biru FDTJ transparan + glyph biru FDTJ tipis ---- */
.tt-ar circle { stroke: none !important; }
.tt-tabs button[aria-pressed="true"] .tt-ar, .dirtabs.seg button[aria-pressed="true"] .tt-ar { color: #fff; }
.dirtabs.seg button[aria-pressed="true"] .tt-ar { color: var(--tfj-blue); }
.tt-ar.md svg { width: 20px; height: 20px; } .tt-ar.md { margin: 0; vertical-align: middle; }
.dirtabs.seg button .tt-ar.md { vertical-align: -5px; }
.map-ttar .tt-ar { background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,20,40,.35); } .map-ttar .tt-ar circle { fill-opacity: 0; }
.bs-act button .tt-ar circle { fill-opacity: .14; }
.pt-dark .tt-ar { color: #8ec1ff; }
/* tombol rute (ikon saja) */
.hd-plan { width: 34px; height: 34px; padding: 0; justify-content: center; background: #f1f2f4; color: var(--tfj-blue); }
.hd-plan:hover { filter: none; background: #e6e8eb; } .hd-plan span, .hd-plan .hd-cv { display: none; }
.pt-dark .hd-plan { background: #2a3540; color: #8ec1ff; }
.pt-page .bs-dhead:has(> .hd-tools .hd-plan) .bs-title { padding-right: 92px; }
.pt-page .bs-side[data-sheet] .bs-dhead > .hd-tools { flex-wrap: nowrap; }
/* nomor lambung / info bus: pil biru bulat penuh bercincin putih (seragam) */
.bn-pill { background: #1b4ca6; color: #fff; border: 0; padding: 3px 12px; box-shadow: inset 0 0 0 2px #1b4ca6, inset 0 0 0 3.5px #fff, 0 1px 3px rgba(0,20,40,.25); }
.bn-pill.bn-i { padding: 3px 7px 3px 12px; } .bn-pill.bn-i i { background: #fff; color: #1b4ca6; }
.bn-pill.bn-i[aria-expanded="true"] { background: #14293d; } .bn-pill.bn-i[aria-expanded="true"] i { background: #fff; color: #14293d; }
.pt-dark .bn-pill { color: #fff; border-color: transparent; }
.tip-m .tip-k .bn-pill { border-width: 0; }
/* header bus: satu baris (rute + tujuan, lalu nomor lambung) */
.bs-dhead.bus .bt-col { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.bs-dhead.bus .bt-col .bc-id { margin: 7px 0 0; }
.bs-dhead.bus .bt-col { flex-wrap: nowrap; width: 100%; }
.bs-dhead.bus .bt-col .bt-r2 { flex: 1 1 auto; min-width: 0; margin-top: 0; } .bs-dhead.bus .bt-col .bt-r2 h2 { white-space: normal; overflow: visible; text-overflow: clip; word-break: break-word; }
.bs-dhead.bus .bt-col .bc-id { flex: none; margin: 0; }
.bs-dhead.bus .bn-pill { font-size: .72rem; padding: 3px 6px 3px 10px; }

/* ---- Sekitar Anda ala TfL Go: kartu per halte ---- */
.tg-list { padding: 8px 14px 28px; display: grid; gap: 12px; }
.nb-list.tg-list li { border: 0; padding: 0; }
.tg-c { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(20,41,61,.14), 0 4px 14px rgba(20,41,61,.06); padding: 12px 14px 10px; }
.tg-h { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.tg-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .tg-n b { font-size: 1rem; line-height: 1.25; color: var(--tfj-navy); } .tg-n small { font-size: .78rem; color: var(--tfj-muted); line-height: 1.3; }
.tg-n small .tt-ar.sm { margin: 0 4px 0 0; } .tg-n small .tt-ar.sm svg { width: 14px; height: 14px; }
.tg-near { font-style: normal; font-size: .6rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tfj-blue); background: color-mix(in srgb, var(--tfj-blue) 12%, #fff); border-radius: 999px; padding: 2px 8px; margin-right: 7px; vertical-align: 2px; }
.tg-b { margin-top: 8px; }
.tg-r { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-top: 1px solid rgba(20,41,61,.08); padding: 9px 0; font: inherit; text-align: left; cursor: pointer; }
.tg-r .roundel { width: 32px; height: 32px; font-size: .62rem; border-width: 3px; flex: none; }
.tg-t { flex: 1; min-width: 0; font-size: .88rem; font-weight: 600; color: var(--tfj-navy); line-height: 1.25; }
.tg-e { flex: none; font-size: .92rem; font-weight: 800; color: #168a3c; white-space: nowrap; } .tg-e.now { color: #e4002b; }
.tg-ch { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 9px; border-top: 1px solid rgba(20,41,61,.08); }
.tg-b:empty { display: none; }
.pt-dark .tg-c { background: #1a222a; }

/* ---- Legenda informatif ---- */
#symBody { max-height: min(62vh, 560px); overflow-y: auto; padding: 4px 4px 8px; }
#symBody .lg-h { margin: 14px 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--tfj-blue); text-transform: none; }
#symBody .lg-h:first-child { margin-top: 4px; }
#symBody .sy { align-items: flex-start; gap: 11px; margin: 7px 0; line-height: 1.3; }
#symBody .sy > i { width: 34px; min-height: 24px; align-items: center; }
#symBody .sy > span { display: flex; flex-direction: column; min-width: 0; } #symBody .sy > span b { font-size: .82rem; color: var(--tfj-navy); } #symBody .sy > span small { font-size: .72rem; color: var(--tfj-muted); line-height: 1.3; }
#symBody .roundel { width: 28px; height: 28px; font-size: .56rem; border-width: 3px; }
#symBody .gr { width: 16px; height: 16px; border-radius: 50%; background: var(--tfj-blue); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c, #16a34a); }
#symBody .pum-sw { width: 26px; height: 18px; border-radius: 9px; background: rgba(124,58,237,.14); border: 1.6px dashed #6d28d9; }
#symBody .wc { font-size: 1rem; line-height: 1; }
#symBody .eta { font-size: .8rem; color: #168a3c; white-space: nowrap; }
#symBody .tv-main { font-style: normal; font-size: .58rem; }
.pt-page .bs-stack .bs-legend[open] #symBody, .pt-page .ctl-menu .bs-legend[open] #symBody { width: min(320px, 78vw); }
#symBody { width: 288px; max-width: 100%; max-height: 52vh; box-sizing: border-box; }
#symBody .sy > span, #symBody .sy > span small, #symBody .sy > span b { white-space: normal; overflow-wrap: anywhere; }
.pt-page .bs-stack .bs-legend[open] #symBody, .pt-page .ctl-menu .bs-legend[open] #symBody { width: 288px; }

/* ---- Lencana & rincian gangguan ---- */
.gg-b { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px 2px 3px; border-radius: 999px; background: #fff3c4; color: #7a5200; border: 1px solid #f2c200; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; vertical-align: 2px; white-space: nowrap; }
.gg-b i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; background: #f2c200; color: #14293d; display: inline-grid; place-items: center; font-size: .66rem; }
.gg-b:hover { background: #ffe9a0; }
.bs-title h2 + .gg-b { margin: 6px 0 0; display: inline-flex; vertical-align: baseline; }
.gg-list { display: grid; gap: 12px; padding: 10px 14px 6px; }
.gg-c { display: flex; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(20,41,61,.14), 0 4px 14px rgba(20,41,61,.06); }
.gg-bar { flex: none; width: 40px; display: grid; place-items: start center; padding-top: 14px; font-weight: 800; font-size: 1.1rem; background: #f2c200; color: #14293d; }
.gg-c.bad .gg-bar { background: #d4202a; color: #fff; } .gg-c.info .gg-bar { background: #18549c; color: #fff; }
.gg-body { padding: 12px 14px; min-width: 0; flex: 1; } .gg-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; } .gg-top small { color: var(--tfj-muted); font-size: .72rem; }
.gg-body h3 { margin: 0 0 4px; font-size: .96rem; line-height: 1.35; } .gg-body p { margin: 0 0 8px; font-size: .88rem; line-height: 1.5; }
.gg-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 5px 12px; margin: 8px 0 0; font-size: .8rem; } .gg-body dt { color: var(--tfj-muted); font-weight: 700; } .gg-body dd { margin: 0; }
.pt-dark .gg-c { background: #1a222a; } .pt-dark .gg-b { background: #4a3a08; color: #ffe08a; border-color: #8a6a00; }

.sf-ver { margin: 8px 0 0; font-size: .74rem; color: var(--tfj-muted); } .sf-ver a { color: var(--tfj-blue); font-weight: 700; }

/* ---- Tampilan info di panel: Status layanan & Catatan perubahan ---- */
.iv-ic { color: var(--tfj-blue); }
.sv-op { font-size: .72rem; font-weight: 800; color: var(--tfj-navy); margin: 0 0 4px; }
.sv-lns { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 6px; } .sv-ln { all: unset; cursor: pointer; display: inline-flex; border-radius: 999px; } .sv-ln .roundel { width: 30px; height: 30px; font-size: .58rem; border-width: 3px; } .sv-tx { font-size: .72rem; font-weight: 800; color: var(--tfj-muted); align-self: center; }
.sv-ok { background: #fff; border-radius: 14px; padding: 22px; display: grid; gap: 4px; text-align: center; box-shadow: 0 1px 3px rgba(20,41,61,.1); } .sv-ok span { color: var(--tfj-muted); font-size: .88rem; }
.cl-p { display: grid; gap: 10px; padding: 10px 14px 6px; }
.cl-pv { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(20,41,61,.14), 0 4px 14px rgba(20,41,61,.06); }
.cl-pv summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; cursor: pointer; list-style: none; } .cl-pv summary::-webkit-details-marker { display: none; }
.cl-pn { font-weight: 800; font-size: .8rem; color: #fff; background: var(--tfj-blue); border-radius: 999px; padding: 2px 10px; } .cl-pv summary b { font-size: .92rem; flex: 1 1 140px; } .cl-pv summary small { color: var(--tfj-muted); font-size: .72rem; }
.cl-pv ul { list-style: none; margin: 10px 0 2px; padding: 0; display: grid; gap: 8px; } .cl-pv li { display: flex; gap: 8px; align-items: flex-start; font-size: .84rem; line-height: 1.45; }
.cl-pt { flex: none; font-style: normal; min-width: 66px; text-align: center; font-size: .6rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; background: var(--tfj-tint); color: var(--tfj-navy); margin-top: 1px; }
.cl-pt.Baru { background: #dff5e6; color: #14653a; } .cl-pt.Perbaikan { background: #fde7c8; color: #7a4a00; } .cl-pt.Tampilan { background: #e3ecfb; color: #18549c; }
.pt-dark .cl-pv, .pt-dark .sv-ok { background: #1a222a; }
.mn-n { font-style: normal; margin-left: auto; min-width: 20px; height: 20px; border-radius: 999px; background: #d4202a; color: #fff; font-size: .68rem; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px; } .mn-n[hidden] { display: none; }
.ctl-menu > button small { margin-left: auto; color: var(--tfj-muted); font-weight: 700; font-size: .7rem; }

/* ponsel: saran perencana perjalanan tampil lebar penuh menutupi peta & lembar bawah (bukan kotak kecil di bawah kolom) */
@media (max-width: 900px) {
  body > .sug { position: fixed; left: 0; right: 0; top: 150px; bottom: auto; width: auto; max-height: 55vh; overflow-y: auto; overscroll-behavior: contain; z-index: 900; border: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -6px 30px rgba(20,41,61,.3); padding: 6px 4px 14px; background: #fff; }
  body > .sug button { padding: 12px 16px; font-size: .92rem; gap: 12px; border-top: 1px solid rgba(20,41,61,.07); }
  body > .sug button:first-child { border-top: 0; }
  body > .sug .roundel { width: 28px; height: 28px; font-size: .58rem; }
  body > .sug .hd { padding: 12px 16px 4px; }
  body.pt-dark > .sug { background: #1a222a; }
}


/* ---- Performa ---- */
/* daftar panjang: lewati render elemen di luar layar (semua perangkat) */
.bs-list > li, .nb-list > li, .tr-stops > li, .trips > li, .cl-pv, .gg-c, .tg-c, .bs-pts > li { content-visibility: auto; contain-intrinsic-size: auto 64px; }
.tg-c { contain-intrinsic-size: auto 150px; }
/* mode ringan (HP lemah / hemat data): tanpa animasi, transisi, filter, dan bayangan berat */
.pt-lite *, .pt-lite *::before, .pt-lite *::after { animation: none !important; scroll-behavior: auto !important; }
.pt-lite .dm svg, .pt-lite .map-ttar .tt-ar, .pt-lite .bs-side, .pt-lite .hd-pmenu, .pt-lite .hd-menu, .pt-lite .sug { filter: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.pt-lite .bs-side, .pt-lite .rp-dock, .pt-lite .ctl-menu, .pt-lite .tg-c, .pt-lite .cl-pv, .pt-lite .gg-c, .pt-lite .sp-c { box-shadow: 0 1px 2px rgba(20,41,61,.2) !important; }
.pt-lite .dl-r { animation: none !important; opacity: 1 !important; }

/* ---- panel dua arah ala busrouter.sg: ujung rute menyatu, panah arah, teks rata mengikuti kolom ---- */
.dl-a .dl-n > button { text-align: right; } .dl-b .dl-n > button { text-align: left; } /* tombol <button> memusatkan teks bungkus; ikuti sisi kolom */
.dl-tt { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 2px 8px; }
.dl-tt.top { margin-bottom: 9px; } .dl-tt.bot { margin-top: 9px; }
.dl-tt .dl-code { font: inherit; font-size: .66rem; font-weight: 800; letter-spacing: .03em; color: var(--rc, var(--tfj-blue)); background: none; padding: 0; }
.dl-tt > button { font: inherit; font-size: .92rem; font-weight: 800; line-height: 1.2; text-align: center; background: none; border: 0; padding: 2px 6px; border-radius: 6px; cursor: pointer; color: var(--tfj-navy); }
.dl-tt > button:hover { background: var(--tfj-tint); }
.dl-tt .dl-c { justify-content: center; width: auto; max-width: 100%; flex-wrap: wrap; }
.dl-r.dl-tm { display: flex; justify-content: center; min-height: 26px; }
.dl-tm .dl-a, .dl-tm .dl-b { display: none; }        /* tetap ada di DOM: penempatan posisi bus mencari tombol/jalur di baris ini */
.dl-tm .dl-m { position: relative; }
.dl-tm .dl-m i { background: var(--rc, var(--tfj-blue)) !important; opacity: 1 !important; }
.dl-tm .dl-m i::after { display: none; }
.dl-tm .dl-m::before { content: ""; position: absolute; left: 50%; width: 16px; margin-left: -8px; height: 14px; box-sizing: border-box; border: 4px solid var(--rc, var(--tfj-blue)); z-index: 1; }
.dl-tm.top .dl-m::before { top: 0; border-bottom: 0; border-radius: 8px 8px 0 0; }
.dl-tm.bot .dl-m::before { bottom: 0; border-top: 0; border-radius: 0 0 8px 8px; }
.dl-tm .dl-m::after { content: ""; position: absolute; left: 50%; width: 13px; height: 13px; margin-left: -6.5px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2.5px solid var(--rc, var(--tfj-blue)); z-index: 2; }
.dl-tm.top .dl-m::after { top: -6px; } .dl-tm.bot .dl-m::after { bottom: -6px; }
/* panah arah di jalur: kiri turun (arah pertama), kanan naik (arah kedua) */
.dl-m i.ar::before { content: ""; position: absolute; left: 50%; bottom: 2px; width: 9px; height: 9px; margin-left: -4.5px; box-sizing: border-box; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg); filter: drop-shadow(1px 0 0 var(--rc, var(--tfj-blue))) drop-shadow(-1px 0 0 var(--rc, var(--tfj-blue))) drop-shadow(0 1px 0 var(--rc, var(--tfj-blue))) drop-shadow(0 -1px 0 var(--rc, var(--tfj-blue))); z-index: 1; }
.dl-m i:nth-child(2).ar::before { bottom: auto; top: 5px; transform: rotate(-135deg); }

/* ---- panel dua arah, tahap 2 (ala busrouter.sg): jalur tersambung, titik halte kecil terpisah, panah tipis di jalur ---- */
.dl-r { grid-template-columns: 1fr 38px 1fr; }
.dl-m { gap: 12px; }
.dl-m i.thru { opacity: 1; }                         /* tak ada halte di arah ini pada baris ini: garis tetap menyambung */
.dl-m i:not(.on):not(.thru) { opacity: .28; }       /* hanya di luar rentang terminal arah itu */
.dl-m i.on:not(.bus-here)::after { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; border: 2.5px solid var(--rc, var(--tfj-blue)); box-shadow: none; box-sizing: content-box; }
.dl-m i.on:not(.bus-here)::after { width: 4px; height: 4px; margin: -4.5px 0 0 -4.5px; } /* 4px isi + 2*2.5px cincin = 9px total */
.dl-tm .dl-m::before { width: 20px; margin-left: -10px; }
.dl-tm.top .dl-m::before { border-radius: 10px 10px 0 0; } .dl-tm.bot .dl-m::before { border-radius: 0 0 10px 10px; }
/* panah arah: chevron tipis warna lin yang dipucatkan; kiri menunjuk ke bawah (arah pertama), kanan ke atas (arah kedua) */
.dl-m i.ar::before { content: ""; position: absolute; left: 50%; bottom: 2px; top: auto; width: 9px; height: 9px; margin-left: -4.5px; box-sizing: border-box; border: 0; border-right: 2.5px solid color-mix(in srgb, var(--rc, var(--tfj-blue)) 45%, #fff); border-bottom: 2.5px solid color-mix(in srgb, var(--rc, var(--tfj-blue)) 45%, #fff); transform: rotate(45deg); filter: none; z-index: 1; }
.dl-m i:nth-child(2).ar::before { bottom: auto; top: 5px; transform: rotate(-135deg); }

/* header rute: kode 3 karakter (D41, B41, 6M...) sedikit lebih besar agar terbaca */
.pt-page .bs-dhead .bs-title .rd.big .roundel.sm { font-size: .78rem; letter-spacing: -.01em; }
.pt-page .bs-dhead .bs-title .rd.big .roundel.xs { font-size: .6rem; }
/* jalur dua arah: tiap lajur setinggi baris penuh agar garis tak putus-putus */
.dl-m { align-self: stretch; align-items: stretch; }
.dl-m i { height: auto; align-self: stretch; margin: -1px 0; }
/* panel dua arah: kolom kiri = bus naik (panah ke atas), kolom kanan = bus turun (panah ke bawah) — jalur kiri-ke-kanan ala lalu lintas Indonesia */
.dl-r .dl-a { order: 3; justify-content: flex-start; text-align: left; } .dl-r .dl-b { order: 1; justify-content: flex-end; text-align: right; } .dl-r .dl-m { order: 2; flex-direction: row-reverse; }
.dl-a .dl-n { align-items: flex-start; text-align: left; } .dl-b .dl-n { align-items: flex-end; text-align: right; }
.dl-a .dl-n > button { align-items: flex-start; text-align: left; } .dl-b .dl-n > button { align-items: flex-end; text-align: right; }
.dl-a .dl-n .dl-c { justify-content: flex-start; } .dl-b .dl-n .dl-c { justify-content: flex-end; }
.dl-a .dl-c { flex-direction: row; } .dl-b .dl-c { flex-direction: row-reverse; }
.dl-a .dl-c .ig-sc { text-align: left; } .dl-b .dl-c .ig-sc { text-align: right; }
.dl-a .dl-bb { justify-content: flex-start; } .dl-b .dl-bb { justify-content: flex-end; }
/* rencana perjalanan: bus/kereta berikutnya sebagai daftar ke bawah dengan ikon */
.pt-bus { flex-direction: column; align-items: stretch; gap: 4px; }
.pb-row { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 8px; border-radius: 14px; background: color-mix(in srgb, var(--rc) 11%, #fff); border: 1.5px solid color-mix(in srgb, var(--rc) 24%, #fff); }
.pb-row b { font-size: .9rem; color: #15803d; font-weight: 800; white-space: nowrap; } .pb-row small { margin-left: auto; font-size: .66rem; font-weight: 700; color: var(--tfj-muted); text-align: right; }
.pb-row .bus-ic { width: 22px; height: 22px; display: block; }
.pt-dark .pb-row { background: color-mix(in srgb, var(--rc) 20%, #1a222a); border-color: color-mix(in srgb, var(--rc) 45%, #1a222a); } .pt-dark .pb-row b { color: #4ade80; }
/* tampilan stasiun: dikelompokkan per lin (kepala berwarna), lalu tiap arah + jadwal */
.bt-g { margin: 0 0 12px; border: 1.5px solid color-mix(in srgb, var(--rc) 30%, #fff); border-radius: 16px; overflow: hidden; background: #fff; }
.bt-gh { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--rc); color: #fff; font-size: 1rem; }
.bt-gh b { font-weight: 800; } .bt-gh .roundel { box-shadow: 0 0 0 2px #fff; }
.bt-g .bt-r { border: 0; border-radius: 0; margin: 0; border-top: 1px solid color-mix(in srgb, var(--rc) 14%, #fff); }
.bt-g .bt-r:first-of-type { border-top: 0; }
.bt-g .bt-l > .roundel { display: none; }
.bt-ah { margin-right: .3em; font-weight: 500; color: var(--tfj-muted); }
/* ---- baris jadwal: ikon | nomor KA/bus | kanan: menit + jam ---- */
.pb-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 10px; }
.pb-row .pb-g { flex: none; } .pb-id { flex: 1; min-width: 0; font-size: .86rem; font-weight: 700; color: var(--tfj-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-e { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; } .pb-e b { font-size: .98rem; } .pb-e small { margin: 0; font-size: .68rem; font-weight: 700; color: var(--tfj-muted); }
.pt-bus { gap: 6px; margin: 8px 0 4px; }
/* tampilan stasiun: daftar ke bawah ala halte bus */
.bt-g { margin: 0 0 14px; } .bt-g .bt-r { display: block; padding: 12px 14px 6px; }
.bt-g .bt-l { margin-bottom: 4px; } .bt-g .bt-tl { height: auto; position: static; }
.bt-g .bt-ch.flow { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; align-items: stretch; }
.bt-g .bt-ch.flow .bt-b.bt-lr { position: static; transform: none; width: 100%; min-width: 0; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 10px 2px; border: 0; border-top: 1px solid rgba(20,41,61,.07); border-radius: 0; background: none; }
.bt-g .bt-ch.flow .bt-b.bt-lr:first-child { border-top: 0; } .bt-g .bt-ch.flow .bt-b.bt-lr:hover { background: color-mix(in srgb, var(--rc) 7%, #fff); }
.bt-gl { flex: none; display: inline-flex; color: var(--rc); } .bt-gl .bus-ic { width: 24px; height: 24px; }
.bt-id { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; font-size: .9rem; font-weight: 700; color: var(--tfj-navy); text-align: left; } .bt-id em { font-style: normal; font-size: .66rem; font-weight: 800; color: var(--tfj-blue); }
.bt-ev { flex: none; margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; } .bt-ev b { font-size: 1.05rem; font-weight: 800; color: #168a3c; } .bt-ev small { font-size: .68rem; font-weight: 700; color: var(--tfj-muted); margin: 0; }
.bt-g .bt-idle { display: block; padding: 4px 2px 8px; }
/* lingkaran rute kereta: garis tepi sedikit lebih tebal (berlaku semua lin) */
.roundel.outline { position: relative; } .roundel.outline::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--rc); pointer-events: none; }
/* kolom saran perencana selalu di atas hasil rute yang menempel (sticky) */
.rp-f:focus-within, .rp-row:focus-within { position: relative; z-index: 60; }
/* tooltip halte/stasiun: 3 keberangkatan tercepat */
.tip-up { margin-top: 8px; padding-top: 6px; border-top: 1px solid rgba(20,41,61,.1); display: flex; flex-direction: column; gap: 5px; min-width: 210px; } .tip-up[hidden] { display: none; }
.tu-r { display: flex; align-items: center; gap: 8px; } .tu-r .roundel { flex: none; width: 24px; height: 24px; font-size: .5rem; border-width: 2.5px; }
.tu-h { flex: 1; min-width: 0; font-size: .78rem; font-weight: 700; color: var(--tfj-navy); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tu-m { flex: none; font-size: .82rem; font-weight: 800; color: #168a3c; } .tu-m.now { color: #e4002b; }
.tu-all { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; padding: 6px 10px; border-radius: 10px; background: #eef1f5; font-size: .74rem; font-weight: 700; color: var(--tfj-navy); }
.tu-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; } .tu-t .tu-h { flex: none; display: flex; align-items: center; gap: 6px; }
.tu-h .tt-ar { flex: none; margin: 0; } .tu-h .tt-ar svg { width: 18px; height: 18px; }
.tu-id { margin-left: 24px; font-size: .64rem; font-weight: 700; color: var(--tfj-muted); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tip-b:has(.tip-up:not([hidden])) > .tip-go { display: none; } /* tombol "Semua keberangkatan" sudah membuka detail */

/* petunjuk awal peta: satu baris, hilang sendiri (JS: 5 dtk) */
.pt-page .bs-hint { white-space: nowrap; max-width: calc(100% - 24px) !important; overflow: hidden; text-overflow: ellipsis; }
/* ringkasan gangguan di bawah "Rencanakan perjalanan": kartu bergaya status layanan */
.gg-ban { margin: 10px 20px 8px; }
.gg-ban[hidden] { display: none; }
.gb-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid #eef1f4; font-size: .88rem; color: var(--tfj-ink); }
.gb-h i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; background: #ffd400; color: #14293d; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 800; }
.gb-all { margin-left: auto; font: inherit; font-size: .78rem; font-weight: 800; color: var(--tfj-blue, #18549c); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.gb-row { cursor: pointer; } .gb-row:hover { background: #f6f9fc; } .gb-row:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: -2px; }
.gb-row .sp-bar { width: 40px; } .gb-row .sp-bar::before { width: 26px; height: 26px; }
.gb-row .sp-rb { min-width: 0; padding: 10px 14px; }
.gb-lines { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; flex-wrap: wrap; } .gb-more, .gb-op { font-size: .75rem; font-weight: 700; color: var(--tfj-muted); }
.gb-row .sp-t { margin: 0; } .gg-ban .gb-row .sp-t .sp-d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* kartu rute di rincian gangguan bisa diklik untuk terbang ke lokasi */
.sp-card[data-flyto] { cursor: pointer; } .sp-card[data-flyto]:hover { box-shadow: 0 0 0 2px var(--tfj-blue); }

/* banner gangguan: roundel diperkecil, nama rute di sampingnya seperti di rincian */
.gb-lines { gap: 8px; margin-bottom: 6px; flex-wrap: nowrap; }
.gb-lines .roundel { zoom: .72; }
.gb-nm { min-width: 0; font-weight: 700; font-size: .84rem; color: var(--tfj-ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-nm .tt-ar { vertical-align: -3px; } .gb-lines .gb-more { flex: none; white-space: nowrap; }

/* nomor body bus/kereta: garis biru, teks biru, latar transparan (semua tempat) */
.bn-pill { background: transparent; color: #1b4ca6; border: 2px solid #1b4ca6; box-shadow: none; padding: 2px 10px; }
.tip-m .tip-k .bn-pill { border-width: 1.5px; padding: 0 8px; color: #1b4ca6; }
.bn-pill.bn-i { padding: 2px 6px 2px 10px; } .bn-pill.bn-i i { background: #1b4ca6; color: #fff; }
.bn-pill.bn-i[aria-expanded="true"] { background: #1b4ca6; color: #fff; } .bn-pill.bn-i[aria-expanded="true"] i { background: #fff; color: #1b4ca6; }
@media (hover: hover) and (pointer: fine) { .bn-pill.bn-i:hover { background: rgba(27,76,166,.08); } .bn-pill.bn-i[aria-expanded="true"]:hover { background: #1b4ca6; } }
.bs-dhead.bus .bn-pill { font-size: .72rem; padding: 2px 6px 2px 10px; }
.pt-dark .bn-pill, .pt-dark .tip-m .tip-k .bn-pill { color: #8db4ff; border-color: #8db4ff; background: transparent; }
.pt-dark .bn-pill.bn-i i { background: #8db4ff; color: #14293d; }
/* tombol ikuti posisi bus */
.bc-follow { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: .72rem; font-weight: 800; color: #1b4ca6; background: transparent; border: 1.5px solid color-mix(in srgb, #1b4ca6 45%, transparent); border-radius: 999px; padding: 2px 10px 2px 8px; cursor: pointer; }
.bc-follow:hover { background: rgba(27,76,166,.08); } .bc-follow[aria-pressed="true"] { background: #1b4ca6; border-color: #1b4ca6; color: #fff; }
.bc-follow:focus-visible { outline: 2px solid #1b4ca6; outline-offset: 2px; }

/* ===== Posisi bus & halte: gaya papan daftar halte (header "Halte berikutnya" + tombol Ikuti, baris abu dengan pemisah) ===== */
.bc-nx { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 12px; border-bottom: 1px solid #e2e5ea; }
.bc-nxt { min-width: 0; display: grid; gap: 1px; } .bc-nxt small { font-size: .74rem; font-weight: 600; color: var(--tfj-muted); }
.bc-nxt b { font-size: 1.15rem; font-weight: 800; line-height: 1.2; color: var(--tfj-navy); overflow-wrap: anywhere; }
.bc-nx .bc-follow { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .9rem; font-weight: 800; color: #fff; background: var(--rc, #1b4ca6); border: 2px solid var(--rc, #1b4ca6); border-radius: 999px; padding: 8px 18px 8px 14px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.bc-nx .bc-follow[aria-pressed="true"] { background: #fff; color: var(--rc, #1b4ca6); box-shadow: none; }
.bc-nx .bc-follow:active { transform: scale(.97); }
.bc-l { background: #f3f4f6; border-radius: 14px; padding: 0 14px; margin-top: 8px; }
.bc-l li:not(.bus-now):not(.bc-t) { border-top: 1px solid #e2e5ea; }
.bc-l li.nx { background: #fff; border-radius: 10px; border-top-color: transparent; box-shadow: 0 2px 10px rgba(20,41,61,.16); position: relative; z-index: 1; }
.bc-l li .bc-n { font-size: 1rem; font-weight: 700; } .bc-l li.ps .bc-n { font-size: .95rem; }
.bc-l li .bc-row { padding: 12px 4px; } .bc-l li .bc-go { margin-top: 10px; }
.bc-l li .bc-e b { font-size: .95rem; }
.pt-dark .bc-l { background: #1f2a34; } .pt-dark .bc-l li:not(.bus-now):not(.bc-t) { border-top-color: #2b3945; } .pt-dark .bc-l li.nx { background: #26333f; }
.pt-dark .bc-nxt b { color: #e6edf5; } .pt-dark .bc-nx { border-bottom-color: #2b3945; }

/* ===== Kartu bus gaya MBTA Go: pita warna rute + kartu putih; daftar putih, garis rute menyambung ===== */
.bc-top { margin: 0 -20px; padding: 12px 20px 16px; background: var(--rc, #1b4ca6); }
.bc-card { background: #fff; border-radius: 14px; padding: 12px 14px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.bc-card .bc-nx { border-bottom: 0; padding: 0 0 4px; } .bc-card .bc-s { margin: 4px 0 0; }
.bc-card .bc-nx .bc-follow { border-color: var(--rc, #1b4ca6); }
.bc-l { background: #fff; border: 1px solid #e2e5ea; border-radius: 14px; padding: 0 14px; margin-top: 8px; }
.bc-l li.nx { background: none; border-radius: 0; box-shadow: none; z-index: auto; border-top-color: #e2e5ea; }
.bc-l li:not(:first-child)::before { top: -1px !important; } /* pemisah 1px tidak memutus garis rute */
.bc-l li.bus-now::before { top: 0 !important; }
.pt-dark .bc-card { background: #1a222a; } .pt-dark .bc-l { background: #1a222a; border-color: #2b3945; } .pt-dark .bc-l li.nx { background: none; }

/* banner gangguan: carousel geser kiri-kanan, otomatis tiap 3,5 dtk */
.gg-ban .gb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gg-ban .gb-track::-webkit-scrollbar { display: none; }
.gg-ban .gb-row { flex: 0 0 100%; scroll-snap-align: start; border-top: 0; min-width: 0; }
.gb-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0 10px; border-top: 1px solid #eef1f4; }
.gb-dots button { all: unset; box-sizing: border-box; width: 8px; height: 8px; border-radius: 50%; background: #cbd3dc; cursor: pointer; transition: background-color .2s, width .2s; }
.gb-dots button[aria-current="true"] { background: var(--tfj-blue, #18549c); width: 20px; border-radius: 4px; }
.gb-dots button:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .gb-dots button { transition: none; } }

/* ===== Halte yang sudah dilewati: buka/tutup beranimasi (max-height + opacity + geser kecil, bergiliran dari yang terdekat bus) ===== */
.bc-l li.ps { display: flex; max-height: 0; opacity: 0; overflow: hidden; border-top-width: 0; transform: translateY(-8px); visibility: hidden;
  transition: max-height .24s cubic-bezier(.23,1,.32,1), opacity .16s cubic-bezier(.23,1,.32,1), transform .24s cubic-bezier(.23,1,.32,1), visibility 0s linear .26s; }
.bc-l.pass-open li.ps { max-height: 170px; opacity: 1; transform: none; visibility: visible; border-top-width: 1px;
  transition: max-height .3s cubic-bezier(.23,1,.32,1) calc(var(--i, 0) * 24ms), opacity .24s cubic-bezier(.23,1,.32,1) calc(var(--i, 0) * 24ms), transform .3s cubic-bezier(.23,1,.32,1) calc(var(--i, 0) * 24ms), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .bc-l li.ps, .bc-l.pass-open li.ps { transition: opacity .15s linear; transform: none; } }
/* pil "N halte sudah dilewati": sejajar tengah kepala penanda bus */
.bc-l li.bus-now .bc-tg { all: unset; box-sizing: border-box; position: absolute; left: 46px; right: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 13px 0 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; line-height: 1; white-space: nowrap; color: var(--tfj-navy); background: color-mix(in srgb, var(--rc) 13%, #fff); border: 1.5px solid color-mix(in srgb, var(--rc) 45%, #fff); cursor: pointer; z-index: 3; transition: top .7s linear, background-color .15s ease, transform .15s cubic-bezier(.23,1,.32,1); }
.bc-tg svg { flex: none; transition: transform .28s cubic-bezier(.23,1,.32,1); } .bc-tg[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .bc-l li.bus-now .bc-tg:hover { background: color-mix(in srgb, var(--rc) 22%, #fff); } }
.bc-l li.bus-now .bc-tg:active { transform: scale(.97); } .bc-l li.bus-now .bc-tg:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bc-tg svg, .bc-l li.bus-now .bc-tg { transition: none; } }
.pt-dark .bc-l li.bus-now .bc-tg { color: #e6edf5; background: color-mix(in srgb, var(--rc) 25%, #1a222a); border-color: color-mix(in srgb, var(--rc) 50%, #1a222a); }
/* roundel JAK di tooltip: lingkaran bertumpuk seperti di daftar rute */
.tip-m .tip-d .roundel.stack { width: 30px !important; height: 30px; min-width: 30px; padding: 0 !important; border-radius: 50%; flex-direction: column; gap: 0; aspect-ratio: 1; }
.tip-m .tip-d .roundel.stack i { font-size: .4rem; font-style: normal; line-height: 1; } .tip-m .tip-d .roundel.stack b { font-size: .8rem; line-height: 1; display: block; }
/* indikator GPS: titik + "Live" */
.gps-w { margin-left: auto; } .tip-m .gps-w:has(.gps.g) { color: #15803d; font-weight: 800; }

/* ===== Tiba: biru FDTJ ===== */
.tu-m.now, .bc-e b.now { color: var(--tfj-blue, #18549c); }
.pt-dark .tu-m.now, .pt-dark .bc-e b.now { color: #8db4ff; }

/* ===== Header detail: "<", ikon + judul, directions & titik tiga satu baris ===== */
@media (max-width: 900px) {
  .pt-page .bs-side:not([data-sheet="min"]) .bs-dhead:has(.bs-back):has(> .hd-tools) { --bt: 10px; }
  .pt-page .bs-dhead:has(> .hd-tools) .bs-title { padding-right: 84px !important; }
  .pt-page .bs-dhead .bs-back, .pt-page .bs-side[data-sheet] .bs-dhead > .hd-tools { top: 10px; }
  .pt-page .bs-side[data-sheet] .bs-dhead > .hd-tools { display: flex; align-items: center; height: 34px; }
}

/* ===== Warna rute sampai bawah (pita + latar kartu bus), daftar putih di atasnya ===== */
.bc { background: var(--rc, #fff); min-height: 72vh; }
.bc-top { margin: 0 -20px; padding: 12px 20px 14px; background: none; }
.bc .bc-h { color: color-mix(in srgb, var(--ink, #fff) 88%, transparent); }
.bc .fl { box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.bc-l { margin-bottom: 4px; }

/* ===== Pil halte dilewati: diam, kompak ===== */
.bc-l li.bus-now .bc-tg { top: 18px !important; height: 24px; padding: 0 10px 0 7px; gap: 5px; font-size: .72rem; left: 48px; transition: background-color .15s ease, transform .15s cubic-bezier(.23,1,.32,1); }
.bc-tg svg { width: 12px; height: 12px; }

/* ===== Informasi halte di menu titik tiga ===== */
.hd-menu .hd-info-h { padding: 6px 10px 2px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tfj-muted); }
.hd-menu .bs-stats { display: grid !important; grid-template-columns: 1fr !important; gap: 0 !important; padding: 2px 4px 6px !important; margin: 0 0 4px; border-bottom: 1px solid #e8eaed; }
.hd-menu .bs-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 8px; border: 0 !important; text-align: left; flex: none !important; }
.hd-menu .bs-stat b { order: 2; font-size: .95rem; font-weight: 800; } .hd-menu .bs-stat small { order: 1; font-size: .8rem; color: var(--tfj-navy); font-weight: 600; }
.hd-menu { width: 250px; }
.pt-dark .hd-menu .bs-stats { border-bottom-color: #3a4753; } .pt-dark .hd-menu .bs-stat small { color: #e6edf5; }

/* ===== Scrollbar tipis & menyatu dengan panel ===== */
.pt-page .bs-side, .pt-page .bs-side *, .pt-page #detailView, .pt-page .hd-menu { scrollbar-width: thin; scrollbar-color: rgba(20,41,61,.26) transparent; }
.pt-page .bs-side::-webkit-scrollbar, .pt-page .bs-side *::-webkit-scrollbar { width: 10px; height: 10px; }
.pt-page .bs-side::-webkit-scrollbar-track, .pt-page .bs-side *::-webkit-scrollbar-track { background: transparent; margin: 18px 0; }
.pt-page .bs-side::-webkit-scrollbar-thumb, .pt-page .bs-side *::-webkit-scrollbar-thumb { background: rgba(20,41,61,.26); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.pt-page .bs-side::-webkit-scrollbar-thumb:hover, .pt-page .bs-side *::-webkit-scrollbar-thumb:hover { background: rgba(20,41,61,.5); background-clip: padding-box; border: 3px solid transparent; }
.pt-page .bs-side::-webkit-scrollbar-button, .pt-page .bs-side *::-webkit-scrollbar-button, .pt-page .bs-side::-webkit-scrollbar-corner { display: none; }
.pt-dark .bs-side, .pt-dark .bs-side * { scrollbar-color: rgba(230,237,245,.3) transparent; }
.pt-dark .bs-side::-webkit-scrollbar-thumb, .pt-dark .bs-side *::-webkit-scrollbar-thumb { background: rgba(230,237,245,.3); background-clip: padding-box; }

/* penanda gangguan: segitiga "!" saja; di daftar rute berada di pojok kanan baris */
.gg-b { margin-left: 8px; padding: 0; background: none; border: 0; border-radius: 0; line-height: 0; vertical-align: middle; }
.gg-b:hover { background: none; filter: brightness(1.08); }
.pt-dark .gg-b { background: none; border: 0; }
.tr-item { position: relative; }
.tr-item .gg-b { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); margin: 0; }
.tr-item:has(.gg-b) { padding-right: 44px; }
/* rincian gangguan: rute di bawah keterangan */
.gb-row .gb-lines { margin: 6px 0 0; }

.dir-pick { margin: 8px 0 0; }

/* waktu tiba: hijau = GPS aktif, oranye = tertunda, abu-abu = jadwal */
.eta-g, .bl-e b.eta-g, .tu-m.eta-g, .bt-top b.eta-g { color: #168a3c; }
.eta-o, .bl-e b.eta-o, .tu-m.eta-o, .bt-top b.eta-o { color: #e8710a; }
.eta-s, .bl-e b.eta-s, .tu-m.eta-s, .bt-top b.eta-s { color: #5b6672; }
.pt-dark .eta-g, .pt-dark .tu-m.eta-g, .pt-dark .bt-top b.eta-g { color: #4ade80; }
.pt-dark .eta-o, .pt-dark .tu-m.eta-o, .pt-dark .bt-top b.eta-o { color: #fb9c3c; }
.pt-dark .eta-s, .pt-dark .tu-m.eta-s, .pt-dark .bt-top b.eta-s { color: #aab4bf; }
/* pilihan arah di tooltip */
.tip-dir { display: flex; gap: 6px; margin: 8px 0 2px; }
.tip-dir button { flex: 1; border: 0; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .76rem; font-weight: 800; color: var(--tfj-navy); background: #eef1f5; cursor: pointer; }
.tip-dir button[aria-pressed="true"] { background: var(--tfj-blue, #18549c); color: #fff; }
.pt-dark .tip-dir button:not([aria-pressed="true"]) { background: #2a3540; color: #e6edf5; }
/* tombol "Pintu" + huruf posisi */
.dr-pick button { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.dr-pick button .dbx i { width: 24px; height: 24px; border-radius: 7px; font-size: .74rem; }
.dr-pick button[aria-pressed="true"] .dbx i { background: #fff; color: var(--tfj-blue, #18549c); }

/* arah Barat/Timur/Utara/Selatan: tombol selebar panel, di bawah daftar rute */
.bs-dhead .dir-pick { display: flex; width: 100%; margin-top: 10px; }
.bs-dhead .dir-pick button { flex: 1; }
/* pilihan pintu selebar panel, tiap tombol berbagi lebar */
.dr-pick { width: 100%; }
.dr-pick button { flex: 1; }
.dr-pick button .dbx { justify-content: center; }
/* tombol arah di tooltip tetap bisa disentuh (juga saat tooltip belum tersemat) */
.bs-tip .tip-dir, .bs-tip .tip-dir button { pointer-events: auto; touch-action: manipulation; }

/* ===== tooltip halte: baris kedatangan ===== */
.tip-m .tu-r { gap: 10px; align-items: center; }
.tip-m .tu-r > .tt-ar { flex: none; margin: 0; } .tip-m .tu-r > .tt-ar svg { width: 20px; height: 20px; }
.tip-m .tu-r .roundel { width: 26px; height: 26px; font-size: .56rem; border-width: 3px; } /* sama dengan chip rute di atas (JAK 18 dsb.) */
.tip-m .tu-t { gap: 0; } .tip-m .tu-t .tu-h { line-height: 1.2; } .tip-m .tu-id { margin-left: 0; margin-top: 1px; line-height: 1.15; }
/* judul halte lebih menonjol + ruang napas */
.bs-tip .tip-m > b { font-size: calc(1rem + 1pt); line-height: 1.25; }
.bs-tip .maplibregl-popup-content { padding: 16px 18px; }
.bs-tip.pinned .maplibregl-popup-content { padding: 16px 18px 14px; }

/* ===== Kawasan terpadu: ringkas, satu baris per titik, pilihan berupa segmen ===== */
.pum { background: linear-gradient(180deg, color-mix(in srgb, #7c3aed 9%, #fff), #fff 70%); border: 1px solid color-mix(in srgb, #7c3aed 24%, transparent); border-left: 4px solid #6d28d9; border-radius: 14px; padding: 10px 12px 8px; box-shadow: 0 1px 2px rgba(20,41,61,.05); }
.pum-h { align-items: center; margin-bottom: 8px; }
.pum-h small { display: block; font-size: .62rem; letter-spacing: .08em; }
.pum-h h3 { margin: 1px 0 0; font-size: 1.02rem; line-height: 1.2; }
.pum-go { background: transparent; color: #6d28d9; box-shadow: inset 0 0 0 1.5px #6d28d9; padding: 5px 11px; min-height: 32px; transition: background .15s, color .15s; }
.pum-go:hover { background: #6d28d9; color: #fff; }
.pum-tabs { gap: 4px; padding: 3px; margin: 0 0 6px; background: rgba(109,40,217,.08); border-radius: 12px; overflow-x: auto; }
.pum-tabs button { flex: 1 0 auto; flex-direction: row; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; min-height: 36px; border: 0; border-radius: 9px; background: transparent; white-space: nowrap; box-shadow: none; }
.pum-tabs button .pum-tl { font-size: .78rem; } .pum-tabs button small { font-size: .66rem; }
.pum-tabs button[aria-pressed="true"] { background: #fff; color: #6d28d9; box-shadow: 0 1px 3px rgba(20,41,61,.14); }
.pum-tabs button[aria-pressed="true"] small { color: #6d28d9; }
.pum-g { gap: 0; }
.pum-i { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 10px; min-height: 44px; border-radius: 10px; border-top: 1px solid rgba(20,41,61,.06); }
.pum-g .pum-i:first-child { border-top: 0; }
.pum-n { min-width: 0; flex: 1 1 auto; } .pum-n b { font-size: .86rem; } .pum-n small { font-size: .68rem; }
.pum-i .integ { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; max-width: 56%; gap: 3px; }
.pum-i .integ .roundel { width: 24px; height: 24px; font-size: .5rem; border-width: 2.5px; }
.pum-i.cur { background: #fff; box-shadow: inset 3px 0 0 #6d28d9, 0 1px 3px rgba(20,41,61,.1); border-top-color: transparent; }
.pum-i:focus-visible, .pum-go:focus-visible, .pum-tabs button:focus-visible { outline: 2px solid #6d28d9; outline-offset: 2px; }
.pt-dark .pum { background: rgba(124,58,237,.14); } .pt-dark .pum-tabs { background: rgba(255,255,255,.07); } .pt-dark .pum-tabs button[aria-pressed="true"] { background: #1a222a; color: #c4b5fd; } .pt-dark .pum-go { color: #c4b5fd; box-shadow: inset 0 0 0 1.5px #c4b5fd; }

/* tooltip halte di atas kontrol peta (kotak atribusi yang terbuka di HP menutupinya dan menelan sentuhan) */
.maplibregl-popup.bs-tip { z-index: 5; }

/* ===== tooltip halte: ukuran tetap, panel arah digeser kiri-kanan, 3 baris terlihat (6 bisa digulir) ===== */
.bs-tip .maplibregl-popup-content { width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box; }
.bs-tip .tip-b { width: 100%; } .bs-tip .tip-m { flex: 1 1 auto; min-width: 0; }
.tip-m .integ { max-width: none; }
.tip-m .tip-up { margin-top: 10px; border-top: 1px solid rgba(20,41,61,.1); padding-top: 4px; }
.tip-sw { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.tip-sw::-webkit-scrollbar { display: none; }
.tip-pn { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; height: 168px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; }
.tip-pn .tu-r { flex: none; min-height: 56px; padding: 4px 4px 4px 0; border-bottom: 1px solid rgba(20,41,61,.06); }
.tip-pn .tu-r:last-child { border-bottom: 0; }
.tu-none { margin: 18px 0; text-align: center; font-size: .8rem; font-weight: 600; color: var(--tfj-muted); }
.pt-dark .tip-m .tip-up { border-top-color: rgba(255,255,255,.14); }

/* kotak atribusi di bawah "Sumber data" */
.bs-foot .attr-extra { margin-top: 12px; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(20,41,61,.1); }
.bs-foot .attr-extra .map-copy { position: static; background: none; box-shadow: none; padding: 0; font-size: .72rem; line-height: 1.4; }
.bs-foot .attr-extra .map-report { position: static; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.bs-foot .attr-extra .map-report .mr-s { display: none; }

/* ===== pilih beberapa rute ===== */
.m-bar { padding: 0 16px 8px; background: #fff; }
.m-tg { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1.5px solid rgba(20,41,61,.16); border-radius: 12px; background: #fff; font: inherit; font-size: .84rem; font-weight: 800; color: var(--tfj-navy); cursor: pointer; }
.m-tg[aria-pressed="true"] { border-color: var(--tfj-blue); background: color-mix(in srgb, var(--tfj-blue) 10%, #fff); color: var(--tfj-blue); }
.mchk { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 2px solid rgba(20,41,61,.35); background: #fff; position: relative; }
.tr-item .mchk { display: none; margin-right: 2px; }
body.m-on .tr-item .mchk { display: inline-block; }
.m-tg .mchk { border-color: currentColor; }
.m-tg[aria-pressed="true"] .mchk { background: var(--tfj-blue); border-color: var(--tfj-blue); }
.m-tg[aria-pressed="true"] .mchk::after, .tr-item.msel .mchk::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tr-item.msel .mchk { background: var(--tfj-blue); border-color: var(--tfj-blue); }
.tr-item.msel { background: color-mix(in srgb, var(--tfj-blue) 9%, #fff); border-radius: 10px; }
.m-tray { margin-top: 8px; padding: 10px; border-radius: 14px; background: #f3f6fb; border: 1px solid rgba(24,84,156,.18); }
.m-hint { margin: 0; font-size: .78rem; color: var(--tfj-muted); line-height: 1.4; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 104px; overflow-y: auto; }
.m-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(20,41,61,.14); cursor: pointer; min-height: 32px; }
.m-chip > span:last-child { font-size: 1rem; font-weight: 800; color: var(--tfj-muted); line-height: 1; }
.m-chip:hover { box-shadow: 0 0 0 1.5px #e4002b; }
.m-act { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .78rem; font-weight: 800; color: var(--tfj-navy); }
.m-act span { margin-right: auto; }
.m-act button { border: 0; background: none; font: inherit; font-weight: 800; color: var(--tfj-blue); cursor: pointer; padding: 6px 4px; min-height: 32px; }
.m-act button[data-mclr] { color: #c0262d; }
.pt-dark .m-bar { background: #11181f; } .pt-dark .m-tg, .pt-dark .m-chip { background: #1a222a; color: #e6edf5; } .pt-dark .m-tray { background: #17202a; }

/* ===== gaya gerak & polish (dulunya peta-transportasi-v2.css) ===== */
/* Peta Transportasi v2 (eksperimen). Dimuat setelah peta-transportasi.css, file asli tidak diubah.
   Gaya gerak mengikuti iOS: tekan memberi respons langsung, hover hanya mengubah warna
   (dan hanya di perangkat dengan kursor), tidak ada tombol yang bergeser atau membesar saat hover. */

.pt-page {
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-sheet: cubic-bezier(.32, .72, 0, 1);
  --t-press: 140ms;
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 420ms;
  --v2-fill: #f3f5f8;
  --v2-fill-2: #e8ecf1;
  --v2-line: rgba(20, 41, 61, .08);
  --v2-sh-1: 0 1px 2px rgba(20, 41, 61, .08);
  --v2-sh-2: 0 4px 12px rgba(20, 41, 61, .10), 0 1px 3px rgba(20, 41, 61, .08);
  --v2-sh-3: 0 12px 32px rgba(20, 41, 61, .18), 0 2px 8px rgba(20, 41, 61, .08);
  --v2-ring: 0 0 0 4px color-mix(in srgb, var(--tfj-blue) 18%, transparent);
  -webkit-tap-highlight-color: transparent;
}

/* tipografi */
.pt-page .bs-side { font-feature-settings: "tnum" 1; letter-spacing: -.003em; }
.pt-page .bs-item b, .pt-page .tr-item b { font-weight: 700; letter-spacing: -.01em; }
.pt-page .bs-title h2 { letter-spacing: -.02em; }

/* panel */
.pt-page .bs-side {
  border-radius: 24px;
  box-shadow: var(--v2-sh-3);
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  animation: v2-panel-in 520ms var(--ease-sheet) both;
}
.pt-page .bs-side::-webkit-scrollbar { width: 8px; }
.pt-page .bs-side::-webkit-scrollbar-thumb { background: rgba(20, 41, 61, .16); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
.pt-page .bs-side::-webkit-scrollbar-track { background: transparent; }
@keyframes v2-panel-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }

.pt-page .bs-tools { z-index: 5; transition: box-shadow var(--t-base) var(--ease-out); }
.pt-page .bs-tools.scrolled { box-shadow: 0 8px 16px -12px rgba(20, 41, 61, .35); }

/* input */
.pt-page .bs-tools input, .pt-page .rp-row input {
  min-height: 44px; border-radius: 14px;
  transition: background-color var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.pt-page .bs-tools input:focus, .pt-page .rp-row input:focus { outline: 2px solid var(--tfj-blue); outline-offset: 0; box-shadow: var(--v2-ring); background-color: #fff; }

/* aturan umum: semua elemen yang bisa ditekan memberi respons saat ditekan.
   Hover hanya mengganti warna latar, dan hanya bila ada kursor. */
.pt-page :is(.rp-btns button, .bs-cats button, .tr-sec > summary, .tr-item, .bs-item, .ro-card, .bs-info-item, .ctl-main, .ctl-menu > button, .rp-loc, .q-loc, .pn-toggle, .fab-back) {
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), box-shadow var(--t-base) var(--ease-out), transform var(--t-press) var(--ease-out);
}
.pt-page :is(.rp-btns button, .bs-cats button, .ro-card, .bs-info-item, .ctl-main, .rp-loc, .q-loc, .pn-toggle, .fab-back):active { transform: scale(.97); }
.pt-page :is(.tr-sec > summary, .tr-item, .bs-item, .ctl-menu > button):active { background: var(--v2-fill-2); transition-duration: 0ms; }

@media (hover: hover) and (pointer: fine) {
  .pt-page .bs-tools input:hover { background-color: var(--v2-fill-2); }
  .pt-page .bs-cats button:not([aria-pressed="true"]):hover { background: var(--v2-fill-2); }
  .pt-page .tr-sec > summary:hover, .pt-page .tr-sub .tr-item:hover, .pt-page .bs-item:hover { background: var(--v2-fill); }
  .pt-page .bs-info-item:hover { background: var(--v2-fill-2); }
  .pt-page .ro-card:not([aria-pressed="true"]):hover { border-color: color-mix(in srgb, var(--tfj-blue) 45%, transparent); }
  .pt-page .rp-btns button:not(.go):hover, .pt-page .rp-loc:hover { background: var(--tfj-tint); }
  .pt-page .rp-btns .go:hover { filter: brightness(1.06); }
  .pt-page .bs-ctl .ctl-menu > button:hover { background: var(--tfj-tint); }
  .pt-page .maplibregl-ctrl-group button:hover { background-color: var(--v2-fill); }
}

/* chip moda */
.pt-page .bs-cats { gap: 8px; }
.pt-page .bs-cats button { min-height: 36px; padding: 8px 14px; }
.pt-page .bs-cats button[aria-pressed="true"] { box-shadow: 0 4px 12px color-mix(in srgb, var(--tfj-navy) 30%, transparent); }

/* kartu dan daftar */
.pt-page .tr-sec { border-radius: 20px; box-shadow: 0 0 0 1px var(--v2-line) inset; overflow: hidden; }
.pt-page .tr-sec[open] { background: #fff; box-shadow: 0 0 0 1px var(--v2-line) inset, var(--v2-sh-1); }
.pt-page .tr-sec > summary { min-height: 48px; }
.pt-page .tr-sec .chev { transition: transform var(--t-base) var(--ease-out); }
.pt-page .tr-sec[open] > .tr-sub { animation: v2-expand var(--t-base) var(--ease-out) both; }
@keyframes v2-expand { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pt-page .tr-item, .pt-page .bs-item { min-height: 48px; }
.pt-page .ro-card { border-radius: 16px; }
.pt-page .ro-card[aria-pressed="true"] { box-shadow: var(--v2-ring); }

/* masuk berurutan hanya untuk kartu level atas dan hasil rencana (dilihat sesekali).
   Item di dalam daftar tidak dianimasikan karena dibuka berulang kali. */
.pt-page #list > *, .pt-page #hits > *, .pt-page .rp-out > * {
  animation: v2-rise 360ms var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 8) * 30ms);
}
.pt-page.v2-typing #list > *, .pt-page.v2-typing #hits > * { animation: none; }
@keyframes v2-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* tombol */
.pt-page .rp-btns button { min-height: 44px; }
.pt-page .rp-btns .go { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 4px 12px color-mix(in srgb, var(--tfj-blue) 32%, transparent); }
.pt-page .rp-loc, .pt-page .q-loc { min-width: 44px; min-height: 44px; border-radius: 14px; }
.pt-page .rp-loc.busy { animation: rpspin 1s linear infinite; }

.pt-page .rp { border-radius: 20px; box-shadow: 0 0 0 1px var(--v2-line) inset, var(--v2-sh-1); }
.pt-page .rp[open] > .rp-f { animation: v2-expand var(--t-base) var(--ease-out) both; }
.pt-page .sug:not([hidden]) { animation: v2-pop-in 180ms var(--ease-out) both; transform-origin: top center; border-radius: 14px; box-shadow: var(--v2-sh-3); }
@keyframes v2-pop-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.pt-page #pSwap.spin { animation: v2-flip 320ms var(--ease-out); }
@keyframes v2-flip { to { transform: rotate(180deg); } }

/* toggle panel dan kontrol peta */
.pt-page .pn-toggle { box-shadow: var(--v2-sh-2); }
.pt-page .pn-toggle svg { transition: transform var(--t-slow) var(--ease-out); }
.pt-page .pn-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.pt-page .bs-ctl > .ctl-main { min-height: 44px; border-radius: 16px; box-shadow: var(--v2-sh-2); }
.pt-page .bs-ctl > .ctl-main svg { transition: transform var(--t-slow) var(--ease-out); }
.pt-page .bs-ctl > .ctl-main[aria-expanded="true"] svg { transform: rotate(180deg); }
.pt-page .ctl-menu { border-radius: 20px; box-shadow: var(--v2-sh-3); transform-origin: bottom left; }
.pt-page .ctl-menu:not([hidden]) { animation: v2-menu 220ms var(--ease-out) both; }
@keyframes v2-menu { from { opacity: 0; transform: scale(.95) translateY(6px); } to { opacity: 1; transform: none; } }
.pt-page .bs-ctl .ctl-menu > button { min-height: 44px; border-radius: 12px; }
.pt-page .fab-back { box-shadow: var(--v2-sh-3); }
.pt-page .maplibregl-ctrl-group { border-radius: 16px; box-shadow: var(--v2-sh-2); overflow: hidden; }
.pt-page .maplibregl-ctrl-group button { transition: background-color var(--t-fast), transform var(--t-press) var(--ease-out); }
.pt-page .maplibregl-ctrl-group button:active { transform: scale(.9); background-color: var(--v2-fill-2); }

/* navbar */
.pt-page .hdr { transition: transform 360ms var(--ease-sheet), opacity var(--t-base) var(--ease-out); }

/* dialog dan toast */
.pt-page dialog.pz[open] { animation: v2-dialog 300ms var(--ease-out) both; }
.pt-page dialog.pz[open]::backdrop { animation: v2-fade 240ms var(--ease-out) both; backdrop-filter: blur(4px); }
@keyframes v2-dialog { from { opacity: 0; transform: scale(.97) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }
.pt-page .bs-toast { border-radius: 14px; box-shadow: var(--v2-sh-3); }

/* memuat */
.pt-page .v2-skel { color: transparent !important; border-radius: 8px; background: linear-gradient(100deg, var(--v2-fill) 30%, #fff 50%, var(--v2-fill) 70%) 0 0 / 200% 100%; animation: v2-shimmer 1.2s linear infinite; }
@keyframes v2-shimmer { to { background-position: -200% 0; } }

/* fokus keyboard */
.pt-page :is(button, a, summary, input, [role="button"]):focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }

/* mobile */
@media (max-width: 900px) {
  .pt-page .bs-side { border-radius: 28px 28px 0 0; animation: v2-sheet-in 560ms var(--ease-sheet) both; transition: transform 420ms var(--ease-sheet); }
  .pt-page .bs-side.dragging { transition: none; }
  @keyframes v2-sheet-in { from { transform: translateY(100%); } }
  .pt-page .sheet-handle i { width: 40px; height: 5px; background: rgba(20, 41, 61, .2); transition: width var(--t-base) var(--ease-out), background-color var(--t-fast); }
  .pt-page .bs-side.dragging .sheet-handle i { width: 56px; background: rgba(20, 41, 61, .38); }
  .pt-page .rp-dock .rp { box-shadow: var(--v2-sh-3); }
  .pt-page .maplibregl-ctrl-bottom-right, .pt-page .map-report, .pt-page .map-copy { transition: margin-bottom 420ms var(--ease-sheet), bottom 420ms var(--ease-sheet); }
  .pt-page .bs-ctl, .pt-page .map-foot { transition: bottom 420ms var(--ease-sheet), left var(--t-base) var(--ease-out), top var(--t-base) var(--ease-out); }
  .pt-page .bs-cats { overflow-x: auto; flex-wrap: nowrap; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
  .pt-page .bs-cats::-webkit-scrollbar { display: none; }
  .pt-page .bs-cats button { scroll-snap-align: start; }
}

/* gerak dikurangi: tetap ada perubahan opasitas singkat, tanpa perpindahan */
@media (prefers-reduced-motion: reduce) {
  .pt-page *, .pt-page *::before, .pt-page *::after { animation-name: v2-fade !important; animation-duration: 120ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-property: opacity, background-color, color !important; transition-duration: 120ms !important; }
  .pt-page .v2-skel, .pt-page .rp-loc.busy { animation: none !important; }
}

/* strip integrasi per halte: tanpa scrollbar, tetap bisa digeser */
.pt-page .ig-sc { scrollbar-width: none !important; -ms-overflow-style: none; }
.pt-page .ig-sc::-webkit-scrollbar { display: none !important; width: 0; height: 0; }

/* garis jalur di diagram dua arah: garis berhenti tepat di halte ujung (lingkaran terminal),
   bagian di luar rentang arah itu disembunyikan, bukan dipudarkan */
.pt-page .dl-m i:not(.on):not(.thru) { opacity: 0; }

/* kenyamanan layar sentuh: tanpa jeda ketuk dua kali, tanpa scrollbar di sheet, area aman iPhone */
.pt-page button, .pt-page summary, .pt-page a, .pt-page .tr-item, .pt-page .bs-item { touch-action: manipulation; }
@media (max-width: 900px) {
  .pt-page .bs-side { scrollbar-width: none; scrollbar-gutter: auto; padding-bottom: env(safe-area-inset-bottom); }
  .pt-page .bs-side::-webkit-scrollbar { display: none; }
  .pt-page .bs-cats button { min-height: 40px; }
  .pt-page .tr-item, .pt-page .bs-item { min-height: 52px; }
  .pt-page .rp-dock { top: max(12px, env(safe-area-inset-top)); }
  .pt-page .bs-tools input { font-size: 16px; } /* mencegah zoom otomatis iOS saat fokus */
  .pt-page .rp-row input { font-size: 16px; }
}

/* ===== tooltip bus/kereta: kotak seperti halte/stasiun ===== */
.bs-tip .maplibregl-popup-content:has(.tip-v) { width: 300px; }
.tip-v .tip-d { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.tip-v .tip-d b { font-size: calc(1rem + 1pt); line-height: 1.25; display: flex; align-items: center; gap: 6px; min-width: 0; }
.tip-v .tv-n { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(20,41,61,.1); font-size: .84rem; line-height: 1.25; }
.tip-v .tv-l { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--tfj-muted); }
.tip-v .tv-s { flex: 1; min-width: 0; font-weight: 700; color: var(--tfj-navy); } .tip-v b.tv-s { font-weight: 800; }
.tip-v .tv-e { flex: none; margin-left: auto; font-size: .9rem; font-weight: 800; }
.pt-dark .tip-v .tv-n { border-top-color: rgba(255,255,255,.14); }

/* ===== tombol + di tiap rute (pilih banyak rute, ala busrouter.sg) ===== */
.tr-item { position: relative; }
.tr-item .madd { flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tfj-blue) 45%, transparent); background: #fff; color: var(--tfj-blue); position: relative; cursor: pointer; transition: background-color .18s, border-color .18s, transform .28s cubic-bezier(.34,1.56,.64,1); }
.tr-item .madd::before, .tr-item .madd::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; }
.tr-item .madd::before { width: 12px; height: 2.4px; margin: -1.2px 0 0 -6px; }
.tr-item .madd::after { width: 2.4px; height: 12px; margin: -6px 0 0 -1.2px; }
.tr-item .madd:hover { background: color-mix(in srgb, var(--tfj-blue) 12%, #fff); }
.tr-item .madd:active { transform: scale(.88); }
.tr-item .madd:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
.tr-item.msel .madd { background: var(--tfj-blue); border-color: var(--tfj-blue); color: #fff; transform: rotate(45deg); }
.tr-item.msel .madd:active { transform: rotate(45deg) scale(.88); }
.tr-item.msel { background: color-mix(in srgb, var(--tfj-blue) 8%, #fff); }
.pt-dark .tr-item .madd { background: #1a222a; }
/* tray pilihan rute */
.m-bar { padding: 0 16px 6px; }
.m-tray { margin: 0 0 6px; padding: 10px 12px 12px; border-radius: 16px; background: #f3f6fb; border: 1px solid rgba(24,84,156,.16); animation: pnin .25s ease-out both; }
.m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.m-n { font-size: .8rem; font-weight: 700; color: var(--tfj-muted); } .m-n b { color: var(--tfj-navy); font-size: .95rem; }
.m-ic { display: inline-flex; gap: 6px; }
.m-ic button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--tfj-blue); box-shadow: 0 0 0 1px rgba(20,41,61,.12); cursor: pointer; padding: 0; }
.m-ic button:hover { background: color-mix(in srgb, var(--tfj-blue) 10%, #fff); }
.m-ic button.del { color: #c0262d; } .m-ic button.del:hover { background: #fdecee; }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 96px; overflow-y: auto; }
.m-chip { gap: 2px; padding: 2px 8px 2px 2px; min-height: 36px; border-radius: 999px; background: #fff; }
.m-chip .roundel { width: 30px; height: 30px; font-size: .62rem; }
.pt-dark .m-tray { background: #17202a; } .pt-dark .m-ic button { background: #1a222a; }

/* ===== panel samping: masuk-keluar halus dengan pantulan (spring) ===== */
@media (min-width: 901px) {
  .pt-page .bs-side { transition: transform .6s cubic-bezier(.34, 1.4, .5, 1), opacity .25s ease, top .25s ease, visibility 0s linear 0s; will-change: transform; }
  .pt-page .bs.collapsed .bs-side { visibility: hidden; opacity: 0; transform: translateX(calc(-100% - 24px)); transition: transform .42s cubic-bezier(.6, -0.2, .75, .3), opacity .3s ease .1s, visibility 0s linear .45s; }
  .pt-page .pn-toggle { transition: left .6s cubic-bezier(.34, 1.4, .5, 1), background .15s; }
  .pt-page .bs.collapsed .pn-toggle { transition: left .42s cubic-bezier(.6, -0.2, .75, .3), background .15s; }
  .bs { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .pt-page .bs-side, .pt-page .pn-toggle { transition-duration: .01s !important; } }

/* ===== desktop: "Rencanakan perjalanan" mengambang di kanan atas, menciut jadi lingkaran logo J ===== */
@media (min-width: 901px) {
  .pt-page .rp-dock { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: absolute; top: 16px; right: 16px; left: auto; width: 340px; z-index: 850; pointer-events: none; transition: top .25s ease; }
  .pt-page.pt-nav-on .rp-dock { top: 84px; }
  .pt-page .rp-dock > * { pointer-events: auto; }
  .pt-page .rp-dock .rp { margin: 0; width: 100%; border: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 6px 22px rgba(20,41,61,.3); transition: width .6s cubic-bezier(.34, 1.3, .5, 1), border-radius .3s ease, box-shadow .2s; background: #fff; }
  .pt-page .rp-dock .rp[open] { border-radius: 20px; }
  .pt-page .rp-dock .rp > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 14px 12px 18px; white-space: nowrap; overflow: hidden; font-size: .92rem; background: var(--tfj-blue); color: #fff; border-radius: inherit; }
  .pt-page .rp-dock .rp[open] > summary { border-radius: 20px 20px 0 0; }
  .pt-page .rp-dock .rp > summary::before { display: none; }
  .pt-page .rp-dock .rp > summary::after { content: ""; margin-left: auto; width: 28px; height: 28px; flex: none; background: url("assets/fdtj-roundel-putih.png") center / contain no-repeat; }
  .pt-page .rp-dock .rp.mini:not([open]) { width: 48px; margin-left: auto; box-shadow: 0 4px 14px rgba(20,41,61,.32); }
  .pt-page .rp-dock .rp.mini:not([open]) > summary { padding: 0; min-height: 48px; justify-content: center; font-size: 0; gap: 0; }
  .pt-page .rp-dock .rp.mini:not([open]) > summary::after { margin: 0; }
  .pt-page .rp-dock .rp[open] > .rp-f { background: #fff; }
  .pt-page .rp-dock .info-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--tfj-navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(20,41,61,.22); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .15s; margin-right: 2px; }
  .pt-page .rp-dock .info-btn:hover { background: var(--tfj-tint, #eef3fa); transform: scale(1.06); }
  .pt-page .rp-dock .info-btn:active { transform: scale(.94); }
  .pt-page .rp-dock .info-btn:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
}
@media (max-width: 900px) { .pt-page .rp-dock .info-btn, .ab-dlg { display: none !important; } }
/* dialog sumber data & atribusi */
.ab-dlg { border: 0; border-radius: 22px; padding: 24px 24px 20px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: 0 20px 60px rgba(20,41,61,.35); color: var(--tfj-navy); }
.ab-dlg::backdrop { background: rgba(20,41,61,.4); backdrop-filter: blur(3px); }
.ab-dlg[open] { animation: ab-in .45s cubic-bezier(.34, 1.4, .5, 1) both; }
@keyframes ab-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
.ab-dlg h2 { margin: 0; font-size: 1.3rem; } .ab-dlg .ab-s { margin: 2px 0 12px; font-weight: 800; color: var(--tfj-muted); }
.ab-dlg h3 { margin: 16px 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); }
.ab-dlg p { margin: 0 0 8px; font-size: .88rem; line-height: 1.5; } .ab-dlg .ab-n { font-size: .78rem; color: var(--tfj-muted); }
.ab-dlg .sf-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; } .ab-dlg .sf-l li { display: flex; gap: 10px; } .ab-dlg .sf-l b { flex: none; width: 52px; }
.ab-dlg a { color: var(--tfj-blue); }
.ab-dlg .ab-a { display: grid; gap: 8px; font-size: .82rem; } .ab-dlg .ab-a .map-copy { position: static; background: none; box-shadow: none; padding: 0; }
.ab-dlg .ab-a .map-report { position: static; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; } .ab-dlg .ab-a .mr-s { display: none; }
.ab-dlg .ab-go { margin-top: 18px; width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: var(--tfj-blue); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .15s; }
.ab-dlg .ab-go:hover { filter: brightness(1.08); } .ab-dlg .ab-go:active { transform: scale(.97); }
.pt-dark .ab-dlg { background: #1a222a; color: #e6edf5; }
@media (min-width: 901px) { .pt-page .rp-dock .rp.mini:not([open]) { width: 48px; height: 48px; border-radius: 50%; } .pt-page .rp-dock .rp.mini:not([open]) > summary { width: 48px; height: 48px; border-radius: 50%; } }

/* ===== Jadwal penuh: tabel jam x menit (gaya tabel jadwal Jepang) ===== */
.jd { display: grid; gap: 10px; padding: 4px 0 12px; }
.jd-rt { display: flex; flex-wrap: wrap; gap: 6px; }
.jd-rt button { all: unset; box-sizing: border-box; cursor: pointer; padding: 3px; border-radius: 999px; box-shadow: 0 0 0 1.5px transparent; transition: box-shadow .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.jd-rt button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--tfj-blue); background: color-mix(in srgb, var(--tfj-blue) 8%, #fff); }
.jd-rt button:active { transform: scale(.92); } .jd-rt button:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
.jd-dir, .jd-day { display: flex; gap: 6px; flex-wrap: wrap; }
.jd-dir button, .jd-day button { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; font: inherit; font-size: .82rem; font-weight: 800; color: var(--tfj-navy); background: #eef1f5; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.jd-dir button[aria-pressed="true"], .jd-day button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; }
.jd-one { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.jd-sum { width: 100%; border-collapse: collapse; font-size: .82rem; background: #f6f8fb; border-radius: 12px; overflow: hidden; }
.jd-sum caption { text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tfj-muted); padding: 0 0 6px; }
.jd-sum th { text-align: left; font-size: .68rem; color: var(--tfj-muted); font-weight: 700; padding: 6px 10px; }
.jd-sum td { padding: 7px 10px; border-top: 1px solid rgba(20,41,61,.07); } .jd-sum td small { color: var(--tfj-muted); font-weight: 600; }
.jd-sum td:nth-child(2), .jd-sum th:nth-child(2) { text-align: right; width: 18%; } .jd-sum td:last-child { font-weight: 800; text-align: right; }
.jd-t { border: 1px solid rgba(20,41,61,.14); border-radius: 12px; overflow: hidden; background: #fff; }
.jd-hd { display: grid; grid-template-columns: 56px 1fr; font-size: .7rem; font-weight: 800; letter-spacing: .05em; color: var(--tfj-muted); background: #f6f8fb; border-bottom: 1px solid rgba(20,41,61,.14); }
.jd-hd span { padding: 7px 10px; } .jd-hd span:first-child { border-right: 1px solid rgba(20,41,61,.14); text-align: center; }
.jd-r { display: grid; grid-template-columns: 56px 1fr; border-top: 1px solid rgba(20,41,61,.1); min-height: 44px; }
.jd-r:first-of-type { border-top: 0; }
.jd-r > b { display: grid; place-items: center; font-size: 1.05rem; color: var(--tfj-navy); border-right: 1px solid rgba(20,41,61,.14); }
.jd-m { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 12px; align-content: center; }
.jd-m i { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--tfj-navy); min-width: 22px; text-align: center; border-bottom: 2px solid var(--tfj-navy); line-height: 1.25; }
.jd-m i.past { color: #aab2bc; border-bottom-color: #cfd5dc; font-weight: 500; }
.jd-m i.next { color: #168a3c; border-bottom-color: #168a3c; font-weight: 800; position: relative; }
.jd-m i.next::before { content: ""; position: absolute; left: -9px; top: -3px; width: 5px; height: 100%; border-left: 3px solid #5b2a86; border-radius: 2px; }
.jd-n { margin: 2px 0 0; }
.pt-dark .jd-t, .pt-dark .jd-sum { background: #1a222a; } .pt-dark .jd-hd { background: #17202a; } .pt-dark .jd-dir button, .pt-dark .jd-day button { background: #2a3540; color: #e6edf5; }
.pt-dark .jd-dir button[aria-pressed="true"], .pt-dark .jd-day button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; }
.pt-dark .jd-m i { color: #e6edf5; border-bottom-color: #e6edf5; } .pt-dark .jd-m i.past { color: #6b7785; border-bottom-color: #4a5560; }

/* ===== panel simulasi jadwal & mode POV (pojok kiri bawah peta) ===== */
.sim { position: absolute; left: 12px; bottom: 28px; z-index: 40; width: min(440px, calc(100% - 24px)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-radius: 20px; box-shadow: 0 10px 34px rgba(20,41,61,.3); padding: 12px 14px 10px; display: grid; gap: 8px; color: var(--tfj-navy); animation: sim-in .5s cubic-bezier(.34, 1.4, .5, 1) both; }
.sim[hidden] { display: none; }
@keyframes sim-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@media (min-width: 901px) { .pt-page .bs:not(.collapsed) .sim { left: 424px; } }
.sim-top { display: flex; align-items: center; gap: 8px; }
.sim-day { display: inline-flex; background: #eef1f5; border-radius: 12px; padding: 3px; }
.sim-day button { border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 800; color: var(--tfj-muted); padding: 7px 10px; border-radius: 9px; cursor: pointer; min-height: 34px; }
.sim-day button[aria-pressed="true"] { background: #fff; color: var(--tfj-blue); box-shadow: 0 1px 3px rgba(20,41,61,.16); }
.sim-clk { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.15rem; margin-left: 4px; }
.sim-live { margin-left: auto; border: 0; border-radius: 8px; background: #d9322f; color: #fff; font: inherit; font-size: .74rem; font-weight: 800; letter-spacing: .05em; padding: 7px 10px; cursor: pointer; min-height: 32px; }
.sim-x { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(20,41,61,.18); background: #fff; font-size: 1.2rem; line-height: 1; color: var(--tfj-navy); cursor: pointer; }
.sim-main { display: flex; gap: 10px; align-items: stretch; }
.sim-ctl { display: grid; gap: 6px; justify-items: center; align-content: center; }
.sim-play { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--tfj-blue); background: #fff; color: var(--tfj-blue); display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.sim-play:active { transform: scale(.9); } .sim-play .i-play { display: none; } .sim-play.paused .i-play { display: block; } .sim-play.paused .i-pause { display: none; }
.sim-spd { border: 1.5px solid rgba(20,41,61,.2); background: #fff; border-radius: 999px; font: inherit; font-size: .78rem; font-weight: 800; padding: 4px 12px; cursor: pointer; min-height: 30px; }
.sim-ch { position: relative; flex: 1; min-width: 0; height: 92px; cursor: ew-resize; touch-action: none; border-radius: 10px; background: #f6f8fb; }
.sim-ch canvas { width: 100%; height: 100%; display: block; }
.sim-cur { position: absolute; top: 0; bottom: 14px; width: 0; border-left: 2px solid var(--tfj-navy); pointer-events: none; }
.sim-cur::before { content: ""; position: absolute; top: -2px; left: -7px; border: 6px solid transparent; border-top: 8px solid var(--tfj-navy); }
.sim-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .sim-foot b { font-size: .95rem; } .sim-foot small { font-size: .7rem; color: var(--tfj-muted); font-style: italic; }
.sim-mini { display: flex; align-items: center; gap: 12px; } .sim-mini[hidden] { display: none; }
.sim-mini svg { width: 150px; height: 70px; flex: none; background: #f6f8fb; border-radius: 10px; }
.sim-mi { display: grid; gap: 2px; min-width: 0; } .sim-mi b { font-size: .95rem; line-height: 1.2; } .sim-mi small { font-size: .72rem; color: var(--tfj-muted); }
/* hanya POV (tanpa simulasi): sembunyikan kontrol putar */
.sim:not(.is-sim) .sim-day, .sim:not(.is-sim) .sim-main, .sim:not(.is-sim) .sim-foot { display: none; }
.sim:not(.is-sim) .sim-live { display: none; }
.sim.is-pov:not(.is-sim) .sim-top { justify-content: space-between; }
.sim.is-pov .sim-live { display: none; }
.sim.is-pov.is-sim .sim-live { display: inline-block; }
@media (max-width: 900px) { .sim { left: 12px; right: 12px; bottom: auto; top: 76px; width: auto; } .sim-ch { height: 72px; } }
.pt-dark .sim { background: rgba(26,34,42,.96); color: #e6edf5; } .pt-dark .sim-day { background: #2a3540; } .pt-dark .sim-day button[aria-pressed="true"], .pt-dark .sim-play, .pt-dark .sim-spd, .pt-dark .sim-x { background: #1a222a; color: #e6edf5; } .pt-dark .sim-ch, .pt-dark .sim-mini svg { background: #17202a; }
.bc-pov { margin-left: 6px; }

/* ===== J = planner + info (kartu tunggal) ===== */
.rp-about { margin-top: 2px; border-top: 1px solid rgba(20,41,61,.1); padding-top: 8px; color: var(--tfj-navy); }
.rp-about > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .8rem; font-weight: 800; padding: 6px 2px; min-height: 36px; }
.rp-about > summary::-webkit-details-marker { display: none; }
.rp-about .ab-i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: .7rem; font-style: italic; font-family: Georgia, serif; flex: none; }
.rp-about > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease-out, ease-out); }
.rp-about[open] > summary::after { transform: rotate(225deg); }
.rp-about .ab-b { max-height: 46vh; overflow-y: auto; font-size: .82rem; line-height: 1.5; animation: pt-rise .22s var(--ease-out, ease-out) both; }
.rp-about .ab-b p { margin: 0 0 8px; } .rp-about .ab-b .ab-n { font-size: .74rem; color: var(--tfj-muted); }
.rp-about .ab-b h3 { margin: 12px 0 6px; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tfj-muted); }
.rp-about .sf-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .rp-about .sf-l li { display: flex; gap: 10px; } .rp-about .sf-l b { flex: none; width: 48px; font-size: .72rem; }
.rp-about a { color: var(--tfj-blue); } .rp-about .ab-a { display: grid; gap: 8px; } .rp-about .map-copy { position: static; background: none; box-shadow: none; padding: 0; font-size: .74rem; }
.rp-about .map-report { position: static; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-size: .78rem; } .rp-about .mr-s { display: none; }
.pt-page .rp-dock .info-btn { display: none; }
.pt-dark .rp-about { color: #e6edf5; }

/* ===== pin bus: JAK di atas, nomor di bawah ===== */
.dm b.stk { top: -10px; line-height: 10px; font-size: .64rem; }
.dm b.stk i.dmj { display: block; font-style: normal; font-size: .4rem; line-height: 8px; letter-spacing: .02em; }

/* ===== tombol Ikuti / POV 3D: kecil dan rapi ===== */
.bc-btns { display: inline-flex; flex-wrap: wrap; gap: 6px; flex: none; justify-content: flex-end; }
.bc-nx .bc-btns .bc-follow, .bc-btns .bc-follow { margin: 0; padding: 5px 11px; min-height: 32px; font-size: .74rem; gap: 5px; border-width: 1.5px; box-shadow: none; line-height: 1; }
.bc-btns .bc-follow svg { width: 14px; height: 14px; }
.bc-btns .bc-follow:not([aria-pressed="true"]) { background: #fff; color: var(--rc, #1b4ca6); }
.bc-btns .bc-follow:active { transform: scale(.95); }

/* ===== panel simulasi: pilihan tampilan + statistik ===== */
.sim-mode { display: flex; background: #eef1f5; border-radius: 12px; padding: 3px; gap: 2px; }
.sim-mode button { flex: 1; border: 0; background: none; font: inherit; font-size: .76rem; font-weight: 800; color: var(--tfj-muted); padding: 6px 8px; border-radius: 9px; cursor: pointer; min-height: 32px; transition: background-color .18s var(--ease-out, ease-out), color .18s; }
.sim-mode button[aria-pressed="true"] { background: #fff; color: var(--tfj-blue); box-shadow: 0 1px 3px rgba(20,41,61,.16); }
.sim:not(.is-sim) .sim-mode { display: none; }
.sim-st { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 10px 4px 2px; border-radius: 10px; min-height: 32px; }
.sim-st b { font-size: .95rem; } .sim-st span { font-size: .74rem; font-weight: 800; color: var(--tfj-blue); }
.sim-st:hover { background: rgba(24,84,156,.08); } .sim-st:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 2px; }
.pt-dark .sim-mode { background: #2a3540; } .pt-dark .sim-mode button[aria-pressed="true"] { background: #1a222a; color: #e6edf5; }
/* dialog statistik armada */
.st-dlg { border: 0; border-radius: 22px; padding: 18px 18px 14px; width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: 0 20px 60px rgba(20,41,61,.35); color: var(--tfj-navy); }
.st-dlg[open] { display: flex; flex-direction: column; gap: 10px; animation: pt-rise .3s var(--ease-out, ease-out) both; }
.st-dlg::backdrop { background: rgba(20,41,61,.4); backdrop-filter: blur(3px); animation: pt-fade .25s ease-out both; }
.st-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .st-h h2 { margin: 0; font-size: 1.15rem; } .st-h small { color: var(--tfj-muted); font-weight: 600; }
.st-x { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid rgba(20,41,61,.18); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--tfj-navy); }
.st-t { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .st-t > div { background: #f3f6fb; border-radius: 14px; padding: 10px 12px; display: grid; gap: 2px; }
.st-t b { font-size: 1.35rem; font-variant-numeric: tabular-nums; } .st-t small { font-size: .7rem; font-weight: 700; color: var(--tfj-muted); }
.st-t .g b { color: #168a3c; } .st-t .s b { color: #5b6672; }
.st-f { display: flex; gap: 6px; } .st-f button { flex: 1; border: 0; background: #eef1f5; border-radius: 10px; font: inherit; font-size: .78rem; font-weight: 800; color: var(--tfj-navy); padding: 8px 6px; min-height: 36px; cursor: pointer; transition: background-color .18s, color .18s; }
.st-f button[aria-pressed="true"] { background: var(--tfj-blue); color: #fff; }
.st-dlg input[type="search"] { font: inherit; font-size: 16px; padding: 9px 12px; border: 1.5px solid rgba(20,41,61,.16); border-radius: 12px; min-height: 40px; }
.st-hd, .st-l li { display: grid; grid-template-columns: 38px 1fr 52px 56px; align-items: center; gap: 8px; }
.st-hd { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tfj-muted); padding: 0 4px; } .st-hd span:nth-child(n+2) { grid-column: auto; } .st-hd span:first-child { grid-column: 1 / 3; } .st-hd span:nth-child(2), .st-hd span:nth-child(3) { text-align: right; }
.st-l { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 120px; border-top: 1px solid rgba(20,41,61,.1); }
.st-l li { padding: 7px 4px; border-bottom: 1px solid rgba(20,41,61,.06); font-size: .84rem; } .st-l .st-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-l b { text-align: right; font-variant-numeric: tabular-nums; } .st-l .st-g { color: #168a3c; } .st-l .st-s { color: #5b6672; } .st-e { display: block !important; text-align: center; color: var(--tfj-muted); padding: 24px 0 !important; }
.st-n2 { margin: 0; font-size: .7rem; line-height: 1.4; color: var(--tfj-muted); }
.pt-dark .st-dlg { background: #1a222a; color: #e6edf5; } .pt-dark .st-t > div, .pt-dark .st-f button { background: #2a3540; color: #e6edf5; } .pt-dark .st-f button[aria-pressed="true"] { background: var(--tfj-blue); }

/* ===== Jadwal & sheet: rapi di mobile ===== */
.jd { padding: 4px 20px 16px; }
.jd-rt { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; scroll-snap-type: x proximity; }
.jd-rt::-webkit-scrollbar { display: none; } .jd-rt button { flex: none; scroll-snap-align: start; }
.jd-rt .roundel { width: 34px; height: 34px; font-size: .68rem; border-width: 3px; }
.dt-tabs button { white-space: nowrap; }
@media (max-width: 900px) {
  .jd { padding: 2px 16px 18px; } .jd-rt { margin: 0 -16px; padding: 2px 16px 4px; }
  .jd-day button, .jd-dir button { min-height: 44px; }
  .jd-m i { font-size: 1.02rem; }
  .sim { left: 12px !important; right: 12px; bottom: auto; top: 76px; width: auto; z-index: 60; }
}

/* ===== animasi: halus, bisa diinterupsi, hanya transform/opacity ===== */
@keyframes pt-rise { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pt-chip { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.dt-p:not([hidden]) { animation: pt-rise .24s var(--ease-out, cubic-bezier(.23, 1, .32, 1)) both; }
.m-chip { animation: pt-chip .22s var(--ease-out, cubic-bezier(.23, 1, .32, 1)) both; }
.bs-tip .maplibregl-popup-content { animation: pt-rise .18s var(--ease-out, cubic-bezier(.23, 1, .32, 1)) both; transform-origin: 50% 100%; }
.bs-tip.maplibregl-popup-anchor-top .maplibregl-popup-content { transform-origin: 50% 0; }
.tip-sw .tip-pn { animation: pt-fade .2s ease-out both; }
.rp-about > summary:active, .sim-st:active, .st-f button:active, .sim-mode button:active { transform: scale(.97); }
.sim { transform-origin: 0 100%; }
@media (min-width: 901px) {
  .pt-page .bs-side { transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), opacity .22s ease, top .25s ease, visibility 0s linear 0s; }
  .pt-page .pn-toggle { transition: left .55s cubic-bezier(.3, 1.25, .5, 1), background .15s; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-p:not([hidden]), .m-chip, .bs-tip .maplibregl-popup-content, .tip-sw .tip-pn, .rp-about .ab-b, .st-dlg[open], .sim { animation-name: pt-fade !important; animation-duration: .15s !important; }
  .rp-about > summary::after { transition: none; }
}
.sim-st b { white-space: nowrap; } .sim-st span { white-space: nowrap; } .sim-foot { flex-wrap: wrap; row-gap: 2px; } .sim-foot small { flex: 1 1 140px; text-align: right; }

/* ===== kotak "Sumber data" di daftar dihapus (isinya ada di kartu J) ===== */
.bs-foot.src { display: none !important; }

/* ===== tombol + hanya muncul saat hover (animasi), selalu tampil di layar sentuh atau bila terpilih ===== */
@media (hover: hover) and (pointer: fine) {
  .tr-item .madd { opacity: 0; transform: scale(.4) rotate(-90deg); transition: opacity .2s var(--ease-out, ease-out), transform .32s cubic-bezier(.34, 1.4, .5, 1), background-color .18s, border-color .18s; }
  .tr-item:hover .madd, .tr-item:focus-within .madd, .tr-item .madd:focus-visible { opacity: 1; transform: none; }
  .tr-item.msel .madd { opacity: 1; transform: rotate(45deg); }
}
@keyframes pt-flash { 0% { background-color: color-mix(in srgb, var(--tfj-blue) 22%, #fff); } 100% { background-color: transparent; } }
.tr-item.flash { animation: pt-flash .9s ease-out both; }
.tr-item.msel.flash { animation-name: pt-flash; }

/* ===== tray multi-rute: lebih lega ===== */
.m-bar { padding: 4px 16px 10px; }
.m-tray { margin: 6px 0 4px; padding: 14px 16px 14px; border-radius: 18px; display: grid; gap: 12px; }
.m-top { margin-bottom: 0; }
.m-chips { gap: 8px; max-height: 112px; padding: 2px; }
.m-chip { padding: 3px 10px 3px 3px; min-height: 38px; }
.m-chip .roundel { width: 32px; height: 32px; }
.m-int { border-top: 1px solid rgba(24,84,156,.16); padding-top: 12px; display: grid; gap: 8px; }
.m-int h4 { margin: 0; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tfj-muted); }
.m-int details { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(20,41,61,.1); overflow: hidden; }
.m-int summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; list-style: none; padding: 10px 12px; font-size: .82rem; font-weight: 800; min-height: 40px; }
.m-int summary::-webkit-details-marker { display: none; } .m-int summary b { background: var(--tfj-blue); color: #fff; border-radius: 999px; font-size: .7rem; padding: 2px 8px; margin-right: auto; margin-left: 8px; }
.m-int summary::after { content: ""; width: 8px; height: 8px; border: solid var(--tfj-muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s var(--ease-out, ease-out); }
.m-int details[open] > summary::after { transform: rotate(225deg); }
.m-int ul { list-style: none; margin: 0; padding: 0 4px 6px; max-height: 220px; overflow-y: auto; }
.m-int li button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; cursor: pointer; min-height: 48px; }
.m-int li button:hover { background: rgba(24,84,156,.08); } .m-int li button:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: -2px; }
.mi-n { display: grid; min-width: 0; } .mi-n b { font-size: .84rem; line-height: 1.25; } .mi-n small { font-size: .7rem; color: var(--tfj-muted); }
.mi-c { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 3px; max-width: 48%; } .mi-c .roundel { width: 24px; height: 24px; font-size: .5rem; border-width: 2.5px; } .mi-c .more { font-size: .7rem; font-weight: 800; color: var(--tfj-muted); align-self: center; }
.m-none, .m-more { margin: 0; font-size: .78rem; color: var(--tfj-muted); line-height: 1.4; padding: 2px 2px 4px; }
.pt-dark .m-int details { background: #1a222a; }

/* ===== panel simulasi: lebih kecil dan memanjang ===== */
@media (min-width: 901px) { .sim { width: min(540px, calc(100% - 24px)); padding: 9px 12px 8px; gap: 6px; border-radius: 18px; } .sim-ch { height: 62px; } .sim-clk { font-size: 1.05rem; } .sim-play { width: 40px; height: 40px; } .sim-spd { min-height: 26px; padding: 2px 10px; } .sim-main { gap: 12px; } }
.sim-live { transition: background-color .2s, color .2s, box-shadow .2s; }
.sim-live.off { background: #fff; color: #d9322f; box-shadow: inset 0 0 0 2px #d9322f; }
.sim-live.off:hover { background: #fdecee; }
.sim-st span { font-size: 1.2rem; line-height: 1; font-weight: 700; }

/* ===== mode ringan: animasi transform/opacity tetap jalan (murah di GPU); hanya efek mahal yang dimatikan ===== */
.pt-lite *, .pt-lite *::before, .pt-lite *::after { transition-property: transform, opacity, visibility, left, color, background-color, border-color !important; }
.pt-lite .bs-side, .pt-lite .pn-toggle { will-change: transform; }
.pt-lite .dt-p:not([hidden]) { animation: pt-rise .24s cubic-bezier(.23, 1, .32, 1) both !important; }
.pt-lite .m-chip { animation: pt-chip .22s cubic-bezier(.23, 1, .32, 1) both !important; }
.pt-lite .m-tray { animation: pnin .25s ease-out both !important; }
.pt-lite .bs-tip .maplibregl-popup-content { animation: pt-rise .18s cubic-bezier(.23, 1, .32, 1) both !important; }
.pt-lite .st-dlg[open], .pt-lite .sim { animation: pt-rise .3s cubic-bezier(.23, 1, .32, 1) both !important; }
.pt-lite .rp-about .ab-b { animation: pt-rise .22s cubic-bezier(.23, 1, .32, 1) both !important; }
.pt-lite .tr-item.flash { animation: pt-flash .9s ease-out both !important; }
@media (prefers-reduced-motion: reduce) { .pt-lite .dt-p:not([hidden]), .pt-lite .m-chip, .pt-lite .m-tray, .pt-lite .bs-tip .maplibregl-popup-content, .pt-lite .st-dlg[open], .pt-lite .sim, .pt-lite .rp-about .ab-b { animation-name: pt-fade !important; animation-duration: .15s !important; } }

/* ===== Statistik armada v2 ===== */
.st-dlg { width: min(520px, calc(100vw - 24px)); padding: 18px 18px 14px; background: #fff; }
.st-dlg[open] { gap: 12px; }
.st-sum { display: grid; gap: 10px; background: linear-gradient(160deg, #eef4fc, #f8fafc 70%); border: 1px solid rgba(24,84,156,.14); border-radius: 18px; padding: 14px 16px 12px; }
.st-big { display: flex; align-items: baseline; gap: 8px; } .st-big b { font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; } .st-big small { font-size: .8rem; font-weight: 700; color: var(--tfj-muted); }
.st-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #dfe5ec; gap: 2px; }
.st-bar i, .st-b u { display: block; min-width: 0; } .st-bar i.g, .st-b u.g, .st-lg i.g, .st-key i.g { background: #1f9d57; } .st-bar i.s, .st-b u.s, .st-lg i.s, .st-key i.s { background: #9aa6b4; }
.st-bar i { transition: flex-grow .5s cubic-bezier(.23, 1, .32, 1); }
.st-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; font-weight: 600; color: var(--tfj-navy); align-items: center; }
.st-lg span { display: inline-flex; align-items: center; gap: 6px; } .st-lg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .st-lg b { font-size: .95rem; font-variant-numeric: tabular-nums; } .st-lg em { font-style: normal; color: var(--tfj-muted); font-weight: 700; }
.st-lg .st-tt { margin-left: auto; color: var(--tfj-muted); }
.st-seg, .st-sort { display: flex; background: #eef1f5; border-radius: 12px; padding: 3px; gap: 2px; }
.st-seg button, .st-sort button { flex: 1; border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 800; color: var(--tfj-muted); padding: 7px 8px; border-radius: 9px; cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background-color .18s, color .18s, box-shadow .18s; white-space: nowrap; }
.st-seg button small { font-size: .68rem; background: rgba(20,41,61,.08); border-radius: 999px; padding: 1px 6px; }
.st-seg button[aria-pressed="true"], .st-sort button[aria-pressed="true"] { background: #fff; color: var(--tfj-blue); box-shadow: 0 1px 3px rgba(20,41,61,.16); }
.st-seg button:active, .st-sort button:active { transform: scale(.97); } .st-seg button:focus-visible, .st-sort button:focus-visible { outline: 2px solid var(--tfj-blue); outline-offset: 1px; }
.st-row2 { display: grid; gap: 8px; } @media (min-width: 520px) { .st-row2 { grid-template-columns: 1fr 1.15fr; } }
.st-sort button { padding: 7px 6px; font-size: .74rem; }
.st-hd, .st-l li { display: grid; grid-template-columns: 40px 1fr 44px 52px; align-items: center; gap: 10px; }
.st-hd { padding: 0 4px; } .st-hd span:first-child { grid-column: 1 / 3; } .st-hd span:nth-child(n+2) { text-align: right; }
.st-l li { padding: 9px 4px; }
.st-r { display: grid; place-items: center; width: 40px; } .st-r .roundel, .st-r .roundel.stack { width: 36px !important; height: 36px; min-width: 36px; padding: 0 !important; border-radius: 50%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex-direction: column; aspect-ratio: 1; font-size: .62rem; line-height: 1; border-width: 3px; }
.st-r .roundel.stack i { font-size: .4rem; font-style: normal; line-height: 1; } .st-r .roundel.stack b { font-size: .72rem; line-height: 1; display: block; }
.st-m { min-width: 0; display: grid; gap: 2px; } .st-m b { font-size: .86rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-m small { font-size: .7rem; color: var(--tfj-muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-b { display: flex; height: 5px; border-radius: 999px; overflow: hidden; gap: 1px; margin-top: 3px; background: transparent; }
.st-c { display: contents; } .st-c b { text-align: right; font-variant-numeric: tabular-nums; font-size: .9rem; } .st-c b.g { color: #168a3c; } .st-c b.s { color: #5b6672; } .st-c b.z { color: #c3cad2; font-weight: 600; }
.st-key { display: grid; gap: 8px; background: #f6f8fb; border-radius: 14px; padding: 10px 12px; font-size: .74rem; line-height: 1.4; color: var(--tfj-muted); }
.st-key > div { display: grid; grid-template-columns: 12px auto 1fr; gap: 8px; align-items: baseline; } .st-key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; align-self: center; } .st-key b { color: var(--tfj-navy); font-size: .78rem; }
.st-l { padding-right: 2px; scrollbar-width: thin; }
.pt-dark .st-dlg { background: #1a222a; } .pt-dark .st-sum { background: #17202a; border-color: rgba(255,255,255,.1); } .pt-dark .st-seg, .pt-dark .st-sort { background: #2a3540; } .pt-dark .st-seg button[aria-pressed="true"], .pt-dark .st-sort button[aria-pressed="true"] { background: #1a222a; color: #e6edf5; } .pt-dark .st-key { background: #17202a; }
@media (max-width: 520px) { .st-sort button { font-size: .7rem; padding: 7px 4px; } .st-big b { font-size: 1.8rem; } }
@media (min-width: 901px) { .pt-page .rp-dock .rp { padding: 0; } .pt-page .rp-dock .rp.mini:not([open]) > summary { margin: 0; } }
.st-l .st-m b, .st-l .st-m small { text-align: left; }

/* ===== kotak "pilih rute" kosong tidak boleh tampil (display:grid mengalahkan atribut hidden) ===== */
.m-tray[hidden], .m-bar:has(> .m-tray[hidden]) { display: none !important; }

/* ===== banner gangguan: daftar bertumpuk (tanpa slider) ===== */
.gb-list { display: grid; }
.gg-ban .gb-row { border-top: 1px solid #eef1f4; min-width: 0; }
.gg-ban .gb-row:first-child { border-top: 0; }
.gb-foot { display: block; width: 100%; text-align: center; padding: 10px 14px 12px; border-top: 1px solid #eef1f4; margin: 0; min-height: 44px; }
.gb-foot:hover { background: #f6f9fc; }
.gb-row .gb-lines { margin: 0 0 6px; }
.gb-row .sp-rb { padding: 12px 14px; }

/* banner gangguan: slider geser tetap ada (tanpa titik & bilah geser); rute di bawah info, di atas "Baca selengkapnya" */
.gg-ban .gb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; align-items: flex-start; }
.gg-ban .gb-track::-webkit-scrollbar { display: none; height: 0; }
.gg-ban .gb-track .gb-row { flex: 0 0 100%; scroll-snap-align: start; border-top: 0; min-width: 0; }
.gb-row .sp-rb { padding: 12px 14px; display: block; }
.gb-row .gb-lines { margin: 8px 0 0; }
.gb-row .sp-rm { display: block; margin: 6px 0 0; }
.gb-dots, .gb-foot { display: none !important; }
