:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #15181d;
  --muted: #66707c;
  --dark: #0e1014;
  --dark-2: #16191f;
  --line: #dfe3e8;
  --accent: #ff7900;
  --accent-2: #ff9b35;
  --blue: #0067c5;
  --shadow: 0 18px 45px rgba(14, 16, 20, 0.10);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 16, 20, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
}
.nav-wrap { height: 84px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.brand img { width: 118px; height: 66px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 32px; }
.desktop-nav a { color: #fff; font-weight: 700; font-size: .94rem; position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: #171a20;
  padding: 10px 11px;
  cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: none;
  position: absolute;
  top: 74px;
  right: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 10px;
  border-radius: 16px;
  background: #171a20;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
}
.mobile-nav.open { display: grid; }
.mobile-nav a { color: #fff; font-weight: 700; padding: 14px 16px; border-radius: 10px; }
.mobile-nav a:hover { background: rgba(255,255,255,.06); }

.hero {
  min-height: 650px;
  position: relative;
  display: grid;
  place-items: center;
  background: url("../images/hero-showroom.png") center/cover no-repeat;
  overflow: hidden;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,13,.92) 0%, rgba(8,10,13,.72) 44%, rgba(8,10,13,.36) 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, rgba(8,10,13,.5)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; color: #fff; padding-block: 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .76rem; letter-spacing: .16em; font-weight: 800; color: #fff; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.eyebrow.dark { color: #525c67; }
.hero h1 { max-width: 760px; margin: 20px 0 18px; font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: .97; letter-spacing: -.05em; }
.hero p { max-width: 720px; margin: 0; font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(255,255,255,.83); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #111; box-shadow: 0 12px 30px rgba(255,121,0,.22); }
.btn-primary:hover { box-shadow: 0 16px 35px rgba(255,121,0,.32); }
.btn-secondary { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.btn-outline-dark { color: var(--dark); border-color: #abb3bd; background: transparent; }
.btn-full { width: 100%; border: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 32px; color: rgba(255,255,255,.78); font-size: .92rem; }
.hero-badges span::first-letter { color: var(--accent); }

.quick-links { position: relative; z-index: 4; margin-top: -52px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-grid article { background: rgba(255,255,255,.96); border: 1px solid rgba(220,225,230,.9); border-radius: 18px; padding: 22px; display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; box-shadow: var(--shadow); }
.quick-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: #111319; color: #fff; font-size: 1.2rem; overflow: hidden; }
.quick-icon img { width: 28px; height: 28px; object-fit: contain; display: block; filter: invert(1); }
.quick-grid h2 { font-size: 1.05rem; margin: 0 0 3px; }
.quick-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.quick-grid a { grid-column: 2; color: var(--blue); font-weight: 800; font-size: .88rem; }

.section { padding: 100px 0; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2, .swap-copy h2, .contact-copy h2, .location-header h2, .contact-strip h2 { margin: 12px 0 12px; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p, .swap-copy p, .contact-copy > p { color: var(--muted); margin: 0; }
.services { background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff 0%, #fafbfc 100%); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -60px; top: -60px; border-radius: 50%; background: rgba(255,121,0,.08); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfd5dc; }
.icon-box { width: 86px; height: 86px; border-radius: 18px; background: #f1f3f5; display: grid; place-items: center; margin-bottom: 24px; overflow: hidden; }
.icon-box img { width: 72px; height: 72px; object-fit: contain; }
.service-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.service-card p { margin: 0 0 22px; color: var(--muted); }
.service-card a { color: var(--blue); font-weight: 800; }
.service-card a span { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.service-card a:hover span { transform: translateX(4px); }

.swap-section { padding: 100px 0; background: linear-gradient(135deg, #0d0f13 0%, #191d24 100%); color: #fff; overflow: hidden; }
.swap-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.swap-copy p { color: rgba(255,255,255,.72); }
.swap-copy ul { padding: 0; margin: 28px 0 32px; list-style: none; display: grid; gap: 12px; }
.swap-copy li { position: relative; padding-left: 30px; color: rgba(255,255,255,.88); }
.swap-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.swap-visual { min-height: 380px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; }
.swap-visual::before { content: ""; position: absolute; width: 360px; height: 360px; right: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(255,121,0,.24), transparent 68%); filter: blur(2px); }
.swap-car { position: relative; z-index: 2; aspect-ratio: 1.15; border-radius: 28px; border: 1px solid rgba(255,255,255,.17); background: linear-gradient(145deg, #2d323b, #15181d); display: grid; place-items: center; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; letter-spacing: .08em; box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.swap-car.accent { background: linear-gradient(145deg, #ff8b1f, #ca5800); color: #161616; }
.swap-arrows { position: relative; z-index: 3; display: grid; gap: 8px; padding: 0 14px; font-size: 2rem; color: #fff; }

.process-section { background: #f7f8fa; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #111319; color: var(--accent); font-weight: 900; }
.steps h3 { margin: 20px 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.contact-strip { background: #fff; padding: 58px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-strip-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-strip h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-top: 8px; }
.contact-strip p { margin: 0; color: var(--muted); }
.contact-buttons { display: grid; gap: 12px; min-width: min(390px, 100%); }
.contact-button { min-height: 72px; border: 2px solid var(--blue); border-radius: 14px; padding: 12px 18px; display: flex; align-items: center; gap: 15px; transition: .2s ease; background: #fff; }
.contact-button:hover { transform: translateY(-2px); background: #f5faff; }
.contact-symbol { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #eef7ff; color: var(--blue); font-size: 1.25rem; }
.contact-button small { display: block; color: var(--muted); font-size: .72rem; }
.contact-button strong { color: #054f8a; font-size: 1.06rem; }

.contact-section { background: #f5f6f8; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-detail { display: flex; gap: 14px; margin-top: 24px; align-items: flex-start; }
.contact-detail > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: #fff; border: 1px solid var(--line); }
.contact-detail strong { display: block; }
.contact-detail p { margin: 3px 0 0; color: var(--muted); }
.contact-detail a { color: var(--blue); font-weight: 700; }
.contact-form { background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(14,16,20,.06); }
.contact-form label { display: block; margin: 0 0 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #525c67; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #cfd5dc; border-radius: 10px; background: #fff; padding: 13px 14px; margin-bottom: 18px; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,103,197,.10); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gdpr-row { display: flex !important; align-items: flex-start; gap: 10px; text-transform: none !important; letter-spacing: 0 !important; font-weight: 500 !important; color: var(--muted) !important; font-size: .78rem !important; margin-bottom: 18px !important; cursor: pointer; }
.gdpr-row input { width: 16px; height: 16px; margin: 3px 0 0 !important; flex: 0 0 auto; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }

.location-section { background: #fff; padding-top: 70px; }
.location-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-bottom: 28px; }
.location-header h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 0; }
.map-wrap { width: 100%; height: 430px; background: #ddd; }
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-consent-placeholder { min-height: 100%; padding: 36px 24px; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; background: radial-gradient(circle at 50% 25%, #fff 0, #f0f3f6 48%, #e4e8ec 100%); }
.map-consent-placeholder[hidden] { display: none; }
.map-consent-placeholder > div { max-width: 600px; }
.map-consent-placeholder h3 { margin: 0 0 7px; font-size: clamp(1.35rem, 3vw, 2rem); }
.map-consent-placeholder p { margin: 0; color: var(--muted); }
.map-consent-pin { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #111319; color: var(--accent); font-size: 2rem; box-shadow: 0 14px 34px rgba(14,16,20,.18); }
.map-external-link { color: var(--blue); font-size: .86rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

footer { background: #0e1014; color: rgba(255,255,255,.75); padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.footer-brand img { width: 150px; height: 84px; object-fit: contain; margin-bottom: 14px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin: 0 0 14px; }
.footer-grid a, .footer-grid p { display: block; margin: 8px 0; font-size: .9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.10); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: rgba(255,255,255,.48); }
.footer-cookie-button { padding: 0; border: 0; background: transparent; color: rgba(255,255,255,.72); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookie-button:hover { color: #fff; }

/* ---------- cookie and Google Maps consent ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; z-index: 12000; left: 18px; right: 18px; bottom: 18px; }
.cookie-banner-inner { width: min(1180px, 100%); margin-inline: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 20px; padding: 22px; color: #fff; background: rgba(14,16,20,.98); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; box-shadow: 0 24px 80px rgba(0,0,0,.42); backdrop-filter: blur(16px); }
.cookie-banner-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: #141414; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-size: 1.8rem; font-weight: 900; }
.cookie-banner-view { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.cookie-banner-view[hidden], .cookie-customize[hidden] { display: none !important; }
.cookie-banner-copy { min-width: 0; }
.cookie-kicker { color: var(--accent-2); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.cookie-banner h2 { margin: 2px 0 4px; font-size: 1.18rem; }
.cookie-banner p { margin: 0; max-width: 720px; color: rgba(255,255,255,.72); font-size: .82rem; line-height: 1.55; }
.cookie-banner-copy a { display: inline-block; margin-top: 5px; color: #fff; font-size: .78rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; min-width: 390px; }
.cookie-banner-actions-three { grid-template-columns: repeat(3, 1fr); min-width: 610px; }
.cookie-choice { min-height: 48px; padding: 9px 15px; border-radius: 11px; font-weight: 850; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.cookie-choice:hover { transform: translateY(-1px); }
.cookie-choice-essential { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); }
.cookie-choice-essential:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.cookie-choice-customize { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); }
.cookie-choice-customize:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); }
.cookie-choice-accept { color: #151515; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: 1px solid var(--accent); }
.cookie-choice:focus-visible, .footer-cookie-button:focus-visible, .map-external-link:focus-visible { outline: 3px solid #7fc4ff; outline-offset: 3px; }
.cookie-customize { min-width: 0; display: grid; grid-template-columns: minmax(210px,.7fr) minmax(380px,1.3fr) auto; align-items: center; gap: 20px; }
.cookie-category-list { display: grid; gap: 7px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.05); cursor: pointer; }
.cookie-category.is-required { opacity: .72; cursor: default; }
.cookie-category span { display: grid; min-width: 0; }
.cookie-category strong { font-size: .84rem; }
.cookie-category small { color: rgba(255,255,255,.65); font-size: .72rem; line-height: 1.4; }
.cookie-category input { appearance: none; flex: 0 0 auto; width: 42px; height: 24px; margin: 0; border: 1px solid rgba(255,255,255,.38); border-radius: 999px; background: rgba(255,255,255,.12); cursor: pointer; position: relative; }
.cookie-category input::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .18s ease; }
.cookie-category input:checked { border-color: var(--accent); background: var(--accent); }
.cookie-category input:checked::after { transform: translateX(18px); background: #141414; }
.cookie-category input:disabled { cursor: not-allowed; }

@media (max-width: 900px) {
  .cookie-banner-inner { grid-template-columns: auto 1fr; }
  .cookie-banner-view { grid-template-columns: 1fr; }
  .cookie-banner-actions, .cookie-banner-actions-three { grid-column: 1 / -1; min-width: 0; }
  .cookie-customize { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .cookie-banner-inner { grid-template-columns: 1fr; gap: 12px; max-height: calc(100vh - 20px); overflow-y: auto; padding: 18px; border-radius: 16px; }
  .cookie-banner-icon { display: none; }
  .cookie-banner-actions, .cookie-banner-actions-three { grid-column: auto; grid-template-columns: 1fr; }
  .cookie-choice { width: 100%; }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-wrap { height: 76px; }
  .brand img { width: 102px; height: 58px; }
  .hero { min-height: 610px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(8,10,13,.9), rgba(8,10,13,.62)); }
  .quick-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .quick-links { margin-top: -36px; }
  .swap-grid, .contact-grid, .contact-strip-inner { grid-template-columns: 1fr; }
  .swap-visual { min-height: 300px; }
  .contact-buttons { min-width: 0; width: 100%; }
  .location-header { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero { min-height: 570px; background-position: 62% center; }
  .hero-content { padding-block: 72px; }
  .hero h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .hero p { font-size: .98rem; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: 8px 16px; font-size: .82rem; }
  .section, .swap-section { padding: 74px 0; }
  .service-card { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 22px; }
  .swap-visual { grid-template-columns: 1fr; gap: 14px; }
  .swap-arrows { display: flex; justify-content: center; transform: rotate(90deg); }
  .swap-car { aspect-ratio: 2.1; }
  .contact-button { padding-inline: 14px; }
  .contact-button strong { font-size: .96rem; }
  .map-wrap { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}


/* ---------- shared additions ---------- */
.desktop-nav a.active::after { right: 0; }
.flash-wrap { position: relative; z-index: 20; padding-top: 18px; }
.flash { padding: 14px 16px; border-radius: 12px; border: 1px solid; font-weight: 700; }
.flash-success { background: #effbf3; border-color: #b9e4c6; color: #176b35; }
.flash-error { background: #fff1f1; border-color: #efb8b8; color: #9a2727; }
.row-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.latest-stock { background: #f4f6f8; }
.homepage-cars { margin-top: 10px; }

/* ---------- inventory ---------- */
.inventory-page { background: #f5f6f7; min-height: 70vh; }
.inventory-hero { background: #fff; padding: 72px 0 32px; border-bottom: 1px solid var(--line); }
.inventory-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.inventory-title-row h1 { margin: 10px 0 8px; font-size: clamp(2.4rem, 6vw, 4.7rem); line-height: 1; letter-spacing: -.04em; }
.inventory-title-row p { margin: 0; color: var(--muted); max-width: 700px; }
.inventory-count { min-width: 120px; text-align: center; padding: 14px 20px; border: 1px solid var(--line); border-radius: 16px; background: #f8f9fa; }
.inventory-count strong { display: block; font-size: 1.8rem; line-height: 1; }
.inventory-count span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

.inventory-filters { margin-top: 32px; display: grid; grid-template-columns: 1.45fr repeat(4,1fr) auto auto; gap: 12px; align-items: end; }
.inventory-filters label { display: grid; gap: 6px; }
.inventory-filters label > span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #58616c; }
.inventory-filters input, .inventory-filters select { min-height: 48px; border-radius: 11px; border: 1px solid #cfd5dc; background: #fff; padding: 0 12px; outline: none; }
.inventory-filters input:focus, .inventory-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,103,197,.09); }
.inventory-filters .btn { min-height: 48px; }
.filter-reset { min-height: 48px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--muted); font-weight: 700; }

.inventory-list-section { padding: 34px 0 90px; }
.car-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.car-card { min-width: 0; background: #fff; border: 1px solid #d9dde2; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 10px rgba(20,25,30,.08); transition: transform .2s ease, box-shadow .2s ease; }
.car-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(20,25,30,.13); }
.car-card-link { display: block; height: 100%; }
.car-card-image { position: relative; aspect-ratio: 1.5; background: #eceff1; overflow: hidden; }
.car-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.car-card:hover .car-card-image img { transform: scale(1.025); }
.price-badge { position: absolute; top: 0; left: 0; z-index: 2; padding: 5px 9px; background: #238a52; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .03em; }
.price-badge.sold { background: #555c63 !important; }
.car-card.car-card-sold,
.car-card[data-status="sold"] {
  position: relative !important;
  background: #c9ced3 !important;
  filter: grayscale(100%) !important;
  opacity: .68 !important;
  transform: none !important;
  box-shadow: none !important;
}
.car-card.car-card-sold::after,
.car-card[data-status="sold"]::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: rgba(55,62,68,.30);
  pointer-events: none;
}
.car-card.car-card-sold .car-card-image img,
.car-card[data-status="sold"] .car-card-image img {
  filter: grayscale(100%) brightness(.74) !important;
  transform: none !important;
}
.car-card.car-card-sold .price-badge.sold,
.car-card[data-status="sold"] .price-badge.sold {
  z-index: 4 !important;
  background: #555c63 !important;
}
.car-card.car-card-sold:hover,
.car-card[data-status="sold"]:hover {
  transform: none !important;
  box-shadow: none !important;
}
.car-image-placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg,#dfe3e7,#f6f7f8); color: #3b4148; }
.car-image-placeholder span { font-weight: 900; font-size: 1.55rem; }
.car-image-placeholder small { color: #747c85; }

.car-card-body { padding: 14px 14px 13px; }
.car-card-body h2 { margin: 0; font-size: 1.05rem; line-height: 1.2; }
.car-variant { min-height: 1.3em; margin: 6px 0 8px; color: #313943; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-meta { margin: 0; color: #2c333b; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-meta span { color: #a2a8ae; padding: 0 3px; }
.car-location { margin: 7px 0 11px; font-size: .75rem; color: #36414c; }
.car-card-pricing { border-top: 1px solid #e2e5e8; padding-top: 10px; display: grid; gap: 6px; }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: .8rem; }
.price-line strong { font-size: .9rem; }
.price-line.main { font-size: .88rem; }
.price-line.main strong { font-size: 1rem; color: #11151a; }
.price-line.original-price strong { color: #747c85; text-decoration: line-through; }
.price-line.sold-price strong { color: #b13333; }

.load-status { min-height: 70px; display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; }
.spinner { width: 17px; height: 17px; border: 2px solid #d3d7dc; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#load-sentinel { height: 1px; }
.empty-state { min-height: 420px; display: grid; place-items: center; align-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; }
.empty-state img { width: 100px; height: 100px; object-fit: contain; opacity: .7; margin-bottom: 12px; }
.empty-state h2 { margin: 0 0 8px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); }

/* ---------- car detail ---------- */
.car-detail-page { background: #fff; }
.car-detail-top { padding: 34px 0 48px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; color: #5a6470; font-size: .86rem; }
.breadcrumbs a { color: #00689e; font-weight: 800; }
.gallery-layout { display: grid; grid-template-columns: 1fr 165px; gap: 12px; }
.gallery-main { position: relative; background: #f0f1f2; min-height: 560px; max-height: 680px; overflow: hidden; }
.gallery-main > img { width: 100%; height: 100%; min-height: 560px; max-height: 680px; object-fit: contain; background: #efefec; }
.detail-image-placeholder { height: 560px; display: grid; place-content: center; text-align: center; background: linear-gradient(145deg,#e5e8eb,#f8f9fa); }
.detail-image-placeholder span { font-size: 2rem; font-weight: 900; }
.detail-image-placeholder small { color: var(--muted); }
.gallery-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 52px; height: 62px; border: 0; background: rgba(255,255,255,.68); font-size: 2rem; cursor: pointer; }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-thumbs { display: grid; grid-auto-rows: 1fr; gap: 10px; max-height: 680px; overflow-y: auto; }
.gallery-thumb { padding: 0; border: 2px solid transparent; background: #eee; cursor: pointer; min-height: 94px; }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.car-headline { padding-top: 28px; }
.detail-price-badge { display: inline-block; background: #238a52; color: #fff; padding: 7px 26px; font-weight: 900; font-size: 1rem; letter-spacing: .03em; }
.detail-price-badge.sold { background: #626970; }
.car-headline h1 { margin: 24px 0 0; font-size: clamp(2rem,4vw,3.2rem); line-height: 1.05; }
.car-subtitle { margin: 8px 0 0; font-size: 1.05rem; }
.headline-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 7px 0 0; color: #27313b; }
.headline-meta span { color: #c5c9ce; }
.headline-price-row { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: end; gap: 20px; }
.headline-price-row > div { padding: 13px 20px; min-width: 165px; background: #f7f8f9; border: 1px solid var(--line); border-radius: 12px; }
.headline-price-row small { display: block; color: var(--muted); }
.headline-price-row strong { font-size: 1.35rem; }
.headline-price-row .original-price-detail strong { color: #747c85; text-decoration: line-through; }
.headline-price-row .sold-price-detail strong { color: #b13333; }
.tire-availability { display: inline-flex; margin-bottom: 4px; padding: 5px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.tire-availability.available { color: #176b3d; background: #e9f7ef; }
.tire-availability.unavailable { color: #6b4141; background: #f4eaea; }

.spec-highlight-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.spec-highlight-grid article { min-height: 112px; display: grid; place-content: center; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.spec-highlight-grid strong { font-size: 1.15rem; }
.spec-highlight-grid span { color: var(--muted); font-size: .75rem; margin-top: 4px; }

.detail-section { padding: 22px 0; background: #fff; }
.narrow-detail { max-width: 1160px; }
.detail-box, .facts-box, .condition-card { border: 1px solid #e1e4e7; border-radius: 11px; background: #fafafa; overflow: hidden; }
.detail-box-head, .condition-head { padding: 20px 24px; background: #fff; border-bottom: 1px solid #e3e5e8; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.detail-box-head h2, .condition-head h3 { margin: 0; }
.detail-box-body { padding: 24px; }
.prose { color: #28313a; }
.standalone-title { font-size: 1.8rem; margin: 0 0 18px; }
.section-title-row { margin-bottom: 16px; }
.section-title-row h2 { margin: 8px 0 0; font-size: 2rem; }
.condition-stack { display: grid; gap: 20px; }
.condition-head h3 { font-size: 1.2rem; }
.condition-rating { min-width: 250px; text-align: center; border-radius: 999px; padding: 7px 15px; border: 1px solid #e0e4e8; background: #fff; color: #25313b; }
.condition-rating.normal, .condition-rating.better { color: #006a9e; }
.condition-rating.action { color: #a33636; background: #fff5f5; }
.condition-body { padding: 22px 24px; }
.condition-body > small { display: block; margin-bottom: 6px; color: #252d34; }
.condition-body > p { margin: 0 0 16px; }
.condition-body details { border-top: 1px solid #e3e5e7; padding-top: 15px; }
.condition-body summary { cursor: pointer; font-size: .84rem; font-weight: 700; }
.condition-body details p { color: #616a74; font-size: .82rem; margin-bottom: 0; }

.tire-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: #e5e7e9; }
.tire-card { background: #fafafa; padding: 28px; text-align: center; }
.tire-card h3 { margin-top: 0; }
.tire-car-icon { font-size: 3rem; }
.tire-depths { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 15px auto; max-width: 280px; }
.tire-depths span { padding: 8px; background: #fff; border-radius: 8px; border: 1px solid #e3e5e8; }
.tire-card p { color: #59636e; }

.equipment-grid { padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px 14px; }
.equipment-item { min-height: 48px; padding: 10px 14px; border-radius: 9px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.facts-box { padding: 18px; max-width: 680px; }
.fact-row { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 10px 14px; margin-bottom: 7px; background: #fff; border-radius: 9px; }
.fact-row:last-child { margin-bottom: 0; }
.fact-row strong { text-align: right; max-width: 58%; }

.car-contact-strip { margin-top: 40px; background: #f5f6f8; }
.mini-inquiry { min-width: min(490px,100%); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-inquiry input, .mini-inquiry textarea { border: 1px solid #cfd5dc; border-radius: 9px; padding: 11px 12px; background: #fff; }
.mini-inquiry input[name="email"], .mini-inquiry textarea, .mini-inquiry .gdpr-row, .mini-inquiry button { grid-column: 1 / -1; }
.mini-inquiry textarea { min-height: 92px; resize: vertical; }
.mini-inquiry .gdpr-row { margin: 0 !important; }

/* ---------- responsive inventory/detail ---------- */
@media (max-width: 1180px) {
  .car-grid { grid-template-columns: repeat(4,1fr); }
  .inventory-filters { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2,1fr); }
  .inventory-title-row { align-items: flex-start; }
  .inventory-filters { grid-template-columns: repeat(2,1fr); }
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(5,1fr); grid-auto-rows: 90px; max-height: none; overflow-x: auto; }
  .gallery-main, .gallery-main > img { min-height: 430px; }
  .spec-highlight-grid { grid-template-columns: repeat(2,1fr); }
  .equipment-grid { grid-template-columns: repeat(2,1fr); }
  .row-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .inventory-hero { padding-top: 46px; }
  .inventory-title-row { flex-direction: column; align-items: stretch; }
  .inventory-count { align-self: flex-start; }
  .inventory-filters { grid-template-columns: 1fr; }
  .inventory-filters .btn, .filter-reset { width: 100%; justify-content: center; }
  .car-grid { grid-template-columns: 1fr; gap: 18px; }
  .car-card-image { aspect-ratio: 1.55; }
  .car-card-body h2 { font-size: 1.2rem; }
  .gallery-main, .gallery-main > img, .detail-image-placeholder { min-height: 310px; height: 310px; }
  .gallery-thumbs { grid-template-columns: repeat(4,90px); justify-content: start; }
  .gallery-thumb { min-height: 72px; }
  .headline-price-row { align-items: stretch; }
  .headline-price-row > div, .headline-price-row .btn { width: 100%; }
  .spec-highlight-grid { grid-template-columns: 1fr 1fr; }
  .condition-head { align-items: flex-start; flex-direction: column; }
  .condition-rating { min-width: 0; width: 100%; }
  .tire-grid { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .fact-row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .fact-row strong { max-width: none; text-align: left; }
  .mini-inquiry { grid-template-columns: 1fr; min-width: 0; width: 100%; }
  .mini-inquiry input, .mini-inquiry textarea, .mini-inquiry .gdpr-row, .mini-inquiry button { grid-column: 1; }
}

.remark-image-grid{padding:22px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.remark-image-grid a{display:block;border-radius:9px;overflow:hidden;background:#eee}
.remark-image-grid img{width:100%;height:220px;object-fit:cover}
@media(max-width:900px){.remark-image-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.remark-image-grid{grid-template-columns:1fr}.remark-image-grid img{height:auto}}


/* ---------- browser message toast ---------- */
.toast-stack {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 9999;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}
.site-toast {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 14px;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 15px;
  box-shadow: 0 18px 55px rgba(15, 20, 25, .2);
  pointer-events: auto;
  animation: toast-in .28s ease both;
}
.site-toast.is-hiding { animation: toast-out .22s ease both; }
.site-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 900;
}
.site-toast-success { border-left: 4px solid #1f9d55; }
.site-toast-success .site-toast-icon { background: #e9f8ef; color: #177a41; }
.site-toast-error { border-left: 4px solid #c43f3f; }
.site-toast-error .site-toast-icon { background: #fff0f0; color: #a62c2c; }
.site-toast-copy { display: grid; gap: 2px; min-width: 0; }
.site-toast-copy strong { font-size: .92rem; color: #11151a; }
.site-toast-copy span { font-size: .82rem; line-height: 1.45; color: #59636e; }
.site-toast-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #69727d;
  font-size: 1.35rem;
  cursor: pointer;
}
.site-toast-close:hover { background: #f1f3f5; color: #11151a; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) translateX(12px); } to { opacity: 1; transform: translateY(0) translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(18px); } }
@media (max-width: 720px) {
  .toast-stack { top: 76px; right: 16px; left: 16px; width: auto; }
}

/* Anti-spam honeypot: visually hidden, but left in the DOM for bots. */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Villkor ---------- */
.footer-legal { display: flex; align-items: center; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,.72); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: #fff; }
.terms-page { background: #f5f6f8; min-height: 70vh; }
.terms-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 76px 0 42px; }
.terms-container { max-width: 900px; }
.terms-hero h1 { margin: 10px 0 14px; font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -.04em; }
.terms-intro { max-width: 760px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.terms-content { padding-top: 48px; }
.terms-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin-bottom: 16px; }
.terms-card h2 { margin: 0 0 10px; font-size: 1.18rem; }
.terms-card p { margin: 0; color: #4f5964; line-height: 1.75; }
.terms-card a { color: var(--blue); font-weight: 700; }
.gdpr-row a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.terms-updated { margin: 24px 0 0; color: var(--muted); font-size: .84rem; }
@media (max-width: 620px) { .footer-legal { align-items: flex-start; flex-direction: column; gap: 8px; } .terms-card { padding: 22px; } }

/* Friendly error pages without inline CSS (keeps CSP strict). */
.system-error-page { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 32px; background: #f5f6f8; color: #17191d; }
.system-error-card { width: min(680px, 100%); background: #fff; border: 1px solid #dfe3e8; border-radius: 20px; padding: clamp(28px, 6vw, 54px); text-align: center; box-shadow: 0 18px 55px rgba(0,0,0,.08); }
.system-error-logo { width: min(230px, 70%); height: auto; margin-bottom: 30px; }
.system-error-code { margin: 0 0 10px; color: var(--blue); font-size: .78rem; font-weight: 900; letter-spacing: .16em; }
.system-error-card h1 { margin: 0 0 14px; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.035em; }
.system-error-card > p:not(.system-error-code) { max-width: 520px; margin: 0 auto; line-height: 1.7; color: #59636e; }
.system-error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.system-error-actions .btn { min-width: 160px; }
@media (max-width: 520px) { .system-error-page { padding: 18px; } .system-error-actions { display: grid; } }
