/* Bus: /bus/ (het overzicht: de lijnen in beide richtingen, de haltes, snelkoppelingen). Alleen tokens (huisregel 4). Mobile-first. */

/* ---------- Kop ---------- */
.bh-bus-kop__rij { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.bh-bus-stempel { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; background: var(--bh-white); padding: 8px 12px; border-radius: var(--bh-radius-badge); }
.bh-bus-zoek { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; background: var(--bh-white); padding: 10px; border-radius: var(--bh-radius-btn-lg); box-shadow: var(--bh-shadow-float); }
.bh-bus-zoek__veld { flex: 1 1 240px; 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-zoek__veld:focus-within { outline: 3px solid var(--bh-ink); outline-offset: 2px; }
.bh-bus-zoek__veld input { font: inherit; font-size: 16px; font-weight: 600; color: var(--bh-ink); border: 0; background: transparent; flex: 1; min-width: 0; min-height: 48px; padding: 0; }
.bh-bus-zoek__veld input:focus { outline: none; }
.bh-bus-zoek__knop { font: inherit; font-size: 16px; font-weight: 800; min-height: 52px; padding: 0 20px; border: 0; border-radius: var(--bh-radius-btn); background: var(--bh-accent); color: var(--bh-ink); cursor: pointer; }
.bh-bus-zoek__knop:focus-visible { outline: 3px solid var(--bh-ink); outline-offset: 2px; }

/* ---------- Opbouw ---------- */
.bh-bus-overzicht { padding-top: 24px; display: flex; flex-direction: column; gap: 28px; }
.bh-bus-overzicht__lijnen { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bh-bus-overzicht__lijnen > .bh-bus-sectiekop { margin: 0; font-size: 24px; }
.bh-bus-overzicht__zij { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bh-bus-overzicht__zij .bh-bus-sectiekop { font-size: 22px; }

/* ---------- Een lijn ---------- */
.bh-bus-lijnblok { background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.bh-bus-lijnblok__kop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bh-bus-lijnblok__kop > .bh-lijn { height: 44px; min-width: 52px; font-size: 22px; border-radius: var(--bh-radius-btn); }
.bh-bus-lijnblok__titel { flex: 1 1 220px; min-width: 0; }
.bh-bus-lijnblok__titel h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.bh-bus-lijnblok__titel p { margin: 2px 0 0; font-size: 14px; color: var(--bh-ink-3); }
.bh-bus-lijnblok__richtingen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }

/* Een richting: het bordje voorop de bus en de haltes in Blijham in de volgorde waarin de bus ze aandoet. */
.bh-bus-richting { background: var(--bh-bg); border-top: 4px solid var(--bh-lijn); border-radius: 20px 4px 20px 4px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bh-bus-richting__kop { display: flex; flex-direction: column; gap: 4px; }
/* De via-regel staat er altijd (ook leeg), zodat de haltes in twee tegels naast elkaar op dezelfde hoogte beginnen. */
.bh-bus-richting__via { min-height: 18px; font-size: 13px; line-height: 18px; color: var(--bh-muted); }
/* Elke halte: naam en tijd op dezelfde regel, "over … min" eronder; de stip staat bij de naam. */
.bh-bus-route { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.bh-bus-route li { position: relative; display: flex; align-items: flex-start; gap: 10px; min-height: 54px; padding: 6px 0 0 28px; box-sizing: border-box; }
.bh-bus-route li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 4px; background: var(--bh-lijn); }
.bh-bus-route li:first-child::before { top: 18px; }
.bh-bus-route__halte::after { content: ""; position: absolute; left: 4px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--bh-white); border: 3px solid var(--bh-lijn); box-sizing: border-box; }
.bh-bus-route__halte a { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; line-height: 24px; text-decoration: none; overflow-wrap: anywhere; }
.bh-bus-route__halte a:hover { text-decoration: underline; }
.bh-bus-route__tijd { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: 0 0 auto; }
.bh-bus-route__tijd strong { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; line-height: 24px; letter-spacing: -0.01em; }
.bh-bus-route__tijd > span { font-size: 12px; line-height: 16px; color: var(--bh-muted); }
/* "Verder naar …" met de pijl staat onderaan de tegel; de streep loopt door, zodat twee tegels naast elkaar gelijk eindigen. */
.bh-bus-route__eind { flex: 1; align-items: flex-end !important; min-height: 40px; padding: 0 0 2px 28px !important; font-size: 14px; color: var(--bh-ink-3); }
.bh-bus-route__eind::before { bottom: 10px !important; }
.bh-bus-route__eind::after { content: ""; position: absolute; left: 2px; bottom: 2px; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 10px solid var(--bh-lijn); }
.bh-bus-route__eind strong { margin-left: 4px; color: var(--bh-ink); }
.bh-bus-richting__daarna { margin: 0; padding-top: 8px; border-top: 1px solid var(--bh-line); font-size: 13px; color: var(--bh-ink-3); }

/* ---------- Haltes in Blijham ---------- */
.bh-bus-haltelijst { list-style: none; margin: 0 0 10px; padding: 6px 16px; background: var(--bh-white); border-radius: var(--bh-radius-card); box-shadow: var(--bh-shadow-card); }
.bh-bus-haltelijst li + li { border-top: 1px solid var(--bh-line); }
.bh-bus-haltelijst a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; text-decoration: none; }
.bh-bus-haltelijst a:hover strong { text-decoration: underline; }
.bh-bus-haltelijst__naam { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bh-bus-haltelijst__naam strong { font-size: 15px; }
.bh-bus-haltelijst__naam span { font-size: 12px; color: var(--bh-muted); }
.bh-bus-haltelijst__lijnen { display: flex; gap: 4px; }
.bh-bus-haltelijst__lijnen .bh-lijn { height: 24px; min-width: 30px; font-size: 12px; }

/* ---------- Telefoon: de zoekknop over de volle breedte ---------- */
@media (max-width: 599px) {
	.bh-bus-zoek__knop { width: 100%; }
}

/* ---------- Breder ---------- */
@media (min-width: 768px) {
	.bh-bus-lijnblok { padding: 18px 20px 20px; }
	.bh-bus-lijnblok__richtingen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.bh-bus-overzicht { flex-direction: row; align-items: flex-start; }
	.bh-bus-overzicht__lijnen { flex: 1 1 0; }
	.bh-bus-overzicht__zij { flex: 0 0 340px; padding-top: 4px; }
}
