@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;1,400;1,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES
   ========================================================================== */
:root {
  --ink: #0d0f12;
  --ink-soft: #1e2229;
  --ink-secondary: #3c424c;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --paper: #f8f8f6;
  --surface: #ffffff;
  --surface-alt: #f3f3f0;
  --surface-tint: #ebebe7;
  --border: #e5e5df;
  --border-light: #efefe9;
  --border-dark: #23272f;

  --gold: #c5a059;
  --gold-dark: #a8823b;
  --gold-light: #e5d2ac;
  --gold-subtle: rgba(197, 160, 89, 0.12);
  --gold-glow: rgba(197, 160, 89, 0.28);

  --green: #257048;
  --green-bg: #eaf5ee;
  --whatsapp: #176b45;
  --whatsapp-dark: #10583a;

  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', sans-serif;
  --header-font: 'Plus Jakarta Sans', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  --shell: min(1240px, calc(100% - 64px));
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(13, 15, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(13, 15, 18, 0.06);
  --shadow-lg: 0 16px 40px rgba(13, 15, 18, 0.09);
  --shadow-hover: 0 22px 50px rgba(13, 15, 18, 0.12);

  --transition: 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow-light {
  color: var(--gold-light);
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 em, h2 em, h3 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.button {
  min-height: 48px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
  user-select: none;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button span[aria-hidden="true"] {
  font-size: 15px;
  transition: transform var(--transition);
}

.button:hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

.hero-actions .button {
  font-family: var(--header-font);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12.5px;
  gap: 8px;
}

.button-dark {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.button-dark:hover {
  background: #242830;
  border-color: #242830;
  box-shadow: 0 6px 18px rgba(13, 15, 18, 0.2);
}

.button-gold {
  background: var(--gold);
  color: #0d0f12;
  border: 1px solid var(--gold);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.button-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.button-whatsapp {
  background: #176b45;
  color: #ffffff;
  border: 1px solid #176b45;
  box-shadow: 0 3px 10px rgba(18, 75, 49, 0.18);
}

.button-whatsapp:hover {
  background: #10583a;
  border-color: #10583a;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(18, 75, 49, 0.24);
}

.button-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.button-outline:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.button-hero-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

.button-hero-outline:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

.button-light {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
}

.button-light:hover {
  background: var(--surface-alt);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  padding: 0 max(28px, calc((100% - 1240px) / 2));
  display: flex;
  font-family: var(--header-font);
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 246, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 15, 18, 0.06);
  transition: background var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Brand logo */
.brand {
  display: flex;
  align-items: center;
  width: 170px;
  flex-shrink: 0;
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand .brand-logo-white {
  display: none;
}

/* Header over Hero (Transparent mode before scroll) */
.site-header.header-hero:not(.scrolled) {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.header-hero:not(.scrolled) .brand .brand-logo-black {
  display: none;
}

.site-header.header-hero:not(.scrolled) .brand .brand-logo-white {
  display: block;
}

.site-header.header-hero:not(.scrolled) .main-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.site-header.header-hero:not(.scrolled) .main-nav a:hover,
.site-header.header-hero:not(.scrolled) .main-nav a.active {
  color: #ffffff;
}

.site-header.header-hero:not(.scrolled) .main-nav a.active::after {
  background: var(--gold);
}

.site-header.header-hero:not(.scrolled) .icon-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.site-header.header-hero:not(.scrolled) .saved-count {
  background: var(--gold);
  color: #0d0f12;
}

.site-header.header-hero:not(.scrolled) .button-header-cta {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.site-header.header-hero:not(.scrolled) .button-header-cta:hover {
  background: #ffffff;
  color: var(--ink);
}

.site-header.header-hero:not(.scrolled) .menu-toggle span {
  background: #ffffff;
}

/* Main Navigation Links */
.main-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 13.5px;
  font-family: var(--header-font);
  letter-spacing: 0.015em;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

.main-nav a[aria-current="location"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.main-nav a::after {
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.icon-button:hover {
  border-color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.icon-button.has-saved svg {
  fill: #e04b46;
  stroke: #e04b46;
}

.saved-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  height: clamp(600px, 82vh, 760px);
  height: clamp(600px, 82svh, 760px);
  min-height: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: #14171c;
  color: #ffffff;
  padding: 40px 0 60px;
}

.hero-photo, .hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background-image: url('images/cars/g350d_front.jpg');
  background-position: center 54%;
  background-size: cover;
  background-attachment: fixed;
  z-index: 0;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.82) 0%, rgba(10, 12, 16, 0.55) 44%, rgba(10, 12, 16, 0.2) 80%),
              linear-gradient(0deg, rgba(10, 12, 16, 0.72) 0%, transparent 40%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  max-width: 600px;
  margin-left: max(32px, calc((100% - 1240px) / 2));
  padding-top: 40px;
}

.hero h1 {
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-copy {
  max-width: 440px;
  font-size: 16px;
  line-height: 1.7;
  color: #e2e4e8;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: #cbd0d8;
  flex-wrap: wrap;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
}

/* ==========================================================================
   SEARCH PANEL CONSOLE
   ========================================================================== */
.search-container {
  width: var(--shell);
  margin: 0 auto 48px;
  position: relative;
  z-index: 20;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 14px;
  border-right: 1px solid var(--border-light);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field select {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.search-submit {
  min-width: 165px;
  height: 52px;
}

.search-submit svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   BRAND MARQUE CHIPS
   ========================================================================== */
.brand-strip {
  padding: 16px 0 48px;
}

.brand-list {
  display: grid;
  grid-template-columns: minmax(0, 340px);
  gap: 12px;
}

.brand-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.brand-chip:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.brand-chip.selected {
  border-color: var(--ink);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink);
  transition: background var(--transition), color var(--transition);
}

.brand-chip.selected .brand-mark {
  background: var(--ink);
  color: #ffffff;
}

.brand-chip-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-chip-count {
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   INVENTORY SECTION
   ========================================================================== */
.inventory-section {
  padding-top: 24px;
  padding-bottom: 96px;
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}

.inventory-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.quick-type-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 250px;
}

.quick-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px 0 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--ink-secondary);
  background: var(--surface);
  font: 600 12px "Plus Jakarta Sans", sans-serif;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.quick-type-chip img {
  display: block;
  width: 27px;
  height: 27px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid rgba(22, 24, 27, 0.07);
  border-radius: 8px;
  background: #f2f2ef;
}

.quick-type-count {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  min-width: 19px;
  margin-left: 1px;
  padding: 2px 5px;
  border-radius: var(--radius-full);
  background: #f0f0ed;
  text-align: center;
}

.quick-type-chip:hover {
  border-color: #b8b8ae;
  background: #f7f7f4;
}

.quick-type-chip.active {
  color: #176b48;
  border-color: rgba(34, 119, 80, 0.42);
  background: #edf6f0;
  box-shadow: inset 0 0 0 1px rgba(34, 119, 80, 0.08);
}

.quick-type-chip.active .quick-type-count {
  color: #176b48;
  background: rgba(34, 119, 80, 0.1);
}

.quick-type-chip.active img {
  border-color: rgba(34, 119, 80, 0.16);
  background: #fff;
}

.result-count {
  font-size: 14px;
  color: var(--muted);
}

.result-count strong {
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}

.saved-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: #fde8e8;
  color: #c53030;
  font-size: 12px;
  font-weight: 600;
}

.saved-filter-badge button {
  font-size: 14px;
  font-weight: 700;
  color: inherit;
}

.inventory-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.inventory-filter-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-filter-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  width: 278px;
  min-width: 236px;
  min-height: 68px;
  padding: 7px 13px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 17, 20, 0.035);
  color: var(--ink);
}

.price-range-values {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.price-range-values strong {
  overflow: hidden;
  color: var(--ink);
  font: 600 10.5px "Plus Jakarta Sans", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-range-values strong:last-child {
  text-align: right;
}

.price-range-control {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}

.price-range-label {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.price-range-slider {
  position: relative;
  height: 20px;
  margin: 0 1px;
  touch-action: pan-y;
}

.price-range-track,
.price-range-fill {
  position: absolute;
  top: 8px;
  height: 4px;
  border-radius: 999px;
}

.price-range-track {
  right: 0;
  left: 0;
  background: #deded9;
}

.price-range-fill {
  background: var(--ink);
}

.price-range-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.price-range-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.price-range-slider input[type="range"]::-moz-range-track {
  height: 4px;
  background: transparent;
}

.price-range-slider input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -6.5px;
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #17191b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  cursor: grab;
}

.price-range-slider input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #17191b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
  cursor: grab;
}

.price-range-slider input[type="range"]:focus-visible::-webkit-slider-thumb,
.price-range-slider input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(184, 135, 54, 0.4);
  outline-offset: 2px;
}

/* Sort dropdown */
.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.sort-select:focus-visible,
.quick-type-chip:focus-visible {
  outline: 3px solid rgba(184, 135, 54, 0.38);
  outline-offset: 2px;
}

/* Car Grid */
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.inventory-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.inventory-pagination[hidden] {
  display: none;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-number,
.page-step {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.page-number:hover,
.page-step:not(:disabled):hover {
  border-color: var(--gold);
  color: var(--ink);
}

.page-number.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.page-step:disabled {
  opacity: .42;
  cursor: default;
}

.page-ellipsis {
  padding: 0 2px;
  color: var(--muted);
}

.car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(21, 24, 28, 0.055);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.car-card:hover {
  transform: translateY(-3px);
  border-color: #d0cfc6;
  box-shadow: var(--shadow-hover);
}

/* Discourage casual image saving; public images remain fetchable by browsers. */
.car-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e9e6;
  display: block;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.car-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}

.car-badge,
.car-condition-tag,
.save-car {
  z-index: 5;
}

.car-card:hover .car-image {
  transform: scale(1.04);
}

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(13, 15, 18, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.car-badge-pending {
  background: rgba(122, 89, 25, .92);
}

.car-badge-sold {
  background: rgba(120, 42, 42, .92);
}

.car-condition-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-full);
  background: rgba(16, 19, 23, .55);
  color: rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.save-car {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 3;
  transition: transform var(--transition), background var(--transition);
}

.save-car:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.save-car svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #22252a;
  stroke-width: 1.8;
  transition: fill var(--transition), stroke var(--transition);
}

.save-car.saved svg {
  fill: #e04b46;
  stroke: #e04b46;
}

/* Car Content */
.car-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.car-make {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.car-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.car-title {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.car-title a {
  color: inherit;
}

.car-title a:hover {
  color: var(--gold-dark);
}

/* Specs Pills Grid */
.car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

.car-spec-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.car-spec-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  flex-shrink: 0;
}

/* Bottom pricing & actions */
.car-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "price price"
    "actions actions";
  align-items: start;
  margin-top: auto;
  gap: 10px;
}

.car-price-block {
  grid-area: price;
  display: flex;
  flex-direction: column;
}

.car-price-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.car-price-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.car-price {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.car-stock-status {
  flex: 0 0 auto;
  margin-top: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.car-stock-available {
  color: #21784f;
}

.car-stock-pending {
  color: #bb751d;
}

.car-stock-sold {
  color: #c43d3d;
}

.car-card-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
}

.car-btn-wa {
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  background: var(--whatsapp);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.car-btn-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-1px);
}

.car-btn-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.car-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  width: 0;
  min-height: 40px;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  transition: background var(--transition), color var(--transition);
}

.car-link > span[aria-hidden="true"] {
  position: absolute;
  right: 12px;
}

.car-link:hover {
  background: var(--ink);
  color: #ffffff;
}

/* Empty State */
.empty-state {
  padding: 64px 20px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  margin-top: 16px;
}

.empty-state h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

/* Collection Bottom Bar */
.collection-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   EXPERIENCE SECTION (The Tristar Difference)
   ========================================================================== */
.experience-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: #f1f1ee;
  overflow: hidden;
}

.experience-image {
  position: relative;
  min-height: clamp(380px, 42vw, 580px);
  overflow: hidden;
}

.experience-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-section:hover .experience-image img {
  transform: scale(1.04);
}

.experience-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.6) 0%, transparent 45%);
}

.image-caption {
  position: absolute;
  left: 32px;
  bottom: 28px;
  z-index: 2;
  color: #ffffff;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.experience-copy {
  max-width: 580px;
  padding: 80px clamp(32px, 6vw, 88px);
  align-self: center;
}

.experience-copy h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 18px;
}

.experience-lead {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.promise-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.promise-item {
  display: flex;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfdfdb;
  transition: transform var(--transition);
}

.promise-item:hover {
  transform: translateX(6px);
}

.promise-number {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.promise-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.promise-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   SELL / CONSIGN BANNER
   ========================================================================== */
.feature-banner {
  position: relative;
  min-height: clamp(380px, 34vw, 440px);
  margin: 96px auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: #14181f;
  color: #ffffff;
}

.feature-banner-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('images/cars/c200_front.jpg') center 52% / cover;
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-banner:hover .feature-banner-photo {
  transform: scale(1.03);
}

.feature-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 15, 20, 0.88) 0%, rgba(12, 15, 20, 0.65) 50%, rgba(12, 15, 20, 0.15) 100%);
}

.feature-banner-content {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 480px;
}

.feature-banner h2 {
  font-size: clamp(38px, 4.8vw, 60px);
  color: #ffffff;
  margin-bottom: 16px;
}

.feature-banner p {
  font-size: 15px;
  color: #d1d5db;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT / SHOWROOM BAND
   ========================================================================== */
.contact-band {
  --display: var(--header-font);
  --serif: var(--header-font);
  margin-bottom: 80px;
  padding: 40px 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--header-font);
  font-style: normal;
}

.contact-band h2 em {
  font-family: var(--header-font);
  font-style: normal;
  font-weight: 600;
}

.contact-band-left > a.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-band-left h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-top: 4px;
}

.contact-band-left p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 6px;
}

.contact-band-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-band-actions .button svg {
  flex: 0 0 18px;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.site-footer {
  background: #0f1114;
  color: #f0f2f5;
  padding: 72px max(28px, calc((100% - 1240px) / 2)) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  width: 175px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 280px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.footer-column a {
  font-size: 14px;
  color: #9ca3af;
  transition: color var(--transition);
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-newsletter p {
  font-size: 13.5px;
  color: #9ca3af;
  margin-bottom: 14px;
}

.footer-form {
  display: flex;
  position: relative;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: border-color var(--transition);
}

.footer-form:focus-within {
  border-color: var(--gold);
}

.footer-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
}

.footer-form input::placeholder {
  color: #6b7280;
}

.footer-form button {
  padding: 0 12px;
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
}

.newsletter-message {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: #8bcdb1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #9ca3af;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* ==========================================================================
   FLOATING ACTIONS (WhatsApp & Scroll to top)
   ========================================================================== */
body.admin-portal > *:not(#app) {
  display: none !important;
}

body.admin-portal #app[hidden] {
  display: none !important;
}

body.admin-portal #app {
  display: block;
}

.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

body:has(#vehicle-detail) .floating-wa,
.vehicle-page ~ .floating-actions .floating-wa {
  display: none;
}

.floating-wa {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #176b45;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(14, 34, 24, 0.24);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.floating-wa:hover {
  transform: translateY(-2px);
  background: #10583a;
  box-shadow: 0 6px 18px rgba(14, 34, 24, 0.3);
}

.floating-wa svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.scroll-top {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  background: #2c323c;
  transform: translateY(-2px);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Toast message */
.toast {
  position: fixed;
  z-index: 210;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  background: #0f1114;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   VEHICLE DETAIL PAGE (vehicle.html)
   ========================================================================== */
body:has(#vehicle-detail) {
  --sans: 'Plus Jakarta Sans', sans-serif;
  --display: 'Plus Jakarta Sans', sans-serif;
  --serif: 'Plus Jakarta Sans', sans-serif;
  --header-font: 'Plus Jakarta Sans', sans-serif;
  font-family: var(--header-font);
  font-style: normal;
}

body:has(#vehicle-detail) em {
  font-style: normal;
}

.vehicle-page {
  padding-top: 44px;
  padding-bottom: 96px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* Gallery */
.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e8e9e7;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.detail-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.detail-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: auto;
}

.mobile-detail-back,
.detail-photo-label,
.detail-save {
  z-index: 5;
}

.mobile-detail-back {
  display: none;
}

.detail-photo-label {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(13, 15, 18, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.detail-save {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
}

.detail-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--transition), border-color var(--transition);
  -webkit-touch-callout: none;
  user-select: none;
}

.thumb-btn.active, .thumb-btn:hover {
  opacity: 1;
  border-color: var(--gold);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Summary Column */
.detail-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-main-info {
  display: flex;
  flex-direction: column;
}

.detail-summary h1 {
  font-size: clamp(30px, 3.7vw, 42px);
  margin-bottom: 8px;
}

.detail-subtitle {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 20px;
}

.detail-price-box {
  padding: 18px 20px;
  border: 1px solid #e9e5db;
  border-radius: 14px;
  background: #fbfaf7;
  margin-bottom: 20px;
}

.detail-price-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-price {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e9e5db;
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.detail-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5ef;
  white-space: nowrap;
}

.detail-location {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.detail-location:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-location svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--gold-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.detail-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin-top: 14px;
  margin-bottom: 20px;
}

.detail-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cash-deal-card {
  margin-top: 0;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.08), rgba(246, 247, 249, 0.8));
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-md);
}

.cash-deal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.cash-deal-header svg {
  color: var(--gold-dark);
}

.cash-deal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.cash-deal-list strong {
  color: var(--ink);
}

.inspection-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.used-car-note {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(180, 134, 43, 0.25);
  border-radius: 8px;
  background: #faf8f4;
}

.used-car-note h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.used-car-note p {
  margin: 0;
  color: #5b5b5b;
  font-size: 14px;
  line-height: 1.65;
}

.inspection-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inspection-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-secondary);
}

.inspection-list li svg {
  flex: 0 0 16px;
  margin-top: 2px;
  color: var(--green);
}

.inspection-list strong {
  color: var(--ink);
}

.related-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.related-section .section-head-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.related-section .section-head-split .button {
  flex: 0 0 auto;
  margin: 0;
}

.class-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.class-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-family: var(--header-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.class-chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.class-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.class-chip-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
}

.class-chip.active .class-chip-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.detail-cta .button {
  min-height: 52px;
  padding: 0 18px;
  border-radius: 9px;
  font-family: var(--header-font);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 7px 18px rgba(13, 15, 18, 0.12);
}

.detail-cta #detail-email {
  flex: 1 1 100%;
  order: 3;
}

.detail-cta #detail-whatsapp,
.detail-cta #detail-call {
  flex: 1 1 calc(50% - 6px);
}

.detail-cta .button svg {
  flex: 0 0 18px;
}

.detail-cta .button-whatsapp {
  border-color: #176b45;
  background: linear-gradient(135deg, #1c8053, #125c3c);
  box-shadow: 0 8px 20px rgba(18, 75, 49, 0.24);
}

.detail-cta .button-whatsapp:hover {
  background: linear-gradient(135deg, #176b45, #0d4b31);
  box-shadow: 0 12px 24px rgba(18, 75, 49, 0.3);
}

.detail-cta .button-dark {
  background: linear-gradient(145deg, #272a30, #0d0f12);
  box-shadow: 0 8px 20px rgba(13, 15, 18, 0.2);
}

.detail-cta .button-dark:hover {
  box-shadow: 0 12px 24px rgba(13, 15, 18, 0.26);
}

.detail-cta .button-outline {
  background: #fff;
  border-color: #d8d8d2;
  box-shadow: 0 5px 15px rgba(13, 15, 18, 0.07);
}

.detail-cta .button-outline:hover {
  border-color: var(--gold-dark);
  background: #fffdf9;
  box-shadow: 0 9px 20px rgba(13, 15, 18, 0.12);
}

.detail-cta .button:focus-visible {
  outline: 3px solid rgba(197, 160, 89, 0.45);
  outline-offset: 3px;
}

/* Spec Block */
.spec-block {
  margin-top: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-family: var(--header-font);
  font-style: normal;
}

.spec-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.spec-heading h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verified-spec {
  font-size: 12px;
  color: var(--gold-dark);
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-item span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-item strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.spec-item-wide {
  grid-column: 1 / -1;
}

.detail-features-block {
  margin-top: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.detail-features-block h3 {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 20px;
  padding: 0;
  list-style: none;
}

.detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.5;
}

.detail-features svg {
  flex: 0 0 16px;
  margin-top: 2px;
  color: var(--gold-dark);
}

/* Mobile Sticky Bar for Vehicle Page */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  z-index: 110;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(225, 223, 216, 0.95);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(13, 15, 18, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
  transition: transform var(--transition-smooth), opacity var(--transition), visibility 0s linear .4s;
}

.mobile-sticky-bar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: transform var(--transition-smooth), opacity var(--transition), visibility 0s;
}

.mobile-sticky-price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.mobile-sticky-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mobile-sticky-price {
  font-family: var(--header-font);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.mobile-sticky-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-sticky-actions .button {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  font-family: var(--header-font);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  gap: 7px;
}

.mobile-sticky-actions .button svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================= */
@media (max-width: 1080px) {
  :root {
    --shell: calc(100% - 44px);
  }
  .brand-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-panel {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .search-field:nth-child(2) {
    border-right: none;
  }
  .search-submit {
    grid-column: 1 / -1;
    width: 100%;
  }
  .experience-section {
    grid-template-columns: 1fr;
  }
  .experience-image {
    min-height: clamp(320px, 48vw, 420px);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .vehicle-page {
    padding-bottom: 150px;
  }

  .mobile-sticky-bar {
    display: flex;
  }

  body.vehicle-sticky-visible .floating-actions {
    bottom: 146px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  :root {
    --shell: calc(100% - 32px);
  }

  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .site-header {
    height: 64px;
    padding-inline: 16px;
  }

  .brand {
    width: 145px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    height: auto;
    background: rgba(248, 248, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    height: 48px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }

  .site-header.header-hero:not(.scrolled) .main-nav.open a,
  .site-header.header-hero:not(.scrolled) .main-nav.open a:hover,
  .site-header.header-hero:not(.scrolled) .main-nav.open a.active {
    color: var(--ink);
  }

  .main-nav a.active::after {
    display: none;
  }

  .main-nav a.active {
    box-shadow: inset 3px 0 0 var(--gold);
    padding-left: 12px;
  }

  .header-actions .button-header-cta {
    display: none;
  }

  .header-actions {
    order: 1;
    margin-left: auto;
  }

  .menu-toggle {
    display: flex;
    order: 2;
    margin-left: 10px;
  }

  .hero {
    height: auto;
    min-height: min(680px, 100svh);
    padding: 96px 0 48px;
    justify-content: center;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 54px);
  }

  .search-container {
    margin-bottom: 40px;
  }

  .search-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 8px 6px;
  }

  .section-head-split {
    gap: 8px;
    margin-bottom: 14px;
  }

  .brand-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .car-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .inventory-pagination {
    gap: 8px;
    margin-top: 24px;
  }

  .page-number,
  .page-step {
    min-width: 36px;
    height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .page-step span {
    display: none;
  }

  .inventory-toolbar {
    align-items: flex-start;
    gap: 12px;
  }

  .quick-type-filters {
    order: 2;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .quick-type-filters::-webkit-scrollbar {
    display: none;
  }

  .quick-type-chip {
    min-height: 40px;
    padding-right: 11px;
    scroll-snap-align: start;
  }

  .inventory-right {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .inventory-filter-form {
    display: flex;
    width: 100%;
  }

  .price-filter-bar {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    min-height: 68px;
  }

  .sort-wrap {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding-right: 0;
  }

  .sort-select {
    min-height: 40px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .search-field select {
    font-size: 16px;
  }

  .car-bottom {
    align-items: stretch;
  }

  .car-card-actions {
    width: 100%;
  }

  .car-btn-wa,
  .car-link {
    flex: 1;
  }

  .feature-banner {
    height: auto;
    min-height: clamp(380px, 100svh, 520px);
    padding: 48px 24px;
    margin: 64px auto;
  }

  .feature-banner-content {
    position: static;
    transform: none;
    max-width: 100%;
  }

  .contact-band {
    padding: 28px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vehicle-page {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    bottom: 80px;
    right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* ==========================================================================
   MOTION & ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  .detail-image-wrap {
    touch-action: pan-y;
  }

  .mobile-detail-back {
    position: fixed;
    z-index: 110;
    bottom: 80px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 0 16px 0 13px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: rgba(248, 248, 246, .96);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(13, 15, 18, .18);
  }

  body.vehicle-sticky-visible .mobile-detail-back {
    bottom: 132px;
  }

  .mobile-detail-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "gallery-image"
      "gallery-thumbnails"
      "info"
      "specs"
      "features"
      "terms"
      "inspection";
    gap: 14px;
  }

  .detail-summary {
    display: contents;
  }

  .detail-heading-group {
    grid-area: heading;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .detail-gallery {
    display: contents;
  }

  .detail-image-wrap {
    grid-area: gallery-image;
  }

  .detail-thumbnails {
    grid-area: gallery-thumbnails;
  }

  .detail-main-info {
    grid-area: info;
  }

  .detail-features-block {
    grid-area: features;
  }

  .cash-deal-card {
    grid-area: terms;
  }

  .inspection-card {
    grid-area: inspection;
  }

  .detail-cta .button {
    flex: 1 1 auto;
  }

  .detail-cta #detail-whatsapp,
  .detail-cta #detail-call {
    display: none;
  }

  .vehicle-page .spec-block {
    grid-area: specs;
    margin-top: 4px;
    padding: 17px 16px 12px;
    border: 1px solid #e8e5dd;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(29, 31, 28, .045);
  }

  .detail-features-block {
    margin-top: 0;
    padding: 17px 16px 12px;
    border-color: #e8e5dd;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(29, 31, 28, .045);
  }

  .vehicle-page .spec-heading {
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    padding-bottom: 13px;
    border-bottom: 1px solid #ece9e2;
  }

  .vehicle-page .spec-heading h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.025em;
    text-transform: none;
  }

  .vehicle-page .verified-spec {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid #eee5d2;
    border-radius: 999px;
    background: #fbf8f1;
    color: #80642f;
    font-family: var(--sans);
    font-size: 8px;
    letter-spacing: .065em;
  }

  .vehicle-page .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 0;
  }

  .vehicle-page .spec-item {
    min-width: 0;
    min-height: 62px;
    justify-content: center;
    gap: 3px;
    padding: 10px 2px;
    border: 0;
    border-bottom: 1px solid #efede8;
    border-radius: 0;
    background: transparent;
  }

  .vehicle-page .spec-item-wide {
    grid-column: 1 / -1;
    min-height: 56px;
  }

  .vehicle-page .spec-item:last-child {
    border-bottom: 0;
  }

  .vehicle-page .spec-item span {
    color: #89867e;
    font-family: var(--sans);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .09em;
  }

  .vehicle-page .spec-item strong {
    overflow-wrap: anywhere;
    color: #20211e;
    font-family: var(--display);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
  }
}

@media (max-width: 768px) {
  .site-header.header-hero,
  .site-header.header-hero:not(.scrolled) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .site-header.header-hero:not(.scrolled) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-shade {
    left: -10px;
    right: -10px;
    background:
      linear-gradient(90deg, rgba(10, 12, 16, .72) 0%, rgba(10, 12, 16, .58) 55%, rgba(10, 12, 16, .5) 100%),
      linear-gradient(0deg, rgba(10, 12, 16, .72) 0%, transparent 48%),
      rgba(10, 12, 16, .44);
  }

  .hero-content {
    width: auto;
    max-width: none;
    padding-top: 0;
    margin-right: 16px;
    margin-left: 16px;
  }
}
