/* Bus: /bus/routeplanner/ (formulier en reizen). Alleen tokens (huisregel 4). Mobile-first. */

.bh-bus-plancontainer { max-width: calc(860px + 2 * var(--bh-gutter)); }

/* ---------- Formulier ---------- */
.bh-bus-plan { background: var(--bh-white); border-radius: var(--bh-radius-block); box-shadow: var(--bh-shadow-float); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.bh-bus-plan__rij { display: flex; align-items: center; gap: 10px; }
.bh-bus-plan__velden { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bh-bus-plan__veld { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; background: var(--bh-bg); border-radius: var(--bh-radius-btn); }
.bh-bus-plan__veld:focus-within { outline: 3px solid var(--bh-ink); outline-offset: 2px; }
.bh-bus-plan__label { width: 40px; flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--bh-muted); }
.bh-bus-plan__vast { font-size: 16px; font-weight: 800; white-space: nowrap; }
.bh-bus-plan__veld select, .bh-bus-plan__veld input { font: inherit; font-size: 16px; font-weight: 800; color: var(--bh-ink); border: 0; background: transparent; flex: 1; min-width: 0; min-height: 48px; padding: 0; }
.bh-bus-plan__veld select:focus, .bh-bus-plan__veld input:focus { outline: none; }
.bh-bus-plan__wissel { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: var(--bh-radius-btn); background: var(--bh-sky); color: var(--bh-ink); }
.bh-bus-plan__wissel:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: 2px; }

.bh-bus-vaak { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--bh-muted); }
.bh-bus-vaak > span { margin-right: 4px; }
.bh-bus-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--bh-radius-badge); background: var(--bh-bg); color: var(--bh-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.bh-bus-chip[aria-current] { background: var(--bh-ink); color: var(--bh-white); }

.bh-bus-plan__rij--wanneer { flex-wrap: wrap; }
.bh-bus-segment { border: 0; margin: 0; padding: 4px; display: flex; gap: 4px; background: var(--bh-bg); border-radius: var(--bh-radius-btn); }
.bh-bus-segment label { position: relative; }
.bh-bus-segment input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.bh-bus-segment span { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px 10px 10px 2px; font-size: 14px; font-weight: 800; }
.bh-bus-segment input:checked + span { background: var(--bh-ink); color: var(--bh-white); }
.bh-bus-segment input:focus-visible + span { outline: 3px solid var(--bh-ink); outline-offset: 1px; }
.bh-bus-plan__klein { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--bh-muted); }
.bh-bus-plan__klein[hidden] { display: none; }
.bh-bus-plan__klein input, .bh-bus-plan__klein select { font: inherit; font-size: 16px; font-weight: 800; color: var(--bh-ink); min-height: 44px; padding: 0 10px; border: 0; background: var(--bh-bg); border-radius: 12px 12px 12px 3px; }
.bh-bus-plan__knop { margin-left: auto; font: inherit; font-size: 16px; font-weight: 800; min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--bh-radius-btn); background: var(--bh-accent); color: var(--bh-ink); cursor: pointer; }
.bh-bus-plan__knop:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: 2px; }

/* ---------- Reizen ---------- */
.bh-bus-plan-uit { padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.bh-bus-resultaat { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.bh-bus-resultaat .bh-bus-sectiekop { margin: 0; font-size: 22px; }
.bh-bus-resultaat__sub { margin: 2px 0 0; font-size: 14px; color: var(--bh-ink-3); }
.bh-bus-reizen { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bh-bus-reis { background: var(--bh-white); border-radius: 20px 4px 20px 4px; box-shadow: var(--bh-shadow-card); overflow: hidden; }
.bh-bus-reis--krap { box-shadow: 0 0 0 2px var(--bh-tint-3), var(--bh-shadow-card); }
.bh-bus-reis summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 48px; }
.bh-bus-reis summary::-webkit-details-marker { display: none; }
.bh-bus-reis summary:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: -3px; }
.bh-bus-reis__hoofd { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.bh-bus-reis__tijden { font-size: 22px; letter-spacing: -0.02em; }
.bh-bus-reis__meta { font-size: 13px; color: var(--bh-ink-3); }
.bh-bus-reis__lijnen { display: flex; align-items: center; gap: 6px; flex: 1 0 auto; }
.bh-bus-reis__lijnen .bh-lijn { height: 26px; min-width: 30px; font-size: 13px; }
.bh-bus-snelste { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: var(--bh-radius-badge); background: var(--bh-sky); }
.bh-bus-reis__krap { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--bh-alert-ink); }
.bh-bus-reis__teken::after { content: "+"; font-size: 20px; font-weight: 800; }
.bh-bus-reis details[open] .bh-bus-reis__teken::after { content: "−"; }

/* De stappen: instappen (bordje), uitstappen, overstappen. De streep heeft de kleur van de lijn; overstappen is grijs. */
.bh-bus-stappen { list-style: none; margin: 0; padding: 4px 16px 16px; border-top: 1px solid var(--bh-line); }
.bh-bus-stap { display: flex; gap: 12px; min-height: 44px; }
.bh-bus-stap__tijd { width: 44px; flex: 0 0 auto; padding-top: 9px; font-size: 15px; font-weight: 800; }
.bh-bus-stap__wat { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 0 12px 28px; }
.bh-bus-stap__wat::before { content: ""; position: absolute; left: 6px; width: 4px; background: var(--bh-lijn); }
.bh-bus-stap--in .bh-bus-stap__wat::before { top: 18px; bottom: 0; }
.bh-bus-stap--uit .bh-bus-stap__wat::before { top: 0; height: 18px; }
.bh-bus-stap--over .bh-bus-stap__wat { background: linear-gradient(var(--bh-dry), var(--bh-dry)) 6px 18px / 4px calc(100% - 18px) no-repeat; }
.bh-bus-stap__wat > strong { font-size: 15px; }
.bh-bus-stap__wat > strong::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--bh-white); border: 3px solid var(--bh-lijn); box-sizing: border-box; }
.bh-bus-stap__rit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--bh-ink-3); }
.bh-bus-stap__wat > span:not(.bh-bus-stap__rit):not(.bh-bus-status) { font-size: 13px; color: var(--bh-ink-3); }

.bh-bus-plan__knoppen { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bh-bus-plan__uitleg { margin: 0; font-size: 14px; line-height: 1.6; color: var(--bh-ink-3); }
.bh-bus-plan__uitleg a { font-weight: 700; text-decoration: underline; }

@media (max-width: 599px) {
	.bh-bus-plan__knop { width: 100%; margin-left: 0; }
}
@media (min-width: 768px) {
	.bh-bus-plan { padding: 18px; }
}
