/* Cab pages: journeys, the rate table and the per-route vehicle rows.
   Uses only the site's tokens; pages/test_cabs.py rejects any other colour. */
.cab-operator { margin-top: 1rem; color: var(--fg-3); font-size: .8125rem; }
.cab-operator a { color: var(--fg-2); }
.cab-contact-note { max-width: 34rem; margin-top: .4rem; color: var(--fg-3); font-size: .8125rem; }

/* ---------- Journeys: the same list as the homepage ---------- */
.journeys { padding-block: clamp(2.25rem, 4vw, 3.25rem); }
.journey-list { padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.journey { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; align-items: center; gap: clamp(.9rem, 2.5vw, 1.75rem); padding: .85rem .4rem; border-bottom: 1px solid var(--border); color: var(--fg); text-decoration: none; transition: background-color .15s; }
.journey:hover { background: var(--subtle); }
.journey-photo { display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--subtle-2); }
.journey-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.journey[data-photo="gopuram"] img { object-position: 45% 40%; }
.journey-title { font: 600 1.35rem/1.25 var(--display); letter-spacing: 0; color: var(--deep); transition: color .15s; }
.journey:hover .journey-title { color: var(--accent); }
.journey-price { color: var(--fg); font: 650 1rem/1.2 var(--sans); white-space: nowrap; }
.journey-price small { color: var(--fg-3); font-size: .8125rem; font-weight: 500; margin-right: .15rem; }

/* ---------- Fares band ---------- */
.fares { padding-block: clamp(2.5rem, 4.5vw, 4rem); border-block: 1px solid var(--border); }
.fares-note { max-width: 34rem; color: var(--fg-3); font-size: .875rem; line-height: 1.55; }
.fares-note a { color: var(--fg-2); }
.fares .table-scroll { padding: .2rem 1.15rem; border: 1px solid var(--border); border-top: 2px solid var(--gold); background: var(--surface); }

/* ---------- Rate table ---------- */
table.rate-table { font-size: .875rem; }
table.rate-table thead th { padding-top: .85rem; text-align: right; vertical-align: bottom; }
table.rate-table thead th:first-child { text-align: left; }
.rate-vehicle { display: inline-flex; align-items: center; gap: .35rem; color: var(--fg); font-size: .875rem; font-weight: 650; }
.rate-vehicle .ico { width: .95rem; height: .95rem; color: var(--fg-3); }
.rate-seats { display: block; margin-top: .15rem; color: var(--fg-3); font-size: .75rem; font-weight: 500; }
table.rate-table tbody th { width: 38%; padding-block: .7rem; font-weight: 500; }
table.rate-table tbody th a { color: var(--fg); font-weight: 600; text-decoration: none; }
table.rate-table tbody th a:hover { color: var(--accent); }
table.rate-table td { padding: .7rem 0 .7rem .75rem; text-align: right; vertical-align: middle; }
table.rate-table .rate-group th { width: auto; padding: 1.4rem 0 .4rem; border-bottom: 2px solid var(--gold); color: var(--deep); font: 600 1.3rem/1.25 var(--display); }
table.rate-table .rate-group th a { color: var(--deep); font-weight: 600; text-decoration: none; }
table.rate-table .rate-group th a:hover { color: var(--accent); }
table.rate-table tbody tr.rate-group:first-child th { padding-top: .75rem; }
.rate-detail { display: block; margin-top: .15rem; color: var(--fg-3); font-size: .75rem; line-height: 1.45; }
.rate-fare { display: inline-flex; align-items: center; justify-content: flex-end; gap: .3rem; padding: .25rem .45rem; border-radius: var(--r-sm); color: var(--fg); font: 650 .9375rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
a.rate-fare:hover { background: var(--accent-soft); color: var(--accent); }
.rate-fare .ico { width: .85rem; height: .85rem; color: var(--fg-3); opacity: .75; }
a.rate-fare:hover .ico { color: currentColor; opacity: 1; }
.rate-foot { max-width: 60rem; margin-top: 1rem; color: var(--fg-3); font-size: .8125rem; line-height: 1.55; }

/* ---------- Route page: one product, four car rows ---------- */
.product + .product { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.product-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 2rem; margin-bottom: .5rem; }
.product-head h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--deep); }
.product-detail { max-width: min(40rem, 60ch); margin-top: .2rem; color: var(--fg-3); font-size: .875rem; line-height: 1.5; }
.product-extra { color: var(--fg-3); font-size: .8125rem; line-height: 1.5; }
.vehicle-rows { padding: 0; list-style: none; }
.vehicle { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.05rem; border-bottom: 1px solid var(--border); }
.vehicle:first-child { border-top: 1px solid var(--border-strong); }
.vehicle-info { display: grid; gap: .15rem; }
.vehicle h4 { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--deep); }
.vehicle-meta { color: var(--fg-3); font-size: .8125rem; line-height: 1.45; }
.vehicle-action { display: flex; align-items: center; gap: 1.25rem; }
.vehicle-price { color: var(--fg); font: 650 1.35rem/1.1 var(--sans); letter-spacing: -.02em; white-space: nowrap; }
.vehicle-price small { display: block; margin-top: .2rem; color: var(--fg-3); font-size: .8125rem; font-weight: 500; letter-spacing: 0; white-space: normal; }

@media (max-width: 640px) {
  .journey { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: .75rem; padding: .7rem .2rem; }
  .journey-title { font-size: 1.15rem; }
  .journey-price { font-size: .9375rem; text-align: right; }
  .vehicle { flex-wrap: wrap; }
  .vehicle-action { margin-left: auto; }
  .vehicle-price { font-size: 1.2rem; text-align: right; }
}
@media (max-width: 760px) {
  .fares .table-scroll { padding: 0 .9rem; }
  table.rate-table tbody th { width: auto; padding-bottom: .25rem; }
  table.rate-table .rate-group th { padding: 1.3rem 0 .35rem; }
  table.rate-table td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .2rem 0; text-align: left; }
  table.rate-table td[data-label]::before { content: attr(data-label); color: var(--fg-3); font-size: .8125rem; font-weight: 500; }
  table.rate-table tr:not(.rate-group) { padding-block: .7rem; }
  table.rate-table tr.rate-group { padding: 0; border-bottom: 0; }
  .rate-fare { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .journey, .journey-photo img, .vehicle, .rate-fare { transition: none; }
}
/* Route selection is a native, keyboard-accessible control at phone sizes. */
.fare-filter { display: grid; gap: .65rem; max-width: 36rem; margin-bottom: 1.5rem; }
.fare-filter[hidden], .rate-table tbody[hidden] { display: none; }
.fare-filter label { color: var(--on-deep); font-size: 1rem; font-weight: 650; }
.fare-filter select { width: 100%; min-height: 3rem; padding: .75rem; border: 1px solid var(--border-strong); border-radius: 0; background: var(--surface); color: var(--fg); font: inherit; }
.fare-filter p { color: var(--on-deep-2); font-size: .875rem; }
