/* =============================================================================
   Auto Listings — Frontend Styles
   Uses CSS custom properties so the active theme can override any value.
============================================================================= */

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --acx-primary:        #1a2c3d;
  --acx-primary-dark:   #0f1e2a;
  --acx-accent:         #e63946;
  --acx-accent-hover:   #c1121f;
  --acx-secondary:      #0077b6;
  --acx-secondary-hover:#005f92;
  --acx-success:        #2a9d4f;
  --acx-warning:        #f4a261;
  --acx-text:           #1c1c1e;
  --acx-text-muted:     #6b7280;
  --acx-border:         #e5e7eb;
  --acx-bg:             #f8f9fa;
  --acx-card-bg:        #ffffff;
  --acx-radius:         8px;
  --acx-radius-sm:      4px;
  --acx-shadow:         0 2px 12px rgba(0,0,0,.08);
  --acx-shadow-hover:   0 6px 24px rgba(0,0,0,.14);
  --acx-font:           inherit;
  --acx-transition:     .2s ease;
  --acx-container:      1200px;
  --acx-gap:            1.5rem;
}

/* ─── Reset / Base ───────────────────────────────────────────────────────── */
.acx-archive *,
.acx-single *,
.acx-inventory-wrapper *,
.acx-modal-overlay *,
.acx-search-panel * {
  box-sizing: border-box;
}

.acx-archive,
.acx-single,
.acx-inventory-wrapper {
  font-family: var(--acx-font);
  color: var(--acx-text);
  line-height: 1.6;
}

/* ─── Container ─────────────────────────────────────────────────────────── */
.acx-container {
  max-width: var(--acx-container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.acx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  padding: .65em 1.4em;
  border-radius: var(--acx-radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--acx-transition), color var(--acx-transition), border-color var(--acx-transition), box-shadow var(--acx-transition);
  white-space: nowrap;
  line-height: 1.4;
}
.acx-btn:focus-visible {
  outline: 3px solid var(--acx-secondary);
  outline-offset: 2px;
}
.acx-btn--primary {
  background: var(--acx-accent);
  color: #fff;
  border-color: var(--acx-accent);
}
.acx-btn--primary:hover {
  background: var(--acx-accent-hover);
  border-color: var(--acx-accent-hover);
  color: #fff;
}
.acx-btn--secondary {
  background: var(--acx-primary);
  color: #fff;
  border-color: var(--acx-primary);
}
.acx-btn--secondary:hover {
  background: var(--acx-primary-dark);
  border-color: var(--acx-primary-dark);
  color: #fff;
}
.acx-btn--outline {
  background: transparent;
  color: var(--acx-primary);
  border-color: var(--acx-primary);
}
.acx-btn--outline:hover {
  background: var(--acx-primary);
  color: #fff;
}
.acx-btn--ghost {
  background: transparent;
  color: var(--acx-text-muted);
  border-color: var(--acx-border);
}
.acx-btn--ghost:hover {
  background: var(--acx-bg);
  color: var(--acx-text);
}
.acx-btn--text {
  background: transparent;
  color: var(--acx-secondary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.acx-btn--text:hover { text-decoration: underline; color: var(--acx-secondary-hover); }
.acx-btn--full { width: 100%; }
.acx-btn--sm   { padding: .4em 1em; font-size: .82rem; }
.acx-btn--lg   { padding: .8em 2em; font-size: 1rem; }
.acx-btn--carfax {
  background: #003087;
  color: #fff;
  border-color: #003087;
}
.acx-btn--carfax:hover { background: #001f5b; border-color: #001f5b; }

/* ─── Form inputs ────────────────────────────────────────────────────────── */
.acx-input,
.acx-select,
.acx-textarea {
  width: 100%;
  padding: .6em .85em;
  border: 1.5px solid var(--acx-border);
  border-radius: var(--acx-radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--acx-text);
  background: #fff;
  transition: border-color var(--acx-transition);
  appearance: none;
  -webkit-appearance: none;
}
.acx-input:focus,
.acx-select:focus,
.acx-textarea:focus {
  outline: none;
  border-color: var(--acx-secondary);
  box-shadow: 0 0 0 3px rgba(0,119,182,.15);
}
.acx-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75em center;
  padding-right: 2.5em;
}
.acx-textarea { resize: vertical; min-height: 90px; }
.acx-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--acx-text);
  margin-bottom: .35em;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ─── Search Panel ───────────────────────────────────────────────────────── */
.acx-search-panel {
  background: var(--acx-primary);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

.acx-search-form {}

.acx-search-simple {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}

.acx-field-group {
  flex: 1 1 180px;
  min-width: 140px;
}
.acx-field-group .acx-label { color: rgba(255,255,255,.85); }
.acx-field-group .acx-input,
.acx-field-group .acx-select {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.acx-field-group .acx-input::placeholder { color: rgba(255,255,255,.55); }
.acx-field-group .acx-select option { background: var(--acx-primary); color: #fff; }
.acx-field-group .acx-input:focus,
.acx-field-group .acx-select:focus {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}
.acx-field-group--range .acx-range-inputs {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.acx-field-group--range .acx-range-inputs .acx-input { flex: 1; min-width: 0; }
.acx-range-sep { color: rgba(255,255,255,.6); font-size: .8rem; }

.acx-search-btns {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.2rem;
}
.acx-btn--search { gap: .5em; padding: .65em 1.6em; }
.acx-advanced-toggle .acx-chevron {
  transition: transform var(--acx-transition);
}
.acx-advanced-toggle[aria-expanded="true"] .acx-chevron {
  transform: rotate(180deg);
}

/* Advanced section */
.acx-search-advanced {
  display: none;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}
.acx-search-advanced.acx-is-open {
  display: flex;
}

.acx-adv-field {
  flex: 1 1 200px;
  min-width: 160px;
}
.acx-adv-field .acx-label { color: rgba(255,255,255,.85); }
.acx-adv-field--full { flex: 1 1 100%; }
.acx-adv-field--range { flex: 1 1 280px; }
.acx-adv-field .acx-input,
.acx-adv-field .acx-select {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.acx-adv-field .acx-input::placeholder { color: rgba(255,255,255,.55); }
.acx-adv-field .acx-select option { background: var(--acx-primary); }
.acx-adv-field .acx-input:focus,
.acx-adv-field .acx-select:focus {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
  box-shadow: none;
}

/* Pill group (checkbox pills) */
.acx-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.acx-pill {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.acx-pill input[type="checkbox"] { display: none; }
.acx-pill span {
  padding: .3em .9em;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50px;
  font-size: .8rem;
  color: rgba(255,255,255,.8);
  transition: background var(--acx-transition), color var(--acx-transition), border-color var(--acx-transition);
}
.acx-pill:hover span {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}
.acx-pill input:checked + span {
  background: var(--acx-accent);
  border-color: var(--acx-accent);
  color: #fff;
}

/* Slider */
.acx-slider-wrap {}
.acx-slider {
  width: 100%;
  accent-color: var(--acx-accent);
  height: 4px;
}
.acx-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  margin-top: .3rem;
}
.acx-slider-value { font-weight: 600; color: rgba(255,255,255,.9); }

/* ─── Results Header ─────────────────────────────────────────────────────── */
.acx-results-section { padding: 2rem 0 3rem; }
.acx-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--acx-border);
}
.acx-results-count {
  font-size: .95rem;
  color: var(--acx-text-muted);
}
.acx-results-count #acx-found-count {
  font-weight: 700;
  color: var(--acx-text);
  font-size: 1.1rem;
}
.acx-results-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.acx-results-controls .acx-select {
  width: auto;
  min-width: 190px;
}
.acx-view-toggle {
  display: flex;
  border: 1.5px solid var(--acx-border);
  border-radius: var(--acx-radius-sm);
  overflow: hidden;
}
.acx-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  cursor: pointer;
  color: var(--acx-text-muted);
  transition: background var(--acx-transition), color var(--acx-transition);
}
.acx-view-btn:hover { background: var(--acx-bg); color: var(--acx-text); }
.acx-view-btn--active { background: var(--acx-primary); color: #fff; }

/* ─── Vehicles Grid ──────────────────────────────────────────────────────── */
.acx-vehicles-grid.acx-view-grid {
  display: grid;
  grid-template-columns: repeat(var(--acx-grid-cols, 3), 1fr);
  gap: var(--acx-gap);
}
.acx-vehicles-grid.acx-view-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Vehicle Card ───────────────────────────────────────────────────────── */
.acx-vehicle-card {
  background: var(--acx-card-bg);
  border-radius: var(--acx-radius);
  box-shadow: var(--acx-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--acx-transition), transform var(--acx-transition);
  border: 1.5px solid var(--acx-border);
}
.acx-vehicle-card:hover {
  box-shadow: var(--acx-shadow-hover);
  transform: translateY(-3px);
}
.acx-card--sold { opacity: .75; }
.acx-card--featured { border-color: var(--acx-accent); }

/* Card image */
.acx-card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--acx-bg);
}
.acx-card-image-wrap img,
.acx-card-gallery .swiper-slide img,
.acx-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.acx-vehicle-card:hover .acx-card-img { transform: scale(1.03); }
.acx-card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--acx-border);
  text-decoration: none;
}

/* Card mini gallery (Swiper) */
.acx-card-gallery {
  width: 100%;
  height: 100%;
}
.acx-card-gallery .swiper-slide { height: 100%; }
.acx-card-gallery .swiper-slide a { display: block; width: 100%; height: 100%; }
.acx-card-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.acx-card-gallery .swiper-button-prev,
.acx-card-gallery .swiper-button-next {
  width: 30px;
  height: 30px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  color: #fff !important;
}
.acx-card-gallery .swiper-button-prev::after,
.acx-card-gallery .swiper-button-next::after { font-size: 11px !important; }

/* Badges */
.acx-card-badges {
  position: absolute;
  top: .6rem;
  left: .6rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  z-index: 2;
}
.acx-card-badge {
  display: inline-block;
  padding: .2em .7em;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.acx-card-badge--sold     { background: #dc2626; color: #fff; }
.acx-card-badge--reserved { background: var(--acx-warning); color: #fff; }
.acx-card-badge--featured { background: var(--acx-accent);  color: #fff; }
.acx-card-badge--custom   { background: var(--acx-primary); color: #fff; }

/* Image count badge */
.acx-card-img-count {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .2em .6em;
  border-radius: 12px;
  font-size: .72rem;
  display: flex;
  align-items: center;
  gap: .3em;
}

/* Card body */
.acx-card-body { padding: 1rem 1rem .5rem; flex: 1; }
.acx-card-sale-type {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--acx-text-muted);
  margin-bottom: .3rem;
}
.acx-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .3rem;
  line-height: 1.3;
}
.acx-card-title a {
  color: var(--acx-text);
  text-decoration: none;
}
.acx-card-title a:hover { color: var(--acx-accent); }
.acx-card-stock {
  font-size: .75rem;
  color: var(--acx-text-muted);
  margin-bottom: .6rem;
}
.acx-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .5rem;
}
.acx-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: .25em;
  padding: .22em .65em;
  background: var(--acx-bg);
  border: 1px solid var(--acx-border);
  border-radius: 50px;
  font-size: .75rem;
  color: var(--acx-text-muted);
}
.acx-spec-pill--engine { max-width: 100%; }
.acx-card-excerpt { font-size: .85rem; color: var(--acx-text-muted); margin-top: .5rem; }

/* Card footer */
.acx-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-top: 1px solid var(--acx-border);
  gap: .5rem;
  flex-wrap: wrap;
}
.acx-card-price {}
.acx-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--acx-accent);
}
.acx-price--call { font-size: .95rem; color: var(--acx-text-muted); font-weight: 600; }
.acx-price-original {
  display: block;
  font-size: .8rem;
  color: var(--acx-text-muted);
  text-decoration: line-through;
  font-weight: 400;
}
.acx-card-actions { display: flex; gap: .4rem; }

/* LIST VIEW card overrides */
.acx-view-list .acx-vehicle-card {
  flex-direction: row;
  max-height: 200px;
}
.acx-view-list .acx-card-image-wrap {
  width: 260px;
  min-width: 260px;
  aspect-ratio: unset;
  height: 200px;
}
.acx-view-list .acx-card-body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.acx-view-list .acx-card-footer { border-top: none; border-left: 1px solid var(--acx-border); flex-direction: column; align-items: flex-end; width: 160px; min-width: 140px; }
.acx-view-list .acx-card-footer .acx-card-actions { flex-direction: column; width: 100%; }
.acx-view-list .acx-card-footer .acx-btn { width: 100%; }

/* ─── No results ─────────────────────────────────────────────────────────── */
.acx-no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--acx-text-muted);
}
.acx-no-results-icon { font-size: 4rem; margin-bottom: 1rem; }
.acx-no-results h3 { font-size: 1.3rem; color: var(--acx-text); margin: 0 0 .5rem; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.acx-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2.5rem;
}
.acx-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border: 1.5px solid var(--acx-border);
  background: #fff;
  border-radius: var(--acx-radius-sm);
  font-size: .9rem;
  cursor: pointer;
  color: var(--acx-text);
  font-weight: 600;
  transition: all var(--acx-transition);
}
.acx-page-btn:hover { background: var(--acx-bg); border-color: var(--acx-primary); color: var(--acx-primary); }
.acx-page-btn--active { background: var(--acx-primary); border-color: var(--acx-primary); color: #fff; }

/* ─── Loading overlay ────────────────────────────────────────────────────── */
.acx-loading {
  position: relative;
  pointer-events: none;
}
.acx-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%231a2c3d' stroke-width='4' stroke-linecap='round' stroke-dasharray='80 20' transform='rotate(-90 25 25)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center center no-repeat;
  z-index: 10;
  border-radius: inherit;
}

/* =============================================================================
   SINGLE VEHICLE PAGE
============================================================================= */

.acx-single { padding: 1.5rem 0 3rem; }

/* Breadcrumb */
.acx-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--acx-text-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.acx-breadcrumb a { color: var(--acx-text-muted); text-decoration: none; }
.acx-breadcrumb a:hover { color: var(--acx-secondary); }
.acx-breadcrumb [aria-current] { color: var(--acx-text); font-weight: 600; }

/* Vehicle header */
.acx-vehicle-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.acx-vehicle-title-group { flex: 1; min-width: 0; }
.acx-vehicle-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: .25rem 0 .4rem;
  line-height: 1.2;
  color: var(--acx-text);
}
.acx-sale-type {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: .2em .7em;
  background: var(--acx-bg);
  border: 1px solid var(--acx-border);
  border-radius: 4px;
  color: var(--acx-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.acx-vehicle-price-group { text-align: right; }
.acx-single .acx-price { font-size: 2rem; }
.acx-meta-ids {
  font-size: .78rem;
  color: var(--acx-text-muted);
  margin-top: .3rem;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.acx-separator { opacity: .4; }

/* Badges on single page */
.acx-badge {
  display: inline-block;
  padding: .25em .8em;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-right: .5rem;
}
.acx-badge--feature  { background: var(--acx-accent); color: #fff; }
.acx-badge--sold     { background: #dc2626; color: #fff; }
.acx-badge--reserved { background: var(--acx-warning); color: #fff; }

/* Main layout */
.acx-vehicle-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */
.acx-gallery { margin-bottom: 2rem; }
.acx-gallery-main {
  border-radius: var(--acx-radius);
  overflow: hidden;
  background: #000;
  position: relative;
}
.acx-gallery-main .swiper-slide {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.acx-gallery-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.acx-gallery-main .swiper-button-prev,
.acx-gallery-main .swiper-button-next {
  background: rgba(0,0,0,.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff !important;
  transition: background var(--acx-transition);
}
.acx-gallery-main .swiper-button-prev:hover,
.acx-gallery-main .swiper-button-next:hover { background: rgba(0,0,0,.8); }
.acx-gallery-main .swiper-button-prev::after,
.acx-gallery-main .swiper-button-next::after { font-size: 16px !important; }
.acx-gallery-main .swiper-pagination-bullet { background: #fff; opacity: .6; }
.acx-gallery-main .swiper-pagination-bullet-active { opacity: 1; }
.acx-gallery-count {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: .25em .75em;
  border-radius: 12px;
  font-size: .8rem;
  z-index: 5;
}
.acx-gallery-expand {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(0,0,0,.5);
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity var(--acx-transition);
}
.acx-gallery-main .swiper-slide:hover .acx-gallery-expand { opacity: 1; }
.acx-gallery-lightbox { display: block; position: relative; }

/* Thumbnail strip */
.acx-gallery-thumbs {
  margin-top: .6rem;
  height: 72px;
}
.acx-gallery-thumbs .swiper-slide {
  width: 90px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: .65;
  transition: opacity var(--acx-transition);
  border: 2px solid transparent;
}
.acx-gallery-thumbs .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.acx-gallery-thumbs .swiper-slide-thumb-active,
.acx-gallery-thumbs .swiper-slide:hover {
  opacity: 1;
  border-color: var(--acx-accent);
}
.acx-gallery--single img { width: 100%; border-radius: var(--acx-radius); }
.acx-gallery--placeholder {
  aspect-ratio: 16/10;
  background: var(--acx-bg);
  border-radius: var(--acx-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--acx-border);
}

/* ─── Section titles ─────────────────────────────────────────────────────── */
.acx-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--acx-border);
  color: var(--acx-text);
}

/* ─── Specs grid ─────────────────────────────────────────────────────────── */
.acx-specs-section { margin-bottom: 2rem; }
.acx-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}
.acx-spec-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .8rem;
  background: var(--acx-bg);
  border-radius: var(--acx-radius-sm);
  border: 1px solid var(--acx-border);
  font-size: .88rem;
}
.acx-spec-icon { font-size: 1.1rem; flex-shrink: 0; }
.acx-spec-label {
  color: var(--acx-text-muted);
  font-size: .78rem;
  flex-shrink: 0;
  min-width: 80px;
}
.acx-spec-value { font-weight: 700; color: var(--acx-text); margin-left: auto; text-align: right; }

/* ─── Description ────────────────────────────────────────────────────────── */
.acx-description-section { margin-bottom: 2rem; }
.acx-description-text { font-size: .95rem; line-height: 1.8; color: var(--acx-text); }

/* ─── Equipment ─────────────────────────────────────────────────────────── */
.acx-equipment-section { margin-bottom: 2rem; }
.acx-equipment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .5rem;
}
.acx-equipment-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  background: var(--acx-bg);
  border-radius: var(--acx-radius-sm);
  font-size: .9rem;
  border: 1px solid var(--acx-border);
}
.acx-check { color: var(--acx-success); font-weight: 700; }

/* ─── Carfax ─────────────────────────────────────────────────────────────── */
.acx-carfax-section { margin-bottom: 2rem; }
.acx-carfax-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #f0f4ff;
  border: 1.5px solid #c7d5ff;
  border-radius: var(--acx-radius);
  padding: 1.25rem;
  flex-wrap: wrap;
}
.acx-carfax-text { flex: 1; }
.acx-carfax-text h3 { margin: 0 0 .3rem; font-size: 1rem; }
.acx-carfax-text p { margin: 0; font-size: .88rem; color: var(--acx-text-muted); }

/* ─── Why Buy ────────────────────────────────────────────────────────────── */
.acx-why-us-section { margin-bottom: 2rem; }
.acx-why-us-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.acx-why-card {
  background: var(--acx-bg);
  border: 1.5px solid var(--acx-border);
  border-radius: var(--acx-radius);
  padding: 1.5rem;
  text-align: center;
}
.acx-why-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.acx-why-card h3 { font-size: 1rem; margin: 0 0 .5rem; }
.acx-why-card p { font-size: .88rem; color: var(--acx-text-muted); margin: 0 0 1rem; }

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.acx-vehicle-sidebar { position: sticky; top: 1rem; }

.acx-dealer-status {
  padding: .6rem 1rem;
  border-radius: var(--acx-radius-sm);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}
.acx-dealer-status.is-open  { background: #dcfce7; color: #166534; }
.acx-dealer-status.is-closed { background: #fee2e2; color: #991b1b; }

.acx-sidebar-cta { margin-bottom: 1rem; }
.acx-sidebar-cta--primary .acx-btn--primary { padding: .9em 1.5em; font-size: 1rem; }

.acx-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.acx-sidebar-contact {
  background: var(--acx-bg);
  border: 1.5px solid var(--acx-border);
  border-radius: var(--acx-radius);
  padding: 1.25rem;
}
.acx-sidebar-contact-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--acx-border);
}
.acx-sidebar-address {
  font-style: normal;
  font-size: .88rem;
  color: var(--acx-text-muted);
  margin-bottom: .5rem;
  line-height: 1.5;
}
.acx-sidebar-phone,
.acx-sidebar-directions {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--acx-secondary);
  text-decoration: none;
  margin-bottom: .4rem;
  font-weight: 500;
}
.acx-sidebar-phone:hover,
.acx-sidebar-directions:hover { text-decoration: underline; }

.acx-sidebar-hours { margin-top: .75rem; }
.acx-sidebar-hours h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--acx-text-muted); margin: 0 0 .5rem; }
.acx-sidebar-hours ul { list-style: none; margin: 0; padding: 0; }
.acx-sidebar-hours li {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .2rem 0;
  border-bottom: 1px solid var(--acx-border);
}
.acx-sidebar-hours li:last-child { border-bottom: none; }
.acx-sidebar-hours .acx-today { font-weight: 700; color: var(--acx-text); }
.acx-sidebar-hours .acx-day { color: var(--acx-text-muted); }
.acx-sidebar-hours .acx-closed { color: #dc2626; font-size: .75rem; }

.acx-sidebar-social {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1rem;
}
.acx-social-link {
  display: inline-block;
  padding: .3em .8em;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.acx-social-link--facebook  { background: #1877f2; }
.acx-social-link--instagram { background: linear-gradient(45deg,#f58529,#dd2a7b,#8134af); }
.acx-social-link--twitter   { background: #000; }
.acx-social-link--youtube   { background: #ff0000; }

/* =============================================================================
   MODALS
============================================================================= */
.acx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  animation: acxFadeIn .2s ease;
}
.acx-modal-overlay[hidden] { display: none !important; }

@keyframes acxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.acx-modal {
  background: #fff;
  border-radius: var(--acx-radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: acxSlideUp .25s ease;
  position: relative;
}
@keyframes acxSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.acx-modal-header {
  padding: 1.25rem 1.5rem .75rem;
  border-bottom: 1px solid var(--acx-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.acx-modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 2rem 0 0;
  color: var(--acx-primary);
}
.acx-modal-vehicle-name {
  font-size: .82rem;
  color: var(--acx-text-muted);
  margin-top: .2rem;
}
.acx-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acx-text-muted);
  padding: .25rem;
  border-radius: 50%;
  display: flex;
  transition: background var(--acx-transition), color var(--acx-transition);
}
.acx-modal-close:hover { background: var(--acx-bg); color: var(--acx-text); }

.acx-modal-body { padding: 1.25rem 1.5rem 1.5rem; }

/* ─── Modal / Form styles ────────────────────────────────────────────────── */
.acx-form {}
.acx-form-row { margin-bottom: 1rem; }
.acx-form-row--half { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.acx-form-col {}
.acx-form-intro {
  font-size: .88rem;
  font-weight: 600;
  color: var(--acx-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 .75rem;
}
.acx-form-divider { border: none; border-top: 1px solid var(--acx-border); margin: 1.25rem 0; }

.acx-radio-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: .25rem;
}
.acx-radio-label {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  cursor: pointer;
}

.acx-form-row--consent { margin-top: .5rem; }
.acx-consent-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8rem;
  color: var(--acx-text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.acx-consent-label input { flex-shrink: 0; margin-top: .15rem; accent-color: var(--acx-accent); }

.acx-form-actions { margin-top: 1.25rem; }

.acx-form-message {
  margin-top: .75rem;
  padding: .75rem 1rem;
  border-radius: var(--acx-radius-sm);
  font-size: .88rem;
  display: none;
}
.acx-form-message.is-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  display: block;
}
.acx-form-message.is-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* VIN display in modal */
.acx-vin-display {
  background: var(--acx-bg);
  border: 1.5px solid var(--acx-border);
  border-radius: var(--acx-radius-sm);
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: .75rem;
  align-items: center;
  font-size: .9rem;
}
.acx-vin-label { color: var(--acx-text-muted); }
.acx-vin-value { font-family: monospace; font-size: 1rem; letter-spacing: .05em; }

/* =============================================================================
   CONTACT BLOCK (shortcode)
============================================================================= */
.acx-contact-info {}
.acx-contact-name { font-size: 1.3rem; margin: 0 0 .75rem; }
.acx-contact-address { font-style: normal; margin-bottom: .5rem; }
.acx-contact-phone,
.acx-contact-email { display: block; margin-bottom: .3rem; }
.acx-hours ul { list-style: none; margin: 0; padding: 0; }
.acx-hours-day { min-width: 100px; display: inline-block; }
.acx-hours-closed { color: #dc2626; }

/* =============================================================================
   LIGHTBOX
============================================================================= */
.acx-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.acx-lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.acx-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================================================
   RESPONSIVE
============================================================================= */
@media (max-width: 1100px) {
  .acx-vehicle-main { grid-template-columns: 1fr 300px; }
  .acx-vehicles-grid.acx-view-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .acx-search-panel { position: relative; }
  .acx-search-simple { gap: .5rem; }
  .acx-field-group { flex: 1 1 140px; }
  .acx-vehicle-main { grid-template-columns: 1fr; }
  .acx-vehicle-sidebar { position: relative; top: auto; }
  .acx-sidebar-actions { flex-direction: row; flex-wrap: wrap; }
  .acx-sidebar-actions .acx-btn { flex: 1 1 auto; }
  .acx-specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .acx-vehicles-grid.acx-view-grid { grid-template-columns: 1fr; }
  .acx-view-list .acx-vehicle-card { flex-direction: column; max-height: none; }
  .acx-view-list .acx-card-image-wrap { width: 100%; height: 200px; }
  .acx-view-list .acx-card-footer { border-left: none; border-top: 1px solid var(--acx-border); width: 100%; flex-direction: row; }
  .acx-vehicle-header { flex-direction: column; }
  .acx-vehicle-price-group { text-align: left; }
  .acx-meta-ids { justify-content: flex-start; }
  .acx-search-simple { flex-direction: column; }
  .acx-field-group { flex: none; width: 100%; }
  .acx-search-btns { width: 100%; }
  .acx-form-row--half { grid-template-columns: 1fr; }
  .acx-modal { max-height: 100%; }
  .acx-specs-grid { grid-template-columns: 1fr; }
  .acx-vehicle-title { font-size: 1.35rem; }
  .acx-results-header { flex-direction: column; align-items: flex-start; }
}

/* ─── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .acx-search-panel,
  .acx-vehicle-sidebar,
  .acx-sidebar-actions,
  .acx-modal-overlay,
  .acx-results-controls,
  .acx-pagination { display: none !important; }
  .acx-vehicle-main { grid-template-columns: 1fr; }
  .acx-gallery-thumbs { display: none; }
}
