/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --brand-color: #70D100;
  --brand-dark: #4F8415;
  --brand-light: #F2FBE9;
  --accent: #A9E765;

  --ink-900: #0b1220;
  --ink-800: #111a2e;
  --ink-700: #1b2740;

  --text-900: #10192b;
  --text-700: #33445c;
  --text-500: #5c6d84;
  --text-400: #8494a8;
  --text-on-dark: rgba(255, 255, 255, 0.92);
  --text-on-dark-muted: rgba(255, 255, 255, 0.66);

  --surface: #ffffff;
  --surface-alt: #f5f8f6;
  --surface-sunken: #eef3f0;
  --border-color: #e2e8e4;
  --border-color-strong: #cdd8d1;

  --radius-sm: 0.5rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 29, 23, 0.06), 0 1px 1px rgba(16, 29, 23, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(16, 29, 23, 0.14);
  --shadow-lg: 0 24px 48px -12px rgba(16, 29, 23, 0.22);
  --shadow-glow: 0 0 0 1px rgba(11, 122, 75, 0.08), 0 20px 40px -16px rgba(11, 122, 75, 0.35);

  --font-display: "Sora", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ============================================================
   Base
   ============================================================ */
html {
  font-size: 15px;
  scroll-behavior: smooth;
  /* Anchor targets land below the sticky header. */
  scroll-padding-top: 84px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-900);
  background-color: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sticky footer: the content area grows to fill any leftover viewport height
   so the footer sits at the bottom of the screen on short pages, while still
   flowing after the content normally (not overlaying it) on long pages. */
.page-content {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-900);
}

a {
  color: var(--brand-color);
  text-decoration: none;
}

a:hover {
  color: var(--brand-dark);
}

::selection {
  background: var(--accent);
  color: var(--ink-900);
}

.text-muted {
  color: var(--text-500) !important;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding-inline: 1.1rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background-color 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  border-radius: var(--radius-md);
  padding: 0.7rem 1.6rem;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-color), var(--brand-dark));
  border: none;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-brand:hover {
  filter: brightness(1.08);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary,
.btn-outline-success {
  border-width: 1.5px;
}

.btn-outline-success {
  color: var(--brand-color);
  border-color: var(--brand-color);
}

.btn-outline-success:hover {
  background: var(--brand-color);
  border-color: var(--brand-color);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-select:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem #fff, 0 0 0 0.3rem rgba(126, 211, 33, 0.35);
  outline: none;
}

/* Buttons rendered inside the dark hero need light focus rings */
.hero .btn:focus {
  box-shadow: 0 0 0 0.15rem var(--brand-dark), 0 0 0 0.3rem rgba(255, 255, 255, 0.55);
}

/* ============================================================
   Header (Ball Motors palette: black, white, gray #707070, lime #70D100)
   ============================================================ */
.site-header {
  --header-ink: #000000;
  --header-gray: #707070;
  --header-lime: #70D100;
  --header-pill: #f0f0f0;
  background: #ffffff;
  border-bottom: 1px solid #e4e4e4;
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-bottom: 3rem;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-full {
  height: 36px;
  width: auto;
}

.site-logo-mark {
  display: none;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--header-ink);
  transition: background-color 0.15s ease;
}

.header-social a:hover {
  background-color: var(--header-pill);
  color: var(--header-ink);
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: #d6d6d6;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  background-color: var(--header-pill);
}

.lang-switch a {
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  color: var(--header-gray);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--header-ink);
}

.lang-switch a.active {
  background-color: #ffffff;
  color: var(--header-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--header-lime);
  color: var(--header-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-avatar:hover {
  color: var(--header-ink);
  filter: brightness(0.94);
}

.header-login {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: var(--radius-pill);
  background-color: var(--header-ink);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-login:hover {
  color: #ffffff;
  background-color: #222222;
}

.header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background-color: var(--header-pill);
  color: var(--header-ink);
  flex-shrink: 0;
}

.header-menu-btn:hover,
.header-menu-btn[aria-expanded="true"] {
  background-color: #e4e4e4;
}

.site-header a:focus-visible,
.header-menu-btn:focus-visible {
  outline: 2px solid var(--header-lime);
  outline-offset: 2px;
}

.header-menu {
  min-width: 14rem;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
}

.header-menu .dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: var(--header-ink);
}

.header-menu .dropdown-item:hover,
.header-menu .dropdown-item:active {
  background-color: var(--header-pill);
  color: var(--header-ink);
}

/* Social links appear in the menu only on phones, where the header hides the icons. */
.header-menu-social {
  display: none;
}

@media (max-width: 575.98px) {
  .site-header {
    margin-bottom: 2rem;
  }

  .site-header-inner {
    min-height: 60px;
    gap: 0.5rem;
  }

  .site-header-actions {
    gap: 0.5rem;
  }

  .site-logo-full,
  .header-social,
  .header-divider {
    display: none;
  }

  .site-logo-mark,
  .header-menu-social {
    display: block;
  }

  .lang-switch a {
    padding: 0.3rem 0.5rem;
  }

  .header-login {
    padding: 0 0.8rem;
  }

  .header-menu {
    min-width: min(18rem, calc(100vw - 32px));
  }
}

/* ============================================================
   Hero — full-width, full-height photo under the header. It breaks out of
   the page .container and cancels the header's bottom margin.
   ============================================================ */
body {
  overflow-x: clip;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: -3rem;
  margin-bottom: 3rem;
  min-height: calc(100svh - 68px);
  padding: 4rem 0;
  color: #fff;
  background-color: #000;
  /* --hero-image is set inline from the admin's photo; without one the dark
     gradient alone is shown. */
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.05) 75%),
    var(--hero-image, linear-gradient(135deg, #1a1a1a, #000 60%, #2a3d0a));
  background-size: cover;
  background-position: center right;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  color: #fff;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-lime {
  background-color: #70D100;
  border-color: #70D100;
  color: #000;
  font-weight: 700;
}

.btn-lime:hover,
.btn-lime:focus {
  background-color: #62b800;
  border-color: #62b800;
  color: #000;
}

.btn-outline-white {
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  background: transparent;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background-color: #fff;
  color: #000;
}

.hero .btn-lg {
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
}

@media (max-width: 575.98px) {
  .hero {
    margin-top: -2rem;
    min-height: calc(100svh - 60px);
    padding: 3rem 0;
    /* On phones the text covers most of the photo, so darken it evenly. */
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.8) 100%),
      var(--hero-image, linear-gradient(135deg, #1a1a1a, #000 60%, #2a3d0a));
    background-position: 65% center;
    align-items: flex-end;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ============================================================
   Section headings
   ============================================================ */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* "Why buy with us" tiles */
.perk-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.perk {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.perk:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.perk-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--brand-light);
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.perk h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.perk p {
  margin: 0;
  color: var(--text-500);
  font-size: 0.95rem;
}

/* ============================================================
   Cards (generic Bootstrap card + custom perk tiles)
   ============================================================ */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.row.g-4.mt-2 > .col-md-4 {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.row.g-4.mt-2 > .col-md-4:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.row.g-4.mt-2 h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* ============================================================
   Vehicle cards
   ============================================================ */
.vehicle-card {
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.vehicle-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-color-strong);
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: var(--surface-sunken);
  display: block;
}

.vehicle-card > a {
  display: block;
}

.vehicle-card .card-body {
  padding: 1.25rem;
}

.vehicle-card .card-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.price-tag {
  color: var(--brand-color);
  font-weight: 800;
  font-family: var(--font-display);
}

.price-convert {
  position: relative;
  display: inline-block;
  cursor: help;
  border-bottom: 1px dashed currentColor;
}

.price-convert::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 8px;
  white-space: nowrap;
  background: var(--ink-900);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  pointer-events: none;
}

.price-convert:hover::after,
.price-convert:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bar-chart-bar {
  flex: 1 1 0;
  min-height: 2px;
  background-color: var(--brand-color);
  border-radius: 2px 2px 0 0;
}


.spec-badge {
  background-color: var(--brand-light);
  color: var(--brand-dark);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============================================================
   Forms
   ============================================================ */
.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-700);
  margin-bottom: 0.35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  background-color: var(--surface);
}

.form-control:focus, .form-select:focus {
  border-color: var(--brand-color);
}

.form-text {
  color: var(--text-500);
}

textarea.form-control {
  border-radius: var(--radius-sm);
}

.form-control-color {
  width: 3.2rem;
  height: 2.7rem;
  padding: 0.3rem;
  flex: none;
}

/* ============================================================
   Color swatch (public site — next to a vehicle's color name)
   ============================================================ */
.color-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid var(--border-color-strong);
  vertical-align: middle;
  margin-inline-start: 0.4rem;
}

/* Narrow forms (contact, booking, checkout, auth) get breathing room in a card */
form.col-md-6, .col-md-7 form {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 767.98px) {
  form.col-md-6, .col-md-7 form {
    padding: 1.25rem;
  }
}

/* ============================================================
   Auth pages (login/register) — centered card look
   ============================================================ */
.auth-shell {
  min-height: calc(100vh - 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
}

.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
}

.auth-tabs {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface-sunken);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
}

.auth-tabs .nav-link {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: center;
  border-radius: var(--radius-pill);
  font-weight: 600;
  color: var(--ink-900);
  padding: 0.55rem 1.5rem;
}

.auth-tabs .nav-link.active {
  background: var(--brand-color);
  color: #fff;
}

/* ============================================================
   Tables
   ============================================================ */
.table {
  --bs-table-bg: transparent;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead th {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text-500);
  border-bottom-width: 1px;
  background: var(--surface-alt);
  padding: 0.9rem 1rem;
}

.table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
  border-color: var(--border-color);
}

.table tbody tr:hover {
  background-color: var(--surface-alt);
}

/* ============================================================
   Status / cart / misc badges
   ============================================================ */
.badge {
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 0.4em 0.75em;
}

/* ============================================================
   Admin
   ============================================================ */
.nav-pills .nav-link {
  border-radius: var(--radius-pill);
  color: var(--text-700);
  font-weight: 600;
  padding: 0.45rem 1rem;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: var(--brand-color);
  color: #fff;
}

.nav-tabs .nav-link {
  font-weight: 600;
  color: var(--text-500);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.nav-tabs .nav-link.active {
  color: var(--brand-color);
  border-bottom-color: var(--brand-color);
  background: transparent;
}

.dashboard-tile {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.dashboard-tile .fs-2 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--brand-color);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: linear-gradient(180deg, var(--ink-900), #05080f);
  color: var(--text-on-dark-muted);
  border-top: none !important;
  padding-block: 2.25rem;
}

.footer a {
  color: var(--text-on-dark);
}

.footer a:hover {
  color: var(--accent);
}

.footer .footer-brand {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============================================================
   Misc
   ============================================================ */
/* Wide, fluid page width: fills large monitors up to 1680px instead of
   Bootstrap's fixed steps, with side padding that grows with the screen. */
.container {
  max-width: 1680px;
  padding-inline: clamp(16px, 3vw, 48px);
}

.alert {
  border: none;
  border-radius: var(--radius-md);
}

.alert-success {
  background-color: var(--brand-light);
  color: var(--brand-dark);
}

/* ============================================================
   Multi-file photo upload preview (Admin > Vehicles > Photos)
   ============================================================ */
.photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.photo-preview-item {
  width: 110px;
}

.photo-preview-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--surface-sunken);
}

.photo-preview-name {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-500);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview-item {
  position: relative;
}

.photo-preview-item .photo-preview-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  border: none;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.72);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-item .photo-preview-remove:hover {
  background: #dc3545;
}

.photo-preview-error {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Top padding keeps the message clear of the remove (×) button. */
  padding: 1.7rem 0.35rem 0.35rem;
  border: 1px dashed #dc3545;
  border-radius: var(--radius-sm);
  background-color: #fdf0f1;
  color: #b02a37;
  font-size: 0.65rem;
  line-height: 1.2;
  overflow: hidden;
  text-align: center;
}

.photo-preview-item.is-invalid .photo-preview-name {
  color: #b02a37;
}

.photo-viewable {
  cursor: zoom-in;
}

/* ============================================================
   Photo viewer (admin photo previews — click a thumbnail)
   ============================================================ */
.photo-viewer[hidden] {
  display: none;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 18, 32, 0.92);
}

.photo-viewer img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

body.photo-viewer-open {
  overflow: hidden;
}

.photo-viewer-btn {
  position: absolute;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.photo-viewer-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.photo-viewer-close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
}

.photo-viewer-prev,
.photo-viewer-next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}

.photo-viewer-prev {
  left: 1rem;
}

.photo-viewer-next {
  right: 1rem;
}

.photo-viewer-caption {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Password fields: show/hide toggle + live rule checklist
   ============================================================ */
.password-field .password-toggle {
  display: flex;
  align-items: center;
  border-color: var(--bs-border-color, #dee2e6);
  color: var(--text-500);
  background-color: var(--surface);
}

.password-field .password-toggle:hover,
.password-field .password-toggle:focus-visible {
  color: var(--text-900);
  background-color: var(--surface-alt);
}

.password-rules {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.15rem 1rem;
  font-size: 0.8rem;
  color: var(--text-500);
}

.password-rules li {
  position: relative;
  padding-left: 1.2rem;
}

.password-rules li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.4em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--text-400);
}

.password-rules li.is-met {
  color: var(--brand-dark);
}

.password-rules li.is-met::before {
  content: "\2713";
  top: 0;
  left: 0.1rem;
  width: auto;
  height: auto;
  border: none;
  font-weight: 700;
  color: var(--brand-dark);
}

.footer .footer-rates {
  color: var(--text-on-dark-muted);
  font-size: 0.78rem;
}

/* Admin Edit page: pick the cover / remove existing photos */
.photo-manager .photo-preview-item {
  padding: 0.3rem;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
}

.photo-manager .photo-preview-item:has(input[type="radio"]:checked) {
  border-color: var(--brand-color);
  background-color: var(--brand-light);
}

.photo-manager .photo-preview-item:has(input[type="checkbox"]:checked) img {
  opacity: 0.35;
}

.photo-option {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-700);
  cursor: pointer;
}

.photo-option-remove {
  color: #b02a37;
}

/* .form-control and .form-select share padding above, which wiped out the
   room Bootstrap reserves for the dropdown arrow — long option text ran
   underneath it. */
.form-select {
  padding-right: 2.25rem;
  text-overflow: ellipsis;
}


/* Error / not-found page */
.error-page {
  max-width: 34rem;
  margin: 3rem auto;
}

.error-code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--brand-color);
  margin-bottom: 1rem;
}

/* Broken/missing vehicle photo fallback (see site.js) */
img.img-fallback {
  object-fit: contain;
  background-color: var(--surface-sunken);
}

/* Admin list tables become stacked cards on phones, so every field and the
   Edit/Delete buttons fit on screen without sideways scrolling. Each cell's
   data-label supplies the column name. */
@media (max-width: 767.98px) {
  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
  }

  .table-stack td {
    border: none;
    padding: 0.2rem 0;
    max-width: none !important;
  }

  .table-stack td[data-label] {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    text-align: right;
  }

  .table-stack td[data-label]::before {
    content: attr(data-label);
    color: var(--text-500);
    font-size: 0.85rem;
    text-align: left;
    flex: none;
  }

  .table-stack td.table-stack-title {
    font-weight: 600;
    font-size: 1.05rem;
    padding-bottom: 0.4rem;
  }

  .table-stack td.table-stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-start;
    text-align: left;
    padding-top: 0.6rem;
    white-space: normal !important;
  }

  .table-stack td.table-stack-actions > * {
    flex: 1 1 auto;
  }

  .table-stack td.table-stack-actions .btn,
  .table-stack td.table-stack-actions form {
    width: 100%;
  }

  .table-stack td.table-stack-actions form.d-flex .form-select {
    width: auto !important;
    flex: 1 1 auto;
  }

  .table-stack td.table-stack-actions form.d-flex .btn {
    width: auto;
  }
}

a.dashboard-tile:hover {
  box-shadow: var(--shadow-md);
}

.legal-page {
  max-width: 46rem;
}

.legal-page h2 {
  margin-top: 1.75rem;
}

@media (max-width: 767.98px) {
  /* The card's title cell (name/customer) always comes first, whatever the column order. */
  .table-stack tr {
    display: flex;
    flex-direction: column;
  }

  .table-stack td.table-stack-title {
    order: -1;
  }
}

/* ============================================================
   Admin: sortable lists (sortable-list.js)
   ============================================================ */
[data-sortable] .drag-handle {
  cursor: grab;
  border: none;
  background: none;
  color: var(--text-400);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.25rem;
}

[data-sortable] .is-dragging {
  opacity: 0.45;
}

[data-sortable].is-saving {
  opacity: 0.7;
}

[data-sortable].is-save-failed {
  outline: 2px solid #dc3545;
}

/* ============================================================
   Admin: three-language text inputs
   ============================================================ */
.localized-field-lang .input-group-text {
  min-width: 3.4rem;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* ============================================================
   Shared lime/black controls (Ball Motors palette)
   ============================================================ */
.btn-black {
  background-color: #000;
  border-color: #000;
  color: #fff;
  font-weight: 600;
}

.btn-black:hover,
.btn-black:focus {
  background-color: #222;
  border-color: #222;
  color: #fff;
}

.btn-heart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid #d6d6d6;
  border-radius: 50%;
  color: #000;
  background: #fff;
  fill: none;
}

.btn-heart:hover {
  border-color: #000;
  color: #000;
}

.btn-heart.is-saved {
  color: #e0245e;
  border-color: #e0245e;
  fill: #e0245e;
}

/* ============================================================
   Currency switch (Cars, Compare, Loan calculator)
   ============================================================ */
.currency-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.currency-switch-label {
  color: #707070;
  font-weight: 600;
  font-size: 0.9rem;
}

.currency-switch-pill {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-pill);
  background-color: #ebebeb;
}

.currency-switch-pill a {
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  color: #707070;
  font-weight: 600;
  text-decoration: none;
}

.currency-switch-pill a:hover {
  color: #000;
}

.currency-switch-pill a.active {
  background-color: #fff;
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* ============================================================
   Cars page: heading, filter panel, cards, empty state, compare bar
   ============================================================ */
.cars-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.filter-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.filter-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.filter-row-2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.filter-search {
  position: relative;
}

.filter-search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #707070;
  pointer-events: none;
}

.filter-search .form-control {
  padding-left: 2.5rem;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.filter-price label {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0;
}

.price-slider {
  --fill: 100%;
  flex: 1 1 auto;
}

.price-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, #70D100 var(--fill), #e4e4e4 var(--fill));
}

.price-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #e4e4e4;
}

.price-slider::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: #70D100;
}

.price-slider::-webkit-slider-thumb {
  margin-top: -6px;
  background: #fff;
  border: 3px solid #70D100;
  width: 18px;
  height: 18px;
}

.price-slider::-moz-range-thumb {
  background: #fff;
  border: 3px solid #70D100;
  width: 18px;
  height: 18px;
}

.price-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 0.2rem rgba(112, 209, 0, 0.35);
}

.price-slider-value {
  min-width: 5.5rem;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .filter-row,
  .filter-row-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .filter-search,
  .filter-price,
  .filter-row-2 > div:first-child {
    grid-column: 1 / -1;
  }
}

.vehicle-card-eyebrow {
  color: #70D100;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.vehicle-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #fff;
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-lg);
}

.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.6rem 0.5rem 1.25rem;
  background: #000;
  color: #fff;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  font-size: 0.9rem;
}

.compare-bar[hidden] {
  display: none;
}

/* ============================================================
   Car details window (full page and Cars-page popup)
   ============================================================ */
.car-window-page {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.car-modal {
  position: relative;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.car-window-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 1.6rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.car-window-close:hover {
  background: #f0f0f0;
  color: #000;
}

.car-window {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.car-window-media {
  background: #f2f2f2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.75rem;
}

.car-window-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.car-window-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.car-window-thumb {
  flex: 0 0 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}

.car-window-thumb.active {
  border-color: #70D100;
}

.car-window-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-window-info {
  padding: 2rem 2rem 1.75rem;
}

.car-window-eyebrow {
  color: #70D100;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.car-window-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  padding-right: 2.5rem;
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill-in-stock {
  background: rgba(112, 209, 0, 0.16);
  color: #3f7a00;
}

.status-pill-unavailable {
  background: #ececec;
  color: #707070;
}

.car-window-note {
  margin: 0.9rem 0 0;
  color: #707070;
}

.car-window-section {
  color: #70D100;
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
}

.spec-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 1px solid #e4e4e4;
}

.spec-grid-2x2 > div {
  padding: 0.7rem 0;
  border-bottom: 1px solid #e4e4e4;
}

.spec-grid-2x2 > div:nth-child(odd) {
  padding-right: 1rem;
  border-right: 1px solid #e4e4e4;
}

.spec-grid-2x2 > div:nth-child(even) {
  padding-left: 1rem;
}

.spec-grid-2x2 dt,
.more-specs dt {
  font-weight: 500;
  color: #707070;
  font-size: 0.8rem;
}

.spec-grid-2x2 dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.more-specs {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.more-specs summary {
  cursor: pointer;
  font-weight: 600;
}

.more-specs dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
}

.more-specs dd {
  margin: 0;
  font-weight: 600;
}

.car-window-price {
  margin: 1.5rem 0 1.25rem;
}

.car-window-price-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
}

.car-window-monthly {
  margin-top: 0.35rem;
  font-weight: 600;
}

.car-window-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.car-window-actions .btn:not(.btn-heart) {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.car-window-form {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: var(--radius-md);
}

.car-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

@media (max-width: 767.98px) {
  .car-window {
    grid-template-columns: 1fr;
  }

  .car-window-media {
    padding: 1rem;
  }

  .car-window-info {
    padding: 1.25rem 1rem 1.5rem;
  }

  .car-window-actions .btn:not(.btn-heart) {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
  }
}

/* ============================================================
   Compare page
   ============================================================ */
.compare-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.compare-slot {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.compare-slot-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #f2f2f2;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-slot-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.compare-slot-empty {
  border: 2px dashed #d6d6d6;
  color: #707070;
  font-weight: 600;
}

.compare-slot-remove {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 1;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.compare-hint {
  text-align: center;
  padding: 2rem 1rem;
  background: #fff;
  border: 1px dashed var(--border-color-strong);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.compare-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem 1rem 1rem;
}

.compare-table-v2 {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.compare-table-v2 th,
.compare-table-v2 td {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #ececec;
  text-align: left;
  vertical-align: middle;
}

.compare-table-v2 thead th {
  font-family: var(--font-display);
  font-size: 1rem;
}

.compare-table-v2 tbody th {
  color: #707070;
  font-weight: 500;
  width: 22%;
}

.compare-table-v2 td.is-best {
  color: #3f7a00;
  font-weight: 800;
  background: rgba(112, 209, 0, 0.12);
}

.compare-table-v2 .compare-actions td,
.compare-table-v2 .compare-actions th {
  border-bottom: none;
}

@media (max-width: 767.98px) {
  .compare-slots {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Loan calculator
   ============================================================ */
.loan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.loan-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.loan-card-title {
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.loan-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.loan-source .btn-check:checked + .btn,
.messenger-choice .btn-check:checked + .btn {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

.messenger-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.loan-results {
  position: sticky;
  top: 84px;
}

.loan-monthly {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: #000;
  color: #fff;
  margin-bottom: 1rem;
}

.loan-monthly-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.loan-monthly-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #70D100;
}

.loan-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.loan-figures dt {
  color: #707070;
  font-weight: 500;
  font-size: 0.8rem;
}

.loan-figures dd {
  margin: 0;
  font-weight: 700;
}

.loan-chart {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.loan-donut {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  transform: rotate(0deg);
}

.loan-legend {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.loan-legend .swatch {
  display: inline-block;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: -1px;
}

.loan-legend strong {
  margin-left: 0.3rem;
}

.loan-schedule summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.loan-schedule .table-responsive {
  max-height: 320px;
  overflow-y: auto;
}

.bank-table tr.is-best td {
  background: rgba(112, 209, 0, 0.12);
}

.bank-table tr.is-ineligible td {
  color: #9a9a9a;
}

.bank-table tr.is-chosen td:first-child {
  box-shadow: inset 4px 0 0 #000;
}

.best-badge {
  background: #70D100;
  color: #000;
}

.loan-apply {
  text-align: center;
}

.loan-disclaimer {
  margin-top: 1.5rem;
  color: #707070;
  font-size: 0.85rem;
}

@media (max-width: 991.98px) {
  .loan-grid {
    grid-template-columns: 1fr;
  }

  .loan-results {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .loan-figures {
    grid-template-columns: 1fr 1fr;
  }

  .loan-card {
    padding: 1.1rem;
  }
}

/* Car details popup: wider than Bootstrap's modal-xl (1140px) on big screens. */
@media (min-width: 1400px) {
  #carModal .modal-xl {
    max-width: min(1400px, calc(100vw - 96px));
  }
}

/* ============================================================
   Homepage sections: About us, corporate customers, FAQ
   ============================================================ */
.home-section {
  margin-bottom: 4rem;
}

.section-eyebrow {
  color: #70D100;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.home-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

/* About us: centered intro (eyebrow, big title, paragraph), then a row of
   light-grey advantage cards with solid lime icon tiles. */
.about-intro {
  max-width: 54rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.about-intro h1,
.about-intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.about-text {
  color: #707070;
  font-size: 1.1rem;
  max-width: 46rem;
  margin: 0 auto;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  display: block;
  width: 100%;
  max-width: 46rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 2rem auto 0;
}

.about-brands-label {
  margin: 1.5rem 0 0.6rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #707070;
}

.about-brands {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.about-brands li {
  padding: 0.35rem 0.9rem;
  border: 1px solid #e4e4e4;
  border-radius: var(--radius-pill);
  background: #fff;
  font-weight: 600;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.advantage-card {
  background: #f4f4f6;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
}

.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #70D100;
  color: #000;
  margin-bottom: 1.25rem;
}

.advantage-card h2,
.advantage-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.advantage-card p {
  color: #707070;
  margin: 0;
}

@media (max-width: 991.98px) {
  .advantage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .advantage-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.perk-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.corporate-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  background: #000;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.corporate-section h2 {
  color: #fff;
}

.corporate-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  max-width: 40ch;
}

.corporate-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.corporate-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.corporate-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #70D100;
  color: #000;
}

.corporate-check svg {
  width: 16px;
  height: 16px;
  stroke-width: 3;
}

.corporate-form-card {
  background: #fff;
  color: var(--text-900);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.corporate-thanks {
  text-align: center;
  padding: 2rem 1rem;
}

.corporate-thanks .corporate-check {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.corporate-thanks h3 {
  font-size: 1.2rem;
}

.corporate-thanks p {
  color: #707070;
  margin: 0;
}

/* Spam trap: off-screen rather than display:none, which some bots skip. */
.corporate-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-section {
  width: 100%;
}

.faq-category {
  font-size: 1rem;
  color: #707070;
  margin: 1.5rem 0 0.75rem;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq-accordion .accordion-header {
  font-size: 1rem;
  margin: 0;
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  background: rgba(112, 209, 0, 0.1);
  color: #000;
  box-shadow: none;
}

.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(112, 209, 0, 0.35);
}

.faq-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .corporate-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin: icon picker for "About us" cards */
.icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.icon-picker-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  color: #333;
}

.btn-check:checked + .icon-picker-option {
  border-color: #70D100;
  background: rgba(112, 209, 0, 0.14);
  color: #3f7a00;
}

.btn-check:focus-visible + .icon-picker-option {
  outline: 2px solid #70D100;
  outline-offset: 2px;
}

.advantage-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin-bottom: 0;
  vertical-align: middle;
}

.advantage-icon-sm svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   Contact page: centered heading, quick-contact card, then the
   black showroom card and the callback form side by side.
   ============================================================ */
.contact-page {
  max-width: 72rem;
  margin: 0 auto;
}

.contact-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-heading h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-lead {
  color: #707070;
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.contact-quick {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.contact-quick-intro p {
  color: #707070;
  margin: 0;
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-pill);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.contact-btn:hover {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.contact-btn-call {
  background: #000;
}

.contact-btn-whatsapp {
  background: #25D366;
}

.contact-btn-viber {
  background: #7360F2;
}

.contact-btn-telegram {
  background: #229ED9;
}

.contact-copy-list {
  margin: 1.25rem 0 0;
}

.contact-copy-list > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid #ececec;
}

.contact-copy-list dt {
  color: #707070;
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-copy-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-copy-list dd a {
  color: #000;
  text-decoration: none;
}

.contact-copy {
  border: 1px solid #d6d6d6;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-copy:hover {
  border-color: #000;
}

.contact-copy.is-copied {
  background: #70D100;
  border-color: #70D100;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact-showroom {
  background: #000;
  color: #fff;
  border-color: #000;
  display: flex;
  flex-direction: column;
}

.contact-showroom h2 {
  color: #fff;
}

.contact-address {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
}

.contact-hours {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.75rem;
}

.contact-hours-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #70D100;
  box-shadow: 0 0 0 4px rgba(112, 209, 0, 0.25);
}

.contact-hours strong {
  display: block;
}

.contact-hours span {
  color: rgba(255, 255, 255, 0.75);
  white-space: pre-line;
}

.contact-map-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
}

.contact-callback .btn-lg {
  border-radius: var(--radius-pill);
}

@media (max-width: 767.98px) {
  .contact-quick,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-quick {
    gap: 1.25rem;
  }

  .contact-copy-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .contact-copy-list dt {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Header scroll state: frosted glass once the page scrolls
   (site.js toggles .is-scrolled), solid again at the top.
   ============================================================ */
.site-header {
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.8);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 18px -10px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

/* Browsers without backdrop-filter keep a readable, nearly solid header. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
  }
}

.header-menu-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  margin-left: 0.25rem;
  border-radius: var(--radius-pill);
  background: #70D100;
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
}

.header-menu-count[hidden] {
  display: none;
}

/* ============================================================
   Car card actions: "More details" pill + "Compare ›" text link,
   the same on every car card (Cars, homepage, wishlist, related cars).
   ============================================================ */
.vehicle-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.car-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: var(--radius-pill);
  background: #70D100;
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.btn-card-details:hover,
.btn-card-details:focus {
  color: #000;
  filter: brightness(0.94);
}

.car-card-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #4F8415;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.car-card-compare:hover {
  color: #3a6310;
}

.car-card-compare-added,
.compare-checkbox:checked + .car-card-compare .car-card-compare-add,
.compare-checkbox:checked + .car-card-compare .car-card-compare-chevron {
  display: none;
}

.compare-checkbox:checked + .car-card-compare .car-card-compare-added {
  display: inline;
}

.compare-checkbox:disabled + .car-card-compare {
  color: var(--text-400);
  cursor: not-allowed;
}

.compare-checkbox:focus-visible + .car-card-compare {
  outline: 2px solid #70D100;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Floating "Contact us" button (all storefront pages)
   ============================================================ */
.floating-contact {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1029;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 52px;
  padding: 0 1.25rem;
  border-radius: var(--radius-pill);
  background: #70D100;
  color: #000;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease, bottom 0.2s ease;
}

.floating-contact:hover,
.floating-contact:focus {
  color: #000;
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.floating-contact:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  /* Icon-only circle on phones so it doesn't cover the content. */
  .floating-contact {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    padding: 0;
    justify-content: center;
  }

  .floating-contact span {
    display: none;
  }

  /* Keep it clear of the comparison bar. */
  body:has(.compare-bar:not([hidden])) .floating-contact {
    bottom: 4.75rem;
  }
}

/* Comparison bar on phones: full width so "Compare" and "Clear" stay on screen. */
@media (max-width: 575.98px) {
  .compare-bar {
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    max-width: none;
    gap: 0.5rem;
    padding: 0.45rem 0.45rem 0.45rem 0.9rem;
    font-size: 0.82rem;
  }

  .compare-bar > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .compare-bar .btn {
    flex-shrink: 0;
  }
}

/* Very narrow phones (≤ 359px): messenger buttons one per row. */
@media (max-width: 359.98px) {
  .contact-buttons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Room at the bottom of the page so the comparison bar never covers the footer. */
body:has(.compare-bar:not([hidden])) .footer {
  padding-bottom: 5.5rem;
}
