:root {
  --forest: #172b32;
  --deep: #0d2027;
  --green: #61727b;
  --lime: #c7f464;
  --orange: #ff8665;
  --paper: #f7f9f5;
  --line: #dce6e4;
  --muted: #61727b;
  --ink: #172b32;
  --white: #fff;
  --radius-card: 18px;
  --shadow-card: 0 16px 44px rgb(17 43 50 / 9%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { background: var(--paper); color: var(--ink); font-family: Inter, Manrope, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #416c31; outline-offset: 3px; }

.brand { gap: 9px; color: var(--forest); letter-spacing: -.5px; }
.brand-symbol { display: block; width: 42px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.brand-wordmark { white-space: nowrap; font-size: 20px; font-weight: 850; letter-spacing: -.9px; }
.brand-as { color: #516b2d; }
.top { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 max(24px, calc((100vw - 1320px)/2)); background: rgb(255 255 255 / 96%); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgb(23 43 50 / 4%); backdrop-filter: blur(12px); }
.top nav { display: flex; gap: clamp(16px, 2.2vw, 32px); color: #53646b; font-size: 14px; font-weight: 650; }
.top nav a:hover, .login-link:hover { color: var(--forest); }
.top-actions { gap: 18px; }
.button, .searchbar button, .newsletter form button { background: var(--orange); color: var(--forest); border-radius: 9px; font-size: 13px; font-weight: 800; box-shadow: 0 5px 14px rgb(255 134 101 / 24%); }
.button:hover, .searchbar button:hover, .newsletter form button:hover { background: #ff987b; transform: translateY(-1px); }
.button.small { padding: 12px 18px; }
.button.light { background: var(--lime); color: var(--forest); box-shadow: none; }
.button.outline { color: var(--forest); border-color: #b8c6c8; background: white; box-shadow: none; }
.login-link, .text-link { color: var(--forest); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); min-height: 570px; overflow: hidden; background: var(--deep); }
.hero-main { z-index: 2; display: flex; flex-direction: column; justify-content: center; padding: 74px 34px 74px max(7vw, calc((100vw - 1320px)/2)); color: white; }
.hero-main .eyebrow { color: #d1e2df; }
.hero .eyebrow { font-size: 11px; letter-spacing: 1.4px; }
.hero .eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
h1, h2, h3 { color: var(--forest); }
.hero h1 { max-width: 630px; margin: 18px 0 18px; color: white; font-size: clamp(48px, 5.4vw, 76px); line-height: .99; letter-spacing: -3.7px; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-sub { max-width: 500px; margin: 0 0 26px; color: #e0e9e7; font-size: 16px; line-height: 1.7; }
.hero-modes { display: flex; gap: 7px; width: fit-content; margin: 0 0 11px; padding: 5px; border: 1px solid rgb(255 255 255 / 24%); border-bottom: 0; border-radius: 12px 12px 0 0; background: rgb(255 255 255 / 9%); }
.hero-modes a, .hero-modes button { min-width: 92px; padding: 9px 14px; border: 0; border-radius: 8px; background: transparent; color: #e8efed; text-align: center; font-size: 13px; font-weight: 750; }
.hero-modes a:first-child { background: white; color: var(--forest); }
.hero-modes a:hover, .hero-modes button:hover { background: rgb(255 255 255 / 16%); color: white; }
.searchbar { max-width: 650px; min-height: 65px; padding: 7px 8px 7px 17px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 0 12px 12px 12px; box-shadow: 0 15px 34px rgb(0 0 0 / 19%); }
.searchbar>span { color: #61727b; }
.searchbar input { font-size: 14px; }
.searchbar button { height: 49px; padding: 0 19px; white-space: nowrap; }
.hero-foot { margin-top: 20px; color: #dce7e4; font-size: 12px; }
.hero-foot b { color: white; }
.hero-foot .hero-sep { color: #80949a; }
.hero-note { color: #dce7e4; }
.hero-image { position: relative; min-height: 570px; margin: 0; overflow: hidden; border-radius: 0; background: #314c53; }
.hero-image:before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgb(13 32 39 / 78%) 0%, rgb(13 32 39 / 23%) 28%, rgb(13 32 39 / 4%) 70%), linear-gradient(0deg, rgb(13 32 39 / 50%), transparent 50%); content: ""; }
.hero-image .hero-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% 56%; }
.hero-image .hero-cars { position: absolute; z-index: 1; right: 1%; bottom: 4%; width: 87%; max-height: 78%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 16px 19px rgb(0 0 0 / 28%)); }
.image-stamp { z-index: 2; left: auto; right: 7%; bottom: 8%; padding: 14px 17px; border-radius: 12px; color: #546a70; font-size: 11px; box-shadow: var(--shadow-card); }
.image-stamp b { color: var(--forest); font-size: 13px; }
.stamp-icon { color: #567a0a; }
.image-credit { z-index: 2; top: auto; right: 6%; bottom: 3%; color: white; font-size: 9px; text-shadow: 0 1px 4px #000; }
.hero-watermark { z-index: 2; top: 19%; right: 3%; writing-mode: horizontal-tb; color: white; font-size: 12px; font-style: italic; text-shadow: 0 2px 9px #000; }
.trust-strip { height: auto; min-height: 76px; gap: clamp(20px, 6vw, 85px); padding: 16px 24px; color: #42565d; font-size: 13px; font-weight: 650; }
.trust-strip span { color: #5a771e; }

.section { padding: 82px max(24px, calc((100vw - 1250px)/2)); }
.section-top { align-items: end; }
.section h2, .why h2, .approach h2, .partner h2 { margin: 10px 0 8px; font-size: clamp(29px, 3vw, 42px); letter-spacing: -1.7px; }
.section-top p, .partner>div:first-child>p { color: #61727b; font-size: 15px; }
.eyebrow { color: #516b2d; font-weight: 800; }
.muted { color: #61727b; }
.dot, h1 em, h2 em { color: #516b2d; }
.tabs { gap: 8px; margin-top: 32px; border-bottom: 1px solid var(--line); }
.tab { padding: 13px 18px; border-radius: 10px 10px 0 0; color: #61727b; font-size: 13px; font-weight: 700; }
.tab.active { color: var(--forest); border-bottom: 3px solid var(--lime); }
.filter-row { gap: 18px; margin: 22px 0 18px; color: #61727b; font-size: 14px; }
.filter-controls { gap: 10px !important; }
.filter-controls label { color: #53656b; font-size: 13px; font-weight: 700; }
.filter-controls select, .filter-controls input { height: 44px; min-width: 120px; border: 1px solid #d4dfdf; border-radius: 9px; background: white; color: var(--forest); font-size: 14px; }
.car-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.car-card { border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 5px 18px rgb(23 43 50 / 4%); }
.car-card:hover { box-shadow: var(--shadow-card); }
.card-photo { height: 236px; }
.listing-badge, .reserve-badge { top: 14px; left: 14px; border-radius: 999px; background: white; color: var(--forest); font-size: 10px; }
.reserve-badge { left: auto; right: 14px; background: var(--lime); }
.car-body { padding: 18px 19px 17px; }
.car-title { font-size: 18px; color: var(--forest); }
.car-spec { color: #61727b; font-size: 13px; }
.car-tags span { border-radius: 999px; background: #eef2f1; color: #52636a; font-size: 11px; }
.car-bottom b { color: var(--forest); font-size: 21px; }
.car-bottom small, .region, .origin-tag { color: #61727b; font-size: 12px; }
.origin-tag { margin-top: 10px; }
.demo-notice, .photo-attribution, .market-reference { border-color: #d8e1da; border-radius: 12px; background: #f0f4eb; color: #516159; }
.empty { color: var(--forest); }
.empty h3 { font-size: 22px; }
.empty p { color: #61727b; font-size: 14px; }
.skeleton { border-radius: 18px; }

.why { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 7%; padding: 20px max(24px,calc((100vw - 1250px)/2)) 84px; }
.why-photo { min-height: 500px; border-radius: 20px; background: #dce5e2; }
.why-photo-content { color: var(--forest); }
.why-copy>p, .approach-copy>p, .proof p { color: #61727b; font-size: 15px; }
.proof>div { gap: 15px; }
.proof>div>span { color: #5d7c1b; font-weight: 800; }
.proof b { color: var(--forest); font-size: 15px; }
.approach { gap: 8%; padding: 78px max(24px,calc((100vw - 1150px)/2)); background: #eaf0ed; }
.approach-copy h2 { max-width: 460px; font-size: clamp(32px, 3.4vw, 46px); }
.report-demo, .checklist { border-color: var(--line); border-radius: 16px; box-shadow: 0 5px 20px rgb(23 43 50 / 4%); }
.report-icon, .check-star, .check-ok { background: #eff6dc; color: #405c15; }
.disclosure-chip { color: #81513e; background: #fff0e9; }
.seller-band { min-height: 330px; padding: 58px max(7vw,calc((100vw - 1180px)/2)); background: var(--forest); }
.seller-content h2 { font-size: clamp(34px,4vw,49px); }
.seller-content .eyebrow, .seller-content h2 em { color: var(--lime); }
.seller-content>p { color: #d5e0de; font-size: 15px; }
.partner { gap: 8%; background: white; }
.partner-cards { gap: 18px; }
.partner-cards>div { padding: 23px; border-radius: 15px; box-shadow: 0 5px 20px rgb(23 43 50 / 4%); }
.partner-cards>div>span { color: #526b2d; }
.partner-cards b { color: var(--forest); font-size: 14px; }
.partner-cards p { color: #61727b; font-size: 14px; }
.newsletter { margin: 0 max(24px,calc((100vw - 1250px)/2)) 60px; padding: 25px 30px; border-radius: 15px; background: #eaf0ed; }
.newsletter b { color: var(--forest); }
.newsletter form input { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.newsletter form button { height: 44px; }
footer { grid-template-columns: auto 1fr auto; padding: 28px max(24px,calc((100vw - 1320px)/2)); color: #61727b; font-size: 11px; }
footer .brand { color: var(--forest); }
footer>div a:hover { color: var(--forest); }

/* Supporting pages and all shared application panels */
.beta-banner { background: #fff1e9; color: #713e2e; }
.price-back, .price-card .price { color: var(--forest); }
.price-grid { gap: 16px; }
.price-card { border-color: var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgb(23 43 50 / 5%); }
.price-card.featured { border: 2px solid var(--lime); }
.price-notes section { background: #eaf0ed; }
:where(body > main[style], body > main:not(#home)) { color: var(--ink); }
body > main:not(#home) a { color: #36540f; text-decoration-thickness: 1px; text-underline-offset: 2px; }
body > main:not(#home) h1, body > main:not(#home) h2, body > main:not(#home) h3 { color: var(--forest); }

#toast { z-index: 120; border: 1px solid rgb(255 255 255 / 17%); border-radius: 12px; background: var(--forest); box-shadow: 0 12px 35px rgb(0 0 0 / 24%); font-size: 13px; }
dialog { width: min(760px,calc(100% - 32px)); max-height: min(90dvh,900px); padding: 30px; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 26px 100px rgb(8 25 31 / 36%); overflow-x: hidden; }
dialog::backdrop { background: rgb(8 25 31 / 68%); backdrop-filter: blur(5px); }
.modal-close { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--forest); font-size: 23px; }
dialog h2 { max-width: calc(100% - 48px); font-size: clamp(24px,4vw,34px); letter-spacing: -1.3px; }
dialog p { line-height: 1.65; }
.form-grid { gap: 15px; }
.form-grid, #modal-content, .issue-list, .issue { min-width: 0; }
.issue-list { grid-template-columns: minmax(0, 1fr); }
.form-grid label, .issue label, #report-form label { color: #455960; font-size: 14px; }
.form-grid input, .form-grid select, .form-grid textarea, .issue textarea, .issue select, #report-form textarea { min-height: 46px; border-color: #cfdcdd; border-radius: 9px; color: var(--forest); font-size: 15px; }
#modal-content input, #modal-content select, #modal-content textarea { max-width: 100%; }
#modal-content input[type="file"] { width: 100%; min-width: 0; font-size: 12px; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid rgb(199 244 100 / 46%); border-color: #637d36; }
.detail-cover { height: clamp(240px,28vw,340px); border-radius: 16px; }
.detail-gallery button { flex-basis: 104px; height: 78px; border-radius: 10px; }
.detail-gallery button:focus-visible, .detail-gallery button:hover { border-color: var(--orange); }
.detail-meta { flex-wrap: wrap; gap: 12px 24px; color: #61727b; font-size: 14px; }
.detail-meta span:first-child { color: var(--forest); font-size: 22px; }
.report-heading h3 { color: var(--forest); }
.report-warning, .seller-note { border-radius: 9px; background: #fff5e9; color: #725638 !important; }
.issue { padding: 16px; border-color: var(--line); border-radius: 13px; background: white; }
.issue-top { gap: 12px; }
.issue-top>b { color: var(--forest); font-size: 15px; }
.issue p { color: #56676c; font-size: 14px; line-height: 1.65; }
.detail-actions button { min-height: 46px; }
.auction-panel { border: 1px solid var(--line); border-radius: 14px; background: #f2f5ed; }
.dashboard-links { gap: 10px; }
.dash-item { min-height: 55px; color: #344950; font-size: 14px; }
.dash-item small { color: #61727b; font-size: 12px; }
.status-chip { border-radius: 999px; background: #f1f3e5; color: #5e5a37; }
.chat-feed { background: #f4f7f5; border-color: var(--line); border-radius: 14px; }
.chat-bubble { border-color: var(--line); border-radius: 14px; }
.chat-bubble.mine { background: #eff7d9; border-color: #dcebb5; }
.chat-bubble b { color: var(--forest); }
.message-report-item { border-color: var(--line); border-radius: 14px; }
.upload-label, .photo-picker { border-color: #b7c7c5; border-radius: 12px; background: #f3f7f5; }

.mobile-nav { background: rgb(255 255 255 / 98%); border-top-color: var(--line); box-shadow: 0 -6px 25px rgb(18 43 50 / 7%); }
.mobile-nav a, .mobile-nav button { color: #61727b; }
.mobile-nav a:active, .mobile-nav button:active { color: var(--forest); }
.mobile-nav button:nth-child(3), .mobile-nav #mobile-sell { color: var(--forest); background: var(--lime); border-radius: 13px; }

@media (max-width: 1050px) {
  .top { padding-inline: 22px; }
  .top nav { gap: 15px; font-size: 12px; }
  .top-actions { gap: 12px; }
  .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .hero-main { padding-left: 6vw; }
  .hero h1 { font-size: clamp(48px,6vw,64px); }
  .hero-foot { flex-wrap: wrap; }
  .section { padding-inline: 5vw; }
  .why { padding-inline: 5vw; }
  .filter-row { align-items: stretch; flex-direction: column; }
  .filter-controls { display: grid !important; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-controls label { min-width: 0; }
  .filter-controls select, .filter-controls input { width: 100%; min-width: 0; }
  .car-grid { gap: 15px; }
  .card-photo { height: 200px; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); font-size: 14px; }
  .top { height: 66px; padding: 0 16px; }
  .brand { gap: 6px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-wordmark { font-size: 18px; }
  .top nav { display: none; }
  .top-actions { gap: 10px; }
  .top-actions>.button { padding: 10px 12px; font-size: 11px; }
  .login-link { font-size: 11px; }
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hero-main { padding: 42px 20px 24px; }
  .hero h1 { margin: 15px 0 12px; font-size: clamp(43px,11vw,62px); letter-spacing: -2.5px; }
  .hero-sub { margin-bottom: 20px; font-size: 14px; }
  .hero-modes { width: 100%; justify-content: stretch; margin-bottom: 8px; padding: 4px; border-radius: 12px 12px 0 0; }
  .hero-modes a, .hero-modes button { flex: 1; min-width: 0; padding: 10px 7px; font-size: 12px; }
  .searchbar { min-height: 58px; border-radius: 0 0 12px 12px; gap: 7px; padding: 6px 6px 6px 12px; }
  .searchbar input { font-size: 12px; }
  .searchbar button { height: 44px; padding: 0 12px; font-size: 11px; }
  .hero-foot { margin-top: 16px; font-size: 11px; }
  .hero-image .hero-cars { width: 95%; max-height: 88%; }
  .image-stamp { top: 10px; right: auto; bottom: auto; left: 10px; padding: 10px 12px; font-size: 9px; }
  .image-stamp b { font-size: 10px; }
  .image-credit { display: block; top: auto; right: auto; bottom: 8px; left: 10px; font-size: 8px; }
  .hero-watermark { top: 9%; right: 6%; font-size: 10px; }
  .trust-strip { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; gap: 10px; padding: 15px 17px; font-size: 10px; }
  .section { padding: 52px 18px; }
  .section-top { align-items: start; gap: 12px; }
  .section h2, .why h2, .approach h2, .partner h2 { font-size: 29px; letter-spacing: -1.2px; }
  .section-top p { font-size: 11px; }
  .tabs { overflow: auto; white-space: nowrap; margin-top: 22px; }
  .tab { padding: 12px 11px; font-size: 10px; }
  .filter-row { display: grid !important; gap: 12px; font-size: 10px; }
  .filter-controls { display: grid !important; width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px !important; }
  .filter-controls label { min-width: 0; margin: 0; font-size: 10px; }
  .filter-controls select, .filter-controls input { width: 100%; min-width: 0; height: 42px; font-size: 11px; }
  .car-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .card-photo { height: clamp(132px,39vw,190px); }
  .listing-badge { top: 7px; left: 7px; padding: 5px 7px; font-size: 7px; }
  .reserve-badge { right: 7px; left: auto; }
  .car-body { padding: 12px 11px; }
  .car-title { font-size: 14px; }
  .car-spec { font-size: 11px; }
  .car-tags { flex-wrap: wrap; }
  .car-tags span { padding: 4px 6px; font-size: 9px; }
  .car-bottom b { font-size: 15px; }
  .region, .origin-tag { font-size: 10px; }
  .why { display: flex; flex-direction: column-reverse; gap: 22px; padding: 6px 18px 52px; }
  .why-photo { min-height: 300px; }
  .why-copy { padding: 0; }
  .proof>div { margin: 12px 0; }
  .approach { grid-template-columns: 1fr; gap: 19px; padding: 48px 18px; }
  .approach-copy h2 { font-size: 31px; }
  .checklist { padding: 14px; }
  .seller-band { grid-template-columns: 1.1fr .9fr; min-height: 290px; padding: 38px 20px; }
  .seller-content h2 { font-size: 28px; }
  .seller-content>p { font-size: 10px; }
  .seller-content>div:last-child { align-items: start; flex-direction: column; gap: 9px; }
  .sell-visual img { width: 145px; right: 0; top: 5px; }
  .sell-circle { width: 84px; height: 84px; margin-right: 45px; font-size: 32px; }
  .sell-visual>span { font-size: 7px; }
  .partner { display: block; padding: 48px 18px; }
  .partner-cards { gap: 9px; margin-top: 18px; }
  .partner-cards>div { padding: 14px; }
  .partner-cards b { font-size: 10px; }
  .partner-cards p { font-size: 8px; }
  .newsletter { margin: 0 14px 34px; padding: 17px; align-items: start; flex-direction: column; gap: 13px; }
  .newsletter form { width: 100%; }
  .newsletter form input { flex: 1; width: auto; min-width: 0; }
  .newsletter form button { white-space: nowrap; font-size: 10px; }
  footer { grid-template-columns: 1fr auto; padding: 22px 18px; gap: 10px; }
  footer>span { grid-column: 1/-1; grid-row: 2; }
  footer>div { grid-column: 1/-1; grid-row: 3; flex-wrap: wrap; gap: 14px; }
  footer small { grid-row: 4; font-size: 9px; }
  .mobile-nav { height: calc(64px + env(safe-area-inset-bottom)); padding: 5px 10px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-nav span { font-size: 9px; }
  dialog { width: calc(100% - 20px); max-height: 92dvh; padding: 24px 16px; border-radius: 18px; }
  dialog h2 { font-size: 24px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 12px 9px; }
  .form-grid input, .form-grid select, .form-grid textarea, .issue textarea, .issue select { min-height: 42px; padding: 9px; font-size: 12px; }
  .detail-cover { height: 200px; }
  .detail-meta { gap: 10px; font-size: 10px; }
  .detail-meta span:first-child { font-size: 17px; }
  .issue { padding: 12px; }
  .issue-top { align-items: flex-start; }
  .issue-top>b { font-size: 14px; }
  .issue p { font-size: 13px; }
  .dash-item { font-size: 13px; }
  .dash-item small { font-size: 12px; }
  #modal-content .dash-item { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 8px 10px; }
  #modal-content .dash-item>span:first-child { grid-column: 1/-1; min-width: 0; }
  #modal-content .dash-item .status-chip { grid-column: 1/-1; justify-self: start; }
  #modal-content .dash-item .text-link { display: flex; width: 100%; min-height: 44px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9f5; white-space: normal; text-align: left; }
  .chat-feed { max-height: 42dvh; padding: 10px; }
  .chat-bubble { max-width: 93%; }
}

/* Search controls shown on the reference hero, connected to the existing filters. */
.hero-main { padding-top: 56px; padding-bottom: 74px; }
.hero-main .hero-foot { display: none; }
.hero-main .hero-modes { position: absolute; z-index: 5; left: max(7vw, calc((100vw - 1320px)/2)); bottom: 132px; margin: 0; }
.hero-image .image-stamp { right: 6%; bottom: 26%; }
.hero-image .image-credit { bottom: 130px; }
.hero .searchbar {
  position: absolute;
  z-index: 4;
  right: max(24px, calc((100vw - 1320px) / 2));
  bottom: 30px;
  left: max(24px, calc((100vw - 1320px) / 2));
  display: grid;
  width: auto;
  max-width: none;
  min-height: 0;
  height: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce6e4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgb(8 25 31 / 20%);
}
.hero .searchbar label { display: grid; min-width: 0; gap: 5px; color: #53646b; font-size: 10px; font-weight: 750; }
.hero .searchbar input, .hero .searchbar select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #d4dfdf;
  border-radius: 8px;
  background: #fff;
  color: var(--forest);
  font-size: 12px;
}
.hero .searchbar input:focus-visible, .hero .searchbar select:focus-visible { outline: 3px solid rgb(199 244 100 / 55%); outline-offset: 1px; }
.hero .searchbar #hero-search { align-self: end; height: 44px; padding: 0 18px; border-radius: 8px; white-space: nowrap; }

@media (max-width: 1050px) and (min-width: 761px) {
  .hero-main { padding-bottom: 74px; }
  .hero-main .hero-foot { display: none; }
  .hero-main .hero-modes { left: 6vw; bottom: 132px; }
  .hero .searchbar { right: 22px; left: 22px; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 8px; padding: 10px; }
  .hero .searchbar #hero-search { padding-inline: 12px; }
}

@media (max-width: 760px) {
  .hero-main { padding-bottom: 24px; }
  .hero-main .hero-foot { display: block; position: static; max-width: none; }
  .hero-main .hero-modes { position: relative; left: auto; bottom: auto; z-index: auto; }
  .hero { isolation: isolate; }
  .hero-image { position: absolute; z-index: 0; inset: 0; min-height: 0; height: auto; margin: 0; }
  .hero-image:before { background: linear-gradient(90deg, rgb(13 32 39 / 88%) 0%, rgb(13 32 39 / 70%) 58%, rgb(13 32 39 / 42%) 100%), linear-gradient(0deg, rgb(13 32 39 / 58%), rgb(13 32 39 / 12%) 76%); }
  .hero-main { position: relative; z-index: 2; }
  .hero .searchbar { position: relative; z-index: 3; }
  .hero-image .image-stamp { display: none; }
  .hero-image .image-credit { display: block; top: 8px; right: 10px; bottom: auto; left: auto; padding: 4px 7px; border-radius: 6px; background: rgb(13 32 39 / 78%); color: white; font-size: 7px; }
  .hero .searchbar {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin: 0 16px 16px;
    padding: 12px;
    border-radius: 12px;
  }
  .hero .searchbar label { font-size: 10px; }
  .hero .searchbar input, .hero .searchbar select { height: 42px; font-size: 11px; }
  .hero .searchbar #hero-search { grid-column: 1 / -1; width: 100%; height: 44px; }
}
@media (max-width: 380px) {
  .brand-wordmark { font-size: 16px; }
  .top-actions { gap: 6px; }
  .top-actions>.button { padding: 8px 5px; font-size: 9px; white-space: nowrap; }
  .login-link { font-size: 10px; }
  .car-grid { grid-template-columns: 1fr; }
  .card-photo { height: 205px; }
  .section-top .text-link { max-width: 100px; text-align: right; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: 1; }
  #modal-content .photo-picker-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #modal-content .photo-picker { display: block; width: 100%; min-width: 0; }
  #modal-content input[type="file"]::file-selector-button { max-width: 100%; padding: 5px; font-size: 10px; }
}
