:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #142d26;
  background: #f4f6ef;
  --green: #153b31;
  --ink: #142d26;
  --muted: #52675c;
  --line: #dce5da;
  --lime: #dff48b;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { background: #102823; color: #f8fff1; border-bottom: 1px solid #305147; }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; gap: 10px; align-items: center; font-size: 1.3rem; font-weight: 750; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--lime); display: inline-grid; place-items: center; flex: none; }
.brand-mark::after { content: ""; width: 16px; height: 10px; border: 2px solid #102823; border-top-width: 5px; border-radius: 3px; }
.nav-link { text-underline-offset: 5px; color: #eff7e0; }
.hero { background: #102823; color: #f8fff1; }
.hero-inner { min-height: 300px; padding-block: 54px 76px; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 34px; }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { line-height: 1.12; }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 5.2rem); letter-spacing: -.055em; }
.hero p { color: #c8d9cc; margin-block-start: 18px; max-width: 42ch; font-size: 1.08rem; }
.route-graphic { display: flex; justify-content: space-between; padding-block-start: 24px; border-top: 3px solid #aace84; margin: 50px 20px 0; }
.route-graphic span { position: relative; color: #f4ffe4; font-size: 1.1rem; }
.route-graphic span::before { content: ""; position: absolute; inset: -37px auto auto 0; width: 22px; height: 22px; border: 5px solid #102823; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 2px var(--lime); }
.route-graphic span:last-child::before { inset-inline: auto 0; }
.booking-shell { position: relative; margin-block-start: -34px; display: grid; gap: 22px; }
.card { border: 1px solid var(--line); background: var(--white); padding: clamp(16px, 3vw, 28px); border-radius: 18px; }
.card h2, .directions h2 { margin-block-end: 18px; font-size: 1.52rem; letter-spacing: -.025em; }
.card > .between:first-child { margin-block-end: 16px; }
.card > .between:first-child h2 { margin-block-end: 0; }
#seat-limit { color: var(--muted); }
.card > p:not(.status) { margin-block-end: 14px; color: var(--muted); }
.search-form, .form-grid { display: grid; gap: 14px; align-items: end; }
.search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(140px, .75fr) 78px auto; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full { grid-column: 1 / -1; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 660; }
button, input, select { font: inherit; border-radius: 8px; min-height: 45px; padding: 9px 12px; }
select, input { width: 100%; min-width: 0; background: #fcfdf9; color: var(--ink); border: 1px solid #b7c9b9; }
select { appearance: none; padding-inline-end: 29px; background-image: linear-gradient(45deg, transparent 50%, #496455 50%), linear-gradient(135deg, #496455 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
button { background: var(--green); color: white; border: 1px solid var(--green); font-weight: 680; cursor: pointer; }
button:hover { background: #245747; }
button.secondary { background: #f1f6eb; border: 1px solid #cbdac8; color: var(--ink); }
button.secondary:hover { background: #e5eedc; }
button:disabled { opacity: .57; cursor: default; }
:focus-visible { outline: 3px solid #5d9419; outline-offset: 3px; }
.inline { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; }
.between { justify-content: space-between; align-items: center; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: 18px; height: 18px; min-height: auto; accent-color: var(--green); }
.status { margin-block-start: 12px; color: var(--muted); }
.status:empty { display: none; }
.status[data-error] { color: #a02a25; }
.trip-results { display: grid; gap: 10px; }
.trip-results:not(:empty) { margin-block-start: 18px; }
.result { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; }
.result-main, .result-fare { display: grid; gap: 2px; }
.result small { color: var(--muted); }
.transfer-details { display: grid; gap: 8px; margin-block: 4px; }
.trip-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-block: 4px; }
.trip-time { display: grid; align-content: start; gap: 3px; line-height: 1.25; }
.trip-time + .trip-time { padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.trip-time-label, .trip-time-stop, .trip-time-date { color: var(--muted); }
.trip-time-label { font-weight: 700; }
.trip-time-stop { overflow-wrap: anywhere; }
.trip-time-clock { font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.trip-time-date { font-size: .78rem; font-weight: 600; }
.trip-time-unknown { font-size: .9rem; }
.transfer-wait { font-size: .875rem; padding-block: 7px; border-block: 1px solid var(--line); }
.quote { min-height: 45px; align-content: center; font-weight: 650; }
.success { background: #f0f7df; padding: 14px 16px; border-radius: 9px; overflow-wrap: anywhere; }
.directions { padding: 12px 0 10px; }
.directions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.directions button { text-align: left; background: var(--white); color: var(--green); border-color: var(--line); }
.footer { border-top: 1px solid var(--line); margin-block-start: 28px; padding-block: 18px; display: flex; justify-content: space-between; gap: 10px; color: var(--muted); }
table { width: 100%; border-spacing: 0; text-align: left; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; white-space: nowrap; }
td { font-size: .92rem; }
td button { font-size: .86rem; min-height: 36px; padding: 5px 8px; }
td small { display: block; color: var(--muted); }
dialog { width: min(560px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--ink); }
dialog::backdrop { background: #102823a6; }
@media (max-width: 780px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 42px 65px; min-height: 0; }
  .route-graphic { display: none; }
  .directions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form button { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 24px); }
  .header-row { min-height: 58px; }
  .search-form, .form-grid, .directions-grid { grid-template-columns: 1fr; }
  .result { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result button { grid-column: 1 / -1; }
  .footer { flex-wrap: wrap; }
}
