:root {
  --red: #e31438;
  --red-dark: #c91031;
  --red-deep: #a70d28;
  --ink: #202326;
  --muted: #6d7174;
  --line: #ead8dc;
  --soft: #fff1f4;
  --white: #fff;
  --success: #177245;
  --shadow: 0 20px 55px rgba(82, 0, 16, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 105px 0; }

.topbar { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(227,20,56,.12); backdrop-filter: blur(14px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 240px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 850; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--red); }
.site-nav .nav-admin { padding: 12px 18px; color: #fff; background: var(--ink); border-radius: 999px; }
.site-nav .nav-admin:hover { color: #fff; background: var(--red); }
.menu-button { display: none; border: 0; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 8px; font-weight: 850; }

.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--red-deep) 0%, var(--red) 48%, #ee2447 100%); }
.hero::before { content: ""; position: absolute; inset: auto -10% -55% 30%; height: 600px; background: radial-gradient(circle, rgba(255,255,255,.17), transparent 65%); }
.hero-grid-overlay { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, transparent 0, #000 47%, #000 100%); }
.hero-watermark { position: absolute; z-index: 0; left: 48%; top: 34%; width: min(720px, 58vw); opacity: .11; transform: translateY(-50%); filter: grayscale(1) brightness(4); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .7fr); align-items: center; gap: 90px; padding-block: 90px; }
.hero-copy { max-width: 670px; }
.hero-kicker, .eyebrow { display: inline-block; color: var(--red); font-size: 11px; line-height: 1.2; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.hero-kicker { color: #fff; opacity: .84; }
.hero-copy h1 { max-width: 650px; margin: 16px 0 22px; font-size: clamp(52px, 7vw, 92px); line-height: .91; letter-spacing: -.065em; }
.hero-copy p { max-width: 610px; margin: 0 0 34px; color: rgba(255,255,255,.88); font-size: 18px; line-height: 1.7; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 21px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 900; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--red); box-shadow: 0 10px 25px rgba(227,20,56,.22); }
.button-primary:hover { background: var(--red-dark); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #08090a; }
.button-light { color: var(--red-dark); background: #fff; }
.button-outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.button-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.button-ghost { color: var(--ink); background: #fff; border-color: #cfd1d2; }
.button-large { min-height: 56px; padding-inline: 28px; }
.button-small { min-height: 38px; padding-inline: 14px; border-radius: 8px; font-size: 11px; }

.hero-card { padding: 34px; color: var(--ink); background: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); box-shadow: 0 35px 80px rgba(77,0,13,.25); }
.hero-card h2 { margin: 8px 0 25px; font-size: 31px; letter-spacing: -.045em; }
.contact-line { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.contact-line > span { color: #9a777e; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.contact-line a:hover { color: var(--red); }
.text-link { display: inline-block; margin-top: 22px; color: var(--red); font-size: 13px; font-weight: 900; }

.inventory-section { background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.section-heading h2, .location-section h2 { margin: 9px 0 0; font-size: clamp(39px, 5vw, 62px); line-height: .98; letter-spacing: -.055em; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.vehicle-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(67,15,25,.07); transition: transform .2s ease, box-shadow .2s ease; }
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vehicle-image { position: relative; display: block; aspect-ratio: 1.48; overflow: hidden; background: #eee; }
.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.025); }
.featured-badge, .photo-badge { position: absolute; z-index: 2; left: 14px; top: 14px; padding: 7px 10px; color: #fff; background: var(--red); border-radius: 999px; font-size: 9px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.photo-badge { left: auto; right: 14px; color: #fff; background: rgba(25,27,29,.8); }
.vehicle-card-body { padding: 24px; }
.vehicle-year { margin: 0 0 7px; color: var(--red); font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.vehicle-card h3 { margin: 0; font-size: 27px; line-height: 1.05; letter-spacing: -.04em; }
.vehicle-card h3 a:hover { color: var(--red); }
.vehicle-trim { min-height: 21px; margin: 7px 0 18px; color: var(--muted); font-size: 14px; }
.vehicle-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px 0; color: #676b6e; border-block: 1px solid #eee; font-size: 12px; font-weight: 700; }
.vehicle-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 19px; }
.vehicle-card-footer strong { font-size: 28px; letter-spacing: -.04em; }
.vehicle-card-footer a { color: var(--red); font-size: 12px; font-weight: 900; }
.empty-state { padding: 70px 30px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state h3 { margin: 0 0 8px; font-size: 30px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }

.location-section { background: var(--soft); }
.location-grid { display: grid; grid-template-columns: .8fr .75fr 1.25fr; align-items: stretch; gap: 24px; }
.location-grid > div:first-child { padding: 24px 20px 24px 0; }
.location-address { margin: 26px 0; color: #5e6265; font-size: 17px; line-height: 1.6; }
.location-grid .button { margin: 0 8px 8px 0; }
.hours-card { padding: 25px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hours-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid #f0e5e7; font-size: 13px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span { color: var(--muted); }
.hours-row.closed strong { color: var(--red); }
.map { width: 100%; min-height: 390px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

.footer { padding: 66px 0 20px; color: #fff; background: var(--red); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr; gap: 70px; }
.footer-grid img { width: 250px; filter: brightness(0) invert(1); }
.footer-grid p { max-width: 430px; color: rgba(255,255,255,.78); line-height: 1.7; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid strong { margin-bottom: 7px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.footer-grid a { color: rgba(255,255,255,.84); font-size: 13px; font-weight: 750; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 50px; padding-top: 20px; color: rgba(255,255,255,.63); border-top: 1px solid rgba(255,255,255,.2); font-size: 11px; }

/* Public vehicle details */
.detail-nav { margin-left: auto; }
.detail-page { min-height: 70vh; padding: 70px 0 100px; background: #f7f4f4; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.gallery { min-width: 0; padding: 20px; background: #eeeae9; }
.gallery-main { position: relative; aspect-ratio: 1.42; overflow: hidden; background: #dadada; border-radius: 12px; }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { top: auto; right: auto; left: 14px; bottom: 14px; }
.gallery-arrows { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.gallery-arrows button { width: 44px; height: 44px; color: #fff; background: rgba(25,27,29,.82); border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 25px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin-top: 10px; }
.gallery-thumb { aspect-ratio: 1.42; overflow: hidden; padding: 0; background: #ddd; border: 3px solid transparent; border-radius: 7px; }
.gallery-thumb.active { border-color: var(--red); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 50px 42px; }
.detail-featured { position: static; display: inline-block; margin-bottom: 18px; }
.detail-info h1 { margin: 7px 0 4px; font-size: clamp(42px, 4.5vw, 63px); line-height: .92; letter-spacing: -.06em; }
.detail-trim { margin: 10px 0; color: var(--muted); font-size: 18px; }
.detail-price { margin: 30px 0; font-size: 42px; font-weight: 950; letter-spacing: -.05em; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.spec-grid div { padding: 17px 10px 17px 0; }
.spec-grid span { display: block; margin-bottom: 5px; color: #99838a; font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.spec-grid strong { font-size: 13px; }
.detail-description { padding: 27px 0; }
.detail-description h2 { margin: 0 0 10px; font-size: 17px; }
.detail-description p { margin: 0; color: #626669; font-size: 14px; line-height: 1.75; }
.detail-cta { padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 13px; }
.detail-cta p { margin: 0 0 13px; font-weight: 900; }
.detail-cta .button { width: 100%; margin-top: 8px; }
.detail-empty { margin-top: 50px; }
.detail-footer { padding-top: 10px; }

/* Setup and login */
.setup-body, .admin-body { min-height: 100vh; background: #f7f3f4; }
.setup-wrap, .login-shell { min-height: 100vh; display: grid; place-items: center; padding: 45px 20px; background: radial-gradient(circle at 15% 10%, rgba(227,20,56,.15), transparent 32%), #f7f3f4; }
.setup-card { width: min(850px, 100%); padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.setup-logo { width: 290px; margin-bottom: 36px; }
.setup-card h1, .login-card h1 { margin: 10px 0 12px; font-size: clamp(36px, 5vw, 54px); line-height: .98; letter-spacing: -.055em; }
.setup-card > p, .login-card > p { color: var(--muted); line-height: 1.65; }
.setup-form { margin-top: 35px; }
.form-section-title { margin: 30px 0 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 950; }
.form-help { color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
label { display: block; color: #383c3f; font-size: 12px; font-weight: 850; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 13px 14px; color: var(--ink); background: #fff; border: 1px solid #d8cdcf; border-radius: 9px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,20,56,.1); }
textarea { resize: vertical; line-height: 1.5; }
.notice { margin: 16px 0; padding: 14px 16px; border-radius: 9px; font-size: 13px; line-height: 1.5; }
.notice-error { color: #8f1028; background: #fff0f3; border: 1px solid #f3b3bf; }
.notice-success { color: #145d3a; background: #eefaf4; border: 1px solid #9dd7b9; }
.login-card { width: min(460px, 100%); padding: 45px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.login-card > a:first-child { display: block; width: 270px; margin-bottom: 38px; }
.admin-login-form { display: grid; gap: 17px; margin-top: 28px; }
.back-link { display: inline-block; margin-top: 24px; color: var(--red); font-size: 12px; font-weight: 900; }

/* Admin */
.admin-container { width: min(1220px, calc(100% - 40px)); margin-inline: auto; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.admin-header-inner > a:first-child { width: 220px; }
.admin-header-inner > div { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 12px; }
.admin-header form { display: inline; }
.admin-header button { padding: 8px 12px; color: var(--red); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 900; }
.admin-main, .form-page { padding-block: 50px 90px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.admin-title-row h1 { margin: 8px 0 8px; font-size: clamp(40px, 5vw, 60px); line-height: .95; letter-spacing: -.055em; }
.admin-title-row p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 25px; }
.stat-grid > div { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.stat-grid span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.stat-grid strong { display: block; margin-top: 8px; font-size: 31px; }
.admin-panel, .form-panel { background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 14px 40px rgba(67,15,25,.06); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 18px; }
.panel-heading a { color: var(--red); font-size: 12px; font-weight: 900; }
.admin-vehicle-list { padding: 8px 24px; }
.admin-vehicle-row { display: grid; grid-template-columns: 125px minmax(0, 1fr) auto auto; align-items: center; gap: 22px; padding: 18px 0; border-bottom: 1px solid #eee5e7; }
.admin-vehicle-row:last-child { border-bottom: 0; }
.admin-vehicle-row > img { width: 125px; aspect-ratio: 1.45; object-fit: cover; background: #eee; border-radius: 9px; }
.admin-vehicle-main h3 { margin: 7px 0 3px; font-size: 19px; }
.admin-vehicle-main p { margin: 0; color: var(--muted); font-size: 12px; }
.status-badge, .mini-featured { display: inline-block; margin-right: 6px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; }
.status-available { color: #14613c; background: #e9f8f0; }
.status-sold { color: #8c132b; background: #ffe9ee; }
.status-hidden { color: #555; background: #ececec; }
.mini-featured { color: #fff; background: var(--red); }
.admin-price { font-size: 19px; }
.admin-actions { min-width: 155px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-actions form { width: 100%; text-align: right; }
.danger-link { padding: 0; color: #a40f29; background: transparent; border: 0; font-size: 10px; font-weight: 900; text-decoration: underline; }

.vehicle-form { display: grid; gap: 22px; }
.form-panel { padding: 28px; }
.form-panel h2 { margin: 0 0 22px; font-size: 22px; }
.form-panel > label:last-child { display: block; margin-top: 20px; }
.check-label { align-self: end; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.check-label input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.existing-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 24px; }
.existing-image { overflow: hidden; padding: 8px; background: #f6f3f3; border: 1px solid var(--line); border-radius: 10px; cursor: grab; }
.existing-image.dragging { opacity: .45; }
.existing-image img { width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: 6px; }
.existing-image > div { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.existing-image label { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.existing-image input { width: auto; margin: 0; accent-color: var(--red); }
.remove-choice { color: #a40f29; }
.drag-handle { display: block; margin-top: 8px; color: #8b8e90; font-size: 9px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.upload-box { min-height: 150px; display: grid; place-items: center; align-content: center; color: var(--red); background: var(--soft); border: 2px dashed #e9a4b1; border-radius: 13px; text-align: center; cursor: pointer; }
.upload-box span { font-size: 16px; }
.upload-box small { margin-top: 5px; color: var(--muted); font-weight: 650; }
.upload-box input { width: auto; max-width: 100%; margin-top: 15px; padding: 8px; background: #fff; }
.new-photo-preview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.new-photo-preview figure { min-width: 0; margin: 0; }
.new-photo-preview img { width: 100%; aspect-ratio: 1.42; object-fit: cover; border-radius: 8px; }
.new-photo-preview figcaption { overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; gap: 10px; }

@media (max-width: 1000px) {
  .site-nav { gap: 19px; }
  .hero-grid { grid-template-columns: 1.1fr .8fr; gap: 45px; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .location-grid .map { grid-column: 1 / -1; }
  .detail-layout { grid-template-columns: 1fr; }
  .admin-vehicle-row { grid-template-columns: 110px minmax(0, 1fr) auto; }
  .admin-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .admin-actions form { width: auto; text-align: left; }
  .existing-images { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .container, .admin-container { width: min(100% - 28px, 1180px); }
  .section { padding: 72px 0; }
  .topbar-inner { min-height: 42px; font-size: 10px; }
  .topbar-inner a:first-child { max-width: 55%; }
  .header-inner { min-height: 74px; }
  .brand { width: 190px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 1px); display: none; align-items: stretch; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-admin { text-align: center; }
  .detail-nav { position: static; display: flex; padding: 0; border: 0; box-shadow: none; }
  .detail-nav a:first-child { display: none; }
  .hero { min-height: auto; }
  .hero-watermark { left: 30%; top: 18%; width: 690px; max-width: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; padding-block: 70px; }
  .hero-copy h1 { font-size: clamp(50px, 17vw, 72px); }
  .hero-copy p { font-size: 16px; }
  .hero-card { padding: 27px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .vehicle-grid, .location-grid, .footer-grid { grid-template-columns: 1fr; }
  .vehicle-grid { gap: 18px; }
  .location-grid > div:first-child { padding-right: 0; }
  .map { min-height: 310px; }
  .footer-grid { gap: 35px; }
  .detail-page { padding: 25px 0 60px; }
  .gallery { padding: 10px; }
  .gallery-main { aspect-ratio: 1.22; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .detail-info { padding: 35px 24px; }
  .setup-card, .login-card { padding: 30px 23px; }
  .setup-logo, .login-card > a:first-child { width: 230px; }
  .form-grid.two, .form-grid.three { grid-template-columns: 1fr; }
  .form-grid.two > span { display: none; }
  .admin-header-inner { min-height: 72px; }
  .admin-header-inner > a:first-child { width: 180px; }
  .admin-header-inner > div > span { display: none; }
  .admin-title-row { align-items: flex-start; flex-direction: column; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-vehicle-list { padding: 7px 14px; }
  .admin-vehicle-row { grid-template-columns: 92px 1fr; gap: 12px; }
  .admin-vehicle-row > img { width: 92px; }
  .admin-price { grid-column: 2; }
  .admin-actions { grid-column: 1 / -1; }
  .form-panel { padding: 22px 17px; }
  .existing-images { grid-template-columns: 1fr 1fr; }
  .new-photo-preview { grid-template-columns: repeat(3, 1fr); }
  .form-actions { flex-direction: column; }
}

@media (max-width: 430px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 3px; padding-block: 8px; }
  .topbar-inner a:first-child { max-width: none; }
  .vehicle-card-footer { align-items: flex-start; flex-direction: column; }
  .gallery-main { aspect-ratio: 1.05; }
  .spec-grid { grid-template-columns: 1fr; }
  .stat-grid { gap: 8px; }
  .stat-grid > div { padding: 17px; }
}

