/* ═══════════════════════════════════════════
   LE THOR AUTO — Lightbox + Gallery + Badges + Modal + Detail extras
   ═══════════════════════════════════════════ */

/* ── BADGES ── */
.new-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #dc2626;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
}

.reserved-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #f59e0b;
  color: #1e2a4a;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-gold { background: #f5ecd5; color: #92710e; }
.badge-orange { background: #ffedd5; color: #9a3412; }

.vehicle-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 100px 0 16px;
  font-size: 0.85rem;
  color: var(--gray-500);
}

.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ── GALLERY ── */
.gallery-section { margin-bottom: 32px; }

.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  aspect-ratio: 16/9;
  max-height: 500px;
  cursor: pointer;
}

.gallery-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.3);
  cursor: default;
}

.gallery-placeholder p {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 42, 74, 0.7);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 3;
}

.gallery-arrow:hover { background: var(--navy); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(30, 42, 74, 0.7);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 3;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
  border: 2px solid transparent;
  flex-shrink: 0;
}

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

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10001;
}

.lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* ── VEHICLE DETAIL EXTRAS ── */
.vehicle-description {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.7;
}

.vehicle-info-left h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold-pale);
}

.vehicle-info-right {
  position: sticky;
  top: 90px;
  align-self: start;
}

/* ── QR SECTION ── */
.qr-section {
  margin-top: 32px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.qr-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.qr-container img { border-radius: var(--radius); }

.qr-info p {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ── SIMILAR SECTION ── */
.similar-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.similar-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .similar-grid { grid-template-columns: 1fr; }
  .qr-container { flex-direction: column; text-align: center; }
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--gray-500);
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--navy); }

.modal-content h2 {
  color: var(--navy);
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.modal-vehicle {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* ── VEHICLE CARD IMAGE WITH REAL PHOTOS ── */
.vehicle-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── NO RESULTS ── */
.no-results {
  text-align: center;
  padding: 48px 20px;
  color: var(--gray-500);
  font-size: 1.1rem;
}

/* ── PRINT ── */
@media print {
  .navbar, .footer, .whatsapp-fab, .modal-overlay,
  .lightbox-overlay, .cta-section, .similar-section,
  .btn, .gallery-arrow, .gallery-counter { display: none !important; }
  .breadcrumb { padding-top: 0; }
  .qr-section { break-inside: avoid; }
  .vehicle-info-grid { grid-template-columns: 1fr; }
  .vehicle-price-card { position: static; border: 2px solid #1e2a4a; }
}
