:root {
  color-scheme: light;
  --blue: #1c69d4;
  --blue-dark: #0653b6;
  --ink: #262626;
  --muted: #666;
  --line: #dedede;
  --surface: #f6f6f6;
  --success: #177245;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: white; font: 16px/1.45 "Segoe UI", Arial, sans-serif; }
button, select { font: inherit; }
.site-header { height: 76px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: white; background: var(--blue); border-radius: 50%; letter-spacing: -2px; }
.state-label { color: var(--muted); }
.hero { min-height: 270px; padding: 54px clamp(20px, 7vw, 108px); color: white; background: linear-gradient(110deg, #101820 10%, #233446 58%, #1c69d4 160%); }
.hero h1 { margin: 5px 0 10px; max-width: 780px; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; font-weight: 400; }
.hero p:last-child { margin: 0; color: #e5e9ee; font-size: 19px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .14em; font-weight: 700; }
.inventory-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 44px; max-width: 1500px; margin: auto; padding: 48px clamp(20px, 5vw, 76px) 70px; }
.filters { align-self: start; position: sticky; top: 18px; padding: 26px; background: var(--surface); }
.filter-heading, .results-header, .price-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.filter-heading h2 { margin: 0; font-size: 21px; }
.text-button { border: 0; padding: 4px; color: var(--blue-dark); background: none; cursor: pointer; font-weight: 600; }
.filters > label:not(.check-row) { display: block; margin: 24px 0 7px; font-size: 14px; font-weight: 600; }
select { min-height: 46px; border: 1px solid #aaa; border-radius: 0; padding: 9px 34px 9px 12px; background: white; color: var(--ink); }
.filters select { width: 100%; }
.check-row { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); cursor: pointer; }
.check-row input { width: 20px; height: 20px; accent-color: var(--blue); }
.check-row span { display: grid; gap: 4px; }
.check-row small { color: var(--muted); }
.results-header { align-items: end; margin-bottom: 20px; }
.results-header h2 { margin: 3px 0 0; font-size: 32px; font-weight: 400; }
.sort-label { display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-chip { padding: 7px 10px; border: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; }
.vehicle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.vehicle-card { min-width: 0; border: 1px solid var(--line); background: white; transition: box-shadow .2s, transform .2s; }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px #00000016; }
.vehicle-image-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e9ebed; }
.vehicle-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.condition-badge { position: absolute; left: 14px; top: 14px; padding: 6px 10px; color: white; background: #202020e6; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.vehicle-body { padding: 22px; }
.dealer-name { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.vehicle-title { margin: 0; font-size: 23px; font-weight: 500; }
.vehicle-subtitle { margin: 3px 0 17px; color: var(--muted); }
.vehicle-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 15px 0; border-block: 1px solid var(--line); font-size: 14px; }
.fact { display: grid; }
.fact small { color: var(--muted); }
.package-row { min-height: 45px; padding: 14px 0 4px; font-size: 13px; }
.dapp-yes { color: var(--success); font-weight: 700; }
.dapp-unknown { color: var(--muted); }
.price-row { align-items: end; margin-top: 16px; }
.price-row > div { display: grid; }
.price-row small { color: var(--muted); }
.vehicle-price { font-size: 25px; }
.info-link { padding: 12px 14px; color: white; background: var(--blue); text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; }
.info-link:hover { background: var(--blue-dark); }
.empty-state { padding: 70px 20px; background: var(--surface); text-align: center; font-size: 20px; }
.source-panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; padding: 54px clamp(20px, 7vw, 108px); background: var(--surface); }
.source-panel h2 { margin: 4px 0 8px; font-size: 30px; font-weight: 400; }
.source-panel p:last-child { color: var(--muted); }
.source-list { display: grid; gap: 10px; }
.source-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 16px; background: white; border-left: 4px solid var(--success); }
.source-item.blocked { border-left-color: #ba7400; }
.source-item a { color: var(--ink); font-weight: 700; }
.source-item small { grid-column: 1/-1; color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 25px clamp(20px, 5vw, 76px); color: var(--muted); font-size: 13px; }

@media (max-width: 1000px) {
  .inventory-shell { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .filter-heading, .check-row { grid-column: 1/-1; }
}
@media (max-width: 720px) {
  .state-label { display: none; }
  .inventory-shell { padding-inline: 16px; }
  .filters { display: block; }
  .vehicle-grid, .source-panel { grid-template-columns: 1fr; }
  .results-header { align-items: start; flex-direction: column; }
  .sort-label { width: 100%; grid-template-columns: auto 1fr; }
  .sort-label select { width: 100%; }
  .price-row { align-items: stretch; flex-direction: column; }
  footer { flex-direction: column; }
}
