/* Car-rental comparison page. Page-private on purpose: this vertical is
   dark-launched behind CAR_RENTAL_ENABLED (PRD §1.4), so nothing it needs may
   sit in app.css where it could repaint a live page. Tokens come from
   tokens.css, which the layout loads first. */

.car-grid { align-items: flex-start; }
.car-grid .field { flex: 1 1 150px; }
.car-grid select {
  width: 100%; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 700; border: none;
}
.car-form-note { margin: 12px 2px 0; font-size: 13px; color: var(--ink-2); }

.car-vendor { margin-top: 24px; }
.car-vendor-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px; font-size: 15px; font-weight: 800;
}
.car-vendor-note {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); border-radius: 999px; padding: 3px 12px;
  margin: 8px 0;
}

.car-result-card { margin-top: 16px; }
.car-result-card .car-card-microcopy {
  margin: 0; font-size: 12px; color: var(--ink-2); line-height: 1.4;
}
.car-result-card .fc-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}

/* Car product shots need a wider frame than hotel thumbs (130×100). Contain
   (not cover) so the whole vehicle stays visible on white studio backgrounds. */
.car-result-card .h-photo {
  width: 200px;
  height: 140px;
  background: var(--surface-2);
}
.car-result-card .h-photo image-slot,
.car-result-card .h-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 559px) {
  .car-result-card .h-photo {
    width: 148px;
    height: 104px;
  }
}

/* Capacity facts under the car title — icon-led quiet soft pills (not middot prose). */
.car-result-card .car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.car-result-card .car-spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-block: 3px;
  padding-inline: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: var(--t24-text-micro);
  font-weight: 600;
  line-height: 1.4;
}
.car-result-card .car-spec-text {
  color: var(--ink-2);
  font-weight: 600;
}
.car-result-card .car-spec-icon {
  flex: 0 0 auto;
  display: block;
  color: var(--ink-2);
}

.car-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.car-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 16px; display: flex;
  flex-direction: column; gap: 10px;
}
.car-card-title { margin: 0; font-size: 15px; font-weight: 800; }
.car-card-price { font-size: 18px; font-weight: 800; color: var(--brand); }
.car-card-unit { font-size: 12px; font-weight: 700; color: var(--ink-2); margin-inline-start: 6px; }
.car-card-terms { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-2); }
.car-card-terms li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.car-card-terms .is-unknown { color: var(--ink-2); font-style: normal; opacity: .8; }
.car-card-cta {
  margin-top: auto; background: var(--brand); color: var(--on-brand);
  border-radius: var(--r-m); min-height: 44px; display: flex;
  align-items: center; justify-content: center; font-weight: 800;
  font-size: 14px; text-decoration: none;
}
.car-card-microcopy { font-size: 12px; color: var(--ink-2); text-align: center; }

.car-empty, .car-error {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-l); padding: 20px; text-align: center; color: var(--ink-2);
}

.car-facts-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.car-facts-table th, .car-facts-table td {
  border-bottom: 1px solid var(--line); padding: 10px 4px;
  text-align: start; vertical-align: top;
}
.car-facts-table th { width: 30%; font-weight: 700; color: var(--ink-2); }

.car-airport-list, .car-steps { padding-inline-start: 18px; line-height: 2; }
.car-airport-list { list-style: none; padding-inline-start: 0; }
.car-trust-note { font-size: 13px; color: var(--ink-2); }

.car-results-chrome {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px;
}
.car-results-q-wrap { display: flex; }
.car-results-q {
  width: 100%; max-width: 420px;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 10px 14px; border: 1px solid var(--line);
  border-radius: var(--r-m); background: var(--surface); color: var(--ink);
}
.car-results-q::placeholder { color: var(--ink-2); font-weight: 500; }
/* .fsort ships with viewport gutters for flight/hotel full-bleed bars;
   car results already sit inside .container — zero the nested padding. */
.car-results-chrome .fsort { padding: 0; overflow-x: auto; }
.car-results-count {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  margin: 8px 0 0;
}
