/* Inventory tokens and component rules preserve Gladiator Motors main.css v2.1. */
:root {
  --bg: #000;
  --bg-2: #111;
  --bg-3: #1a1a1a;
  --fg: #f5f5f7;
  --fg-2: rgba(245, 245, 247, .56);
  --fg-3: rgba(245, 245, 247, .26);
  --fg-4: rgba(245, 245, 247, .08);
  --accent: #e53e3e;
  --accent-hover: #c53030;
  --accent-glow: rgba(229, 62, 62, .4);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --container: 1280px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { overflow-x: hidden; scroll-behavior: smooth }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: -.022em;
  line-height: 1.47;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: .025;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
}
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit }
button { background: none; border: 0; color: inherit; cursor: pointer }
img { display: block; height: auto; max-width: 100% }
.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.container { margin: 0 auto; max-width: var(--container); padding-inline: clamp(20px, 4vw, 56px) }
.boxed-title { align-items: baseline; display: flex; flex-wrap: wrap; gap: .2em }
.word-box { display: inline }
.btn {
  align-items: center;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: .04em;
  padding: 13px 28px;
  transition: all .5s var(--ease-expo);
}
.btn-primary { background: var(--accent); color: #fff }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 24px var(--accent-glow); transform: translateY(-1px) }
.btn-glass { background: rgba(245, 245, 247, .1); border: 1px solid rgba(245, 245, 247, .12); color: var(--fg) }
.btn-outline { border: 1px solid rgba(245, 245, 247, .24) }

.site-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, .82);
  border-bottom: 1px solid var(--fg-4);
  display: flex;
  height: var(--nav-h);
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}
.site-brand { align-items: center; display: flex; font-size: 14px; font-weight: 700; gap: 10px; letter-spacing: -.01em }
.site-brand-logo {
  background: #fff;
  border-radius: 50%;
  height: 38px;
  object-fit: cover;
  width: 38px;
}
.site-nav nav { align-items: center; display: flex; font-size: 12px; font-weight: 600; gap: 24px; letter-spacing: .06em; text-transform: uppercase }
.site-nav nav a { color: var(--fg-2); transition: color .2s }
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: var(--fg) }
.site-footer {
  border-top: 1px solid var(--fg-4);
  color: var(--fg-3);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 56px);
}
.site-footer a { color: var(--fg-2) }
.site-footer-brand { align-items: center; display: flex; gap: 8px }
.site-footer-brand img { background: #fff; border-radius: 50%; height: 24px; width: 24px }

/* Public pages follow the same bold hero, content band, and CTA rhythm as the inventory. */
.sd-eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sd-hero {
  align-items: center;
  background:
    radial-gradient(circle at 76% 48%, rgba(229, 62, 62, .2), transparent 26%),
    linear-gradient(135deg, #000 38%, #141414);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  min-height: min(860px, 100vh);
  overflow: hidden;
  padding: calc(var(--nav-h) + 72px) clamp(20px, 8vw, 128px) 72px;
  position: relative;
}
.sd-hero::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent);
  content: "";
  height: 1px;
  inset: auto 0 10%;
  position: absolute;
}
.sd-hero-copy { max-width: 820px; position: relative; z-index: 1 }
.sd-hero h1, .sd-page-hero h1 {
  font-size: clamp(52px, 8vw, 116px);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .88;
  margin: 22px 0 30px;
}
.sd-hero h1 span, .sd-page-hero h1 span, .sd-section-title span { color: var(--accent) }
.sd-hero-lead {
  color: var(--fg-2);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 700px;
}
.sd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px }
.sd-hero-mark { align-items: center; display: flex; justify-content: center }
.sd-hero-mark img {
  border-radius: 50%;
  box-shadow: 0 24px 100px rgba(229, 62, 62, .2);
  width: min(34vw, 520px);
}
.sd-intro, .sd-process { padding-block: clamp(88px, 11vw, 160px) }
.sd-split { display: grid; gap: clamp(44px, 8vw, 120px); grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); margin-top: 26px }
.sd-split > h2, .sd-section-title {
  font-size: clamp(38px, 5vw, 72px);
  letter-spacing: -.05em;
  line-height: .98;
}
.sd-split > div > p, .sd-about-copy p {
  color: var(--fg-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.7;
}
.sd-text-link {
  border-bottom: 1px solid var(--accent);
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  margin-top: 30px;
  padding-bottom: 5px;
  text-transform: uppercase;
}
.sd-band { background: var(--bg-2); border-block: 1px solid var(--fg-4); padding-block: clamp(88px, 10vw, 144px) }
.sd-section-title { margin: 24px 0 clamp(44px, 7vw, 86px) }
.sd-card-grid { display: grid; grid-template-columns: repeat(3, 1fr) }
.sd-card { border-left: 1px solid var(--fg-4); min-height: 280px; padding: 10px clamp(24px, 3vw, 44px) 20px }
.sd-card:first-child { padding-left: 0; border-left: 0 }
.sd-card > span, .sd-steps > li > span { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em }
.sd-card h3 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.04em; margin: 72px 0 16px }
.sd-card p, .sd-steps p { color: var(--fg-2); font-size: 15px; line-height: 1.7 }
.sd-steps { list-style: none }
.sd-steps li { border-top: 1px solid var(--fg-4); display: grid; gap: 24px; grid-template-columns: 34px 1fr; padding: 24px 0 }
.sd-steps h3 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 6px }
.sd-about-copy { display: flex; flex-direction: column; gap: 24px }
.sd-page-hero {
  align-items: center;
  background: radial-gradient(circle at 82% 35%, rgba(229, 62, 62, .18), transparent 26%), var(--bg-2);
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  min-height: 72vh;
  padding: calc(var(--nav-h) + 88px) clamp(20px, 8vw, 128px) 88px;
}
.sd-page-hero img { border-radius: 50%; box-shadow: 0 24px 100px rgba(229, 62, 62, .16) }
.sd-cta {
  align-items: center;
  background: linear-gradient(135deg, rgba(229, 62, 62, .16), transparent 60%);
  display: flex;
  flex-direction: column;
  padding: clamp(90px, 12vw, 170px) 20px;
  text-align: center;
}
.sd-cta h2 { font-size: clamp(38px, 6vw, 78px); letter-spacing: -.055em; line-height: .98; margin: 24px 0 36px }

/* Vehicle card: exact field order is year/make, model, trim, km/fuel/drive, price. */
.gm-vehicle-card {
  background: var(--bg-2);
  border: 1px solid var(--fg-4);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease-expo);
}
.gm-vehicle-card:hover { border-color: rgba(245, 245, 247, .16); transform: translateY(-4px) }
.gm-vehicle-card-img-wrap { aspect-ratio: 16/9; background: var(--bg-3); max-height: 180px; overflow: hidden; position: relative }
.gm-vehicle-card-img { height: 100%; object-fit: cover; transition: transform .6s var(--ease-expo); width: 100% }
.gm-vehicle-card:hover .gm-vehicle-card-img { transform: scale(1.03) }
.gm-vehicle-card-sold {
  align-items: center;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, .62);
  display: flex;
  font-size: 15px;
  font-weight: 700;
  inset: 0;
  justify-content: center;
  letter-spacing: .08em;
  position: absolute;
}
.gm-vehicle-badges { display: flex; flex-wrap: wrap; gap: 6px; left: 12px; position: absolute; top: 12px }
.gm-vehicle-badge {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .68);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 4px 9px;
  text-transform: uppercase;
}
.gm-vehicle-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px }
.gm-vehicle-year-make { color: var(--fg-3); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase }
.gm-vehicle-name { color: var(--fg); font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2 }
.gm-vehicle-trim { color: var(--fg-3); font-size: 13px; letter-spacing: -.01em }
.gm-vehicle-specs { color: var(--fg-3); display: flex; flex-wrap: wrap; font-size: 11px; gap: 12px; margin-top: 9px }
.gm-vehicle-card-footer { align-items: flex-end; border-top: 1px solid var(--fg-4); display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px }
.gm-vehicle-price { color: var(--fg); font-size: 18px; font-weight: 600; letter-spacing: -.02em }
.gm-vehicle-price small { color: var(--fg-3); font-size: 12px; font-weight: 400 }
.gm-vehicle-view-btn { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase }

/* Full inventory page. */
.gm-inv-page { min-height: 100vh; padding-top: 0 }
.gm-inv-hero { overflow: hidden; padding-bottom: clamp(40px, 5vw, 64px); padding-top: calc(var(--nav-h) + clamp(72px, 8vw, 110px)); position: relative }
.gm-inv-hero-bg { height: 100%; inset: 0; object-fit: cover; object-position: center 55%; position: absolute; width: 100% }
.gm-inv-hero-art {
  background: url("https://autamedia.b-cdn.net/Website%20uploads/scotty-site/inventory-hero.webp") center 58% / cover no-repeat;
}
.gm-inv-hero-art::after { background: repeating-linear-gradient(90deg, transparent 0 90px, rgba(255, 255, 255, .03) 90px 91px); content: ""; inset: 0; position: absolute }
.gm-inv-hero-overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, .62), rgba(0, 0, 0, .38) 50%, rgba(0, 0, 0, .9)); inset: 0; position: absolute }
.gm-inv-hero-inner { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 2 }
.gm-inv-hero-title { font-size: clamp(28px, 3.5vw, 48px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05 }
.gm-inv-hero-sub { color: rgba(255, 255, 255, .72); font-size: clamp(14px, 1.4vw, 17px); line-height: 1.6; max-width: 480px }
.gm-inv-mobile-bar { align-items: center; border-bottom: 1px solid var(--fg-4); display: none; justify-content: space-between; margin-bottom: 20px; padding-block: 12px }
.gm-inv-mobile-filter-btn { align-items: center; background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 9999px; color: var(--fg-2); display: flex; font-size: 13px; font-weight: 500; gap: 8px; padding: 8px 16px }
.gm-inv-active-dot { align-items: center; background: var(--accent); border-radius: 50%; color: #fff; display: inline-flex; font-size: 10px; font-weight: 700; height: 16px; justify-content: center; width: 16px }
.gm-inv-mobile-count { color: var(--fg-3); font-size: 13px }
.gm-inv-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: 264px 1fr; padding-block: 40px 72px }

.gm-inv-sidebar {
  background: var(--bg-2);
  border: 1px solid var(--fg-4);
  border-radius: 16px;
  max-height: calc(100vh - 88px);
  overflow: hidden auto;
  position: sticky;
  top: 76px;
}
.gm-inv-sb-head {
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--fg-4);
  color: var(--fg-2);
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 9px;
  letter-spacing: .1em;
  padding: 13px 16px;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}
.gm-inv-sb-head svg { color: var(--accent) }
.gm-inv-sb-body { display: flex; flex-direction: column; gap: 8px; padding: 12px }
.gm-sf-status-group { display: grid; gap: 5px; grid-template-columns: repeat(3, 1fr); margin-bottom: 4px }
.gm-sf-status-btn {
  border: 1px solid var(--fg-4);
  border-radius: 10px;
  color: var(--fg-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 8px 4px;
  text-transform: uppercase;
}
.gm-sf-status-btn:hover { border-color: var(--fg-2); color: var(--fg) }
.gm-sf-status-active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important }
.gm-sf-select-wrap { position: relative }
.gm-sf-select {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--fg-4);
  border-radius: 10px;
  color: var(--fg-3);
  color-scheme: dark;
  cursor: pointer;
  font-size: 13px;
  outline: none;
  padding: 10px 30px 10px 12px;
  width: 100%;
}
.gm-sf-select:focus { border-color: var(--fg-2); color: var(--fg) }
.gm-sf-chevron { color: var(--fg-3); font-size: 15px; pointer-events: none; position: absolute; right: 10px; top: 50%; transform: translateY(-55%) }
.gm-sf-label { color: var(--fg-3); display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; margin-bottom: 8px; text-transform: uppercase }
.gm-sf-price-group { margin-top: 4px }
.gm-sf-range-wrap { height: 22px; margin-bottom: 10px; position: relative }
.gm-sf-range-track { background: var(--fg-4); border-radius: 2px; height: 3px; position: absolute; top: 50%; transform: translateY(-50%); width: 100% }
.gm-sf-range-fill { background: var(--accent); border-radius: 2px; height: 100%; position: absolute }
.gm-sf-range { appearance: none; background: transparent; height: 100%; left: 0; margin: 0; pointer-events: none; position: absolute; top: 0; width: 100%; z-index: 2 }
.gm-sf-range::-webkit-slider-thumb { appearance: none; background: var(--accent); border: 2px solid var(--fg); border-radius: 50%; cursor: pointer; height: 15px; pointer-events: all; width: 15px }
.gm-sf-range::-moz-range-thumb { background: var(--accent); border: 2px solid var(--fg); border-radius: 50%; cursor: pointer; height: 15px; pointer-events: all; width: 15px }
.gm-sf-dual-nums { display: grid; gap: 8px; grid-template-columns: 1fr 1fr }
.gm-sf-num { background: var(--bg); border: 1px solid var(--fg-4); border-radius: 8px; color: var(--fg); font-size: 12px; outline: none; padding: 7px 8px; text-align: center; width: 100% }
.gm-sf-reset-btn { align-items: center; background: var(--accent); border-radius: 10px; color: #fff; display: flex; font-size: 11px; font-weight: 600; gap: 7px; justify-content: center; letter-spacing: .1em; margin-top: 4px; padding: 10px; width: 100% }
.gm-sf-accordion { border-top: 1px solid var(--fg-4) }
.gm-sf-accordion-btn { align-items: center; color: var(--fg-3); display: flex; font-size: 11px; font-weight: 600; justify-content: space-between; letter-spacing: .1em; padding: 13px 16px; text-transform: uppercase; width: 100% }
.gm-sf-accordion-btn:hover { background: var(--bg); color: var(--fg) }
.gm-sf-accordion-left { align-items: center; display: flex; gap: 6px }
.gm-sf-accordion-panel { padding: 0 12px 12px }
.gm-sf-feature-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto }
.gm-sf-feature-item { align-items: center; border-radius: 7px; color: var(--fg-2); cursor: pointer; display: flex; font-size: 12px; gap: 8px; padding: 6px }
.gm-sf-feature-item:hover { background: var(--bg); color: var(--fg) }
.gm-sf-checkbox { accent-color: var(--accent); height: 13px; width: 13px }
.gm-sf-body-list { display: flex; flex-wrap: wrap; gap: 5px }
.gm-sf-body-chip { border: 1px solid var(--fg-4); border-radius: 9999px; color: var(--fg-3); font-size: 11px; font-weight: 500; padding: 5px 10px }
.gm-sf-body-chip-active { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important }

.gm-inv-results { display: flex; flex-direction: column; min-width: 0 }
.gm-inv-sort-bar { align-items: center; border-bottom: 1px solid var(--fg-4); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 10px; padding-bottom: 14px }
.gm-inv-sort-left, .gm-inv-sort-right { align-items: center; display: flex; gap: 10px }
.gm-inv-sort-label { color: var(--fg-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase }
.gm-inv-sort-select { appearance: none; background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 9999px; color: var(--fg); color-scheme: dark; cursor: pointer; font-size: 12px; outline: none; padding: 7px 28px 7px 12px }
.gm-inv-view-toggle { display: flex; gap: 4px }
.gm-inv-view-btn { align-items: center; border: 1px solid var(--fg-4); border-radius: 8px; color: var(--fg-3); display: flex; height: 30px; justify-content: center; width: 30px }
.gm-inv-view-active { background: var(--bg-2) !important; border-color: var(--fg-3) !important; color: var(--fg) !important }
.gm-inv-result-count { color: var(--fg-3); font-size: 12px; margin-bottom: 4px }
.gm-inv-result-count strong { color: var(--fg) }
.gm-inv-list { display: flex; flex-direction: column }
.gm-inv-row { border-bottom: 1px solid var(--fg-4); color: inherit; display: flex; gap: 16px; padding: 14px 0; transition: background .2s, padding .2s, margin .2s, border-radius .2s }
.gm-inv-row:first-child { border-top: 1px solid var(--fg-4) }
.gm-inv-row:not(.gm-inv-row-dimmed):hover { background: var(--bg-2); border-color: rgba(255, 255, 255, .08); border-radius: 14px; margin-inline: -14px; padding-inline: 14px }
.gm-inv-row-dimmed { cursor: default; opacity: .6 }
.gm-inv-row-img { aspect-ratio: 3/2; background: var(--bg-3); border-radius: 10px; flex-shrink: 0; overflow: hidden; position: relative; width: clamp(90px, 16%, 160px) }
.gm-inv-row-img img { height: 100%; object-fit: cover; transition: transform .5s var(--ease-expo); width: 100% }
.gm-inv-row:not(.gm-inv-row-dimmed):hover .gm-inv-row-img img { transform: scale(1.04) }
.gm-inv-row-sold-badge { align-items: center; backdrop-filter: blur(3px); background: rgba(0, 0, 0, .65); display: flex; font-size: 15px; font-weight: 700; inset: 0; justify-content: center; letter-spacing: .08em; position: absolute }
.gm-inv-row-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; min-width: 0; padding-top: 2px }
.gm-inv-row-top { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 8px }
.gm-inv-row-name { color: var(--fg); flex: 1; font-size: 16px; font-weight: 600; letter-spacing: -.022em; line-height: 1.22; text-transform: uppercase }
.gm-inv-price-badge { align-self: flex-start; background: var(--accent); border-radius: 9px; color: #fff; flex-shrink: 0; font-size: 14px; font-weight: 600; padding: 7px 14px; white-space: nowrap }
.gm-inv-row-specs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px }
.gm-inv-spec-chip { display: flex; flex-direction: column; gap: 1px }
.gm-inv-spec-label { color: var(--fg-3); font-size: 9px; font-weight: 600; letter-spacing: .12em; line-height: 1; text-transform: uppercase }
.gm-inv-spec-val { color: var(--fg-2); font-size: 13px; font-weight: 500; line-height: 1.2 }
.gm-inv-row-footer { align-items: center; display: flex; gap: 10px }
.gm-inv-drive-tag { border: 1px solid var(--fg-4); border-radius: 9999px; color: var(--fg-3); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 12px }
.gm-inv-card-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr) }
.gm-inv-empty { align-items: center; color: var(--fg-3); display: flex; flex-direction: column; font-size: 15px; gap: 20px; padding: 72px 0; text-align: center }
.gm-inv-pagination { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px }
.gm-inv-page-btn { align-items: center; background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 8px; color: var(--fg); display: inline-flex; font-size: 12px; font-weight: 600; height: 34px; justify-content: center; min-width: 34px; padding: 0 10px }
.gm-inv-page-btn:disabled { cursor: default; opacity: .35 }
.gm-inv-page-active { background: var(--fg) !important; border-color: var(--fg) !important; color: var(--bg) !important }
.gm-vehicle-card-skeleton { animation: gm-skeleton 1.4s ease-in-out infinite; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; border-radius: 12px; height: 120px; margin-bottom: 1px }
@keyframes gm-skeleton { 0%, 100% { background-position: 200% 0; opacity: .5 } 50% { background-position: 0 0; opacity: 1 } }

/* Vehicle detail: gallery, specs, sticky summary, payment calculator, similar cards. */
.gm-vd-page { min-height: 100vh; padding-top: var(--nav-h) }
.gm-vd-content { min-height: 70vh }
.gm-vd-loading { padding-block: 80px }
.gm-vd-loading .gm-vehicle-card-skeleton { height: 55vh }
.gm-vd-not-found { color: var(--fg-3); padding: 160px 20px; text-align: center }
.gm-vd-not-found a { color: var(--accent) }
.gm-vd-container { padding-bottom: 80px; padding-top: 40px }
.gm-vd-breadcrumb { align-items: center; color: var(--fg-3); display: flex; font-size: 12px; gap: 10px; padding-bottom: 28px }
.gm-vd-back { color: var(--fg-2) }
.gm-vd-back:hover { color: var(--accent) }
.gm-vd-crumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.gm-vd-sold-banner { align-items: center; background: rgba(229, 62, 62, .09); border: 1px solid rgba(229, 62, 62, .24); border-radius: 12px; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 24px; padding: 14px 18px }
.gm-vd-sold-banner-text { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .08em }
.gm-vd-sold-banner-sub { color: var(--fg-2); font-size: 13px }
.gm-vd-sold-banner-sub a { color: var(--accent) }
.gm-vd-body { align-items: start; display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) 340px }
.gm-vd-left { display: flex; flex-direction: column; gap: 40px; min-width: 0 }
.gm-vd-mobile-header { display: none }
.gm-vd-gallery { display: flex; flex-direction: column; gap: 10px }
.gm-vd-main-img { aspect-ratio: 16/10; background: var(--bg-2); border-radius: 16px; overflow: hidden; position: relative }
.gm-vd-zoom-btn { display: block; height: 100%; width: 100% }
.gm-vd-img { height: 100%; object-fit: cover; width: 100% }
.gm-vd-zoom-hint { align-items: center; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; bottom: 14px; display: flex; font-size: 22px; height: 40px; justify-content: center; position: absolute; right: 14px; width: 40px }
.gm-vd-gallery-btn { align-items: center; backdrop-filter: blur(8px); background: rgba(0, 0, 0, .6); border: 1px solid var(--fg-4); border-radius: 50%; display: flex; font-size: 32px; height: 40px; justify-content: center; position: absolute; top: 50%; transform: translateY(-50%); width: 40px }
.gm-vd-gallery-btn-l { left: 12px }
.gm-vd-gallery-btn-r { right: 12px }
.gm-vd-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none }
.gm-vd-thumb { aspect-ratio: 4/3; border: 2px solid transparent; border-radius: 10px; flex: 1; min-width: 80px; overflow: hidden }
.gm-vd-thumb img { height: 100%; object-fit: cover; width: 100% }
.gm-vd-thumb-active { border-color: var(--accent) !important }
.gm-vd-section-title { color: var(--fg); font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 16px }
.gm-vd-desc-text { color: var(--fg-2); font-size: 15px; line-height: 1.75 }
.gm-vd-desc-text a { color: var(--accent); text-decoration: underline }
.gm-vd-desc-text ul, .gm-vd-desc-text ol { padding-left: 20px }
.gm-vd-specs-table { border-collapse: collapse; width: 100% }
.gm-vd-specs-row:not(:last-child) td { border-bottom: 1px solid var(--fg-4) }
.gm-vd-specs-key, .gm-vd-specs-val { font-size: 14px; padding: 12px 0 }
.gm-vd-specs-key { color: var(--fg-3); width: 40% }
.gm-vd-specs-val { color: var(--fg); font-weight: 500 }
.gm-features-list { display: flex; flex-wrap: wrap; gap: 8px }
.gm-feature-tag { background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 9999px; color: var(--fg-2); font-size: 12px; padding: 7px 12px }
.gm-vd-right { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 88px }
.gm-vd-header { display: flex; flex-direction: column; gap: 6px }
.gm-vd-title { color: var(--fg); font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1 }
.gm-vd-mobile-title { font-size: 26px; font-weight: 700; letter-spacing: -.03em }
.gm-vd-meta { color: var(--fg-3); display: flex; flex-wrap: wrap; font-size: 13px; font-weight: 500; gap: 16px; margin-top: 8px }
.gm-vd-price-block { background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; padding: 24px }
.gm-vd-price { color: var(--fg); font-size: 32px; font-weight: 700; letter-spacing: -.04em }
.gm-vd-price-sub { color: var(--fg-3); font-size: 12px }
.gm-vd-sold-price { color: var(--accent); font-size: 28px; font-weight: 700; letter-spacing: -.04em }
.gm-vd-cta-block { display: flex; flex-direction: column; gap: 10px }
.gm-vd-calc { background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 16px; display: flex; flex-direction: column; gap: 16px; padding: 24px }
.gm-vd-calc-title { font-size: 15px; font-weight: 600 }
.gm-vd-calc-fields { display: flex; flex-direction: column; gap: 12px }
.gm-vd-calc-label { color: var(--fg-3); display: flex; flex-direction: column; font-size: 11px; font-weight: 500; gap: 6px; letter-spacing: .08em; text-transform: uppercase }
.gm-vd-calc-input { appearance: none; background: var(--bg); border: 1px solid var(--fg-4); border-radius: 10px; color: var(--fg); font-size: 15px; outline: none; padding: 10px 14px; width: 100% }
.gm-vd-calc-result { align-items: baseline; border-top: 1px solid var(--fg-4); display: flex; justify-content: space-between; padding-top: 16px }
.gm-vd-calc-amount { color: var(--accent); font-size: 28px; font-weight: 700; letter-spacing: -.04em }
.gm-vd-calc-amount small { color: var(--fg-3); font-size: 14px; font-weight: 400 }
.gm-vd-calc-note { color: var(--fg-3); font-size: 11px }
.gm-vd-similar { background: var(--bg-2); border-top: 1px solid var(--fg-4); padding: 72px 0 80px }
.gm-vd-similar-inner { display: flex; flex-direction: column; gap: 40px }
.gm-vd-similar-header { align-items: center; display: flex; justify-content: space-between }
.gm-vd-similar-title { font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.03em }
.gm-vd-similar-view-all { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase }
.gm-vd-similar-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr) }
.gm-lightbox { align-items: center; background: rgba(0, 0, 0, .94); display: flex; inset: 0; justify-content: center; position: fixed; z-index: 1000 }
.gm-lightbox-content { max-height: 90vh; max-width: min(90vw, 1400px) }
.gm-lightbox-img { max-height: 90vh; object-fit: contain }
.gm-lightbox-close { font-size: 36px; position: absolute; right: 24px; top: 16px; z-index: 2 }
.gm-lightbox-nav { font-size: 48px; position: absolute; top: 50%; transform: translateY(-50%) }
.gm-lightbox-nav-l { left: 24px }
.gm-lightbox-nav-r { right: 24px }
.gm-lightbox-counter { bottom: 16px; color: var(--fg-2); font-size: 12px; position: absolute }

/* Authenticated management UI. */
.admin-page { min-height: 100vh; padding: calc(var(--nav-h) + 48px) clamp(20px, 4vw, 56px) 72px }
.admin-login { align-items: center; display: flex; justify-content: center; min-height: calc(100vh - var(--nav-h) - 120px) }
.admin-login-card {
  background: var(--bg-2);
  border: 1px solid var(--fg-4);
  border-radius: 22px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
  max-width: 440px;
  padding: clamp(28px, 5vw, 52px);
  width: 100%;
}
.admin-login-logo { background: #fff; border-radius: 50%; clip-path: circle(50%); height: 72px; margin-bottom: 28px; object-fit: cover; width: 72px }
.admin-login-card h1 { font-size: clamp(34px, 5vw, 50px); letter-spacing: -.05em; margin: 10px 0 12px }
.admin-login-card > p:not(.sd-eyebrow) { color: var(--fg-2); font-size: 14px; line-height: 1.6 }
.admin-login-form { display: flex; flex-direction: column; gap: 15px; margin-top: 28px }
.admin-login-form .btn { margin-top: 4px; width: 100% }
.admin-login-form .admin-message { grid-column: auto }
.admin-shell { margin: 0 auto; max-width: 1180px }
.admin-heading { align-items: end; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin-bottom: 28px }
.admin-heading h1 { font-size: clamp(30px, 5vw, 54px); letter-spacing: -.04em }
.admin-heading p { color: var(--fg-2); font-size: 14px; max-width: 560px }
.admin-heading .sd-eyebrow { color: var(--accent); margin-bottom: 8px }
.admin-user { align-items: center; color: var(--fg-3); display: flex; font-size: 12px; gap: 12px }
.admin-user strong { color: var(--fg) }
.admin-credentials { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr) auto; margin-bottom: 24px; padding: 18px }
.admin-credentials[hidden] { display: none }
.admin-credentials .admin-message { grid-column: 1 / -1 }
.admin-metrics { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); margin-bottom: 24px }
.admin-metric { background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; padding: 18px }
.admin-metric span { color: var(--fg-3); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase }
.admin-metric strong { font-size: clamp(22px, 3vw, 32px); letter-spacing: -.04em }
.admin-applications { margin-bottom: 24px }
.admin-applications-list { max-height: 320px; overflow-y: auto }
.admin-application {
  align-items: center;
  border-bottom: 1px solid var(--fg-4);
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1.25fr auto;
  padding: 14px 18px;
}
.admin-application > div { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.admin-application strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.admin-application span, .admin-application time { color: var(--fg-3); font-size: 11px }
.admin-field { color: var(--fg-3); display: flex; flex-direction: column; font-size: 10px; font-weight: 600; gap: 6px; letter-spacing: .1em; text-transform: uppercase }
.admin-input, .admin-select, .admin-textarea {
  background: var(--bg-2);
  border: 1px solid var(--fg-4);
  border-radius: 9px;
  color: var(--fg);
  font-size: 14px;
  min-width: 0;
  outline: none;
  padding: 10px 12px;
  text-transform: none;
  width: 100%;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { border-color: var(--fg-2) }
.admin-textarea { min-height: 96px; resize: vertical }
.admin-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr) }
.admin-layout.admin-editor-closed { grid-template-columns: 1fr }
.admin-panel { background: var(--bg-2); border: 1px solid var(--fg-4); border-radius: 16px; overflow: hidden }
.admin-panel[hidden] { display: none }
.admin-panel-head { align-items: center; border-bottom: 1px solid var(--fg-4); display: flex; justify-content: space-between; padding: 16px 18px }
.admin-panel-head h2 { font-size: 15px }
.admin-search { border-bottom: 1px solid var(--fg-4); padding: 12px 16px }
.admin-search .admin-input { background: var(--bg) }
.admin-list { max-height: calc(100vh - 230px); overflow-y: auto }
.admin-row { align-items: center; border-bottom: 1px solid var(--fg-4); display: grid; gap: 12px; grid-template-columns: 72px 1fr auto; padding: 12px 16px; text-align: left; width: 100% }
.admin-row:hover { background: var(--bg-3) }
.admin-row img { aspect-ratio: 3/2; background: var(--bg-3); border-radius: 7px; height: 48px; object-fit: cover; width: 72px }
.admin-row-title { display: block; font-size: 13px; font-weight: 600 }
.admin-row-meta { color: var(--fg-3); display: block; font-size: 11px; margin-top: 3px }
.admin-row-price { color: var(--fg-2); font-size: 12px; text-align: right }
.admin-form { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; padding: 18px }
.admin-field-full { grid-column: 1 / -1 }
.admin-file { padding: 8px }
.admin-help { color: var(--fg-3); font-size: 10px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none }
.admin-check { align-items: center; color: var(--fg-2); display: flex; font-size: 13px; gap: 8px }
.admin-check input { accent-color: var(--accent) }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; justify-content: flex-end; padding-top: 8px }
.admin-message { border-radius: 8px; display: none; font-size: 12px; grid-column: 1 / -1; padding: 9px 11px }
.admin-message.visible { display: block }
.admin-message.error { background: rgba(229, 62, 62, .12); color: #ff8e8e }
.admin-message.success { background: rgba(63, 185, 80, .12); color: #75d987 }
.admin-dashboard-message.visible { margin-bottom: 16px }
.admin-delete { color: #ff8e8e }

@media (max-width: 1100px) {
  .gm-inv-layout { gap: 20px; grid-template-columns: 230px 1fr }
  .gm-inv-card-grid { grid-template-columns: repeat(2, 1fr) }
  .gm-vd-body { grid-template-columns: 1fr }
  .gm-vd-right { position: static }
  .gm-vd-mobile-header { display: flex; flex-direction: column; gap: 4px }
  .gm-vd-header { display: none }
}
@media (max-width: 860px) {
  .sd-hero { grid-template-columns: 1fr; min-height: auto; padding-block: calc(var(--nav-h) + 76px) 76px }
  .sd-hero-mark { display: none }
  .sd-split { grid-template-columns: 1fr }
  .sd-card-grid { grid-template-columns: 1fr }
  .sd-card, .sd-card:first-child { border-left: 0; border-top: 1px solid var(--fg-4); min-height: 0; padding: 32px 0 }
  .sd-card h3 { margin-top: 34px }
  .sd-page-hero { grid-template-columns: 1fr; min-height: auto }
  .sd-page-hero img { display: none }
  .gm-inv-mobile-bar { display: flex }
  .gm-inv-layout { grid-template-columns: 1fr; padding-block: 20px 48px }
  .gm-inv-sidebar { display: none; max-height: none; position: static }
  .gm-inv-sidebar-visible { display: block }
  .admin-metrics { grid-template-columns: repeat(2, 1fr) }
  .admin-layout { grid-template-columns: 1fr }
  .admin-list { max-height: none }
}
@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important }
  .site-brand span:last-child { display: none }
  .site-nav nav { gap: 14px }
  .sd-hero h1, .sd-page-hero h1 { font-size: clamp(46px, 15vw, 70px) }
  .sd-hero { padding-inline: 20px }
  .sd-page-hero { padding-inline: 20px }
  .sd-actions .btn { width: 100% }
  .gm-inv-hero { padding-bottom: clamp(24px, 6vw, 36px); padding-top: calc(var(--nav-h) + clamp(56px, 14vw, 80px)) }
  .gm-inv-hero-title { font-size: clamp(24px, 8vw, 36px) }
  .gm-inv-hero-sub { font-size: 13px }
  .gm-inv-sort-bar { gap: 6px; margin-bottom: 8px; padding-bottom: 10px }
  .gm-inv-sort-label { display: none }
  .gm-inv-sort-left, .gm-inv-sort-right { gap: 6px }
  .gm-inv-sort-select { font-size: 11px; padding: 6px 22px 6px 10px }
  .gm-inv-row { flex-direction: row; gap: 12px; padding: 12px 0 }
  .gm-inv-row-img { aspect-ratio: 3/2; border-radius: 8px; flex-shrink: 0; width: 96px }
  .gm-inv-row-name { font-size: 13px }
  .gm-inv-price-badge { border-radius: 7px; font-size: 12px; padding: 5px 10px }
  .gm-inv-row-specs { gap: 10px; margin-bottom: 4px }
  .gm-inv-spec-label { font-size: 8px }
  .gm-inv-spec-val { font-size: 12px }
  .gm-inv-drive-tag { font-size: 10px; padding: 3px 9px }
  .gm-inv-card-grid, .gm-vd-similar-grid { grid-template-columns: 1fr }
  .gm-vd-container { padding-bottom: 56px; padding-inline: 20px; padding-top: 32px }
  .gm-vd-breadcrumb { font-size: 12px; padding-bottom: 16px }
  .gm-vd-sold-banner { align-items: flex-start; flex-direction: column; gap: 4px }
  .gm-vd-body { gap: 28px }
  .gm-vd-left { gap: 28px }
  .gm-vd-gallery { gap: 0; margin-inline: -20px; width: calc(100% + 40px) }
  .gm-vd-main-img { aspect-ratio: auto; border-radius: 0; height: 54vw }
  .gm-vd-thumbs { background: var(--bg-2); gap: 6px; padding: 8px 20px }
  .gm-vd-thumb { border-radius: 6px; flex: 0 0 64px; min-width: 64px }
  .gm-vd-price-block, .gm-vd-calc { padding: 18px }
  .gm-vd-price { font-size: 26px }
  .gm-lightbox-nav-l { left: 8px }
  .gm-lightbox-nav-r { right: 8px }
  .admin-form { grid-template-columns: 1fr }
  .admin-credentials { grid-template-columns: 1fr }
  .admin-credentials .admin-message { grid-column: auto }
  .admin-field-full, .admin-actions, .admin-message { grid-column: auto }
  .admin-login-card { padding: 28px 22px }
  .admin-application { grid-template-columns: 1fr }
}

/* Inventory keeps its controls, but inherits the homepage's visual system. */
.inventory-page {
  --bg: var(--void);
  --bg-2: #161917;
  --bg-3: #222621;
  --fg: var(--cream);
  --fg-2: rgba(255, 252, 225, .62);
  --fg-3: rgba(255, 252, 225, .4);
  --fg-4: rgba(255, 252, 225, .12);
  --accent: var(--scot-lift);
  --accent-hover: var(--cream);
  --accent-glow: rgba(108, 196, 255, .28);
}
.inventory-page::before { display: none }
.inventory-page .container { max-width: var(--max); padding-inline: var(--gutter) }
.inventory-page .gm-inv-hero { align-items: flex-end; border-bottom: 1px solid var(--stone); display: flex; min-height: 54vh }
.inventory-page .gm-inv-hero-inner { width: 100% }
.inventory-page .gm-inv-hero-title { font-size: clamp(52px, 7vw, 94px); font-weight: 400; letter-spacing: -.045em }
.inventory-page .gm-inv-hero-sub { color: var(--ash); max-width: 520px }
.inventory-page .btn-primary,
.inventory-page .gm-sf-status-active,
.inventory-page .gm-sf-reset-btn,
.inventory-page .gm-inv-price-badge { color: var(--void) !important }
.inventory-page .gm-vd-sold-banner { background: rgba(108, 196, 255, .08); border-color: rgba(108, 196, 255, .24) }

@media (max-width: 640px) {
  .inventory-page .gm-inv-hero { min-height: 42vh }
  .inventory-page .gm-inv-hero-title { font-size: clamp(42px, 13vw, 58px) }
}
