/* =========================================================
   AutoFanatico — style.css
   Simple, professional, dark theme with gold accents
   ========================================================= */

:root {
  --bg: #0e0e0e;
  --bg-alt: #161616;
  --card: #1b1b1b;
  --card-alt: #202020;
  --border: #2b2b2b;
  --white: #f5f5f5;
  --muted: #a3a3a1;
  --gold: #c9a04f;
  --gold-light: #ddba6f;
  --whatsapp: #25d366;
  --sold-red: #b3392f;
  --radius: 12px;
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #1a1405;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #06210f;
}
.btn-whatsapp:hover { background: #2fe374; }

section { padding: 70px 24px; }
section h2 { text-align: center; font-size: 1.8rem; margin-bottom: 40px; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 14, 14, 0.92);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 2;
}
.navbar-logo { height: 42px; width: auto; }
.logo-location {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.nav { display: flex; gap: 28px; order: 1; }
.nav a { font-weight: 500; color: var(--muted); transition: color 0.2s ease; }
.nav a:hover { color: var(--gold); }

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== MOBILE NAV DRAWER ===== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.mobile-nav-backdrop.open { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  z-index: 91;
  padding: 20px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-nav-logo { height: 32px; width: auto; }
.mobile-nav-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-link {
  display: block;
  padding: 15px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  min-height: 48px;
}
.mobile-nav-link:hover { color: var(--gold-light); }

.mobile-nav-contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-nav-contact .btn { text-align: center; padding: 14px 26px; }
.btn-call-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.btn-call-outline:hover { background: var(--gold); color: #1a1405; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.65); }
.hero-content { position: relative; max-width: 600px; padding: 0 20px; }
.hero-content h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: 0.2px; margin-bottom: 8px; }
.hero-content p { color: var(--muted); font-size: clamp(0.85rem, 1.6vw, 1rem); font-weight: 400; margin-bottom: 18px; }

.advisor-chip {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 14, 14, 0.72);
  border: 1px solid rgba(201, 160, 79, 0.35);
  border-radius: 999px;
  padding: 8px 18px 8px 10px;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.advisor-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.advisor-chip-logo { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.advisor-chip span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: left;
}
.advisor-chip span strong { color: var(--white); font-size: 0.85rem; font-family: var(--font-heading); }

/* ===== VEHICLES + FILTERS LAYOUT ===== */
.vehicles { max-width: 1300px; margin: 0 auto; }

.inventory-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: start;
}

.vehicle-list { display: flex; flex-direction: column; gap: 22px; }

/* ===== MOBILE FILTERS TRIGGER ===== */
.mobile-filters-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto 18px;
  padding: 13px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.mobile-filters-btn svg { width: 18px; height: 18px; color: var(--gold-light); }

.filters-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.filters-drawer-backdrop.open { opacity: 1; visibility: visible; }

.filters-panel-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters-drawer-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.filters-panel-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-apply-filters { display: none; }

/* ===== FILTERS PANEL ===== */
.filters-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.filters-panel h3 {
  font-size: 1rem;
  color: var(--gold-light);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.filter-group select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.filter-group select:hover,
.filter-group select:focus { border-color: var(--gold); outline: none; }

.price-range-display {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.92rem;
}

.dual-slider {
  position: relative;
  height: 34px;
  margin-top: 4px;
}
.slider-track-bg,
.slider-track-active {
  position: absolute;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  transform: translateY(-50%);
}
.slider-track-bg { left: 0; right: 0; background: var(--border); }
.slider-track-active { background: var(--gold); }

.dual-slider input[type="range"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  margin: 0;
}
.dual-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid #1a1405;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--gold);
}
.dual-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid #1a1405;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--gold);
}
.dual-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.dual-slider input[type="range"]::-moz-range-track { background: transparent; }

.btn-reset-filters {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
}
.btn-reset-filters:hover { border-color: var(--gold); color: var(--gold-light); transform: none; background: transparent; }

.no-results {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}

/* ===== VEHICLE CARDS ===== */
.vehicle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.vehicle-card:hover { border-color: var(--gold); transform: translateY(-2px); }

.vehicle-main {
  display: flex;
  flex-wrap: wrap;
}

.vehicle-img {
  position: relative;
  width: 400px;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.vehicle-img-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  z-index: 1;

  transition: opacity 0.18s ease;
  pointer-events: none;
}
.vehicle-img-frame.active { opacity: 1; }

.vehicle-img-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.img-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.18s ease, transform 0.18s ease;
}
.img-dot.active { background: var(--gold-light); transform: scale(1.4); }

@media (hover: hover) and (pointer: fine) {
  .vehicle-img { cursor: ew-resize; }
}
@media (hover: none), (pointer: coarse) {
  .vehicle-img-dots { display: none; }
}

.sold-badge {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;

  text-align: center;

  background: #5c1515;
  color: #fff;

  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;

  padding: 12px;

  z-index: 20;
  pointer-events: none;
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--sold-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.vehicle-card.is-sold .vehicle-img-frame {
  filter: none;
}

.vehicle-card.is-sold .vehicle-img-frame.active {
  opacity: 1;
}

.vehicle-info {
  flex: 1;
  min-width: 320px;
  padding: 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vehicle-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.vehicle-info h3 { font-size: 1.3rem; }
.vehicle-brand-tag {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.price-block { text-align: right; }
.vehicle-price-original {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: line-through;
  text-decoration-color: var(--sold-red);
}
.vehicle-price {
  color: var(--gold-light);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.vehicle-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.spec-box {
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-box .spec-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-box .spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.vehicle-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  gap: 12px;
  flex-wrap: wrap;
}

.availability-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}
.availability-tag.available { color: #6fd68a; background: rgba(111, 214, 138, 0.12); }
.availability-tag.sold { color: var(--sold-red); background: rgba(179, 57, 47, 0.12); }

.details-btn {
  align-self: flex-start;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.details-btn:hover { background: var(--gold); color: #1a1405; }

/* ===== ADVISOR SECTION ===== */
.advisor { max-width: 900px; margin: 0 auto; }
.advisor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}
.advisor-logo {
  height: 100px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.advisor-text { max-width: 480px; }
.advisor-text h2 { text-align: left; margin-bottom: 2px; font-size: 1.4rem; }
.advisor-title {
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}
.advisor-desc { color: var(--muted); font-size: 0.94rem; }

/* ===== SERVICES ===== */
.services { max-width: 1000px; margin: 0 auto; }

.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s ease;
}
.service-card:hover { border-color: var(--gold); }

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(201, 160, 79, 0.12);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== VEHICLE DETAILS MODAL ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.75); }

.modal-main-img { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.modal-main-img img { width: 100%; height: 100%; object-fit: cover; }

.modal-sold-stamp {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(10, 10, 10, 0.6);
  border: 3px solid var(--sold-red);
  color: var(--sold-red);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 8px;
  transform: rotate(6deg);
}

.modal-content { padding: 26px 28px 30px; }

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.modal-gallery img:hover { opacity: 0.8; }

.modal-top-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.modal-content h2 { font-size: 1.4rem; }
.modal-price-block { text-align: right; }
.modal-price-original {
  display: block;
  color: var(--muted);
  font-size: 1rem;
  text-decoration: line-through;
  text-decoration-color: var(--sold-red);
}
.modal-price { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); font-family: var(--font-heading); }

.modal-availability {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 8px;
}
.modal-availability.available { color: #6fd68a; background: rgba(111, 214, 138, 0.12); }
.modal-availability.sold { color: var(--sold-red); background: rgba(179, 57, 47, 0.12); }

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin: 18px 0 20px;
}
.modal-specs div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.modal-specs span:first-child { color: var(--muted); }
.modal-specs span:last-child { font-weight: 600; }

.modal-desc { color: var(--muted); font-size: 0.94rem; margin-bottom: 22px; }

.modal-specs-section { margin-bottom: 24px; }
.modal-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.modal-spec-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
}

.spec-icon {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(201, 160, 79, 0.12);
  color: var(--gold-light);
  flex-shrink: 0;
}
.spec-icon svg { width: 16px; height: 16px; }

.spec-name {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.spec-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}

.modal-primary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.modal-primary-actions .btn { flex: 1; min-width: 160px; text-align: center; }

.btn-reserve { background: var(--gold); color: #1a1405; }
.btn-reserve:hover { background: var(--gold-light); }

.modal-sold-notice {
  background: rgba(179, 57, 47, 0.1);
  border: 1px solid rgba(179, 57, 47, 0.4);
  color: #e2a49e;
  font-size: 0.85rem;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.modal-contact {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.modal-contact h4 { font-size: 0.95rem; margin-bottom: 12px; color: var(--gold-light); }
.modal-contact-lines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 0.9rem; }
.modal-contact-lines span { color: var(--muted); margin-right: 6px; }

.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 130px; text-align: center; }

.btn-video-tour { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn-video-tour:hover { background: var(--gold); color: #1a1405; }

.btn-call { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn-call:hover { background: var(--gold); color: #1a1405; }

.btn-modal-close { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.btn-modal-close:hover { border-color: var(--muted); color: var(--white); }

/* ===== RESERVE VEHICLE MODAL ===== */
.reserve-modal { max-width: 480px; }
.reserve-modal-body { padding: 32px 28px; }
.reserve-title { font-size: 1.3rem; margin-bottom: 4px; }
.reserve-subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; }

.reserve-form { display: flex; flex-direction: column; gap: 6px; }
.reserve-form label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 2px;
}
.reserve-form input,
.reserve-form textarea {
  width: 100%;
  background: var(--card-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.reserve-form input:focus,
.reserve-form textarea:focus { outline: none; border-color: var(--gold); }

.btn-reserve-submit {
  margin-top: 20px;
  width: 100%;
  padding: 14px 26px;
  font-size: 0.98rem;
}
.reserve-note { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 10px; }

.reserve-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 0;
}
.reserve-success.show { display: flex; }
.reserve-success svg { width: 52px; height: 52px; color: #6fd68a; margin-bottom: 6px; }
.reserve-success h3 { font-size: 1.15rem; }
.reserve-success p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.reserve-success .btn { margin-top: 14px; padding: 11px 30px; }

/* ===== FLOATING MOBILE CONTACT BAR ===== */
.mobile-contact-bar {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}
.mobile-contact-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.mobile-contact-btn svg { width: 24px; height: 24px; }
.mobile-contact-whatsapp { background: var(--whatsapp); color: #06210f; }
.mobile-contact-call { background: var(--gold); color: #1a1405; }

/* ===== CONTACT ===== */
.contact { max-width: 500px; margin: 0 auto; text-align: center; }
.contact-location { color: var(--muted); font-size: 0.9rem; margin-top: -24px; margin-bottom: 28px; }

.contact-info { margin-bottom: 28px; }
.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line span { color: var(--muted); }
.contact-line a { font-weight: 600; }
.contact-line a:hover { color: var(--gold); }

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 30px 24px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-brand, .footer-advisor {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo { height: 40px; width: auto; }
.footer-advisor-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand-text { display: flex; flex-direction: column; text-align: left; line-height: 1.35; }
.footer-brand-text strong { color: var(--white); font-family: var(--font-heading); font-size: 0.95rem; }
.footer-brand-text span { font-size: 0.78rem; color: var(--muted); }
.footer-copy { padding-top: 18px; border-top: 1px solid var(--border); }

/* ===== RESPONSIVE ===== */

/* Guard against any accidental horizontal scroll at every size */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 980px) {
  .inventory-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* Swap desktop nav for hamburger */
  .nav { display: none; }
  .hamburger-btn { display: flex; order: 0; }
  .logo { order: 2; }

  /* Desktop filters sidebar becomes an off-canvas drawer */
  .mobile-filters-btn { display: flex; }
  .filters-drawer-backdrop { display: block; }
  .filters-panel-head { display: flex; }
  .btn-apply-filters { display: block; }

  .filters-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(340px, 86vw);
    max-width: none;
    height: 100vh;
    border-radius: 0;
    border-left: 1px solid var(--border);
    border-top: none;
    border-right: none;
    border-bottom: none;
    z-index: 92;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    order: 0;
  }
  .filters-panel.open { transform: translateX(0); }

  /* Floating contact bar only shows on mobile/tablet */
  .mobile-contact-bar { display: flex; }
}

@media (max-width: 780px) {
  .services-list { grid-template-columns: 1fr; }
  .vehicle-spec-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 48px 16px; }
  section h2 { font-size: 1.5rem; margin-bottom: 28px; }

  .header-inner { padding: 12px 16px; }
  .logo-location { display: none; }
  .navbar-logo { height: 34px; }

  .vehicles { padding-bottom: 8px; }
  .mobile-filters-btn { margin-bottom: 16px; }

  .vehicle-img { width: 100%; aspect-ratio: 16 / 10; }
  .vehicle-info { padding: 18px; }
  .vehicle-info-top { flex-wrap: wrap; gap: 10px; }
  .vehicle-info h3 { font-size: 1.12rem; }
  .price-block { text-align: left; }
  .vehicle-price { font-size: 1.25rem; }
  .vehicle-spec-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vehicle-card-footer { flex-wrap: wrap; gap: 12px; }
  .details-btn { width: 100%; padding: 14px; font-size: 0.95rem; }

  /* Vehicle details modal — near full-screen on mobile */
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .modal-main-img { aspect-ratio: 4 / 3; }
  .modal-content { padding: 20px 18px 26px; }
  .modal-gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .modal-top-row { gap: 10px; }
  .modal-content h2 { font-size: 1.2rem; }
  .modal-price-block { text-align: left; }
  .modal-specs { grid-template-columns: 1fr; }
  .modal-primary-actions { flex-direction: column; }
  .modal-primary-actions .btn { width: 100%; min-width: 0; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; min-width: 0; text-align: center; padding: 14px; }
  .modal-close { top: 12px; right: 12px; }

  /* Reserve enquiry modal, mobile */
  #reserveBackdrop { align-items: flex-end; }
  .reserve-modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
  .reserve-modal-body { padding: 26px 20px; }

  .contact-line { flex-direction: column; gap: 4px; text-align: center; }
  .hero { height: 300px; }
  .hero-content h1 { font-size: 1.5rem; }
  .advisor-chip { left: 16px; right: 16px; justify-content: center; padding: 10px 16px; }
  .advisor-card { flex-direction: column; text-align: center; padding: 26px 20px; }
  .advisor-text { text-align: center; }
  .advisor-text h2 { text-align: center; }

  .footer-inner { flex-direction: column; gap: 18px; text-align: center; }
  .footer-brand, .footer-advisor { flex-direction: column; text-align: center; }
  .footer-brand-text { text-align: center; }

  /* Room for the floating contact bar so it never covers content */
  .contact { padding-bottom: 110px; }

  /* Touch-friendly form controls; 16px font prevents iOS auto-zoom on focus */
  .filter-group select { padding: 13px 12px; font-size: 1rem; min-height: 46px; }
  .reserve-form input,
  .reserve-form textarea { font-size: 1rem; padding: 13px 14px; }
  .btn-reset-filters, .btn-apply-filters { padding: 14px; font-size: 0.92rem; }
}

/* Extra touch-friendly sizing on small phones */
@media (max-width: 420px) {
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .mobile-contact-btn { width: 50px; height: 50px; }
}

/* =========================================
   FOOTER SOCIAL LINKS
========================================= */

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;

  margin: 24px 0 18px;
}

.footer-social-link {
  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  border-radius: 50%;

  transition: 0.2s;
}

/* Facebook */

.footer-social-link.facebook {
  color: #1877f2;
}

/* Instagram */

.footer-social-link.instagram {
  color: #e1306c;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  transform: translateY(-2px) scale(1.08);
}
/* =========================================
   SHOWROOM ADDRESS
========================================= */

/* Header address */

.logo-location {
  display: flex;
  flex-direction: column;

  line-height: 1.25;
}

.logo-location small {
  display: block;

  margin-top: 2px;

  font-size: 10px;
  font-weight: 400;

  letter-spacing: 0.2px;

  color: #777e86;
}


/* Contact address */

.contact-address {
  margin-top: 6px;

  font-size: 14px;

  line-height: 1.5;

  color: #777e86;
}

/* =========================================
   CUSTOMER REVIEWS
========================================= */

/* =========================================
   CUSTOMER REVIEWS CAROUSEL
========================================= */

/* =========================================
   CUSTOMER REVIEWS — CENTER FOCUS CAROUSEL
========================================= */

.reviews {
  max-width: 1200px;
  margin: 0 auto;
}

.reviews-carousel {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 340px;

  overflow: hidden;
}

.reviews-viewport {
  position: relative;

  width: 100%;
  max-width: 920px;
  height: 300px;

  overflow: hidden;
}

.reviews-list {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0;

  transform: none !important;
}

.review-card {
  position: absolute;

  top: 50%;
  left: 50%;

  width: min(500px, 62%);

  min-height: 230px;

  padding: 28px 30px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;

  display: flex;
  flex-direction: column;

  transform:
    translate(-50%, -50%)
    scale(0.82);

  opacity: 0.42;

  z-index: 1;

  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s ease,
    filter 0.6s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;

  pointer-events: none;

  filter: blur(0.2px);
}

/* Previous review */

.review-card.review-prev {
  transform:
    translate(calc(-50% - 265px), -50%)
    rotate(-7deg)
    scale(0.82);

  opacity: 0.58;

  z-index: 2;
}

/* Main review */

.review-card.review-main {
  transform:
    translate(-50%, -50%)
    rotate(0deg)
    scale(1);

  opacity: 1;

  z-index: 5;

  border-color: rgba(201, 160, 79, 0.45);

  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.32);

  pointer-events: auto;

  filter: none;
}

/* Next review */

.review-card.review-next {
  transform:
    translate(calc(-50% + 265px), -50%)
    rotate(7deg)
    scale(0.82);

  opacity: 0.58;

  z-index: 2;
}

/* Hidden reviews */

.review-card.review-hidden {
  transform:
    translate(-50%, -50%)
    scale(0.7);

  opacity: 0;

  z-index: 0;
}

/* ===== REVIEW CONTENT ===== */

.review-rating {
  color: var(--gold-light);
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.review-text {
  color: var(--white);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 22px;
}

.review-author {
  margin-top: auto;

  display: flex;
  flex-direction: column;
  gap: 3px;

  padding-top: 16px;

  border-top: 1px solid var(--border);
}

.review-author strong {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  color: var(--white);
}

.review-author span {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ===== ARROWS ===== */

.reviews-arrow {
  position: absolute;

  top: 50%;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--card);
  color: var(--white);

  font-size: 1.15rem;
  line-height: 1;

  cursor: pointer;

  z-index: 10;

  transform: translateY(-50%);

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.reviews-arrow:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: var(--card-alt);

  transform:
    translateY(-50%)
    scale(1.06);
}

.reviews-arrow-left {
  left: 12px;
}

.reviews-arrow-right {
  right: 12px;
}

/* ===== DOTS ===== */

.reviews-dots {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 7px;

  margin-top: 12px;
}

.review-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: var(--border);

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.review-dot.active {
  background: var(--gold-light);
  transform: scale(1.35);
}

.reviews-loading,
.reviews-empty {
  width: 100%;

  padding: 35px 20px;

  text-align: center;

  color: var(--muted);

  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ===== MOBILE ===== */

@media (max-width: 700px) {

  .reviews-carousel {
    min-height: 320px;
  }

  .reviews-viewport {
    height: 290px;
    max-width: 100%;
  }

  .review-card {
    width: calc(100% - 70px);

    min-height: 220px;

    padding: 24px 20px;
  }

  .review-card.review-prev {
    transform:
      translate(calc(-50% - 155px), -50%)
      rotate(-5deg)
      scale(0.78);
  }

  .review-card.review-next {
    transform:
      translate(calc(-50% + 155px), -50%)
      rotate(5deg)
      scale(0.78);
  }

  .reviews-arrow {
    width: 36px;
    height: 36px;

    font-size: 0.95rem;
  }

  .reviews-arrow-left {
    left: 3px;
  }

  .reviews-arrow-right {
    right: 3px;
  }

}

/* ===== SMALL PHONES ===== */

@media (max-width: 480px) {

  .review-card.review-prev,
  .review-card.review-next {
    opacity: 0.18;
  }

  .review-card {
    width: calc(100% - 54px);
  }

}

/* ===== REVIEWS RESPONSIVE ===== */
/* =========================================
   VEHICLE SEARCH
========================================= */

.search-filter input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-filter input::placeholder {
  color: #6f6f6c;
}

.search-filter input:hover {
  border-color: #3a3a3a;
}

.search-filter input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 160, 79, 0.1);
}

.search-filter input::-webkit-search-cancel-button {
  filter: grayscale(1);
  cursor: pointer;
}

@media (max-width: 640px) {
  .search-filter input {
    padding: 13px 12px;
    font-size: 1rem;
    min-height: 46px;
  }
}
/* =========================================
   CONTACT WHATSAPP OPTIONS
========================================= */

.contact-whatsapp-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.contact-whatsapp-btn {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 14px 16px;

  background: rgba(37, 211, 102, 0.09);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 12px;

  color: var(--white);

  text-align: left;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.contact-whatsapp-btn svg {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  color: var(--whatsapp);
}

.contact-whatsapp-btn span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-whatsapp-btn strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.contact-whatsapp-btn small {
  color: var(--muted);
  font-size: 0.74rem;
}

.contact-whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.55);
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .contact-whatsapp-options {
    grid-template-columns: 1fr;
  }

  .contact-whatsapp-btn {
    padding: 15px 16px;
  }
}
html {
  scroll-behavior: smooth;
}
.vehicle-card {
  cursor: pointer;
}
.modal-main-img {
  position: relative;
  overflow: hidden;
}
/* =========================================
   FULLSCREEN VEHICLE IMAGE VIEWER
========================================= */

.fullscreen-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.94);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.fullscreen-image-viewer.open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-image-stage {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  touch-action: none;
}

.fullscreen-image {
  max-width: 90vw;
  max-height: 88vh;

  width: auto;
  height: auto;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;

  transform-origin: center center;

  transition:
    transform 0.2s ease;
}

.fullscreen-image-close {
  position: absolute;

  top: 20px;
  right: 24px;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;

  background: rgba(0,0,0,0.55);
  color: white;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  z-index: 3;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.fullscreen-image-close:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.05);
}

.fullscreen-image-arrow {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;

  background: rgba(0,0,0,0.55);
  color: white;

  font-size: 22px;

  cursor: pointer;

  z-index: 3;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.fullscreen-image-arrow:hover {
  background: rgba(0,0,0,0.8);
}

.fullscreen-image-prev {
  left: 24px;
}

.fullscreen-image-next {
  right: 24px;
}

@media (max-width: 640px) {

  .fullscreen-image {
    max-width: 100vw;
    max-height: 82vh;
  }

  .fullscreen-image-close {
    top: 14px;
    right: 14px;

    width: 40px;
    height: 40px;

    font-size: 24px;
  }

  .fullscreen-image-arrow {
    width: 40px;
    height: 40px;

    font-size: 18px;
  }

  .fullscreen-image-prev {
    left: 12px;
  }

  .fullscreen-image-next {
    right: 12px;
  }

}