/* =============================================================
   EliteDrive Auto Inventory — Public Stylesheet v1.0.0
   Aesthetic: Luxury Dark / Liquid Glass / Bento Grid
   Fonts: Syne (headings) + Outfit (body)
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --ed-bg:          #0a0b0e;
  --ed-surface:     #111318;
  --ed-surface-2:   #181c24;
  --ed-border:      rgba(255,255,255,0.07);
  --ed-border-glow: rgba(255,255,255,0.14);
  --ed-accent:      #c8a96e;
  --ed-accent-2:    #e8c98a;
  --ed-accent-rgb:  200, 169, 110;
  --ed-green:       #22c55e;
  --ed-red:         #ef4444;
  --ed-text:        #e8e9ed;
  --ed-text-muted:  #6b7280;
  --ed-text-dim:    #9ca3af;
  --ed-radius:      16px;
  --ed-radius-sm:   10px;
  --ed-radius-lg:   24px;
  --ed-shadow:      0 4px 32px rgba(0,0,0,.45);
  --ed-shadow-glow: 0 0 40px rgba(200,169,110,.12);
  --ed-glass-bg:    rgba(255,255,255,0.035);
  --ed-glass-blur:  blur(20px);
  --ed-font-head:   'Syne', sans-serif;
  --ed-font-body:   'Outfit', sans-serif;
  --ed-transition:  all .25s cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset ─────────────────────────────────────────────── */
.ed-wrap, .ed-wrap * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ed-wrap {
  font-family: var(--ed-font-body);
  font-size: 15px;
  color: var(--ed-text);
  background: var(--ed-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.ed-wrap a { color: var(--ed-accent); text-decoration: none; }
.ed-wrap a:hover { color: var(--ed-accent-2); }
.ed-wrap img { max-width: 100%; height: auto; display: block; }

/* ── Page Header ────────────────────────────────────────────── */
.ed-page-header {
  background: linear-gradient(135deg, #0d0f14 0%, #161a24 100%);
  border-bottom: 1px solid var(--ed-border);
  padding: 72px 40px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ed-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(200,169,110,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ed-page-header__eyebrow {
  font-family: var(--ed-font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ed-accent);
  margin-bottom: 12px;
}
.ed-page-header__title {
  font-family: var(--ed-font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--ed-text);
  margin-bottom: 16px;
}
.ed-page-header__sub {
  color: var(--ed-text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Layout ─────────────────────────────────────────────────── */
.ed-inventory-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 80vh;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.ed-sidebar {
  background: var(--ed-surface);
  border-right: 1px solid var(--ed-border);
  padding: 28px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ed-border) transparent;
}
.ed-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ed-border);
}
.ed-sidebar__title {
  font-family: var(--ed-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ed-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-sidebar__reset {
  background: none;
  border: none;
  color: var(--ed-accent);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--ed-transition);
  font-family: var(--ed-font-body);
}
.ed-sidebar__reset:hover { background: rgba(200,169,110,.1); }

.ed-filter-group {
  margin-bottom: 24px;
}
.ed-filter-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
  margin-bottom: 10px;
}
.ed-filter-select {
  width: 100%;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 10px 14px;
  border-radius: var(--ed-radius-sm);
  font-size: 14px;
  font-family: var(--ed-font-body);
  cursor: pointer;
  transition: var(--ed-transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.ed-filter-select:focus { outline: none; border-color: var(--ed-accent); box-shadow: 0 0 0 3px rgba(200,169,110,.15); }

/* Price Range */
.ed-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ed-price-input-wrap {
  position: relative;
  flex: 1;
}
.ed-currency {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ed-text-muted);
  font-size: 13px;
}
.ed-price-input-wrap input {
  width: 100%;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 9px 10px 9px 24px;
  border-radius: var(--ed-radius-sm);
  font-size: 13px;
  font-family: var(--ed-font-body);
  transition: var(--ed-transition);
}
.ed-price-input-wrap input:focus { outline: none; border-color: var(--ed-accent); }
.ed-range-sep { color: var(--ed-text-muted); font-size: 13px; }

.ed-price-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ed-price-preset {
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text-dim);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
  transition: var(--ed-transition);
  font-family: var(--ed-font-body);
  text-align: center;
}
.ed-price-preset:hover, .ed-price-preset.active {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.08);
}

/* Body Type Grid */
.ed-body-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.ed-body-type-btn {
  display: block;
  cursor: pointer;
}
.ed-body-type-btn input { display: none; }
.ed-body-type-btn span {
  display: block;
  text-align: center;
  padding: 8px 6px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ed-text-dim);
  transition: var(--ed-transition);
  background: var(--ed-surface-2);
}
.ed-body-type-btn input:checked + span {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.08);
}

/* Condition Pills */
.ed-condition-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--ed-border);
  font-size: 12px;
  color: var(--ed-text-dim);
  cursor: pointer;
  transition: var(--ed-transition);
  background: var(--ed-surface-2);
}
.ed-pill input { display: none; }
.ed-pill:has(input:checked), .ed-pill.active {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.1);
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.ed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--ed-border);
}
.ed-result-count {
  font-size: 14px;
  color: var(--ed-text-muted);
}
.ed-result-count #ed-count-num {
  font-weight: 700;
  color: var(--ed-text);
  font-size: 18px;
  font-family: var(--ed-font-head);
}
.ed-mobile-filter-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--ed-font-body);
}

/* ── Layout: sidebar right + no sidebar ─────────────────────── */
.ed-layout--sidebar-right {
  grid-template-columns: 1fr 280px;
}
.ed-layout--sidebar-right .ed-sidebar {
  order: 2;
  border-right: none;
  border-left: 1px solid var(--ed-border);
}
.ed-layout--sidebar-right .ed-inventory-main {
  order: 1;
}
/* When sidebar is hidden, inventory takes full width */
.ed-inventory-layout:has(.ed-inventory-main:only-child) {
  grid-template-columns: 1fr;
}
/* Fallback for browsers without :has() */
.ed-inventory-layout--no-sidebar {
  grid-template-columns: 1fr;
}

/* ── Inventory Main ────────────────────────────────────────── */
.ed-inventory-main {
  background: var(--ed-bg);
  position: relative;
}

/* ── Bento Grid ─────────────────────────────────────────────── */
.ed-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 28px;
}

/* Featured card: gold glow border instead of column span */
.ed-card--featured {
  border-color: rgba(200,169,110,.35);
  box-shadow: 0 0 0 1px rgba(200,169,110,.15), 0 4px 24px rgba(200,169,110,.08);
}

/* ── Vehicle Card ────────────────────────────────────────────── */
.ed-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  transition: var(--ed-transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ed-card:hover {
  border-color: var(--ed-border-glow);
  transform: translateY(-2px);
  box-shadow: var(--ed-shadow), var(--ed-shadow-glow);
}
.ed-card--featured:hover {
  border-color: rgba(200,169,110,.6);
  box-shadow: 0 0 0 1px rgba(200,169,110,.25), var(--ed-shadow), 0 0 32px rgba(200,169,110,.15);
}
.ed-card__img-wrap {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  position: relative;
  background: var(--ed-surface-2);
}
.ed-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--ed-surface-2);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.ed-card:hover .ed-card__img { transform: scale(1.02); }

.ed-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ed-card__meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-card__make {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-accent);
}
.ed-card__year {
  font-size: 11px;
  color: var(--ed-text-muted);
  background: var(--ed-surface-2);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid var(--ed-border);
}
.ed-card__title {
  font-family: var(--ed-font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ed-text);
}
.ed-card__title a { color: inherit; }
.ed-card__title a:hover { color: var(--ed-accent); }

.ed-card__price {
  font-family: var(--ed-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--ed-accent);
  letter-spacing: -0.5px;
}

.ed-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ed-spec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ed-text-muted);
  background: var(--ed-surface-2);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--ed-border);
}

.ed-card__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  flex-wrap: wrap;
}

/* ── Compare Button (on cards) ──────────────────────────────── */
.ed-compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 7px 12px;
  margin: 6px 18px 14px;
  width: calc(100% - 36px);
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 8px;
  background: transparent;
  color: var(--ed-text-muted);
  font-family: var(--ed-font-body);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ed-transition);
  letter-spacing: .3px;
}
.ed-compare-btn:hover {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.06);
  border-style: solid;
}
.ed-compare-btn.added {
  border-color: var(--ed-accent);
  border-style: solid;
  color: var(--ed-accent);
  background: rgba(200,169,110,.1);
}
.ed-compare-btn svg { flex-shrink: 0; }

/* ── Badges ─────────────────────────────────────────────────── */
.ed-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: var(--ed-glass-blur);
  -webkit-backdrop-filter: var(--ed-glass-blur);
}
.ed-badge--new     { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.ed-badge--used    { background: rgba(107,114,128,.15); color: #9ca3af; border: 1px solid rgba(107,114,128,.3); }
.ed-badge--featured { background: rgba(200,169,110,.15); color: var(--ed-accent); border: 1px solid rgba(200,169,110,.3); top: 12px; left: auto; right: 12px; }
.ed-badge--body    { background: var(--ed-surface-2); color: var(--ed-text-dim); border: 1px solid var(--ed-border); position: static; }

/* ── Buttons ─────────────────────────────────────────────────── */
.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ed-font-body);
  border: none;
  cursor: pointer;
  transition: var(--ed-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.ed-btn--primary {
  background: linear-gradient(135deg, var(--ed-accent) 0%, var(--ed-accent-2) 100%);
  color: var(--ed-btn-text, #0a0b0e);
  font-weight: 700;
}
.ed-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,.35);
  color: var(--ed-btn-text, #0a0b0e);
}
/* Ensure anchor tags inside primary buttons also get the color */
a.ed-btn--primary,
a.ed-btn--primary:hover,
a.ed-btn--primary:visited,
a.ed-btn--primary:active {
  color: var(--ed-btn-text, #0a0b0e) !important;
}
.ed-btn--ghost {
  background: var(--ed-glass-bg);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  backdrop-filter: var(--ed-glass-blur);
}
.ed-btn--ghost:hover { border-color: var(--ed-accent); color: var(--ed-accent); }
.ed-btn--outline {
  background: transparent;
  border: 1px solid var(--ed-border);
  color: var(--ed-text-dim);
}
.ed-btn--outline:hover { border-color: var(--ed-text); color: var(--ed-text); }
.ed-btn--whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
}
.ed-btn--whatsapp:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,211,102,.3); color: #fff; }
.ed-btn--lg { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.ed-btn--full { width: 100%; }

/* ── Loading + No Results ────────────────────────────────────── */
.ed-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,11,14,.75);
  backdrop-filter: var(--ed-glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--ed-radius);
}
.ed-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ed-text-muted);
  font-size: 14px;
}
.ed-loader__ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--ed-border);
  border-top-color: var(--ed-accent);
  border-radius: 50%;
  animation: ed-spin 0.8s linear infinite;
}
@keyframes ed-spin { to { transform: rotate(360deg); } }

.ed-no-results {
  padding: 80px 40px;
  text-align: center;
  color: var(--ed-text-muted);
}
.ed-no-results-icon { font-size: 48px; margin-bottom: 16px; }
.ed-no-results h3 { font-family: var(--ed-font-head); font-size: 22px; color: var(--ed-text); margin-bottom: 8px; }

/* ── Pagination ─────────────────────────────────────────────── */
.ed-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 24px;
}
.ed-page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--ed-border);
  background: var(--ed-surface);
  color: var(--ed-text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--ed-transition);
  font-family: var(--ed-font-body);
}
.ed-page-btn:hover, .ed-page-btn.active {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.08);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.ed-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  font-size: 13px;
  color: var(--ed-text-muted);
  border-bottom: 1px solid var(--ed-border);
  background: var(--ed-surface);
}
.ed-breadcrumb a { color: var(--ed-text-muted); transition: var(--ed-transition); }
.ed-breadcrumb a:hover { color: var(--ed-accent); }
.ed-breadcrumb span:last-child { color: var(--ed-text-dim); }

/* ── Single Layout ───────────────────────────────────────────── */
.ed-single-page {
  width: 100%;
  overflow-x: hidden;
}
.ed-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 32px;
  padding: 32px 40px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
  box-sizing: border-box;
}

/* ── Image Slider ────────────────────────────────────────────── */
.ed-slider-wrap {
  position: relative;
  border-radius: var(--ed-radius-lg);
  overflow: hidden;
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  aspect-ratio: 16/9;
  width: 100%;
}
.ed-slider-track { width: 100%; height: 100%; }
.ed-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.ed-slide.active { opacity: 1; z-index: 2; }
.ed-slide__img { width: 100%; height: 100%; object-fit: cover; }

.ed-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: var(--ed-glass-bg);
  backdrop-filter: var(--ed-glass-blur);
  -webkit-backdrop-filter: var(--ed-glass-blur);
  border: 1px solid var(--ed-border-glow);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ed-transition);
}
.ed-slider-btn:hover { background: rgba(200,169,110,.2); border-color: var(--ed-accent); }
.ed-slider-prev { left: 14px; }
.ed-slider-next { right: 14px; }

.ed-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.ed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  padding: 0;
  transition: var(--ed-transition);
}
.ed-dot.active { background: var(--ed-accent); width: 20px; border-radius: 100px; }

.ed-slider-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: var(--ed-glass-bg);
  backdrop-filter: var(--ed-glass-blur);
  border: 1px solid var(--ed-border-glow);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ed-transition);
}
.ed-slider-fullscreen:hover { background: rgba(200,169,110,.2); }

.ed-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.ed-thumbs::-webkit-scrollbar { display: none; }
.ed-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--ed-border);
  cursor: pointer;
  transition: var(--ed-transition);
  padding: 0;
  background: none;
}
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-thumb.active, .ed-thumb:hover { border-color: var(--ed-accent); }

/* ── Single Info Panel ────────────────────────────────────────── */
.ed-single-info { display: flex; flex-direction: column; gap: 20px; }

.ed-single-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ed-single-badges .ed-badge { position: static; }

.ed-single-title {
  font-family: var(--ed-font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ed-text);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.ed-single-price {
  font-family: var(--ed-font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ed-accent);
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ed-price-currency { font-size: 1.4rem; }
.ed-price-note { font-size: 12px; color: var(--ed-text-muted); font-weight: 400; font-family: var(--ed-font-body); letter-spacing: 0; }
.ed-price-call { font-size: 1.8rem; color: var(--ed-text-dim); }

/* Quick Specs */
.ed-quick-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ed-quick-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ed-glass-bg);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  backdrop-filter: var(--ed-glass-blur);
  transition: var(--ed-transition);
}
.ed-quick-spec:hover { border-color: var(--ed-border-glow); }
.ed-spec-icon { font-size: 18px; }
.ed-spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--ed-text-muted); }
.ed-spec-value { font-size: 14px; font-weight: 600; color: var(--ed-text); }

/* VIN */
.ed-vin-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  font-size: 13px;
}
.ed-vin-label { color: var(--ed-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; flex-shrink: 0; }
.ed-vin-code { color: var(--ed-accent); font-size: 13px; letter-spacing: 1.5px; font-family: 'Courier New', monospace; }

.ed-single-ctas { display: flex; flex-direction: column; gap: 10px; }

/* ── Description Section ─────────────────────────────────────── */
.ed-description-section, .ed-similar-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 40px 0;
  box-sizing: border-box;
}
.ed-section-title {
  font-family: var(--ed-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ed-text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ed-border);
  letter-spacing: -0.3px;
}
.ed-description-content {
  color: var(--ed-text-dim);
  line-height: 1.8;
  font-size: 15px;
}
.ed-similar-section { padding-bottom: 60px; }

/* ── EMI Calculator ──────────────────────────────────────────── */
.ed-emi-section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  box-sizing: border-box;
}
.ed-emi-header { margin-bottom: 28px; }
.ed-emi-title {
  font-family: var(--ed-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ed-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ed-emi-subtitle { color: var(--ed-text-muted); font-size: 14px; }

.ed-emi-calculator {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.ed-emi-inputs {
  background: var(--ed-surface);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ed-emi-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ed-text-muted);
  margin-bottom: 10px;
}
.ed-emi-input-wrap {
  position: relative;
}
.ed-emi-symbol {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ed-accent);
  font-weight: 600;
}
.ed-emi-input-wrap input {
  width: 100%;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 12px 14px 12px 30px;
  border-radius: var(--ed-radius-sm);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--ed-font-head);
  transition: var(--ed-transition);
}
.ed-emi-input-wrap input:focus { outline: none; border-color: var(--ed-accent); box-shadow: 0 0 0 3px rgba(200,169,110,.12); }

.ed-emi-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ed-emi-slider-wrap input[type="number"] {
  width: 80px;
  flex-shrink: 0;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 10px;
  border-radius: var(--ed-radius-sm);
  font-size: 14px;
  font-family: var(--ed-font-body);
  text-align: center;
}
.ed-emi-slider-wrap input[type="number"]:focus { outline: none; border-color: var(--ed-accent); }

.ed-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ed-accent) 0%, var(--ed-accent) var(--pct,24%), var(--ed-surface-2) var(--pct,24%), var(--ed-surface-2) 100%);
  outline: none;
}
.ed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ed-accent);
  border: 2px solid var(--ed-bg);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(200,169,110,.2);
}

.ed-term-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ed-term-tab {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--ed-border);
  background: var(--ed-surface-2);
  color: var(--ed-text-muted);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--ed-font-body);
  transition: var(--ed-transition);
}
.ed-term-tab.active {
  border-color: var(--ed-accent);
  color: var(--ed-accent);
  background: rgba(200,169,110,.08);
}

/* EMI Result Panel */
.ed-emi-result {
  background: linear-gradient(145deg, var(--ed-surface) 0%, #141720 100%);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.ed-emi-result__glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,169,110,.12) 0%, transparent 70%);
  pointer-events: none;
}
.ed-emi-monthly-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ed-text-muted);
  margin-bottom: 8px;
}
.ed-emi-monthly-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}
.ed-emi-currency { font-family: var(--ed-font-head); font-size: 1.5rem; color: var(--ed-accent); }
#emi-monthly {
  font-family: var(--ed-font-head);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--ed-accent);
  letter-spacing: -2px;
}

.ed-emi-breakdown { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ed-emi-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--ed-glass-bg);
  border: 1px solid var(--ed-border);
  border-radius: 8px;
}
.ed-emi-stat__label { font-size: 12px; color: var(--ed-text-muted); }
.ed-emi-stat__value { font-size: 14px; font-weight: 700; color: var(--ed-text); font-family: var(--ed-font-head); }

#emi-chart { max-width: 160px; margin: 0 auto 16px; }

.ed-emi-disclaimer { font-size: 11px; color: var(--ed-text-muted); font-style: italic; }

/* ── Modal / Popup ────────────────────────────────────────────── */
.ed-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.ed-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.ed-modal {
  background: linear-gradient(145deg, #14171f, #0e1118);
  border: 1px solid var(--ed-border-glow);
  border-radius: var(--ed-radius-lg);
  padding: 36px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), var(--ed-shadow-glow);
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ed-modal-overlay.is-open .ed-modal { transform: translateY(0) scale(1); }

.ed-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ed-transition);
}
.ed-modal__close:hover { border-color: var(--ed-accent); color: var(--ed-text); }

.ed-modal__header { text-align: center; margin-bottom: 28px; }
.ed-modal__icon { font-size: 40px; margin-bottom: 12px; }
.ed-modal__title {
  font-family: var(--ed-font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ed-text);
  margin-bottom: 6px;
}
.ed-modal__subtitle { color: var(--ed-accent); font-size: 14px; }

.ed-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.ed-form-group { display: flex; flex-direction: column; gap: 6px; }
.ed-form-group--full { grid-column: span 2; }
.ed-form-group label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ed-text-muted); font-weight: 600; }
.ed-req { color: var(--ed-accent); }

.ed-form-group input, .ed-form-group textarea {
  background: var(--ed-surface-2);
  border: 1px solid var(--ed-border);
  color: var(--ed-text);
  padding: 11px 14px;
  border-radius: var(--ed-radius-sm);
  font-size: 14px;
  font-family: var(--ed-font-body);
  transition: var(--ed-transition);
  resize: vertical;
}
.ed-form-group input:focus, .ed-form-group textarea:focus {
  outline: none;
  border-color: var(--ed-accent);
  box-shadow: 0 0 0 3px rgba(200,169,110,.12);
}
.ed-form-group input::placeholder, .ed-form-group textarea::placeholder { color: var(--ed-text-muted); }

.ed-modal__footer { margin-top: 20px; }
.ed-form-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  display: none;
}
.ed-form-msg.is-success { display: block; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: var(--ed-green); }
.ed-form-msg.is-error   { display: block; background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: var(--ed-red); }

.ed-spinner { animation: ed-spin .8s linear infinite; }

/* ══════════════════════════════════════════════════════════════
   ELITEDRIVE SEARCH BAR  —  Luxury Dark Aesthetic
══════════════════════════════════════════════════════════════ */

/* ── Outer wrapper ─────────────────────────────────────────── */
.ed-search-wrap {
  position: relative;
}

/* ── Section title ─────────────────────────────────────────── */
.ed-search-title {
  font-family: var(--ed-font-head, 'Syne', sans-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--ed-text, #e8e9ed);
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.ed-search-title span {
  color: var(--ed-accent, #c8a96e);
}

/* ── Glass card container ──────────────────────────────────── */
.ed-search-bar {
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.35),
    0 1px 0 rgba(255,255,255,.08) inset;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent glow */
.ed-search-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--ed-accent, #c8a96e) 50%,
    transparent 100%);
  opacity: .6;
}

/* ── Fields row ────────────────────────────────────────────── */
.ed-search-fields {
  align-items: flex-end !important;
  gap: 14px !important;
}

/* ── Individual field group ────────────────────────────────── */
.ed-search-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

/* ── Label ─────────────────────────────────────────────────── */
.ed-search-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ed-font-label, 'Syne', sans-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ed-accent, #c8a96e);
}

/* ── Input / Select fields ─────────────────────────────────── */
.ed-search-field {
  width: 100%;
  height: 46px;
  background: rgba(255,255,255,.055);
  border: 1.5px solid rgba(255,255,255,.1);
  color: var(--ed-text, #e8e9ed);
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--ed-font-body, 'Outfit', sans-serif);
  font-weight: 400;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-search-field:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
}

.ed-search-field:focus {
  outline: none;
  background: rgba(255,255,255,.09);
  border-color: var(--ed-accent, #c8a96e);
  box-shadow: 0 0 0 3px rgba(200,169,110,.18), 0 2px 8px rgba(0,0,0,.2);
  color: var(--ed-text, #e8e9ed);
}

.ed-search-field::placeholder {
  color: rgba(255,255,255,.3);
  font-weight: 300;
}

/* Select custom arrow */
select.ed-search-field {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c8a96e' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,.055);
  padding-right: 38px;
  cursor: pointer;
}
select.ed-search-field option {
  background: #111318;
  color: #e8e9ed;
}

/* Number input — hide spinners for cleaner look */
input[type="number"].ed-search-field::-webkit-outer-spin-button,
input[type="number"].ed-search-field::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"].ed-search-field { -moz-appearance: textfield; }

/* ── Price range special inputs ─────────────────────────────── */
.ed-search-price-range .ed-search-field {
  padding-left: 26px;
}
.ed-search-price-symbol {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ed-accent, #c8a96e);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
  z-index: 1;
}
.ed-search-price-sep {
  color: rgba(255,255,255,.25);
  font-size: 16px;
  line-height: 46px;
  flex-shrink: 0;
}

/* ── Submit button ─────────────────────────────────────────── */
.ed-search-btn-wrap {
  flex-shrink: 0;
}
.ed-search-submit {
  height: 46px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--ed-accent, #c8a96e) 0%, var(--ed-accent-2, #e8c98a) 100%);
  color: #0a0b0e;
  border: none;
  border-radius: 10px;
  font-family: var(--ed-font-body, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(200,169,110,.3);
}
.ed-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,.45);
}
.ed-search-submit:active { transform: translateY(0); }
.ed-search-submit svg { flex-shrink: 0; }

/* ── Divider between fields (optional separator line) ─────── */
.ed-search-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,.1);
  align-self: flex-end;
  margin-bottom: 7px;
  flex-shrink: 0;
}

/* ── Results area ──────────────────────────────────────────── */
.ed-search-results {
  margin-top: 28px;
  animation: ed-fade-in .35s ease;
}
.ed-search-results .ed-bento-grid { padding: 0; }
@keyframes ed-fade-in { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ed-search-bar { padding: 20px 18px 18px; border-radius: 14px; }
  .ed-search-fields { flex-direction: column !important; }
  .ed-search-group { width: 100% !important; min-width: 0 !important; flex: none !important; }
  .ed-search-btn-wrap { width: 100% !important; }
  .ed-search-submit { width: 100% !important; justify-content: center; }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media ( max-width: 1200px ) {
  .ed-single-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding: 28px 28px; }
}

@media ( max-width: 1100px ) {
  .ed-inventory-layout { grid-template-columns: 240px 1fr; }
  .ed-single-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; padding: 24px 24px; }
  .ed-bento-grid { grid-template-columns: repeat(2,1fr); padding: 20px; gap: 16px; }
  .ed-emi-calculator { grid-template-columns: 1fr; }
}

@media ( max-width: 768px ) {
  .ed-inventory-layout { grid-template-columns: 1fr; }
  .ed-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    width: 300px;
    box-shadow: 4px 0 40px rgba(0,0,0,.5);
  }
  .ed-sidebar.is-open { transform: translateX(0); }
  .ed-mobile-filter-toggle { display: flex; }
  .ed-bento-grid { grid-template-columns: 1fr; gap: 14px; padding: 16px; }

  .ed-single-layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 20px;
  }
  .ed-quick-specs { grid-template-columns: 1fr 1fr; }
  .ed-single-ctas .ed-btn { width: 100%; }

  .ed-description-section, .ed-similar-section, .ed-emi-section { padding: 24px 20px; }
  .ed-breadcrumb { padding: 12px 20px; }
  .ed-page-header { padding: 48px 20px 36px; }
  .ed-form-grid { grid-template-columns: 1fr; }
  .ed-form-group--full { grid-column: span 1; }
}

@media ( max-width: 480px ) {
  .ed-modal { padding: 24px 20px; }
  .ed-modal__title { font-size: 1.3rem; }
  .ed-single-price { font-size: 1.8rem; }
  #emi-monthly { font-size: 2.4rem; }
}
