.map-layer-toggle { align-items: center; background: #fffdf8; border: 1px solid rgb(122 31 18 / 18%); border-radius: .65rem; color: #5f180e; display: flex; font-weight: 800; gap: .55rem; min-height: 44px; padding: .45rem .7rem; }
.map-layer-toggle input { accent-color: #28558C; height: 1.1rem; width: 1.1rem; }
.bus-layer-status { color: #6d655f; font-size: .78rem; margin: -.25rem 0 .3rem; }
.bus-layer-status[data-error="true"] { color: #9d271d; }
.bus-stop-panel { background: #fffdf8; border: 1px solid rgb(122 31 18 / 18%); border-radius: 1rem; box-shadow: 0 1rem 3rem rgb(36 31 28 / 22%); box-sizing: border-box; max-height: min(76vh, 42rem); overflow-y: auto; padding: 1rem; position: absolute; right: 1rem; top: 1rem; width: min(25rem, calc(100% - 2rem)); z-index: 12; }
.bus-stop-panel[hidden] { display: none; }
.bus-explorer-panel { max-height: min(82vh, 48rem); }
.bus-explorer-panel-actions { align-items: center; display: flex; gap: .35rem; }
.bus-stop-panel-action { align-items: center; background: #fffdf8; border: 1px solid #7a1f12; border-radius: 50%; color: #7a1f12; cursor: pointer; display: inline-flex; font-size: 1.2rem; height: 2.35rem; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
.bus-explorer-compact-summary { align-items: center; color: #3f3732; display: flex; gap: .55rem; justify-content: space-between; margin-top: .7rem; }
.bus-explorer-compact-summary { flex-wrap: wrap; }
.bus-explorer-compact-heading { align-items: baseline; display: flex; flex: 1 1 100%; justify-content: space-between; }
.bus-explorer-compact-summary .bus-stop-route-list { flex: 1 1 100%; }
.bus-explorer-compact-expand { background: #28558C; border: 2px solid #1c3e68; border-radius: .55rem; color: #fff; cursor: pointer; font-weight: 850; min-height: 44px; padding: .45rem .7rem; width: 100%; }
.bus-explorer-compact-expand[hidden] { display: none; }
.bus-explorer-compact-summary strong { color: #5f180e; }
.bus-explorer-compact-summary span { color: #6d655f; font-size: .82rem; }
.bus-explorer-reopen { align-items: center; background: #fffdf8; border: 2px solid #28558C; border-radius: 50%; bottom: calc(9.2rem + env(safe-area-inset-bottom)); box-shadow: 0 0.4rem 1rem rgb(36 31 28 / 22%); cursor: pointer; display: inline-flex; height: 3.1rem; justify-content: center; min-height: 52px; min-width: 52px; padding: .45rem; position: absolute; right: .9rem; z-index: 13; }
.bus-explorer-reopen img { height: 2.1rem; width: 2.1rem; }
.bus-explorer-reopen[hidden], .bus-explorer-expanded-content[hidden], .bus-explorer-compact-summary[hidden] { display: none; }
.bus-explorer-badge { background: #e4eef8; border-radius: 999px; color: #28558C; font-size: .72rem; font-weight: 850; padding: .35rem .55rem; white-space: nowrap; }
.bus-explorer-search-label { color: #5f180e; display: block; font-size: .82rem; font-weight: 800; margin-top: .9rem; }
.bus-explorer-search { background: #fff; border: 1px solid rgb(122 31 18 / 25%); border-radius: .55rem; box-sizing: border-box; color: #3f3732; min-height: 44px; margin-top: .35rem; padding: .55rem .7rem; width: 100%; }
.bus-explorer-search:focus-visible { outline: 3px solid #1f67b1; outline-offset: 2px; }
.bus-explorer-pattern-label { color: #5f180e; display: block; font-size: .78rem; font-weight: 800; margin: .35rem 0 .25rem; }
.bus-explorer-pattern-select { background: #fff; border: 1px solid rgb(122 31 18 / 25%); border-radius: .55rem; box-sizing: border-box; min-height: 44px; padding: .45rem .6rem; width: 100%; }
.bus-explorer-route-stops { display: grid; gap: .35rem; list-style: none; margin: .55rem 0 0; max-height: min(42vh, 22rem); overflow-y: auto; padding: 0; }
.bus-explorer-stop-item { align-items: start; background: #fffdf8; border: 1px solid rgb(122 31 18 / 16%); border-radius: .5rem; color: #3f3732; cursor: pointer; display: grid; gap: .12rem; min-height: 44px; padding: .45rem .55rem; text-align: left; width: 100%; }
.bus-explorer-stop-item strong { color: #5f180e; }
.bus-explorer-stop-item span, .bus-explorer-stop-item small { color: #6d655f; font-size: .76rem; }
.bus-explorer-stop-item:hover { border-color: #28558C; }
.bus-explorer-count { color: #5f180e; font-size: .92rem; font-weight: 850; margin: .5rem 0 0; }
.bus-route-chip.is-active, .bus-stop-refresh.is-active { background: var(--route-color, #28558C); color: #fff; }
.bus-stop-panel-header, .bus-stop-section-heading { align-items: flex-start; display: flex; gap: .75rem; justify-content: space-between; }
.bus-stop-eyebrow, .bus-stop-static-note { color: #6d655f; font-size: .75rem; font-weight: 800; letter-spacing: .06em; margin: 0; text-transform: uppercase; }
.bus-stop-panel h2 { color: #5f180e; font-size: 1.55rem; line-height: 1.05; margin: .2rem 0 0; }
.bus-stop-panel h3 { color: #5f180e; font-size: 1rem; margin: 0 0 .55rem; }
.bus-stop-close { background: #fffdf8; border: 1px solid #7a1f12; border-radius: 50%; color: #7a1f12; cursor: pointer; font-size: 1.5rem; height: 2.6rem; min-height: 44px; min-width: 44px; }
.bus-stop-identity, .bus-stop-poi, .bus-stop-inline-status { color: #6d655f; font-size: .85rem; line-height: 1.4; margin: .45rem 0; }
.bus-stop-poi a { color: #28558C; font-weight: 700; }
.bus-stop-panel-section { border-top: 1px solid rgb(122 31 18 / 14%); margin-top: 1rem; padding-top: .9rem; }
.bus-stop-route-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.bus-route-chip, .bus-stop-refresh, .bus-trip-button { background: #fffdf8; border: 2px solid var(--route-color, #28558C); border-radius: .55rem; color: var(--route-color, #28558C); cursor: pointer; font-weight: 800; min-height: 40px; padding: .45rem .7rem; }
.bus-stop-refresh { font-size: .76rem; min-height: 36px; padding: .35rem .55rem; }
.bus-stop-static-note { color: #28558C; letter-spacing: 0; margin: 0 0 .5rem; text-transform: none; }
.bus-stop-arrivals, .bus-stop-trip-stops { list-style: none; margin: 0; padding: 0; }
.bus-arrival-item { align-items: center; border-bottom: 1px solid rgb(122 31 18 / 10%); display: grid; gap: .35rem; grid-template-columns: 3.2rem 1fr auto; padding: .6rem 0; }
.bus-arrival-item strong { color: #5f180e; }
.bus-arrival-item span { color: #3f3732; overflow-wrap: anywhere; }
.bus-arrival-item time { color: #28558C; font-size: 1.05rem; font-weight: 850; }
.bus-stop-trip-stops { counter-reset: trip-stop; }
.bus-stop-trip-stops li { border-bottom: 1px solid rgb(122 31 18 / 10%); padding: .55rem 0; }
.bus-stop-trip-stops li.is-selected { color: #28558C; font-weight: 850; }
.bus-trip-button { text-align: left; width: 100%; }
.bus-stop-close:focus-visible, .bus-route-chip:focus-visible, .bus-stop-refresh:focus-visible, .bus-trip-button:focus-visible, .bus-stop-panel-action:focus-visible, .bus-explorer-reopen:focus-visible, .bus-explorer-stop-item:focus-visible, .bus-explorer-pattern-select:focus-visible, .map-layer-toggle:focus-within { outline: 3px solid #1f67b1; outline-offset: 2px; }
.bus-explorer-compact-expand:focus-visible { outline: 3px solid #1f67b1; outline-offset: 2px; }
/* PATCH-069.3: retry of the progressive stop loading; line stops left outside the 3 km scope */
#bus-explorer-retry { margin: 0 0 .45rem; }
.bus-explorer-route-stops li.is-outside-scope .bus-explorer-stop-item { background: #f6f1ea; border-style: dashed; }
.bus-explorer-scope-tag { color: #6d655f; font-size: .72rem; font-style: normal; font-weight: 800; }
@media (max-width: 699px) {
    .bus-stop-panel { bottom: max(.75rem, env(safe-area-inset-bottom)); left: .75rem; max-height: min(72dvh, 40rem); right: .75rem; top: auto; width: auto; }
    .bus-explorer-reopen { bottom: calc(5.5rem + env(safe-area-inset-bottom)); right: .75rem; }
    .bus-explorer-panel-actions { gap: .2rem; }
    .bus-explorer-badge { display: none; }
    .bus-arrival-item { grid-template-columns: 2.8rem 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .bus-stop-panel { scroll-behavior: auto; } }
