/* Halaman Status layanan: daftar per lin (gaya BKK Futár), navigasi hari, detail dengan peta */
.sp-nav { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; align-items: stretch; max-width: 560px; margin: 4px 0 12px; }
.sp-nav button { font: inherit; border: 1.5px solid rgba(20,41,61,.14); background: #fff; color: var(--tfj-blue); border-radius: 14px; cursor: pointer; min-height: 46px; font-weight: 800; }
.sp-nav button:not(.sp-day) { font-size: 1.5rem; line-height: 1; } .sp-nav button:disabled { opacity: .35; cursor: default; }
.sp-nav .sp-day { font-size: 1rem; color: var(--tfj-navy); border-color: transparent; background: transparent; }
.sp-filter { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; align-items: center; } .sp-filter::-webkit-scrollbar { display: none; }
.sp-filter button { flex: none; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 14px 6px 8px; border-radius: 999px; border: 1.5px solid rgba(24,84,156,.55); background: transparent; color: var(--tfj-blue); cursor: pointer; }
.sp-filter button img { width: 22px; height: 22px; border-radius: 50%; background: #fff; padding: 2px; }
.sp-filter button small { font-weight: 600; opacity: .7; }
.sp-filter button[aria-pressed="true"] { background: var(--tfj-blue); border-color: var(--tfj-blue); color: #fff; }
.sp-filter .sp-clear { padding: 6px 10px; border-color: transparent; color: var(--tfj-muted); font-size: 1rem; } .sp-filter .sp-clear[hidden] { display: none; }
.sp-list { display: grid; gap: 14px; }
.sp-grp { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,41,61,.12), 0 4px 14px rgba(20,41,61,.05); }
.sp-gh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 2px solid #eef1f4; }
.sp-gi img { display: block; width: 26px; height: 26px; }
.sp-gt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; } .sp-gt b { font-size: .95rem; text-align: left; } .sp-gt small { color: var(--tfj-muted); font-size: .74rem; text-align: left; }
.sp-gh .roundel { flex: none; }
.sp-ln { display: inline-flex; align-items: center; min-width: 26px; height: 24px; padding: 0 8px; justify-content: center; border-radius: 999px; background: var(--tfj-tint); color: var(--tfj-navy); font-size: .72rem; font-weight: 800; }
.sp-row { display: flex; border-top: 1px solid #eef1f4; } .sp-grp .sp-row:first-of-type { border-top: 0; }
.sp-bar { flex: none; width: 56px; display: flex; align-items: center; justify-content: center; position: relative; font-weight: 800; font-size: 1.3rem; color: #fff; background: #18549c; font-family: Georgia, 'Times New Roman', serif; }
.sp-row.warn .sp-bar { background: #ffd400; color: #14293d; } .sp-row.bad .sp-bar { background: #d4202a; } .sp-row.ok .sp-bar { background: #18549c; }
.sp-bar::before { content: ""; position: absolute; width: 34px; height: 34px; border: 2.5px solid currentColor; border-radius: 50%; }
.sp-rb { padding: 14px 16px; min-width: 0; flex: 1; text-align: left; }
.sp-t { margin: 0 0 4px; font-size: .98rem; line-height: 1.4; color: var(--tfj-ink); text-align: left; } .sp-t b { font-weight: 800; }
.sp-w { margin: 0 0 6px; font-size: .8rem; color: var(--tfj-muted); text-align: left; }
.sp-more { font: inherit; font-size: .88rem; font-weight: 800; color: var(--tfj-blue); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; } .sp-more:hover { text-decoration: underline; }
.sp-empty { background: #fff; border-radius: 14px; padding: 22px; display: grid; gap: 4px; text-align: center; box-shadow: 0 1px 3px rgba(20,41,61,.1); } .sp-empty span { color: var(--tfj-muted); font-size: .9rem; }
.sp-src { margin-top: 14px; } .sp-k { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #ffd400; border: 2px solid #e65100; color: #b23c00; font-size: .7rem; line-height: 1; }

/* detail */
.sp-dlg { border: 0; border-radius: 20px; padding: 0; width: min(720px, 96vw); max-height: 94vh; box-shadow: 0 24px 80px rgba(20,41,61,.4); overflow: hidden; background: #ecebef; }
.sp-dlg[open] { display: flex; flex-direction: column; } .sp-dlg::backdrop { background: rgba(20,41,61,.55); }
.sp-dlg-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #fff; } .sp-dlg-h h3 { margin: 0; font-size: 1.1rem; }
.sp-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--tfj-tint); cursor: pointer; font-size: 1rem; }
.sp-mapw { position: relative; flex: none; height: min(46vh, 380px); background: #dfe6ee; } .sp-map { width: 100%; height: 100%; } /* jangan absolute: CSS MapLibre memaksa position:relative sehingga tinggi jadi 0 */
.sp-mapnote, .sp-mapfail { position: absolute; left: 12px; bottom: 12px; margin: 0; background: rgba(255,255,255,.92); border-radius: 10px; padding: 6px 10px; font-size: .78rem; color: var(--tfj-muted); }
.sp-dlg-b { flex: 1; min-height: 0; overflow: auto; padding: 14px; } .sp-dlg-b > * + * { margin-top: 10px; } /* alur biasa, bukan grid: kartu overflow:hidden menyusut ke 0 di grid */
.sp-card { background: #fff; border-radius: 16px; overflow: hidden; }
.sp-dh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #eef1f4; font-weight: 700; font-size: .9rem; text-align: left; } .sp-dh img { width: 26px; height: 26px; }
.sp-card .sp-row { border-top: 0; } .sp-card .sp-rb { padding: 12px 16px; }
.sp-when { display: grid; grid-template-columns: auto 1fr 1fr; gap: 14px; align-items: center; padding: 14px 16px; color: var(--tfj-blue); } .sp-when small { display: block; color: var(--tfj-muted); font-size: .72rem; font-weight: 700; } .sp-when b { display: block; color: var(--tfj-ink); font-size: .86rem; line-height: 1.3; text-align: left; }
.sp-desc { list-style: none; margin: 4px 4px 2px; padding: 0; display: grid; gap: 8px; font-size: .92rem; line-height: 1.5; text-align: left; } .sp-desc li { display: block; }
.sp-desc a { color: var(--tfj-blue); font-weight: 700; }

/* penanda peta: X = tidak dilayani, ! = gangguan fasilitas / kejadian di sekitar */
.sp-pin { width: 30px; height: 30px; border-radius: 50%; background: #ffd400; border: 3px solid #e65100; color: #b23c00; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.35); cursor: pointer; }
.sp-pin b { font-size: 1.05rem; font-weight: 900; line-height: 1; font-family: Georgia, serif; }
.sp-pin.sm { display: inline-grid; width: 20px; height: 20px; border-width: 2px; vertical-align: -5px; box-shadow: none; cursor: default; } .sp-pin.sm b { font-size: .8rem; }
.maplibregl-popup-content { font: 600 .82rem/1.35 inherit; padding: 8px 12px; border-radius: 10px; }
@media (max-width: 560px) { .sp-bar { width: 46px; } .sp-when { grid-template-columns: auto 1fr; } .sp-when > div:last-child { grid-column: 2; } .sp-mapw { height: 40vh; } }

/* panel Status layanan di peta-transportasi.html (kolom sempit) */
.sp-pane { display: grid; gap: 12px; padding: 4px 14px 10px; } .sp-pane .sp-card { box-shadow: 0 1px 3px rgba(20,41,61,.12); }
#detailView .sp-filter { padding: 4px 14px 8px; }
#detailView .sp-bar { width: 48px; }
.sp-t .sp-d { display: block; margin-top: 2px; font-size: .86rem; color: var(--tfj-muted); line-height: 1.4; font-weight: 400; }
/* penanda di peta: kecil, pas di titik halte (elemen marker = .sp-pin itu sendiri; ukuran penuh tetap untuk legenda/daftar) */
.sp-pin.maplibregl-marker { width: 20px; height: 20px; border-width: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sp-pin.maplibregl-marker svg { width: 11px; height: 11px; } .sp-pin.maplibregl-marker b { font-size: .8rem; }

.sp-ar { vertical-align: -3px; margin: 0 2px; color: var(--tfj-blue); }
.sp-pin .sp-n { position: absolute; right: -8px; top: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #14293d; color: #fff; font: 700 .64rem/16px system-ui, sans-serif; text-align: center; font-style: normal; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.sp-pin.maplibregl-marker.cl { width: 26px; height: 26px; } .sp-pin.maplibregl-marker.cl svg { width: 14px; height: 14px; }

/* teks panjang: 2 baris + "Baca selengkapnya" */
.sp-d.clamp:not(.open) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-rm { all: unset; box-sizing: border-box; display: inline-block; margin: 4px 0 2px; padding: 4px 0; min-height: 28px; font-size: .8rem; font-weight: 800; color: var(--tfj-blue, #18549c); cursor: pointer; }
.sp-rm:hover { text-decoration: underline; } .sp-rm:focus-visible { outline: 2px solid var(--tfj-blue, #18549c); outline-offset: 2px; border-radius: 4px; }
