/* 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: 30px; height: 30px; }

/* 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; } }
/* 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: 8px 6px; font-size: .76rem; font-weight: 700; color: var(--tfj-muted); background: transparent; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 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: nowrap; }
.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; }
