/* Δήμος Λεβαδέων – Δρομολόγια συγκοινωνίας */
.dl-bus { --c: var(--dl-primary); }

/* Βασικά στοιχεία */
.dl-ui .dl-bus__facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 22px; padding: 0; list-style: none; }
.dl-bus__fact { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 12px; background: var(--dl-bg); border: 1px solid var(--dl-line); font-size: .95rem; line-height: 1.3; }
.dl-bus__fact::before { display: none; }
.dl-bus__fact .dl-ico { width: 20px; height: 20px; color: var(--t, var(--dl-primary)); flex: none; }
.dl-bus__fact--free { background: #e8f5ec; border-color: #b9e0c5; color: #14532d; }
.dl-bus__fact--free .dl-ico { color: #15803d; }
.dl-bus__fact--free strong { font-size: 1.05rem; }

/* Καρτέλες γραμμών */
.dl-bus__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 0 0 18px; }
.dl-ui .dl-bus__tabs button {
	display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 12px 14px; text-align: left; cursor: pointer;
	border: 2px solid var(--dl-line); border-radius: 14px; background: var(--dl-surface); color: var(--dl-ink); font: inherit; line-height: 1.3;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.dl-ui .dl-bus__tabs button:hover { border-color: color-mix(in srgb, var(--c) 55%, #fff); }
.dl-ui .dl-bus__tabs button[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 18%, transparent); }
.dl-ui .dl-bus__tabs button:focus-visible { outline: 3px solid var(--dl-accent); outline-offset: 2px; }
.dl-bus__badge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; font-family: var(--dl-font-head); font-size: 1.35rem; font-weight: 700; }
.dl-bus__tabtxt { display: grid; gap: 2px; min-width: 0; }
.dl-bus__tabtxt strong { font-size: 1.05rem; }
.dl-bus__tabtxt small { color: var(--dl-muted); font-size: .8rem; }

/* Πίνακας γραμμής */
.dl-bus__panel { border-top: 4px solid var(--c); padding-top: 16px; }
.dl-ui .dl-bus__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.dl-bus__chips li { margin: 0; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--dl-ink); font-size: .88rem; }
.dl-bus__chips li::before { display: none; }
.dl-bus__chips strong { color: var(--c); }

/* «Πότε περνάει από τη στάση μου;» */
.dl-bus__finder { padding: 18px 20px; margin: 0 0 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); background: linear-gradient(135deg, color-mix(in srgb, var(--c) 8%, #fff), #fff 70%); }
.dl-bus__label { display: block; margin: 0 0 8px; font-weight: 700; font-size: 1.02rem; }
.dl-ui .dl-bus__select { width: 100%; max-width: 560px; min-height: 46px; padding: 10px 40px 10px 14px; border: 1px solid var(--dl-line); border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; color: var(--dl-ink); }
.dl-ui .dl-bus__select:focus { outline: 3px solid var(--dl-accent); outline-offset: 1px; border-color: var(--c); }
.dl-bus__next { margin: 14px 0 10px; font-size: 1.02rem; }
.dl-bus__next:empty { display: none; }
.dl-bus__next strong { font-size: 1.6rem; font-family: var(--dl-font-head); color: var(--c); margin-right: 6px; }
.dl-bus__next .dl-bus__in { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--c); color: #fff; font-weight: 700; font-size: .9rem; vertical-align: middle; }
.dl-bus__next .dl-bus__none { color: var(--dl-muted); }
.dl-ui .dl-bus__times { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dl-bus__times li { margin: 0; padding: 4px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--dl-line); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .92rem; }
.dl-bus__times li::before { display: none; }
.dl-bus__times li.is-past { color: #9aa1a9; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); background: transparent; }
.dl-bus__times li.is-next { background: var(--c); border-color: var(--c); color: #fff; }

.dl-bus__note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #fff8e6; border: 1px solid #f1dfae; font-size: .92rem; }
.dl-bus__note .dl-ico { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #92400e; }

/* Διαδρομή */
.dl-ui .dl-prose .dl-bus__h3 { margin: 6px 0 12px; font-size: 1.15rem; color: var(--dl-ink); }
.dl-ui .dl-bus__route { columns: 2 300px; column-gap: 28px; margin: 0 0 18px; padding: 0; list-style: none; counter-reset: none; }
.dl-bus__stop { position: relative; margin: 0; padding: 0; break-inside: avoid; }
.dl-bus__stop::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 4px; background: var(--c); opacity: .85; }
.dl-bus__stop.is-start::before { top: 50%; }
.dl-bus__stop.is-end::before { bottom: 50%; }
.dl-ui .dl-bus__stopbtn { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 7px 8px 7px 0; border: 0; border-radius: 8px; background: none; color: var(--dl-ink); font: inherit; font-size: .93rem; line-height: 1.3; text-align: left; cursor: pointer; }
.dl-ui .dl-bus__stopbtn:hover .dl-bus__stopname { color: var(--c); text-decoration: underline; }
.dl-ui .dl-bus__stopbtn:focus-visible { outline: 3px solid var(--dl-accent); outline-offset: 0; }
.dl-bus__dot { position: relative; z-index: 1; flex: none; width: 14px; height: 14px; margin-left: 8px; border-radius: 50%; background: #fff; border: 3px solid var(--c); }
.is-start .dl-bus__dot, .is-end .dl-bus__dot { width: 18px; height: 18px; margin-left: 6px; background: var(--c); box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c); }
.dl-bus__stop.is-current .dl-bus__dot { background: var(--dl-accent); border-color: var(--dl-accent); transform: scale(1.25); }
.dl-bus__stop.is-current .dl-bus__stopname { font-weight: 700; color: var(--c); }
.dl-bus__stopname { flex: 1; min-width: 0; }
.dl-bus__off { flex: none; color: var(--dl-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.is-start .dl-bus__off, .is-end .dl-bus__off { color: var(--c); font-weight: 700; }
.dl-bus__also { display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--c2); color: #fff; font-size: .72rem; font-weight: 700; }

/* Πλήρες πρόγραμμα */
.dl-bus__full { margin: 0 0 16px; border: 1px solid var(--dl-line); border-radius: 12px; background: var(--dl-surface); }
.dl-bus__full > summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 700; color: var(--c); list-style: none; }
.dl-bus__full > summary::-webkit-details-marker { display: none; }
.dl-bus__full > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.dl-bus__full[open] > summary::after { transform: rotate(-135deg); }
.dl-bus__full > summary .dl-ico { width: 18px; height: 18px; }
.dl-bus__full > summary:focus-visible { outline: 3px solid var(--dl-accent); outline-offset: 2px; border-radius: 12px; }
.dl-bus__tablewrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; border-top: 1px solid var(--dl-line); }
.dl-bus__tablewrap:focus-visible { outline: 3px solid var(--dl-accent); outline-offset: -3px; }
.dl-ui .dl-prose .dl-bus__table { display: table; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.dl-ui .dl-prose .dl-bus__table th, .dl-ui .dl-prose .dl-bus__table td { padding: 6px 10px; border: 0; border-bottom: 1px solid var(--dl-line); white-space: nowrap; text-align: center; background: #fff; }
.dl-ui .dl-prose .dl-bus__table thead th { position: sticky; top: 0; z-index: 2; background: var(--c); color: #fff; font-weight: 700; }
.dl-ui .dl-prose .dl-bus__table tbody th { position: sticky; left: 0; z-index: 1; text-align: left; font-weight: 600; color: var(--dl-ink); white-space: normal; min-width: 220px; box-shadow: 1px 0 0 var(--dl-line); }
.dl-ui .dl-prose .dl-bus__table thead th:first-child { left: 0; z-index: 3; text-align: left; }
.dl-ui .dl-prose .dl-bus__table tbody tr:nth-child(even) > * { background: #faf8f5; }
.dl-ui .dl-prose .dl-bus__table td.is-next, .dl-ui .dl-prose .dl-bus__table th.is-next { background: color-mix(in srgb, var(--c) 14%, #fff); font-weight: 700; }
.dl-ui .dl-prose .dl-bus__table thead th.is-next { background: color-mix(in srgb, var(--c) 75%, #000); }
.dl-ui .dl-prose .dl-bus__table tr.is-current > * { background: #fff6d6; }
.dl-bus__num { display: inline-block; min-width: 30px; color: var(--c); font-weight: 700; font-size: .78rem; }

.dl-bus__poster { margin: 0 0 8px; }
.dl-bus__foot { margin-top: 14px; color: var(--dl-muted); font-size: .92rem; }

@media (max-width: 600px) {
	.dl-bus__fact { font-size: .88rem; padding: 8px 12px; }
	.dl-bus__finder { padding: 14px; }
	.dl-ui .dl-prose .dl-bus__table tbody th { min-width: 160px; }
}
@media print {
	.dl-bus__finder, .dl-bus__tabs { display: none; }
	.dl-bus__panel[hidden] { display: block !important; }
	.dl-bus__full > div { max-height: none; overflow: visible; }
}
html.dl-hc .dl-bus__fact, html.dl-hc .dl-bus__finder, html.dl-hc .dl-bus__chips li, html.dl-hc .dl-bus__times li { background: #000; color: #fff; border-color: #fff; }
