/* =====================================================
   Auto Elite — Inventory Pages
   /inventory/ showcase + /inventory/<slug>/ detail
   ===================================================== */

:root {
  --ae-inv-bg: #f6f6f7;
  --ae-inv-card-bg: #ffffff;
  --ae-inv-text: #222;
  --ae-inv-muted: #6a6b75;
  --ae-inv-accent: #0088cc;
  --ae-inv-accent-dk: #006299;
  --ae-inv-border: #e3e4e7;
  --ae-inv-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --ae-inv-shadow-hover: 0 4px 12px rgba(0,0,0,.10), 0 12px 32px rgba(0,0,0,.10);
  --ae-radius: 10px;
  --ae-radius-sm: 6px;

  --ae-status-available-bg: #16a34a;
  --ae-status-available-fg: #ffffff;
  --ae-status-pending-bg: #f59e0b;
  --ae-status-pending-fg: #1f1300;
  --ae-status-transit-bg: #6366f1;
  --ae-status-transit-fg: #ffffff;
  --ae-status-sold-bg: #6b7280;
  --ae-status-sold-fg: #ffffff;

  --ae-cond-new-bg: #2563eb;
  --ae-cond-used-bg: #1f2937;
  --ae-cond-certified-bg: #7c2d12;
}

/* =====================================================
   GENERAL CONTAINER
   ===================================================== */
.ae-inventory-main {
  background: var(--ae-inv-bg);
  min-height: 60vh;
}
.ae-inventory-page,
.ae-inventory-detail {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px 80px;
  color: var(--ae-inv-text);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =====================================================
   SHOWCASE HERO
   2026-05-15 (Zach final round): the inventory page sits BELOW the The7
   masthead. The masthead already has its own bottom decoration line and
   internal padding; the hero used to add another 64px on top of that,
   which read as dead space above the "Auto Elite Inventory" headline.
   Pulled padding-top to 28px so the headline starts almost flush under
   the masthead, matching Zach's screenshot. Counter pill removed.
   ===================================================== */
.ae-inv-hero {
  padding: 28px 24px 30px;
  margin: 0 -24px 0;
  background: linear-gradient(135deg, #0e0e0e 0%, #2a2a30 100%);
  color: #fff;
  text-align: center;
}
.ae-inv-hero-inner { max-width: 900px; margin: 0 auto; }
.ae-inv-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  color: #fff;
}
.ae-inv-hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 17px);
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.55;
  color: #d8d9dc;
}
/* Counter pill ("X of Y vehicles") was removed in Zach's final round —
   inventory total is implicit from the visible grid. Keep the class
   defined as display:none so any leftover markup hides cleanly. */
.ae-inv-counter { display: none !important; }

/* =====================================================
   FILTERS
   ===================================================== */
.ae-inv-filters-wrap {
  margin: -28px 0 32px;
  position: relative;
  z-index: 2;
}
.ae-inv-filters-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin: 0;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
  background: #fff;
  box-shadow: var(--ae-inv-shadow);
  color: var(--ae-inv-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.ae-inv-filters-toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ae-inv-muted);
  border-bottom: 2px solid var(--ae-inv-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.ae-inv-filters-wrap.ae-inv-filters-open .ae-inv-filters-toggle-icon {
  transform: rotate(-135deg);
  margin-top: 4px;
}
.ae-inv-filters-panel { display: block; }
@media (max-width: 900px) {
  .ae-inv-filters-toggle { display: flex; }
  .ae-inv-filters-panel { display: none; }
  .ae-inv-filters-wrap.ae-inv-filters-open .ae-inv-filters-panel { display: block; }
  .ae-inv-filters {
    margin-top: 10px;
  }
}
.ae-inv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 22px;
  margin: 0;
  background: #fff;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
  box-shadow: var(--ae-inv-shadow);
  position: relative;
}
.ae-inv-filter { display: flex; flex-direction: column; gap: 5px; flex: 1 1 165px; min-width: 0; }
.ae-inv-filter label {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--ae-inv-muted);
  font-weight: 600;
}
.ae-inv-filter select {
  padding: 9px 11px;
  font-size: 14px;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius-sm);
  background: #fff;
  color: var(--ae-inv-text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23666' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color .15s, box-shadow .15s;
}
.ae-inv-filter select:focus {
  outline: 0;
  border-color: var(--ae-inv-accent);
  box-shadow: 0 0 0 3px rgba(0,136,204,.18);
}
.ae-inv-filter input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius-sm);
  background: #fff;
  color: var(--ae-inv-text);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.ae-inv-filter input[type="search"]::placeholder { color: var(--ae-inv-muted); }
.ae-inv-filter input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background: var(--ae-inv-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l10 10M11 1L1 11' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
}
.ae-inv-filter input[type="search"]:focus {
  outline: 0;
  border-color: var(--ae-inv-accent);
  box-shadow: 0 0 0 3px rgba(0,136,204,.18);
}
.ae-inv-clear {
  align-self: end;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius-sm);
  color: var(--ae-inv-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  height: fit-content;
}
.ae-inv-clear:hover { background: #f0f0f2; color: var(--ae-inv-text); }

/* =====================================================
   CARD GRID
   2026-05-15 (Zach final round): 4-per-row on desktop so two rows (8
   listings) are visible above the fold without scrolling. Card sizes
   were tightened (smaller padding, condensed prices+CTA row) so 4
   columns fit inside the 1440px container at the new density.
   ===================================================== */
.ae-inv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1240px) { .ae-inv-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (max-width: 900px)  { .ae-inv-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 540px)  { .ae-inv-grid { grid-template-columns: 1fr; } }

.ae-inv-card {
  background: var(--ae-inv-card-bg);
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
  overflow: hidden;
  box-shadow: var(--ae-inv-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ae-inv-card:hover { transform: translateY(-3px); box-shadow: var(--ae-inv-shadow-hover); }
.ae-inv-card[data-status="sold"]      { opacity: 0.78; }
.ae-inv-card[data-status="sold"] .ae-inv-card-img { filter: grayscale(0.3); }

.ae-inv-card-link { display: block; color: inherit; text-decoration: none; }
.ae-inv-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a20;
}
.ae-inv-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.ae-inv-card:hover .ae-inv-card-img { transform: scale(1.04); }

.ae-inv-card-body { padding: 12px 14px 14px; }
.ae-inv-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.32;
  margin: 0 0 8px;
  color: #1a1a20;
  /* clamp to 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.ae-inv-card-meta {
  font-size: 13px;
  color: var(--ae-inv-muted);
  margin: 0 0 10px;
}
.ae-inv-card-dot { margin: 0 8px; opacity: .55; }
/* 2026-05-12 Zach: full spec row replaces the meta line.
   2026-05-15 Zach final round: condensed for 4-per-row density, dropped
   Interior Type, and moved Retail/Internet/View Details to a single
   footer row matching the mockup. */
.ae-inv-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 10px;
  font-size: 12px;
  color: var(--ae-inv-muted);
  margin: 0 0 10px;
}
.ae-inv-card-spec { line-height: 1.32; }
.ae-inv-card-spec-label { color: var(--ae-inv-muted); opacity: .85; }
.ae-inv-card-spec-value { color: var(--ae-inv-text, #1a1a20); font-weight: 500; }
@media (max-width: 480px) {
  .ae-inv-card-specs { grid-template-columns: 1fr; }
}
/* Footer row: Retail (strikethrough) → Internet $price → View Details ›
   on a single horizontal line per Zach's mockup. Top border separates
   it from the spec grid above. Wraps on tight viewports. */
.ae-inv-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--ae-inv-border);
}
.ae-inv-card-prices {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.ae-inv-card-cross { font-size: 11px; color: var(--ae-inv-muted); }
.ae-inv-card-cross s { opacity: .85; }
.ae-inv-card-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--ae-inv-accent);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.2px;
}
.ae-inv-card-price-label {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-right: 1px;
}
.ae-inv-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--ae-inv-accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.ae-inv-card:hover .ae-inv-card-cta { color: var(--ae-inv-accent-dk); }
.ae-inv-card-cta .ae-arr { transition: transform .15s; display: inline-block; margin-left: 2px; }
.ae-inv-card:hover .ae-inv-card-cta .ae-arr { transform: translateX(3px); }

/* =====================================================
   STATUS + CONDITION BADGES
   ===================================================== */
.ae-status-badge,
.ae-cond-badge {
  position: absolute;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  line-height: 1;
}
.ae-status-badge { top: 12px; left: 12px; }
.ae-cond-badge   { top: 12px; right: 12px; }

.ae-status-available { background: var(--ae-status-available-bg); color: var(--ae-status-available-fg); }
.ae-status-pending   { background: var(--ae-status-pending-bg);   color: var(--ae-status-pending-fg); }
.ae-status-transit   { background: var(--ae-status-transit-bg);   color: var(--ae-status-transit-fg); }
.ae-status-sold      { background: var(--ae-status-sold-bg);      color: var(--ae-status-sold-fg); }

.ae-cond-new       { background: var(--ae-cond-new-bg); color: #fff; }
.ae-cond-used      { background: var(--ae-cond-used-bg); color: #fff; }
.ae-cond-certified { background: var(--ae-cond-certified-bg); color: #fff; }

.ae-status-available::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  animation: ae-pulse 2.4s ease-in-out infinite;
}
@keyframes ae-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.5; transform: scale(1.18); }
}

/* Detail page badge sizes (slightly larger) */
.ae-vd-badges .ae-status-badge,
.ae-vd-badges .ae-cond-badge {
  position: static;
  font-size: 11px;
  padding: 6px 14px;
  margin-right: 8px;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.ae-inv-empty {
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  color: var(--ae-inv-muted);
  background: #fff;
  border: 1px dashed var(--ae-inv-border);
  border-radius: var(--ae-radius);
}
.ae-inv-empty button {
  background: none; border: none; color: var(--ae-inv-accent);
  cursor: pointer; text-decoration: underline; font-size: 14px;
}

/* =====================================================
   DETAIL PAGE
   ===================================================== */
.ae-inventory-detail { padding-top: 24px; }
.ae-vd-breadcrumb {
  font-size: 13px;
  color: var(--ae-inv-muted);
  margin: 14px 0 18px;
}
.ae-vd-breadcrumb a { color: var(--ae-inv-accent); text-decoration: none; }
.ae-vd-breadcrumb a:hover { text-decoration: underline; }
.ae-vd-breadcrumb span:not([aria-current]) { margin: 0 8px; opacity: 0.5; }

.ae-vd-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
  padding: 4px 0 28px;
  border-bottom: 1px solid var(--ae-inv-border);
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .ae-vd-header { grid-template-columns: 1fr; align-items: stretch; }
}

.ae-vd-badges { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ae-vd-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  color: #111;
  margin: 0 0 8px;
}
.ae-vd-subtitle {
  font-size: 13px;
  color: var(--ae-inv-muted);
  letter-spacing: 0.3px;
}

.ae-vd-pricebox {
  background: #fff;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
  padding: 18px 22px;
  min-width: 280px;
  box-shadow: var(--ae-inv-shadow);
}
.ae-vd-price-line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ae-inv-text);
}
.ae-vd-price-strike { color: var(--ae-inv-muted); }
.ae-vd-price-strike s { font-size: 13px; }
.ae-vd-price-internet {
  border-top: 1px solid var(--ae-inv-border);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ae-vd-price-internet strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  color: var(--ae-inv-accent);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.ae-vd-cta {
  display: block;
  text-align: center;
  background: var(--ae-inv-accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  margin: 14px 0 6px;
  border-radius: var(--ae-radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background .15s;
}
.ae-vd-cta:hover { background: var(--ae-inv-accent-dk); color: #fff; }
.ae-vd-phone { font-size: 12px; color: var(--ae-inv-muted); text-align: center; }
.ae-vd-phone a { color: var(--ae-inv-accent); text-decoration: none; font-weight: 600; }

/* Gallery
   2026-05-15 (Zach final round): the poster image is a 4:3 vehicle
   composition with branded chrome at top + bottom; cropping it inside a
   16:10 container shaved off the top "Auto Elite LLC" badge.  Match the
   container's aspect-ratio to the source so the whole composition shows
   un-cropped on the VDP. */
.ae-vd-gallery { margin-bottom: 36px; }
.ae-vd-hero {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--ae-radius);
  background: #1a1a20;
  margin-bottom: 12px;
  box-shadow: var(--ae-inv-shadow);
}
.ae-vd-hero-link { display: block; width: 100%; height: 100%; }
.ae-vd-hero-img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; background: #1a1a20; }
.ae-vd-photocount {
  position: absolute;
  bottom: 14px; right: 14px;
  background: rgba(0,0,0,.65);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.4px;
  pointer-events: none;
}
.ae-vd-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 900px) {
  .ae-vd-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .ae-vd-thumbs { grid-template-columns: repeat(3, 1fr); }
}
/* 2026-05-15 (Zach final round): default visible is 24 thumbs (4 rows of 6)
   instead of 12 — server-side `.ae-vd-thumbs-collapsed` still marks the
   overflow state; lightbox JS still walks every anchor via prev/next. */
.ae-vd-thumbs-collapsed .ae-vd-thumb:nth-child(n+25) { display: none; }
/* "Expanded" state — JS adds .ae-vd-thumbs-expanded when the user opts in. */
.ae-vd-thumbs-expanded .ae-vd-thumb { display: block; }

.ae-vd-thumb {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--ae-radius-sm);
  border: 2px solid transparent;
  background: #1a1a20;
  cursor: zoom-in;
  transition: border-color .15s, transform .15s;
}
.ae-vd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-vd-thumb:hover { border-color: var(--ae-inv-accent); transform: scale(1.02); }
.ae-vd-thumb-active { border-color: var(--ae-inv-accent); }

/* "+N more" overlay on the 12th tile while collapsed.  Hidden as soon as
   the user expands the grid (or when total ≤ 12 — the server only adds
   .ae-vd-thumb-more-tile when there's overflow). */
.ae-vd-thumbs-collapsed .ae-vd-thumb-more-tile::after {
  content: '+' attr(data-more) ' photos';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  border-radius: inherit;
  pointer-events: none;
  transition: background .15s;
}
.ae-vd-thumbs-collapsed .ae-vd-thumb-more-tile:hover::after {
  background: rgba(0, 0, 0, 0.78);
}

/* "Show all photos" button shown below the grid when collapsed.
   AE FIX 2026-05-11: VDP page background is light, so the original
   #ddd-on-transparent rendered as faint gray on white.  Switched to
   dark text on white with a visible border so the button reads
   clearly on the inventory detail page. */
.ae-vd-thumbs-toggle {
  margin-top: 12px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #2b2b2b;
  color: #2b2b2b;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: var(--ae-radius-sm);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.ae-vd-thumbs-toggle:hover {
  border-color: var(--ae-inv-accent);
  color: #fff;
  background: var(--ae-inv-accent);
}

/* Specs */
.ae-vd-specs { margin-bottom: 36px; }
.ae-vd-specs h2,
.ae-vd-about h2,
.ae-vd-inquiry h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 14px;
  color: #1a1a20;
}
.ae-vd-spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
  overflow: hidden;
  font-size: 14px;
}
.ae-vd-spec-table th,
.ae-vd-spec-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--ae-inv-border);
  text-align: left;
}
.ae-vd-spec-table tr:last-child th,
.ae-vd-spec-table tr:last-child td { border-bottom: 0; }
.ae-vd-spec-table th {
  background: #fafafb;
  width: 200px;
  font-weight: 500;
  color: var(--ae-inv-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ae-vd-spec-table td { color: var(--ae-inv-text); font-weight: 400; word-break: break-word; }
@media (max-width: 600px) {
  .ae-vd-spec-table th { width: 130px; padding: 9px 10px; }
  .ae-vd-spec-table td { padding: 9px 10px; font-size: 13px; }
}

/* About + Inquiry */
.ae-vd-about, .ae-vd-inquiry {
  margin-bottom: 36px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius);
}
.ae-vd-about p { font-size: 14px; line-height: 1.6; color: var(--ae-inv-text); margin: 0; }
.ae-vd-about a { color: var(--ae-inv-accent); }
.ae-vd-inq-sub { font-size: 13px; color: var(--ae-inv-muted); margin: 0 0 18px; }

.ae-vd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .ae-vd-form-grid { grid-template-columns: 1fr; } }
.ae-vd-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ae-vd-field-full { grid-column: 1/-1; }
.ae-vd-field span { font-weight: 500; color: var(--ae-inv-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.ae-vd-field input,
.ae-vd-field textarea {
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--ae-inv-border);
  border-radius: var(--ae-radius-sm);
  background: #fafafb;
  color: var(--ae-inv-text);
  resize: vertical;
}
.ae-vd-field input:focus,
.ae-vd-field textarea:focus {
  outline: 0;
  border-color: var(--ae-inv-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,136,204,.15);
}
.ae-vd-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}
.ae-vd-form-vehicle-hint {
  font-size: 12px;
  color: var(--ae-inv-muted);
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fafafb;
  border-radius: var(--ae-radius-sm);
}
.ae-vd-submit {
  background: var(--ae-inv-accent);
  color: #fff;
  border: 0;
  padding: 12px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--ae-radius-sm);
  cursor: pointer;
  transition: background .15s;
}
.ae-vd-submit:hover { background: var(--ae-inv-accent-dk); }

/* =====================================================
   INVENTORY LIGHTBOX
   ===================================================== */
#ae-inv-lb {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#ae-inv-lb.ae-inv-lb-open { display: flex; }
.ae-inv-lb-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ae-inv-lb-img {
  display: block;
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
  transition: opacity 0.18s ease;
}
.ae-inv-lb-close, .ae-inv-lb-prev, .ae-inv-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .15s;
}
.ae-inv-lb-close { top: 18px; right: 18px; width: 48px; height: 48px; font-size: 26px; line-height: 1; }
.ae-inv-lb-prev  { top: 50%; left: 18px;  width: 56px; height: 56px; transform: translateY(-50%); }
.ae-inv-lb-next  { top: 50%; right: 18px; width: 56px; height: 56px; transform: translateY(-50%); }
.ae-inv-lb-close:hover, .ae-inv-lb-prev:hover, .ae-inv-lb-next:hover {
  background: rgba(255,255,255,0.20);
}
.ae-inv-lb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.ae-inv-lb-next:hover { transform: translateY(-50%) translateX(2px); }
.ae-inv-lb-counter {
  position: fixed;
  top: 18px;
  left: 22px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.6px;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 4px;
}
@media (max-width: 600px) {
  .ae-inv-lb-close { width: 40px; height: 40px; font-size: 22px; top: 12px; right: 12px; }
  .ae-inv-lb-prev, .ae-inv-lb-next { width: 44px; height: 44px; font-size: 18px; }
  .ae-inv-lb-prev { left: 8px; }
  .ae-inv-lb-next { right: 8px; }
  .ae-inv-lb-img { max-height: calc(100vh - 110px); }
}

/* Override The7's wp-content default styles that might bleed in via #main */
.ae-inventory-main { padding-top: 0 !important; }
.ae-inventory-main h1, .ae-inventory-main h2, .ae-inventory-main h3, .ae-inventory-main h4 {
  color: inherit !important;
}
