/* ===================================================================
   Canadian Used Car Dealer - Custom Site CSS
   Built on top of Tailwind CSS (CDN) — extends with dealer-specific
   design tokens, components, and micro-interactions.
   =================================================================== */

/* -------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   ------------------------------------------------------------------- */
:root {
  --color-primary: #DC2626;
  --color-primary-dark: #B91C1C;
  --color-secondary: #1A1A1A;
  --color-accent: #F59E0B;
  --color-bg: #F5F5F7;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-success: #10B981;
  --color-danger: #EF4444;

  color-scheme: light;
}

/* -------------------------------------------------------------------
   2. GLOBAL BASE
   ------------------------------------------------------------------- */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------
   3. KEYFRAME ANIMATIONS
   ------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------
   4. CAR CARD — inventory / search results
   ------------------------------------------------------------------- */
.car-card {
  background-color: var(--color-card);
  border-radius: 0.75rem;          /* rounded-xl */
  box-shadow: 0 1px 2px rgba(0,0,0,.05);  /* shadow-sm */
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: slideUp 0.4s ease both;
  position: relative;
}

.car-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.05);  /* shadow-lg */
}

/* Staggered entrance for grid children */
.car-card:nth-child(1) { animation-delay: 0.05s; }
.car-card:nth-child(2) { animation-delay: 0.10s; }
.car-card:nth-child(3) { animation-delay: 0.15s; }
.car-card:nth-child(4) { animation-delay: 0.20s; }
.car-card:nth-child(5) { animation-delay: 0.25s; }
.car-card:nth-child(6) { animation-delay: 0.30s; }
.car-card:nth-child(7) { animation-delay: 0.35s; }
.car-card:nth-child(8) { animation-delay: 0.40s; }
.car-card:nth-child(9) { animation-delay: 0.45s; }
.car-card:nth-child(10){ animation-delay: 0.50s; }
.car-card:nth-child(11){ animation-delay: 0.55s; }
.car-card:nth-child(12){ animation-delay: 0.60s; }

/* -- Image container -- */
.car-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #E5E7EB;      /* bg-gray-200 placeholder fallback */
  position: relative;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

/* -- Status badges -- */
.car-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.275rem 0.625rem;
  border-radius: 0.25rem;
  line-height: 1;
}

.car-card-badge.certified,
.car-card-badge.certified-pre-owned {
  background-color: var(--color-success);
  color: #FFFFFF;
}

.car-card-badge.sold {
  background-color: var(--color-danger);
  color: #FFFFFF;
}

.car-card-badge.new,
.car-card-badge.new-arrival {
  background-color: #3B82F6;
  color: #FFFFFF;
}

/* -- Body (padding area below image) -- */
.car-card-body {
  padding: 0.875rem 1rem 1rem;
}

/* -- Title -- */
.car-card-title {
  font-size: 0.875rem;                  /* text-sm */
  font-weight: 600;                     /* font-semibold */
  line-height: 1.375;                   /* leading-snug */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-text);
  min-height: 2.4rem;
}

/* -- Price -- */
.car-card-price {
  font-size: 1.25rem;                   /* text-xl */
  font-weight: 700;                     /* font-bold */
  color: var(--color-primary);
  margin-top: 0.5rem;
  line-height: 1.2;
}

/* -- Savings / discount badge -- */
.car-card-savings {
  display: inline-flex;
  align-items: center;
  background-color: #FEF3C7;           /* bg-amber-100 */
  color: #92400E;                       /* text-amber-800 */
  font-size: 0.875rem;                  /* text-sm */
  font-weight: 700;
  border-radius: 9999px;                /* rounded-full */
  padding: 0.125rem 0.5rem;             /* px-2 */
  margin-left: 0.5rem;
  line-height: 1.4;
  white-space: nowrap;
}

/* -- Spec chips row -- */
.car-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.625rem;
}

.car-card-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;                          /* gap-1 */
  font-size: 0.75rem;                    /* text-xs */
  background-color: #F3F4F6;             /* bg-gray-100 */
  color: var(--color-text-muted);
  border-radius: 9999px;                 /* rounded-full */
  padding: 0.25rem 0.5rem;               /* px-2 py-1 */
  line-height: 1.2;
  white-space: nowrap;
}

.car-card-spec svg,
.car-card-spec .spec-icon {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
}

/* -- Mileage / location footer -- */
.car-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid #F3F4F6;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------
   5. INVENTORY GRID & FILTER LAYOUT
   ------------------------------------------------------------------- */
.inventory-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .inventory-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;                           /* gap-6 */
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .inventory-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -- Filter sidebar -- */
.filter-sidebar {
  width: 100%;
  background-color: var(--color-card);
  border-radius: 0.75rem;               /* rounded-xl */
  padding: 1rem;                         /* p-4 */
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .filter-sidebar {
    width: 18rem;                        /* lg:w-72 = 288px */
    position: sticky;
    top: 1rem;
  }
}

.filter-sidebar-section {
  margin-bottom: 1.25rem;
}

.filter-sidebar-section:last-child {
  margin-bottom: 0;
}

.filter-sidebar-label {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.filter-sidebar select,
.filter-sidebar input[type="text"],
.filter-sidebar input[type="number"] {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text);
  background: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-sidebar select:focus,
.filter-sidebar input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
  outline: none;
}

.filter-sidebar .price-range-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-sidebar .price-range-group input {
  flex: 1;
  min-width: 0;
}

.filter-sidebar .price-range-group span {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* -- Filter toggle (mobile) -- */
.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-card);
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.filter-toggle:hover {
  background-color: #F9FAFB;
  border-color: #9CA3AF;
}

.filter-toggle .filter-toggle-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .filter-toggle {
    display: none;
  }
}

.filter-sidebar.collapsed {
  display: none;
}

.filter-sidebar.collapsed.open {
  display: block;
}

/* -------------------------------------------------------------------
   6. ACTIVE FILTER BADGES
   ------------------------------------------------------------------- */
.filter-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: rgba(220, 38, 38, 0.10);  /* bg-primary/10 */
  color: var(--color-primary);
  border-radius: 9999px;                         /* rounded-full */
  padding: 0.25rem 0.75rem;                      /* px-3 py-1 */
  font-size: 0.875rem;                           /* text-sm */
  font-weight: 600;
  line-height: 1.4;
  cursor: default;
  transition: background-color 0.15s ease;
}

.filter-badge:hover {
  background-color: rgba(220, 38, 38, 0.18);
}

.filter-badge .filter-badge-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  line-height: 1;
  padding: 0;
  transition: background-color 0.15s ease;
}

.filter-badge .filter-badge-remove:hover {
  background-color: rgba(220, 38, 38, 0.25);
}

/* -------------------------------------------------------------------
   7. LISTING DETAIL PAGE
   ------------------------------------------------------------------- */

/* -- Gallery hero -- */
.gallery-hero {
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;                /* rounded-xl */
  overflow: hidden;
  background-color: #111827;             /* bg-gray-900 */
  position: relative;
}

.gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- Thumbnail strip -- */
.gallery-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;                           /* gap-2 */
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  scroll-behavior: smooth;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 2px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 5rem;
  aspect-ratio: 4 / 3;
  border-radius: 0.375rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease, opacity 0.15s ease;
  opacity: 0.65;
}

.gallery-thumb:hover {
  opacity: 0.9;
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -- Listing detail header area -- */
.listing-detail-header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .listing-detail-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.listing-detail-title-section h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.15;
}

@media (min-width: 768px) {
  .listing-detail-title-section h1 {
    font-size: 1.875rem;
  }
}

.listing-detail-subtitle {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.listing-detail-price-section {
  text-align: right;
  flex-shrink: 0;
}

.listing-detail-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
}

.listing-detail-price-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* -- Specs row (pills in listing header) -- */
.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;                          /* gap-3 */
  margin-top: 1rem;
}

.specs-row .spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  background-color: #F3F4F6;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
}

/* -- Spec table -- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.specs-table thead th {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border-bottom: 2px solid #E5E7EB;
}

.specs-table tbody tr {
  border-bottom: 1px solid #F3F4F6;
}

.specs-table tbody tr:nth-child(even) {
  background-color: #F9FAFB;
}

.specs-table tbody td {
  font-size: 0.875rem;
  color: var(--color-text);
}

.specs-table tbody td:first-child {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* -- Enquiry / contact card -- */
.enquiry-card {
  background-color: #F9FAFB;             /* bg-gray-50 */
  border-radius: 0.75rem;                /* rounded-xl */
  padding: 1.5rem;                       /* p-6 */
  border: 1px solid #F3F4F6;
}

@media (min-width: 1024px) {
  .enquiry-card {
    position: sticky;
    top: 1.5rem;
  }
}

.enquiry-card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.enquiry-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.enquiry-card .form-group {
  margin-bottom: 0.75rem;
}

.enquiry-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.enquiry-card input,
.enquiry-card textarea,
.enquiry-card select {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.enquiry-card input:focus,
.enquiry-card textarea:focus,
.enquiry-card select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  outline: none;
}

.enquiry-card textarea {
  min-height: 6rem;
  resize: vertical;
}

.enquiry-card .btn-submit {
  width: 100%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.enquiry-card .btn-submit:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.enquiry-card .btn-submit:active {
  transform: translateY(0);
}

/* -------------------------------------------------------------------
   8. HOMEPAGE COMPONENTS
   ------------------------------------------------------------------- */

/* -- Hero section -- */
.home-hero {
  position: relative;
  min-height: clamp(22rem, 50vw, 36rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.65) 50%,
    rgba(26, 26, 26, 0.35) 100%
  );
  z-index: 1;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

.home-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.08;
  max-width: 40rem;
}

.home-hero-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
  max-width: 32rem;
  line-height: 1.6;
}

.home-hero-content .hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-hero-content .hero-cta:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.home-hero-content .hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  margin-left: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-hero-content .hero-cta-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

/* -- Trust strip -- */
.trust-strip {
  background-color: var(--color-secondary);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .trust-strip-inner {
    justify-content: space-between;
  }
}

.trust-strip-inner span {
  border-left: 3px solid var(--color-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

/* -- Trust strip icon cards -- */
.trust-strip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  background-color: #F8FAFC;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid #E2E8F0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.trust-strip-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12);
}

.trust-strip-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.trust-strip-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.trust-strip-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  max-width: 10rem;
}

/* -- Body style grid -- */
.body-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.body-style-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background-color: var(--color-card);
  border-radius: 0.75rem;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.body-style-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transform: translateY(-2px);
  border-color: #E5E7EB;
}

.body-style-card .body-style-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.body-style-card .body-style-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
}

/* -- Make / brand grid -- */
.make-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.make-logo {
  width: 80px;
  height: 80px;
  border-radius: 9999px;                 /* rounded-full */
  background-color: #F3F4F6;             /* bg-gray-100 */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text-muted);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.make-logo:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  transform: scale(1.05);
}

.make-card {
  text-align: center;
  cursor: pointer;
}

.make-card .make-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0.5rem;
}

.make-card .make-count {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* -------------------------------------------------------------------
   9. INVENTORY TOOLBAR (sort, count, view toggle)
   ------------------------------------------------------------------- */
.inventory-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.inventory-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.inventory-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inventory-sort label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.inventory-sort select {
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  padding: 0.4rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--color-text);
  background: #FFFFFF;
}

.inventory-sort select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  outline: none;
}

/* -------------------------------------------------------------------
   10. PAGINATION
   ------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #F3F4F6;
}

.pagination .page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid #E5E7EB;
  border-radius: 0.375rem;
  background: var(--color-card);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.pagination .page-btn:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
}

.pagination .page-btn.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.pagination .page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination .page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------
   11. SECTION HEADERS (Homepage / Inventory sections)
   ------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.section-header .section-kicker {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.15;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* -------------------------------------------------------------------
   12. FEATURED LISTINGS STRIP (horizontal scroll on mobile)
   ------------------------------------------------------------------- */
.featured-strip {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
}

.featured-strip::-webkit-scrollbar {
  height: 6px;
}

.featured-strip::-webkit-scrollbar-track {
  background: #F3F4F6;
  border-radius: 3px;
}

.featured-strip::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.featured-strip .car-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .featured-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
  }

  .featured-strip .car-card {
    flex: none;
  }
}

/* -------------------------------------------------------------------
   13. QUICK SEARCH BAR (homepage hero inline)
   ------------------------------------------------------------------- */
.quick-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.5rem;
  max-width: 44rem;
}

.quick-search select,
.quick-search input {
  flex: 1;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.675rem 0.875rem;
  font-size: 0.9375rem;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.quick-search select option {
  color: var(--color-text);
  background: #FFFFFF;
}

.quick-search select:focus,
.quick-search input:focus {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  outline: none;
}

.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.quick-search .btn-search {
  background-color: var(--color-accent);
  color: var(--color-secondary);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.675rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.quick-search .btn-search:hover {
  background-color: #FBBF24;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------
   14. EMPTY STATE / NO RESULTS
   ------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-top: 0.375rem;
  line-height: 1.5;
}

.empty-state .empty-reset {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.empty-state .empty-reset:hover {
  color: var(--color-primary-dark);
}

/* -------------------------------------------------------------------
   15. LISTING DETAIL — TWO-COLUMN LAYOUT
   ------------------------------------------------------------------- */
.listing-detail {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .listing-detail {
    padding: 2rem 1.5rem;
  }
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .listing-detail-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.listing-detail-main {
  min-width: 0;
}

.listing-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* -- Listing detail panel cards -- */
.listing-panel {
  background-color: var(--color-card);
  border: 1px solid #F3F4F6;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.listing-panel h3 {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

/* -- Breadcrumb -- */
.listing-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.listing-breadcrumb a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.listing-breadcrumb a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   16. BADGES / STATUS PILLS (global)
   ------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  line-height: 1;
}

.badge-certified {
  background-color: var(--color-success);
  color: #FFFFFF;
}

.badge-sold {
  background-color: var(--color-danger);
  color: #FFFFFF;
}

.badge-new {
  background-color: #3B82F6;
  color: #FFFFFF;
}

.badge-sale {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.badge-used {
  background-color: #6B7280;
  color: #FFFFFF;
}

/* -------------------------------------------------------------------
   17. CTA / BUTTON EXTENSIONS
   ------------------------------------------------------------------- */
.btn-primary-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-red:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: transparent;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: 1.5px solid var(--color-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline-red:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* -------------------------------------------------------------------
   18. WHATSAPP / CONTACT BUTTON
   ------------------------------------------------------------------- */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #25D366;
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.whatsapp-btn:hover {
  background-color: #20BD5A;
  transform: translateY(-1px);
}

/* -------------------------------------------------------------------
   19. BACK-TO-TOP
   ------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  cursor: pointer;
  border: none;
  z-index: 40;
  opacity: 0;
  transform: translateY(0.75rem);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

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

.back-to-top:hover {
  background-color: var(--color-primary-dark);
}

/* -------------------------------------------------------------------
   20. VEHICLE DETAIL — FULL SPEC LIST
   ------------------------------------------------------------------- */
.vehicle-spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vehicle-spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.625rem 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 0.875rem;
}

.vehicle-spec-list li:last-child {
  border-bottom: none;
}

.vehicle-spec-list .spec-label {
  color: var(--color-text-muted);
  font-weight: 600;
}

.vehicle-spec-list .spec-value {
  color: var(--color-text);
  font-weight: 700;
  text-align: right;
}

/* -------------------------------------------------------------------
   21. RESPONSIVE UTILITY HELPERS
   ------------------------------------------------------------------- */

/* Hide on mobile, show on desktop */
.hide-mobile {
  display: none;
}

@media (min-width: 1024px) {
  .hide-mobile {
    display: initial;
  }
}

/* Show only on mobile */
.show-mobile {
  display: initial;
}

@media (min-width: 1024px) {
  .show-mobile {
    display: none;
  }
}

/* -------------------------------------------------------------------
   22. LOADING SKELETON PLACEHOLDERS
   ------------------------------------------------------------------- */
.skeleton {
  background: linear-gradient(90deg, #E5E7EB 25%, #F3F4F6 50%, #E5E7EB 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: 0.375rem;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.skeleton-card .skeleton-img {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.skeleton-card .skeleton-line {
  height: 0.75rem;
  margin: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.skeleton-card .skeleton-line:first-of-type {
  width: 70%;
}

.skeleton-card .skeleton-line.short {
  width: 45%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------------
   23. NOTIFICATION TOAST
   ------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-secondary);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-0.25rem);
  pointer-events: auto;
}

.toast.success {
  background-color: var(--color-success);
}

.toast.error {
  background-color: var(--color-danger);
}

/* -------------------------------------------------------------------
   24. FAVOURITE / SAVE BUTTON (heart icon)
   ------------------------------------------------------------------- */
.fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #E5E7EB;
  cursor: pointer;
  font-size: 1.1rem;
  color: #D1D5DB;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.fav-btn:hover {
  color: var(--color-danger);
  background: #FFFFFF;
  transform: scale(1.1);
}

.fav-btn.saved {
  color: var(--color-danger);
  background: #FEE2E2;
  border-color: #FECACA;
}

.fav-btn-overlay {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 3;
}

/* -------------------------------------------------------------------
   25. PRICE DROP / REDUCTION INDICATOR
   ------------------------------------------------------------------- */
.price-drop-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: #ECFDF5;
  color: #065F46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
}

/* -------------------------------------------------------------------
   26. VEHICLE CONDITION / HISTORY SUMMARY
   ------------------------------------------------------------------- */
.condition-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}

.condition-item {
  background-color: #F9FAFB;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
}

.condition-item .condition-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-text);
}

.condition-item .condition-label {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-top: 0.125rem;
}

/* -------------------------------------------------------------------
   27. PRINT STYLES (window sticker / details)
   ------------------------------------------------------------------- */
@media print {
  body {
    background: #FFFFFF;
    color: #000000;
    font-size: 11pt;
  }

  .no-print,
  .back-to-top,
  .mobile-contact-bar,
  .chatbot-widget,
  .filter-sidebar,
  .filter-toggle,
  .enquiry-card,
  .promo-top-banner,
  .promo-listing-banner {
    display: none !important;
  }

  .car-card {
    box-shadow: none;
    border: 1px solid #CCC;
    page-break-inside: avoid;
  }

  .gallery-hero {
    background: none;
    border: 1px solid #CCC;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}

/* -------------------------------------------------------------------
   28. ACCESSIBILITY: FOCUS VISIBLE & REDUCED MOTION
   ------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .car-card:hover {
    transform: none;
  }
}

/* -------------------------------------------------------------------
   29. SCROLLBAR STYLING (Webkit)
   ------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* -------------------------------------------------------------------
   30. SELECTION COLORS
   ------------------------------------------------------------------- */
::selection {
  background-color: rgba(220, 38, 38, 0.18);
  color: var(--color-text);
}

/* ===================================================================
   31. ADMIN PANEL — LAYOUT COMPONENTS
   =================================================================== */

/* -- Page header (title + action button row) -- */
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-page-head h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

/* -- Eyebrow / kicker label above page titles -- */
.eyebrow-dark {
  font-size: 0.6875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

/* -- Content panel card -- */
.admin-panel {
  background-color: var(--color-card);
  border: 1px solid #E4E4E7;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-panel h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
}

.admin-panel h2 + p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* -- Section head within a panel (title + status badge row) -- */
.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-section-head h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
}

.admin-section-head p {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
}

/* ===================================================================
   32. ADMIN FORM CONTROLS
   =================================================================== */

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.375rem;
}

.form-input {
  display: block;
  width: 100%;
  border: 1px solid #D4D4D8;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
  outline: none;
}

.form-input::placeholder {
  color: #A1A1AA;
}

textarea.form-input {
  resize: vertical;
  min-height: 5rem;
}

select.form-input {
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

/* ===================================================================
   33. ADMIN BUTTONS
   =================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: transparent;
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid #D4D4D8;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background-color: #F4F4F5;
  border-color: #A1A1AA;
  color: var(--color-text);
}

.btn-outline:active {
  background-color: #E4E4E7;
}

/* ===================================================================
   34. ADMIN TABLE STYLES
   =================================================================== */

.table-heading {
  padding: 0.625rem 0.875rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-align: left;
  white-space: nowrap;
}

.table-cell {
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text);
  vertical-align: middle;
}

/* ===================================================================
   35. ADMIN SIDEBAR NAVIGATION
   =================================================================== */

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1.3;
}

.admin-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.admin-nav-link.active {
  background-color: rgba(245, 158, 11, 0.18);
  color: #FBBF24;
  font-weight: 700;
}

/* Mobile: compact horizontal chips */
@media (max-width: 1023px) {
  .admin-nav-link {
    flex-shrink: 0;
    padding: 0.45rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
  }
}

/* ===================================================================
   36. ADMIN STAT CARDS (dashboard)
   =================================================================== */

.admin-stat-card {
  background-color: var(--color-card);
  border: 1px solid #E4E4E7;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.15s ease;
}

.admin-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-stat-card .stat-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.admin-stat-card .stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.1;
  margin-top: 0.375rem;
}

/* ===================================================================
   37. ADMIN SETTINGS — SECTION GROUP CARDS
   =================================================================== */

.admin-settings-section {
  background-color: var(--color-card);
  border: 1px solid #E4E4E7;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.admin-settings-section h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.3;
}

.admin-settings-section h2 + p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* ===================================================================
   38. ADMIN CHECKBOX TOGGLE PILL
   =================================================================== */

.admin-check-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.admin-check-pill:hover {
  background-color: #F4F4F5;
  border-color: #D4D4D8;
}

.admin-check-pill input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* ===================================================================
   39. ADMIN INFO / STATUS BADGE
   =================================================================== */

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status-badge.ok {
  background-color: #ECFDF5;
  color: #065F46;
}

.admin-status-badge.warn {
  background-color: #FEF3C7;
  color: #92400E;
}

.admin-status-badge.info {
  background-color: #EFF6FF;
  color: #1E40AF;
}

/* ===================================================================
   40. ADMIN SECTION DIVIDER
   =================================================================== */

.admin-divider {
  border: none;
  border-top: 1px solid #E4E4E7;
  margin: 1.25rem 0;
}

/* ===================================================================
   43. ADMIN GALLERY IMAGE MANAGER
   =================================================================== */

/* -- Gallery toolbar (flex wrap of upload + action forms) -- */
.admin-gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.admin-toolbar-form {
  background-color: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-toolbar-form p {
  font-size: 0.6875rem;
  color: #71717A;
  flex-basis: 100%;
  margin: 0.125rem 0 0;
  line-height: 1.35;
}

/* -- Upload drop zone -- */
.admin-upload-box {
  background-color: #FAFAFA;
  border: 1px solid #E4E4E7;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-drop-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #D4D4D8;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-width: 200px;
  flex: 1;
}

.admin-drop-upload:hover {
  border-color: var(--color-accent);
  background-color: #FEFCE8;
}

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

.admin-drop-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
}

.admin-drop-copy {
  font-size: 0.6875rem;
  color: #71717A;
  margin-top: 0.125rem;
}

.admin-drop-summary {
  font-size: 0.6875rem;
  color: #A1A1AA;
  margin-top: 0.25rem;
}

/* -- Image list grid -- */
.admin-image-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .admin-image-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .admin-image-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .admin-image-list { grid-template-columns: repeat(5, 1fr); }
}

/* -- Individual image card -- */
.admin-image-row {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
  border-radius: 0.75rem;
  padding: 0.5rem;
  gap: 0.375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.admin-image-row:hover {
  border-color: #D4D4D8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.admin-image-row[draggable="true"] {
  cursor: grab;
}

.admin-image-row[draggable="true"]:active {
  cursor: grabbing;
}

/* -- Topbar: select checkbox + drag handle -- */
.admin-row-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-row-select {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  user-select: none;
}

.admin-row-select input[type="checkbox"] {
  width: 0.875rem;
  height: 0.875rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.admin-row-drag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #A1A1AA;
  cursor: grab;
  user-select: none;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.admin-row-drag:hover {
  color: var(--color-text-muted);
  background-color: #F4F4F5;
}

/* -- Thumbnail -- */
.admin-row-thumb {
  display: block;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #F4F4F5;
  border: 1px solid #E4E4E7;
  cursor: pointer;
  transition: border-color 0.15s ease;
  padding: 0;
}

.admin-row-thumb:hover {
  border-color: #A1A1AA;
}

.admin-row-thumb img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  background-color: #F4F4F5;
}

.admin-row-thumb span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  font-size: 0.75rem;
  color: #A1A1AA;
  font-weight: 600;
}

/* -- Image info column -- */
.admin-image-row-main {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

/* -- Title line: order number + status pills -- */
.admin-row-titleline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.admin-order-control {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.admin-order-control input[type="number"] {
  width: 56px;
  padding: 0.2rem 0.375rem;
  border: 1px solid #D4D4D8;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
}

.admin-order-control input[type="number"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
  outline: none;
}

/* -- Status pills -- */
.admin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.admin-status-pill.is-good {
  background-color: #ECFDF5;
  color: #065F46;
}

.admin-status-pill.is-muted {
  background-color: #F4F4F5;
  color: #71717A;
}

.admin-status-pill.is-info {
  background-color: #EFF6FF;
  color: #1E40AF;
}

.admin-status-pill.is-warning {
  background-color: #FEF3C7;
  color: #92400E;
}

/* -- Meta text -- */
.admin-meta-line {
  font-size: 0.6875rem;
  color: #71717A;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-selection-note {
  font-size: 0.75rem;
  color: #71717A;
  font-weight: 600;
}

/* -- Action button rows -- */
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.admin-reorder-actions {
  border-bottom: 1px solid #F4F4F5;
  padding-bottom: 0.375rem;
}

/* -- Mini buttons -- */
.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.5rem;
  border: 1px solid #D4D4D8;
  border-radius: 0.375rem;
  background-color: #FFFFFF;
  color: #52525B;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-mini:hover {
  background-color: #F4F4F5;
  border-color: #A1A1AA;
  color: #18181B;
}

.btn-mini:active {
  background-color: #E4E4E7;
}

.admin-row-details {
  margin-top: 0.25rem;
}

.admin-row-details summary {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.125rem 0;
}

.admin-row-details summary:hover {
  color: var(--color-text);
}

/* -- Angle choice chips -- */
.angle-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.angle-choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid #E4E4E7;
  border-radius: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #52525B;
  cursor: pointer;
  background-color: #FFFFFF;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.angle-choice-chip:hover {
  border-color: #A1A1AA;
  background-color: #FAFAFA;
}

.angle-choice-chip input[type="checkbox"] {
  width: 0.75rem;
  height: 0.75rem;
  accent-color: var(--color-primary);
}

/* -- Admin image zoom modal (wired in site.js; CSS was missing) -- */
.admin-zoom-modal {
  display: none;
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}
.admin-zoom-modal.open {
  display: flex;
}
.admin-zoom-modal img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.admin-zoom-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.admin-zoom-close:hover { background: rgba(255, 255, 255, 0.25); }

/* -- Public listing detail zoom lightbox (Alpine) -- */
[x-cloak] { display: none !important; }
.gallery-zoom-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
}
.gallery-zoom-image {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.gallery-zoom-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-zoom-close:hover { background: rgba(255, 255, 255, 0.25); }
.gallery-zoom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  width: 3rem;
  height: 3rem;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-zoom-arrow:hover { background: rgba(255, 255, 255, 0.22); }
.gallery-zoom-arrow.left { left: 1rem; }
.gallery-zoom-arrow.right { right: 1rem; }
.gallery-zoom-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

/* -- Carousels (shared [data-carousel] + arrows) -- */
.hero-featured-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.hero-featured-carousel::-webkit-scrollbar { height: 6px; }
.hero-featured-carousel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 9999px; }
.hero-featured-card { flex: 0 0 16rem; scroll-snap-align: start; }
.hero-carousel-arrow {
  background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px; width: 2rem; height: 2rem; line-height: 1; font-size: 1.125rem; cursor: pointer;
}
.hero-carousel-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-carousel-arrow[hidden] { display: none; }

.similar-vehicles-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.similar-vehicle-card { flex: 0 0 18rem; scroll-snap-align: start; }
.similar-carousel-arrow {
  background: #F4F4F5; color: #27272A; border: 1px solid #E4E4E7;
  border-radius: 9999px; width: 2rem; height: 2rem; line-height: 1; font-size: 1.125rem; cursor: pointer;
}
.similar-carousel-arrow:hover { background: #E4E4E7; }
.similar-carousel-arrow[hidden] { display: none; }

/* ===================================================================
   41. PUBLIC SITE HEADER
   =================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid #E4E4E7;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background-color: rgba(255, 255, 255, 0.85);
  }
}

/* Desktop nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background-color: #F3F4F6;
}

/* ===================================================================
   42. PUBLIC SITE FOOTER
   =================================================================== */

.site-footer {
  margin-top: 5rem;
  border-top: 1px solid #E4E4E7;
  background-color: #FFFFFF;
}

/* ---- Footer trust badges row ---- */
.footer-trust-badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--color-accent);
  background-color: #FFFFFF;
  border-radius: 0 0.375rem 0.375rem 0;
}

.footer-trust-badge strong {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.3;
}

.footer-trust-badge span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ---- Footer column titles ---- */
.footer-col-title {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

/* ---- Footer mini CTA buttons (call / email) ---- */
.footer-mini-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.125rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--color-primary);
  color: #FFFFFF;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.footer-mini-cta:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* ---- Footer quick links ---- */
.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.3rem 0;
  transition: color 0.15s ease, padding-left 0.15s ease;
  border-radius: 0.25rem;
}

.footer-link:hover {
  color: var(--color-text);
  padding-left: 0.25rem;
}

/* ---- Footer social media links ---- */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  background-color: #F3F4F6;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-social-link:hover {
  background-color: #E5E7EB;
  color: var(--color-text);
}

/* ===================================================================
   32. CHATBOT WIDGET — FLOATING CHAT ASSISTANT
   =================================================================== */

/* -- Container: fixed bottom-right -- */
.chatbot-widget {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  font-family: inherit;
}

/* -- Open bubble -- */
.chatbot-bubble {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 9999px;
  background-color: #18181B;
  color: #FAFAFA;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.chatbot-bubble:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* -- Badge (unread indicator) -- */
.chatbot-badge {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 0 2px #18181B;
}

/* -- Chat panel (expanded card) -- */
.chatbot-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 380px;
  max-width: calc(100vw - 2.5rem);
  height: 520px;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background-color: #FFFFFF;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid #E4E4E7;
  overflow: hidden;
}

/* -- Panel header -- */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #F4F4F5;
  background-color: #FAFAFA;
  flex-shrink: 0;
}

.chatbot-header p {
  font-size: 0.8125rem;
  font-weight: 800;
  color: #18181B;
  margin: 0;
  line-height: 1.2;
}

.chatbot-header span {
  font-size: 0.6875rem;
  color: #71717A;
}

.chatbot-header-actions {
  display: flex;
  gap: 0.25rem;
}

.chatbot-header-actions button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #71717A;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.chatbot-header-actions button:hover {
  background-color: #E4E4E7;
  color: #18181B;
}

/* -- Messages area -- */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background-color: #FAFAFA;
}

.chatbot-message {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: break-word;
}

.chatbot-message.assistant {
  align-self: flex-start;
  background-color: #F4F4F5;
  color: #27272A;
  border-bottom-left-radius: 0.25rem;
}

.chatbot-message.user {
  align-self: flex-end;
  background-color: #18181B;
  color: #FAFAFA;
  border-bottom-right-radius: 0.25rem;
}

/* -- Quick-action chips -- */
.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid #F4F4F5;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.chatbot-chips button {
  padding: 0.375rem 0.75rem;
  border: 1px solid #E4E4E7;
  border-radius: 9999px;
  background-color: #FFFFFF;
  color: #52525B;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chatbot-chips button:hover {
  background-color: #F4F4F5;
  border-color: #D4D4D8;
  color: #18181B;
}

/* -- Lead capture form -- */
.chatbot-lead-form {
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: #FFFFFF;
  border: 1px solid #E4E4E7;
}

.chatbot-lead-form p {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #52525B;
}

.chatbot-lead-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.375rem;
  border: 1px solid #E4E4E7;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  background-color: #FAFAFA;
  color: #18181B;
  outline: none;
  transition: border-color 0.15s ease;
}

.chatbot-lead-form input:focus {
  border-color: #A1A1AA;
}

.chatbot-lead-form button {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #18181B;
  color: #FAFAFA;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.chatbot-lead-form button:hover {
  background-color: #3F3F46;
}

/* -- Message input -- */
.chatbot-input {
  display: flex;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid #F4F4F5;
  background-color: #FFFFFF;
  flex-shrink: 0;
}

.chatbot-input input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #E4E4E7;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  background-color: #FAFAFA;
  color: #18181B;
  outline: none;
  transition: border-color 0.15s ease;
}

.chatbot-input input:focus {
  border-color: #A1A1AA;
}

.chatbot-input button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #18181B;
  color: #FAFAFA;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.chatbot-input button:hover {
  background-color: #3F3F46;
}

/* -- Responsive: full-width panel on mobile -- */
@media (max-width: 700px) {
  .chatbot-panel {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    z-index: 60;
  }
}

/* -- Ensure hidden attribute works for any element -- */
[hidden] {
  display: none !important;
}

/* -------------------------------------------------------------------
   35. FREE-DELIVERY PROMO BANNERS
   ------------------------------------------------------------------- */

/* Top banner — slim strip below the header */
.promo-top-banner {
  background: linear-gradient(135deg, var(--color-accent), #FBBF24);
  color: #1A1A1A;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 30;
  opacity: 1;
  transition: opacity 0.8s ease, max-height 0.5s ease, padding 0.5s ease;
  max-height: 100px;
  overflow: hidden;
}

.promo-top-banner.fade-out {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-width: 0;
}

.promo-top-banner button {
  background: none;
  border: none;
  cursor: pointer;
}

/* Listing banner — slim persistent strip above the enquiry sidebar */
.promo-listing-banner {
  background: linear-gradient(135deg, var(--color-accent), #FBBF24);
  color: #1A1A1A;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Color themes (top banner, listing banner, admin preview swatch) ---- */
.promo-theme-amber    { background: linear-gradient(135deg, var(--color-accent), #FBBF24); color: #1A1A1A; border-color: rgba(0, 0, 0, 0.08); }
.promo-theme-red      { background: linear-gradient(135deg, #B91C1C, #DC2626); color: #FFFFFF; border-color: rgba(0, 0, 0, 0.15); }
.promo-theme-midnight { background: linear-gradient(135deg, #111827, #1F2937); color: #FBBF24; border-color: rgba(255, 255, 255, 0.14); }
.promo-theme-emerald  { background: linear-gradient(135deg, #065F46, #059669); color: #FFFFFF; border-color: rgba(0, 0, 0, 0.12); }
.promo-theme-ocean    { background: linear-gradient(135deg, #1E3A8A, #2563EB); color: #FFFFFF; border-color: rgba(0, 0, 0, 0.12); }
.promo-theme-carbon   { background: linear-gradient(135deg, #18181B, #27272A); color: #E5C07B; border-color: rgba(229, 192, 123, 0.38); }
.promo-theme-white    { background: #FFFFFF; color: #DC2626; border-color: #DC2626; }

/* Admin settings live-preview swatch (gets the same promo-theme-* class) */
.promo-theme-swatch {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ---- Banner animations ---- */
/* Entrance: the top banner springs down from the top edge; the listing
   banner rises in place (a slide-down mid-page would look wrong). */
@keyframes promo-slide-down {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(8%); }
  80%  { transform: translateY(-3%); }
  100% { transform: translateY(0); }
}
@keyframes promo-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.promo-top-banner.promo-anim-entrance:not(.hidden) {
  animation: promo-slide-down 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.promo-listing-banner.promo-anim-entrance {
  animation: promo-rise-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Gradient shimmer — a slow diagonal sheen sweeping across the banner */
.promo-anim-shimmer {
  position: relative;
  overflow: hidden;
}
.promo-anim-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  background-size: 250% 100%;
  animation: promo-shimmer 3.4s ease-in-out 0.6s infinite;
  pointer-events: none;
}
@keyframes promo-shimmer {
  0%        { background-position: 120% 0; }
  60%, 100% { background-position: -120% 0; }
}
/* White sheen is invisible on the white theme — use a soft red sheen there */
.promo-theme-white.promo-anim-shimmer::after {
  background: linear-gradient(105deg, transparent 40%, rgba(220, 38, 38, 0.14) 50%, transparent 60%);
  background-size: 250% 100%;
}

/* Pulsing check badge — two quick attention pulses, then still */
@keyframes promo-pulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(1); }
  100% { transform: scale(1); }
}
.promo-anim-pulse-icon {
  animation: promo-pulse 1.1s ease-in-out 0.4s 2;
  transform-origin: center;
}

/* Slide-in message text — staggers in shortly after the banner appears */
@keyframes promo-text-slide {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.promo-anim-slide-text .promo-banner-text {
  animation: promo-text-slide 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Urgency countdown pill (shown when a promo end date is set) */
.promo-countdown-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.625rem;
  padding: 0.1rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .promo-top-banner.promo-anim-entrance:not(.hidden),
  .promo-listing-banner.promo-anim-entrance,
  .promo-anim-shimmer::after,
  .promo-anim-pulse-icon,
  .promo-anim-slide-text .promo-banner-text {
    animation: none;
  }
}

/* ===== 44. LISTING DETAIL LAYOUT (robust fallback) ===== */
/* Desktop: promo full-width on top, then a 60/40 row — Specifications (3/5)
   + contact card (2/5, non-sticky). Mobile stacks single-column; the contact
   card is desktop-only (mobile uses #enquireMobile). */
.listing-layout { display: block; }
.listing-main { width: 100%; }
.listing-sidebar { width: 100%; }
@media (min-width: 1024px) {
  .listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
  }
  .listing-main { grid-column: 1; }
  .listing-sidebar { grid-column: 2; align-self: start; }
}
