/* ============================================================================
   NasimCo — Shared Stylesheet
   Brand tokens per Brand Guidelines v1.0
   ============================================================================ */

:root {
  --teal:        #002D30;
  --teal-soft:   #013f43;
  --teal-deep:   #001a1c;
  --lime:        #91CC35;
  --lime-bright: #a3df47;
  --sea:         #45B062;
  --platinum:    #D7D7D7;
  --bone:        #f3f4f1;
  --white:       #ffffff;
  --ink-mute:    #5a6a6c;
  --ink-soft:    #8a9698;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--teal);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select { font: inherit; color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 4rem); }

/* ============ TAB LABEL ============ */
.tab {
  display: inline-flex;
  align-items: center;
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  padding: 0.55rem 1.1rem 0.6rem 1.2rem;
  border-radius: var(--r-sm) var(--r-sm) 0 var(--r-sm);
  position: relative;
}
.tab::after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 0;
  width: 18px;
  height: 14px;
  background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.tab.lime { background: var(--lime); color: var(--teal); }
.tab.lime::after { background: var(--lime); }
.tab.outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.tab.outline::after { background: transparent; border: 1px solid rgba(255,255,255,0.3); border-top: none; border-left: none; }

/* ============ LOGO ============ */
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--teal); }
.logo-text { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.025em; line-height: 1; }
.logo.on-dark .logo-text { color: var(--white); }

/* PNG logo image — replace logo-dark.png and logo-white.png in your folder.
   Recommended: 200×64px PNG with transparent background.
   logo-dark.png  → for light backgrounds (regular nav, footer of contact card)
   logo-white.png → for dark backgrounds (hero nav, footer)              */
.logo-img { height: 36px; width: auto; display: block; }
.logo-img-white { display: none; }
nav.top.on-hero:not(.scrolled) .logo-img-dark { display: none; }
nav.top.on-hero:not(.scrolled) .logo-img-white { display: block; }
.logo.on-dark .logo-img-dark { display: none; }
.logo.on-dark .logo-img-white { display: block; }

/* ============ NAV ============ */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem clamp(1.5rem, 4vw, 4rem);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border 0.5s var(--ease);
  background: transparent;
}
nav.top.scrolled,
nav.top.solid {
  background: rgba(243, 244, 241, 0.85);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(0, 45, 48, 0.08);
  padding: 0.7rem clamp(1.5rem, 4vw, 4rem);
}
nav.top.on-hero:not(.scrolled) .logo .logo-text { color: var(--white); }
nav.top.on-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.75); }
nav.top.on-hero:not(.scrolled) .nav-links a:hover,
nav.top.on-hero:not(.scrolled) .nav-links a.active { color: var(--white); }
nav.top.on-hero:not(.scrolled) .hamburger span { background: var(--white); }

.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: 0.95rem;
  color: var(--teal); opacity: 0.7;
  position: relative; padding: 0.4rem 0;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a.active::before {
  content: ''; position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%; background: var(--lime);
}
.nav-cta {
  background: var(--lime); color: var(--teal);
  font-weight: 700; font-size: 0.9rem;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  transition: all 0.4s var(--ease);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.nav-cta:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(145, 204, 53, 0.3);
}
.nav-cta .arrow { transition: transform 0.3s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

/* ============ HAMBURGER + MOBILE DRAWER ============ */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 110;
}
.hamburger span {
  position: absolute;
  width: 22px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}
.hamburger span:nth-child(1) { transform: translateY(-6px); }
.hamburger span:nth-child(3) { transform: translateY(6px); }
body.drawer-open .hamburger span { background: var(--white); }
body.drawer-open .hamburger span:nth-child(1) { transform: translateY(0) rotate(45deg); }
body.drawer-open .hamburger span:nth-child(2) { opacity: 0; }
body.drawer-open .hamburger span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.drawer {
  position: fixed;
  inset: 0;
  background: var(--teal);
  z-index: 105;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
}
.drawer::before {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -30%;
  width: 90%;
  height: 70%;
  background: radial-gradient(circle at 30% 30%, rgba(145, 204, 53, 0.08), transparent 60%);
  pointer-events: none;
}
body.drawer-open .drawer { transform: translateX(0); }
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  position: relative;
  z-index: 2;
}
.drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.drawer-links a::after {
  content: '→';
  font-size: 1.2rem;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.drawer-links a:hover,
.drawer-links a.active {
  color: var(--lime);
  padding-left: 0.5rem;
}
.drawer-links a:hover::after,
.drawer-links a.active::after {
  color: var(--lime);
  transform: translateX(4px);
}
.drawer-cta {
  margin-top: 2.5rem;
  background: var(--lime);
  color: var(--teal);
  font-weight: 700;
  padding: 1.1rem 1.6rem;
  border-radius: 999px;
  text-align: center;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}
.drawer-meta {
  margin-top: auto;
  padding-top: 3rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}
.drawer-meta strong { color: var(--lime); display: block; margin-bottom: 0.3rem; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.4s var(--ease);
  cursor: pointer; border: none;
  text-align: center;
  justify-content: center;
}
.btn-lime { background: var(--lime); color: var(--teal); }
.btn-lime:hover {
  background: var(--lime-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(145, 204, 53, 0.35);
}
.btn-ghost-light {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--lime); color: var(--lime);
}
.btn-ghost-dark {
  background: transparent; color: var(--teal);
  border: 1.5px solid rgba(0, 45, 48, 0.15);
}
.btn-ghost-dark:hover {
  border-color: var(--teal); background: var(--teal); color: var(--white);
}
.btn-solid-dark {
  background: var(--teal); color: var(--white);
}
.btn-solid-dark:hover {
  background: var(--teal-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 45, 48, 0.25);
}

/* ============ SECTIONS (shared) ============ */
section { padding: clamp(5rem, 10vh, 8rem) 0; position: relative; }
.section-head { margin-bottom: 4rem; max-width: 900px; }
.section-head h2 {
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin-top: 1.5rem; color: var(--teal);
}
.section-head h2 .lime-text { color: var(--lime); font-weight: 800; }
.section-head .desc {
  margin-top: 1.2rem; font-size: 1.1rem;
  color: var(--ink-mute); max-width: 56ch; line-height: 1.6;
}
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.section-head-row .head-link {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 0.3rem;
  transition: gap 0.3s var(--ease);
}
.section-head-row .head-link:hover { gap: 0.8rem; }
section.dark .section-head h2 { color: var(--white); }
section.dark .section-head .desc { color: rgba(255,255,255,0.65); }
section.dark .section-head-row .head-link { color: var(--white); }

/* ============ HERO (home) ============ */
.hero {
  position: relative; min-height: 100vh;
  background: var(--teal); color: var(--white);
  overflow: hidden; display: flex; align-items: center;
  padding: 8rem 0 6rem;
}
.hero-curve {
  position: absolute; top: 0; right: -8%;
  width: 70%; height: 100%;
  z-index: 1; pointer-events: none;
}
.hero-curve svg { width: 100%; height: 100%; display: block; }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.04;
  background-image:
    linear-gradient(var(--white) 1px, transparent 1px),
    linear-gradient(90deg, var(--white) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 3; width: 100%; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-tagline {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  opacity: 0; animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}
.hero-tagline .dot { width: 8px; height: 8px; background: var(--lime); border-radius: 50%; }
h1.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1.02; letter-spacing: -0.035em;
  color: var(--white);
  opacity: 0; animation: fadeUp 1s var(--ease) 0.5s forwards;
}
h1.hero-title .lime-text { color: var(--lime); font-weight: 800; }
.hero-sub {
  margin-top: 1.8rem; font-size: 1.15rem; line-height: 1.55;
  color: rgba(255,255,255,0.78); max-width: 38ch; font-weight: 400;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.7s forwards;
}
.hero-cta-row {
  margin-top: 2.8rem; display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards;
}
.hero-feature {
  position: relative; border-radius: var(--r-lg);
  overflow: hidden; aspect-ratio: 4/5;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  opacity: 1;
  animation: fadeUp 1.2s var(--ease) 0.8s both;
}
.hero-feature img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-tag {
  position: absolute; top: 1.2rem; left: 1.2rem;
  background: var(--white); color: var(--teal);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-feature-tag .ping {
  width: 8px; height: 8px; background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(145, 204, 53, 0.25);
}
.hero-feature-info {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(0, 45, 48, 0.85);
  backdrop-filter: blur(12px);
  padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  color: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.hero-feature-info .name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.hero-feature-info .meta { font-size: 0.78rem; opacity: 0.65; margin-top: 0.15rem; }
.hero-feature-info .arrow-btn {
  width: 38px; height: 38px;
  background: var(--lime); color: var(--teal);
  border-radius: 50%; display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.hero-feature:hover .arrow-btn { transform: rotate(-45deg); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============ STATS ============ */
.stats {
  background: var(--teal-deep); color: var(--white);
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; align-items: center;
}
.stat { border-left: 2px solid var(--lime); padding-left: 1.2rem; }
.stat .num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .num span { color: var(--lime); }
.stat .label { font-size: 0.82rem; opacity: 0.6; margin-top: 0.4rem; font-weight: 500; }

/* ============ VALUES ============ */
.values { background: var(--bone); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 2rem 1.6rem;
  border: 1px solid rgba(0, 45, 48, 0.06);
  transition: all 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  box-shadow: 0 20px 50px rgba(0, 45, 48, 0.08);
}
.value-card .num { font-size: 0.78rem; font-weight: 700; color: var(--lime); letter-spacing: 0.05em; }
.value-card .icon {
  width: 52px; height: 52px;
  background: var(--teal); color: var(--lime);
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  margin: 1.2rem 0 1.4rem;
  transition: all 0.4s var(--ease);
}
.value-card:hover .icon { background: var(--lime); color: var(--teal); transform: rotate(-6deg); }
.value-card h3 { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.7rem; }
.value-card p { font-size: 0.92rem; color: var(--ink-mute); line-height: 1.55; }

/* ============ INVENTORY GRID (shared between home preview and inventory page) ============ */
.inventory {
  background: var(--white);
  border-top: 1px solid rgba(0, 45, 48, 0.06);
  border-bottom: 1px solid rgba(0, 45, 48, 0.06);
}
.inv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vehicle {
  background: var(--white); border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid rgba(0, 45, 48, 0.08);
  transition: all 0.5s var(--ease); cursor: pointer;
  display: block;
}
.vehicle:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  box-shadow: 0 24px 60px rgba(0, 45, 48, 0.1);
}
.vehicle-img {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--bone);
}
.vehicle-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
}
.vehicle:hover .vehicle-img img { transform: scale(1.06); }
.vehicle-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--white); color: var(--teal);
  padding: 0.4rem 0.8rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.vehicle-badge .dot { width: 6px; height: 6px; border-radius: 50%; }
.vehicle-badge.in-stock .dot { background: var(--lime); }
.vehicle-badge.new .dot { background: var(--sea); }
.vehicle-badge.reserved .dot { background: #d97706; }
.vehicle-badge.sold .dot { background: #b91c1c; }
.vehicle-body { padding: 1.4rem 1.4rem 1.5rem; }
.vehicle-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.vehicle-name {
  font-weight: 700; font-size: 1.2rem;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--teal);
}
.vehicle-year { font-size: 0.85rem; color: var(--ink-mute); font-weight: 500; margin-top: 0.2rem; }
.vehicle-arrow {
  width: 38px; height: 38px;
  background: var(--bone); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--teal); flex-shrink: 0;
  transition: all 0.4s var(--ease);
}
.vehicle:hover .vehicle-arrow { background: var(--lime); transform: rotate(-45deg); }
.vehicle-specs {
  margin-top: 1.2rem; padding-top: 1.2rem;
  border-top: 1px solid rgba(0, 45, 48, 0.07);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.vehicle-spec { font-size: 0.78rem; color: var(--ink-mute); }
.vehicle-spec .v {
  color: var(--teal); font-weight: 700;
  font-size: 0.9rem; display: block; margin-bottom: 0.1rem;
}
.inv-cta-wrap { text-align: center; margin-top: 3.5rem; }
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--ink-mute);
  font-size: 1.05rem;
}
.empty-state h3 {
  color: var(--teal); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.5rem;
}

/* ============ EDITORIAL GALLERY ============ */
.editorial {
  background: var(--teal); color: var(--white);
  position: relative; overflow: hidden;
}
.editorial-curve {
  position: absolute; top: -10%; left: -10%;
  width: 50%; height: 60%; opacity: 0.06; pointer-events: none;
}
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px; gap: 1.2rem;
}
.gallery figure {
  overflow: hidden; border-radius: var(--r-md);
  position: relative; background: var(--teal-soft);
}
.gallery figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure figcaption {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--white); color: var(--teal);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.g-large  { grid-column: span 7; grid-row: span 2; }
.g-tall   { grid-column: span 5; grid-row: span 2; }
.g-medium { grid-column: span 4; grid-row: span 2; }
.g-small  { grid-column: span 3; grid-row: span 2; }

/* ============ CONTACT ============ */
.showroom { background: var(--bone); }
.showroom-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 4rem; align-items: center;
}
.info-card {
  background: var(--teal); color: var(--white);
  padding: 3rem; border-radius: var(--r-xl);
  position: relative; overflow: hidden;
}
.info-card-curve { position: absolute; bottom: -30%; right: -20%; width: 70%; opacity: 0.08; }
.info-card-content { position: relative; z-index: 2; }
.info-card h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 1.5rem 0 2.5rem;
}
.info-card h2 .lime-text { color: var(--lime); }
.info-row {
  padding: 1.3rem 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid; grid-template-columns: 110px 1fr;
  gap: 1.5rem; align-items: start;
}
.info-row:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.12); }
.info-row .label {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; color: var(--lime);
}
.info-row .value { font-size: 1rem; font-weight: 500; line-height: 1.5; }
.info-row .value a:hover { color: var(--lime); }
.info-row .value .muted { opacity: 0.6; font-size: 0.9rem; font-weight: 400; }
.info-cta-row { display: flex; gap: 0.8rem; margin-top: 2.5rem; flex-wrap: wrap; }

.map-card {
  border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 4/5; position: relative; background: var(--platinum);
}
.map-card img { width: 100%; height: 100%; object-fit: cover; }
.map-card iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none; /* visual only — directions button handles navigation */
}
.map-card-overlay {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  background: var(--white);
  padding: 1.2rem 1.4rem; border-radius: var(--r-md);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 2;
}
.map-card-overlay .label { font-size: 0.78rem; color: var(--ink-mute); font-weight: 600; }
.map-card-overlay .place { font-weight: 700; color: var(--teal); margin-top: 0.15rem; }
.map-card-overlay .arrow {
  width: 42px; height: 42px;
  background: var(--lime); color: var(--teal);
  border-radius: 50%; display: grid; place-items: center;
  flex-shrink: 0;
}

/* ============ FOOTER ============ */
footer {
  background: var(--teal-deep); color: var(--white);
  padding: 5rem 0 2rem;
  position: relative; overflow: hidden;
}
.footer-curve { position: absolute; top: 0; right: 0; width: 35%; height: 100%; opacity: 0.04; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative; z-index: 2;
}
.footer-tagline {
  margin-top: 1.5rem; font-size: 1.4rem;
  line-height: 1.3; letter-spacing: -0.02em;
  font-weight: 600; max-width: 16ch;
}
.footer-tagline .lime-text { color: var(--lime); }
.footer-kurdish {
  margin-top: 0.6rem; font-size: 1rem;
  color: rgba(255,255,255,0.5); font-weight: 400; direction: rtl;
}
.footer-top h4 {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--lime);
  margin-bottom: 1.2rem; font-weight: 700;
}
.footer-top ul { list-style: none; }
.footer-top li { margin-bottom: 0.7rem; }
.footer-top a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-top a:hover { color: var(--lime); }
.footer-bottom {
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
  position: relative; z-index: 2;
}

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }


/* ============================================================================
   INVENTORY PAGE (standalone)
   ============================================================================ */

.inv-header {
  background: var(--teal);
  color: var(--white);
  padding: 9rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.inv-header-curve {
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 120%;
  opacity: 0.4;
  pointer-events: none;
}
.inv-header-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.inv-header h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 1.5rem;
  color: var(--white);
}
.inv-header h1 .lime-text { color: var(--lime); }
.inv-header .desc {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
}
.inv-header-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  padding-left: 2rem;
}
.inv-header-stats .stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.inv-header-stats .stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.inv-header-stats .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
}
.inv-header-stats .value {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--lime);
}

/* Sticky filter toolbar */
.inv-toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid rgba(0, 45, 48, 0.08);
  padding: 1.2rem 0;
  transition: box-shadow 0.3s var(--ease);
}
.inv-toolbar-wrap.stuck {
  box-shadow: 0 4px 20px rgba(0, 45, 48, 0.06);
}
.inv-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
}

/* Search input */
.search-input {
  position: relative;
}
.search-input input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: var(--white);
  border: 1.5px solid rgba(0, 45, 48, 0.1);
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 500;
  outline: none;
  transition: all 0.3s var(--ease);
}
.search-input input::placeholder { color: var(--ink-soft); font-weight: 400; }
.search-input input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(145, 204, 53, 0.15);
}
.search-input svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}
.search-input .clear {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bone);
  color: var(--ink-mute);
  display: none;
  place-items: center;
  cursor: pointer;
}
.search-input .clear.visible { display: grid; }
.search-input .clear:hover { background: var(--teal); color: var(--white); }

/* Sort dropdown */
.sort-select {
  position: relative;
  display: inline-block;
}
.sort-select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  border: 1.5px solid rgba(0, 45, 48, 0.1);
  border-radius: 999px;
  padding: 0.85rem 2.5rem 0.85rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  outline: none;
  transition: all 0.3s var(--ease);
}
.sort-select select:hover { border-color: var(--teal); }
.sort-select::after {
  content: '';
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* Filter row (chips below toolbar) */
.inv-filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 45, 48, 0.06);
  flex-wrap: wrap;
}
.inv-filters .filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 700;
  margin-right: 0.3rem;
}
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip {
  padding: 0.55rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.82rem;
  color: var(--teal); background: var(--white);
  border: 1.5px solid rgba(0, 45, 48, 0.1);
  transition: all 0.3s var(--ease);
}
.chip:hover { border-color: var(--teal); }
.chip.active { background: var(--lime); color: var(--teal); border-color: var(--lime); }

/* Results meta */
.inv-results-meta {
  padding: 2rem 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.inv-results-meta strong { color: var(--teal); font-weight: 700; }
.inv-results-meta .clear-all {
  color: var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.inv-results-meta .clear-all:hover { border-bottom-color: var(--lime); }
.inv-results-meta .clear-all.hidden { display: none; }

/* Inventory page main grid spacing */
.inv-page-grid {
  padding: 0 0 6rem;
  background: var(--bone);
}
.inv-page-grid .inv-grid { gap: 1.75rem; }


/* ============================================================================
   VEHICLE DETAIL PAGE
   ============================================================================ */
.detail-page { background: var(--bone); padding-top: 0; }

.breadcrumb {
  padding: 7rem 0 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-mute); transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--teal); font-weight: 700; }

.detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  padding-bottom: clamp(4rem, 8vh, 6rem);
  align-items: start;
}

.gallery-stack { display: flex; flex-direction: column; gap: 1rem; }
.gallery-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--white);
  border: 1px solid rgba(0, 45, 48, 0.06);
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease);
}
.gallery-main img.fading { opacity: 0; }
.gallery-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--white); color: var(--teal);
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.45rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.gallery-badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.gallery-badge.in-stock .dot { background: var(--lime); }
.gallery-badge.new .dot { background: var(--sea); }
.gallery-badge.reserved .dot { background: #d97706; }
.gallery-badge.sold .dot { background: #b91c1c; }

.gallery-counter {
  position: absolute; bottom: 1rem; right: 1rem;
  background: rgba(0, 45, 48, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.95);
  color: var(--teal);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.gallery-nav:hover { background: var(--lime); transform: translateY(-50%) scale(1.05); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.thumb {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s var(--ease);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.thumb:hover img { transform: scale(1.05); }
.thumb.active { border-color: var(--lime); }
.thumb.active::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(145, 204, 53, 0.1);
}

.detail-summary {
  position: sticky;
  top: 6rem;
}
.detail-summary .tagline {
  font-size: 0.85rem;
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.detail-summary h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--teal);
}
.detail-summary .sub {
  font-size: 1.05rem;
  color: var(--ink-mute);
  margin-top: 0.6rem;
  font-weight: 500;
}
.price-row {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(0, 45, 48, 0.1);
  border-bottom: 1px solid rgba(0, 45, 48, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
}
.price-row .label {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 700; color: var(--ink-mute);
}
.price-row .value {
  font-size: 1.5rem; font-weight: 800;
  color: var(--teal); letter-spacing: -0.02em;
  margin-top: 0.2rem;
}
.price-row .badge {
  background: var(--lime); color: var(--teal);
  padding: 0.5rem 1rem; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.price-row .badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.action-stack { display: flex; flex-direction: column; gap: 0.75rem; }
.action-stack .btn { width: 100%; padding: 1.1rem 1.6rem; font-size: 1rem; }

.quick-specs {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.qspec {
  background: var(--white);
  padding: 1rem 1.2rem;
  border-radius: var(--r-md);
  border: 1px solid rgba(0, 45, 48, 0.06);
}
.qspec .l {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  font-weight: 600;
}
.qspec .v {
  margin-top: 0.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal);
  letter-spacing: -0.01em;
}

.detail-content {
  background: var(--white);
  border-top: 1px solid rgba(0, 45, 48, 0.06);
  padding: clamp(4rem, 8vh, 6rem) 0;
}
.detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.detail-block .tab { margin-bottom: 1.2rem; }
.detail-block h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
  color: var(--teal);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}
.detail-block h2 .lime-text { color: var(--lime); }
.detail-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-mute);
}

.spec-table {
  background: var(--bone);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid rgba(0, 45, 48, 0.06);
}
.spec-table h3 {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.2rem;
}
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 45, 48, 0.08);
  align-items: baseline;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .k {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-weight: 500;
  text-transform: capitalize;
}
.spec-row .v {
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.5rem;
  margin-top: 0.5rem;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 500;
  line-height: 1.4;
}
.features-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  background: var(--lime);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002D30' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.similar { background: var(--bone); }
.similar .inv-grid { grid-template-columns: repeat(3, 1fr); }


/* ============================================================================
   GALLERY PAGE (standalone)
   ============================================================================ */

/* Reuses .inv-header structure for visual consistency */
.gallery-page-header { background: var(--teal); color: var(--white); }

.gallery-page-grid {
  background: var(--bone);
  padding: 4rem 0 6rem;
}
.gallery-page-grid .gallery {
  /* Slightly tighter rows on the dedicated page so more shows above the fold */
  grid-auto-rows: 200px;
}
.gallery-page-grid .gallery figure {
  cursor: zoom-in;
}

/* On a light background, captions need a different treatment */
.gallery-page-grid .gallery figure figcaption {
  background: var(--teal);
  color: var(--white);
}

/* ============ LIGHTBOX MODAL ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 28, 0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 4rem);
  animation: fadeIn 0.3s var(--ease);
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-content {
  position: relative;
  max-width: 1400px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: block;
  transition: opacity 0.3s var(--ease);
}
.lightbox-img.fading { opacity: 0; }

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: -3rem;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--teal);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  max-width: 80vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--lime);
  color: var(--teal);
  transform: scale(1.05);
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav.prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav.next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-counter {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .lightbox-close,
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-nav.prev { left: 0.75rem; }
  .lightbox-nav.next { right: 0.75rem; }
  .gallery-page-grid .gallery { grid-auto-rows: 140px; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .inv-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .g-large, .g-tall, .g-medium, .g-small { grid-column: span 6; grid-row: span 2; }
  .showroom-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .detail-hero { grid-template-columns: 1fr; gap: 2rem; }
  .detail-summary { position: static; }
  .detail-content-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .similar .inv-grid { grid-template-columns: repeat(2, 1fr); }
  .inv-toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr; }
  .info-card { padding: 2rem 1.5rem; }
  .info-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .footer-top { grid-template-columns: 1fr; }
  .similar .inv-grid { grid-template-columns: 1fr; }
  .features-list { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .quick-specs { grid-template-columns: 1fr 1fr; }
  .breadcrumb { padding-top: 6rem; }
  .inv-header { padding: 7rem 0 3rem; }
}


/* ============================================================================
   SOLD STATE — diagonal stamp + dimmed photo for sold cards
   ============================================================================ */

.vehicle.is-sold { position: relative; }
.vehicle.is-sold .vehicle-img img {
  filter: grayscale(0.6) brightness(0.85);
  opacity: 0.85;
  transition: filter 0.6s var(--ease), opacity 0.6s var(--ease);
}
.vehicle.is-sold:hover .vehicle-img img {
  filter: grayscale(0.3) brightness(0.95);
  opacity: 1;
}
.vehicle.is-sold .vehicle-name { color: var(--ink-mute); }

.sold-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(185, 28, 28, 0.92);
  color: var(--white);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  padding: 0.6rem 2rem;
  border: 3px solid var(--white);
  border-radius: 6px;
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Update existing sold badge dot color so it matches */
.vehicle-badge.sold { background: rgba(185, 28, 28, 0.95); color: var(--white); }
.vehicle-badge.sold .dot { background: var(--white); }

/* Recently sold section — slightly muted background to distinguish from
   active inventory */
.recently-sold {
  background: var(--bone);
  padding: clamp(4rem, 8vh, 6rem) 0;
  border-top: 1px solid rgba(0, 45, 48, 0.08);
}
.recently-sold .section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }


/* ============================================================================
   LOADING SKELETONS — shimmer placeholders shown before JS fills the grid
   ============================================================================ */

.vehicle.skeleton {
  cursor: default;
  pointer-events: none;
  background: var(--white);
}
.vehicle.skeleton:hover { transform: none; box-shadow: none; border-color: rgba(0, 45, 48, 0.08); }

.skel-shimmer,
.skel-line {
  background: linear-gradient(
    90deg,
    rgba(0, 45, 48, 0.04) 0%,
    rgba(0, 45, 48, 0.10) 50%,
    rgba(0, 45, 48, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}
.skel-shimmer { width: 100%; height: 100%; border-radius: 0; }
.skel-line { display: block; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ============================================================================
   SCROLL MARGIN — when an in-page anchor is targeted (e.g. #values),
   leave room for the sticky nav so the section title isn't hidden behind it.
   ============================================================================ */

section[id], header[id] {
  scroll-margin-top: 90px;
}


/* ============================================================================
   PRICE & YEAR RANGE FILTERS — dual slider tracks
   ============================================================================ */

.range-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.range-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
}
.range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
}
.range-label-row .lbl {
  color: var(--ink-mute);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.range-label-row .val {
  color: var(--teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Dual-thumb slider built from two stacked inputs */
.range-slider {
  position: relative;
  height: 28px;
}
.range-slider .track {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 4px;
  transform: translateY(-50%);
  background: rgba(0, 45, 48, 0.1);
  border-radius: 4px;
}
.range-slider .track-fill {
  position: absolute;
  top: 0; bottom: 0;
  background: var(--lime);
  border-radius: 4px;
}
.range-slider input[type="range"] {
  position: absolute;
  top: 0;
  width: 100%;
  height: 28px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  box-shadow: 0 2px 6px rgba(0, 45, 48, 0.2);
  cursor: grab;
  pointer-events: auto;
  transition: transform 0.15s var(--ease);
}
.range-slider input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  border-color: var(--lime);
}
.range-slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  box-shadow: 0 2px 6px rgba(0, 45, 48, 0.2);
  cursor: grab;
  pointer-events: auto;
}


/* ============================================================================
   RECENTLY VIEWED STRIP — appears at bottom of inventory & vehicle pages
   ============================================================================ */

.recently-viewed {
  background: var(--white);
  padding: clamp(3rem, 6vh, 4rem) 0;
  border-top: 1px solid rgba(0, 45, 48, 0.08);
}
.recently-viewed .section-head { margin-bottom: 2rem; }
.recently-viewed .section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-top: 0.5rem;
}
.rv-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.rv-card {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(0, 45, 48, 0.08);
  background: var(--white);
  transition: all 0.4s var(--ease);
}
.rv-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 10px 30px rgba(0, 45, 48, 0.08);
}
.rv-img {
  aspect-ratio: 16 / 10;
  background: var(--bone);
  overflow: hidden;
}
.rv-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.rv-card:hover .rv-img img { transform: scale(1.05); }
.rv-body { padding: 0.85rem 1rem 1rem; }
.rv-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--teal);
  line-height: 1.25;
}
.rv-meta { font-size: 0.78rem; color: var(--ink-mute); margin-top: 0.2rem; }

@media (max-width: 1024px) {
  .rv-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .rv-strip { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}


/* ============================================================================
   404 PAGE
   ============================================================================ */

.error-page {
  min-height: 100vh;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}
.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
}
.error-page::before {
  background: var(--lime);
  width: 500px; height: 500px;
  top: -20%; right: -10%;
}
.error-page::after {
  background: var(--sea);
  width: 400px; height: 400px;
  bottom: -20%; left: -10%;
}
.error-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 540px;
}
.error-num {
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: var(--lime);
  line-height: 0.9;
  margin-bottom: 0.5rem;
}
.error-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.error-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.error-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* Hero feature crossfade for the rotating featured vehicle */
.hero-feature.hero-feature-fading {
  opacity: 0.3 !important;
  transition: opacity 0.35s var(--ease);
}


/* ============================================================================
   ACCESSIBILITY — appended with the owner's explicit approval.

   Nothing above this line was edited. Both blocks are additions, and neither
   changes what a typical visitor sees: the skip link is invisible until it is
   focused with the keyboard, and the motion block only applies to people who
   have turned motion off in their operating system.
   ============================================================================ */

/* Lets a keyboard user jump straight to the content. Without it, every page
   begins with six nav links, and a vehicle page puts an entire photo gallery
   in front of the text. Off-screen until focused, then it lands top-left. */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* Respects the operating system's "reduce motion" setting — commonly switched
   on by people who get migraines or vertigo from movement. The site has
   scroll-reveal animations, a rotating hero, curve transitions and hover
   transforms, all of which otherwise play regardless.

   The JavaScript half matters as much as this: .reveal starts at opacity 0 and
   only becomes visible once the scroll observer adds .in, so the page scripts
   add that class immediately for these users. Killing the transition alone
   would leave the content permanently invisible. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
