/* Car Rentals: the Fare Engine's look (engine.css), plus the company table and car cards. */
.srow.places { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.sfoot .actions { margin-left: auto }
.sfoot .elsewhere { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center }
.elsewhere a { color: var(--accent); font-weight: 700; text-decoration: none }
.elsewhere a:hover { text-decoration: underline }
.sub-h { font: 700 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 4px 0 8px }

.table-wrap { overflow-x: auto; margin-inline: -4px }
table.companies { width: 100%; border-collapse: collapse; font-size: 14px }
.companies th { text-align: left; font: 700 11px/1.2 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap }
.companies td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle }
.companies tr:last-child td { border-bottom: 0 }
.companies .num { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums }
.companies tbody tr { cursor: pointer; transition: background .15s ease }
.companies tbody tr:hover td { background: var(--surface-2) }
.companies tbody tr[aria-selected="true"] td { background: var(--accent-soft) }
.companies .who { display: flex; gap: 10px; align-items: center; font-weight: 700; min-width: 14ch }
.companies .desk { font-size: 12px; color: var(--muted); max-width: 40ch; overflow-wrap: anywhere }
.logo { width: 64px; height: 20px; object-fit: contain; object-position: left center; flex: none; border-radius: 4px; background: #fff; padding: 2px 4px; box-sizing: content-box }
.logo.gone { display: none }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line) }
.toolbar .field { min-width: 150px; background: var(--surface); padding: 6px 12px; margin-left: auto }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chipbtn { font: 600 13px/1 var(--body); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px }
.chipbtn:hover { filter: none; border-color: var(--accent) }
.chipbtn[aria-pressed="true"] { color: var(--ink); background: var(--accent-soft); border-color: var(--accent) }

.car .what { display: grid; gap: 8px; align-content: start }
.car .who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-weight: 700; font-size: 14px }
.car .model { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15 }
.car .model small { display: block; font: 500 13px/1.4 var(--body); color: var(--muted); letter-spacing: 0 }
.specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0 }
.specs li { font: 600 12px/1 var(--body); padding: 6px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line) }
.specs li.good { color: var(--good); background: var(--good-soft); box-shadow: none }
.car .desk { font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.side .per { font-size: 12px; color: var(--muted) }
@media (max-width: 640px) {
  .srow.places { gap: 10px }
  .srow.places .field:first-child, .srow.places .field:last-child { margin: 0 }
  .srow.places { grid-template-columns: minmax(0, 1fr) }
  .toolbar .field { margin-left: 0 }
}

/* ---- Sources ---- */
.engines { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) }
.engine { border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; display: grid; gap: 4px; background: var(--surface-2) }
.engine .name { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center }
.engine .price { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1 }
.engine.err { border-color: var(--bad-soft) }
.engine.err .detail { color: var(--bad) }
.engine .detail { overflow-wrap: anywhere }
.dot { margin-right: 6px }
.found { display: inline-flex; gap: 2px }
.found .dot { margin: 0 }
.model-row { display: flex; gap: 14px; align-items: center }
.pic { width: 96px; height: 56px; object-fit: contain; flex: none }
.prices { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; min-width: 15ch }
.prices li { display: flex; align-items: center; gap: 0; justify-content: flex-end }
.prices a { color: var(--accent); font-weight: 600; text-decoration: none; margin-right: 8px }
.prices a:hover { text-decoration: underline }
.prices b { font-family: var(--display); font-variant-numeric: tabular-nums }
