/* ============ COMMON VARIABLE FALLBACKS ============ */
.ae-el-widget {
  --ae-ink: #0a0a0a;
  --ae-ink-soft: #333333;
  --ae-muted: #6b6b6b;
  --ae-line: #e1e1e1;
  --ae-line-strong: #bfbfbf;
  --ae-bg: #ffffff;
  --ae-bg-soft: #f6f6f6;
  --ae-bg-soft2: #efefef;
}

/* ============ 1. VEHICLE BRAND LINEUP ============ */
.ae-brand-lineup-widget-wrap {
  font-family: "Inter", sans-serif;
  color: var(--ae-ink);
}
.ae-brand-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 14px;
}
.ae-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ae-line);
  border-radius: 9px;
  padding: 14px 16px;
  background: var(--ae-bg);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.ae-brand-card:hover {
  border-color: var(--ae-ink);
}
.ae-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ae-brand-logo-wrap img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.ae-brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--ae-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.ae-brand-info {
  display: flex;
  flex-direction: column;
}
.ae-brand-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ae-ink);
  font-family: "Space Grotesk", sans-serif;
}
.ae-brand-count {
  font-size: 11.5px;
  color: var(--ae-muted);
  font-family: "JetBrains Mono", monospace;
  margin-top: 2px;
}
.ae-brands-footer {
  text-align: center;
  margin-top: 24px;
}

/* ============ 2 & 3. VEHICLE CAR DISPLAY & RELATED ============ */
.ae-car-display-widget-wrap,
.ae-related-vehicles-wrap {
  font-family: "Inter", sans-serif;
  color: var(--ae-ink);
}
.ae-related-vehicles-wrap h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}
.ae-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 20px;
}
.ae-vehicle-card {
  border: 1px solid var(--ae-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ae-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ae-vehicle-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background: var(--ae-bg-soft);
}
.ae-vehicle-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.ae-vehicle-card:hover .ae-vehicle-image-wrap img {
  transform: scale(1.03);
}
.ae-vehicle-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--ae-ink);
  color: #fff;
  z-index: 2;
}
.ae-vehicle-badge.ae-badge-sold {
  background: #a32d2d;
}
.ae-vehicle-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.ae-vehicle-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
}
.ae-vehicle-body h3 a {
  text-decoration: none;
  color: var(--ae-ink);
}
.ae-vehicle-body h3 a:hover {
  text-decoration: underline;
}
.ae-vehicle-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--ae-ink);
}
.ae-spec-kicker {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ae-muted);
  margin-bottom: 8px;
}
.ae-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  flex-grow: 1;
}
.ae-spec-chips span {
  font-size: 11.5px;
  border: 1px solid var(--ae-line);
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--ae-ink-soft);
  background: var(--ae-bg);
}
.ae-vehicle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--ae-ink);
  transition: all 0.15s ease;
  box-sizing: border-box;
}
.ae-vehicle-btn.outline {
  background: transparent;
  color: var(--ae-ink);
}
.ae-vehicle-btn.outline:hover {
  background: var(--ae-ink);
  color: #fff;
}
.ae-vehicle-btn.solid {
  background: var(--ae-ink);
  color: #fff;
}
.ae-vehicle-btn.solid:hover {
  background: transparent;
  color: var(--ae-ink);
}

/* ============ 4. VEHICLE QUICK SEARCH ============ */
.ae-quick-search-widget-wrap {
  font-family: "Inter", sans-serif;
  color: var(--ae-ink);
}
.ae-search-card {
  background: var(--ae-bg);
  border: 1.5px solid var(--ae-ink);
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}
.ae-search-filters-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.ae-search-field {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ae-search-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ae-muted);
  margin-bottom: 7px;
}
.ae-qs-input-wrap {
  position: relative;
  width: 100%;
}
.ae-qs-input-wrap .ae-qs-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ae-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.ae-qs-input-field {
  padding-left: 36px !important;
}
.ae-qs-select,
.ae-qs-input-field {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ae-line-strong);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: "Inter", sans-serif;
  color: var(--ae-ink);
  background: var(--ae-bg);
  box-sizing: border-box;
  height: 42px;
}
.ae-qs-select:focus,
.ae-qs-input-field:focus {
  outline: 2px solid var(--ae-ink);
  outline-offset: 1px;
}
.ae-qs-range-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.ae-qs-range-wrapper select {
  flex: 1;
  min-width: 0;
}
.range-sep {
  color: var(--ae-muted);
  font-size: 12px;
  flex-shrink: 0;
}
.ae-qs-submit-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 6px;
  cursor: pointer;
  border: 1.5px solid var(--ae-ink);
  transition: all 0.15s ease;
  background: var(--ae-ink);
  color: #fff;
  height: 42px;
  box-sizing: border-box;
  white-space: nowrap;
}
.ae-qs-submit-btn:hover {
  background: transparent;
  color: var(--ae-ink);
}

/* ============ 5. FAQ ACCORDION ============ */
.ae-faq-section-wrap {
  font-family: "Inter", sans-serif;
  color: var(--ae-ink);
}
.ae-faq-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.ae-faq-head .eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ae-muted);
  margin-bottom: 10px;
  display: block;
}
.ae-faq-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
}
.ae-faq-head p {
  color: var(--ae-muted);
  font-size: 14.5px;
  margin: 0;
}
.ae-faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.ae-faq-item {
  border-bottom: 1px solid var(--ae-line);
}
.ae-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px !important;
  cursor: pointer;
  background: none !important;
  border: none !important;
  width: 100%;
  text-align: left;
  color: var(--ae-ink);
}
.ae-faq-q:hover {
  background: none;
}
.ae-faq-q h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--ae-ink);
  text-wrap: wrap;
}
.ae-faq-q .plus {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 14px;
  transition: transform 0.2s ease;
}
.ae-faq-item.open .plus {
  transform: rotate(45deg);
}
.ae-faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.25s ease;
}
.ae-faq-item.open .ae-faq-a {
  max-height: 500px;
}
.ae-faq-a p {
  font-size: 13.5px;
  color: var(--ae-muted);
  margin: 0 4px 18px;
  line-height: 1.6;
}

/* ============ RESPONSIVE BREAKPOINTS ============ */
@media (max-width: 900px) {
  .ae-brand-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ae-vehicle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ae-search-card {
    grid-template-columns: 1fr 1fr;
  }
  .ae-qs-submit-btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .ae-vehicle-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .ae-brand-grid {
    grid-template-columns: 1fr;
  }
  .ae-search-card {
    grid-template-columns: 1fr;
  }
}
