:root {
    --ink: #171c1a;
    --muted: #68706d;
    --paper: #f5f2eb;
    --white: #fff;
    --line: #d9d6ce;
    --green: #ee3124;
    --green-dark: #bd2118;
    --gold: #ee3124;
    --shadow: 0 18px 50px rgba(18, 37, 30, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.site-header { height: 88px; padding: 0 clamp(22px, 5vw, 78px); display: flex; align-items: center; justify-content: space-between; background: var(--white); border-bottom: 1px solid #e8e6e0; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { width: min(250px, 48vw); height: 62px; object-fit: contain; object-position: left center; }
.header-link { color: var(--green-dark); font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }

.hero { padding: clamp(55px, 8vw, 105px) clamp(22px, 6vw, 96px); display: grid; grid-template-columns: minmax(280px, .85fr) minmax(480px, 1.15fr); gap: clamp(44px, 8vw, 130px); color: white; background: radial-gradient(circle at 80% 25%, rgba(238,49,36,.25), transparent 38%), linear-gradient(115deg, #141414, #2a2726); }
.eyebrow { display: block; margin-bottom: 13px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.hero h1 { max-width: 650px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 5.3vw, 76px); font-weight: 400; line-height: .99; letter-spacing: -.035em; }
.hero h1 em { color: #ff786f; font-weight: 400; }
.hero-copy p { max-width: 500px; margin: 26px 0 0; color: #c6d0cb; font-size: 16px; }
.search-panel { align-self: center; padding: clamp(22px, 3vw, 36px); color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 30px 80px rgba(0,0,0,.22); }
label > span:first-child, .sort-form label > span { display: block; margin-bottom: 8px; color: #53605b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
input, select { width: 100%; height: 48px; padding: 0 13px; border: 1px solid #cccac3; border-radius: 0; outline: none; color: var(--ink); background: white; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(238,49,36,.13); }
.input-with-icon { position: relative; display: block; }
.input-with-icon svg { position: absolute; top: 14px; left: 14px; width: 20px; fill: none; stroke: var(--green); stroke-width: 1.7; }
.input-with-icon input { height: 56px; padding-left: 46px; font-size: 16px; }
.search-grid { margin-top: 19px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: end; }
.primary-button { min-height: 49px; padding: 0 24px; border: 1px solid var(--green); color: white; background: var(--green); cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: .2s ease; }
.primary-button:hover { background: var(--green-dark); }
.search-grid .primary-button { grid-column: 1 / -1; }

.results-section { max-width: 1440px; margin: auto; padding: clamp(55px, 7vw, 95px) clamp(22px, 5vw, 72px); }
.results-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.results-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 45px); font-weight: 400; }
.sort-form { width: 210px; }
.sort-form select { height: 43px; }
.vehicle-list { display: grid; gap: 20px; }
.vehicle-card { min-height: 268px; display: grid; grid-template-columns: minmax(300px, 38%) 1fr; overflow: hidden; text-decoration: none; background: white; box-shadow: 0 4px 20px rgba(16, 32, 26, .05); transition: transform .2s ease, box-shadow .2s ease; }
.vehicle-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.vehicle-image-wrap { position: relative; min-height: 268px; overflow: hidden; background: #ddd8ce; }
.vehicle-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.vehicle-card:hover img { transform: scale(1.025); }
.vehicle-card-body { min-width: 0; padding: clamp(24px, 4vw, 43px); display: flex; flex-direction: column; }
.source-line { display: flex; gap: 14px; color: var(--green-dark); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.source-line span + span { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); }
.vehicle-card h3 { margin: 17px 0 25px; font-family: Georgia, serif; font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.08; }
.vehicle-card h3 span { color: var(--gold); }
.vehicle-meta { display: flex; gap: clamp(35px, 7vw, 100px); }
.vehicle-meta span { display: block; color: #343a37; font-size: 15px; }
.vehicle-meta small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.vehicle-meta strong { color: var(--green-dark); font-family: Georgia, serif; font-size: 23px; font-weight: 400; }
.view-link { margin-top: auto; padding-top: 20px; align-self: flex-end; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.view-link span { display: inline-block; margin-left: 7px; font-size: 17px; transition: transform .2s; }
.vehicle-card:hover .view-link span { transform: translateX(4px); }
.empty-state { padding: 80px 25px; text-align: center; border: 1px solid var(--line); background: white; }
.empty-state h3, .empty-state h1 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 35px; font-weight: 400; }
.empty-state p { color: var(--muted); }
.empty-state a { color: var(--green-dark); font-weight: 700; }
.empty-state.standalone { min-height: 65vh; padding-top: 18vh; }
.pagination { margin-top: 35px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pagination a { color: var(--green-dark); text-decoration: none; }
.pagination a:last-child { text-align: right; }

.detail-shell { max-width: 1440px; margin: auto; padding: 35px clamp(22px, 5vw, 72px) 90px; }
.back-link { display: inline-block; margin-bottom: 30px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-decoration: none; text-transform: uppercase; }
.detail-hero { display: grid; grid-template-columns: minmax(400px, 1.15fr) minmax(360px, .85fr); background: white; box-shadow: var(--shadow); }
.detail-image { position: relative; min-height: 570px; background: #ddd8ce; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-intro { padding: clamp(35px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.detail-intro h1 { margin: 21px 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 63px); font-weight: 400; line-height: 1.02; }
.detail-intro h1 span { color: var(--gold); }
.detail-price { margin: 0 0 31px; color: var(--green-dark); font-family: Georgia, serif; font-size: 32px; }
.detail-price small { display: block; color: var(--muted); font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.quick-specs { margin: 0 0 34px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.quick-specs div { padding: 17px 10px 17px 0; border-bottom: 1px solid var(--line); }
.quick-specs dt, .spec-card dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.quick-specs dd { margin: 3px 0 0; font-size: 14px; }
.primary-button.external { align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.detail-content { margin-top: 65px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: clamp(45px, 8vw, 115px); align-items: start; }
.prose + .prose { margin-top: 55px; }
.prose h2, .spec-card h2 { margin: 0 0 25px; font-family: Georgia, serif; font-size: 35px; font-weight: 400; }
.prose p { margin: 0; color: #434a47; font-family: Georgia, serif; font-size: 17px; line-height: 1.85; white-space: normal; }
.spec-card { padding: 34px; background: white; box-shadow: 0 8px 35px rgba(18,37,30,.07); }
.spec-card h2 { font-size: 27px; }
.spec-card dl { margin: 0; }
.spec-card dl div { padding: 12px 0; display: grid; grid-template-columns: 42% 58%; gap: 10px; border-bottom: 1px solid #ebe9e3; }
.spec-card dd { margin: 0; overflow-wrap: anywhere; color: #303633; font-size: 13px; text-align: right; }

.site-footer { padding: 28px clamp(22px, 5vw, 78px); display: flex; justify-content: space-between; gap: 20px; color: #bbb7b5; background: #171717; font-size: 11px; letter-spacing: .04em; }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .search-grid .primary-button { grid-column: auto; }
    .detail-hero { grid-template-columns: 1fr; }
    .detail-image { min-height: 460px; }
    .detail-content { grid-template-columns: 1fr; }
    .spec-card { order: -1; }
}

@media (max-width: 650px) {
    .site-header { height: 74px; }
    .brand img { height: 50px; }
    .header-link { display: none; }
    .hero { padding-top: 48px; gap: 35px; }
    .search-grid { grid-template-columns: 1fr; }
    .search-grid .primary-button { grid-column: 1; }
    .results-heading { align-items: stretch; flex-direction: column; }
    .sort-form { width: 100%; }
    .vehicle-card { grid-template-columns: 1fr; }
    .vehicle-image-wrap { min-height: 225px; }
    .vehicle-card-body { min-height: 275px; }
    .vehicle-meta { justify-content: space-between; }
    .detail-shell { padding-left: 0; padding-right: 0; padding-top: 25px; }
    .back-link { margin-left: 22px; }
    .detail-image { min-height: 320px; }
    .detail-intro { padding: 35px 24px; }
    .detail-content { padding: 0 22px; }
    .spec-card { padding: 26px 21px; }
    .site-footer { flex-direction: column; }
}
