/* ═══════════════════════════════════════════════════════════════
   FLEET GALLERY STYLES
═══════════════════════════════════════════════════════════════ */

.fleet-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.fleet-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--gold-subtle) 0%, transparent 65%);
  pointer-events: none;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}
.fleet-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Image carousel */
.fleet-card-images {
  position: relative; height: 220px; overflow: hidden;
  background: var(--bg-elevated);
}

.fleet-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.5s;
}
.fleet-card-img.active { opacity: 1; }

.fleet-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  color: var(--text-muted);
}
.fleet-img-placeholder svg { opacity: 0.3; }
.fleet-img-placeholder span { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; }

.fleet-card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.fleet-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: background 0.2s;
}
.fleet-dot.active { background: var(--gold); }

.fleet-card-prev,
.fleet-card-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; opacity: 0;
  transition: opacity 0.2s;
}
.fleet-card-prev { left: 10px; }
.fleet-card-next { right: 10px; }
.fleet-card-images:hover .fleet-card-prev,
.fleet-card-images:hover .fleet-card-next { opacity: 1; }

/* Card content */
.fleet-card-body { padding: 1.5rem; }

.fleet-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 0.75rem;
}

.fleet-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--text-primary);
}
.fleet-card-category {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted);
}

.fleet-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; color: var(--gold); text-align: right;
}
.fleet-card-price-label {
  font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); text-align: right; margin-top: 2px;
}

.fleet-card-desc {
  font-size: 0.75rem; font-weight: 300; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 1rem;
}

.fleet-card-specs {
  display: flex; gap: 1.25rem; margin-bottom: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.fleet-spec { display: flex; align-items: center; gap: 6px; }
.fleet-spec svg { color: var(--gold); opacity: 0.8; width: 14px; height: 14px; }
.fleet-spec-label { font-size: 0.65rem; color: var(--text-secondary); }

.fleet-card-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.feature-tag {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 2px;
  background: var(--gold-subtle); border: 1px solid var(--gold-border); color: var(--gold);
}

.fleet-card-actions { display: flex; gap: 0.75rem; }
.fleet-card-actions .btn-gold { flex: 1; padding: 0.65rem; text-align: center; }

/* ─── LIGHTBOX ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.95);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1); border: none;
  color: white; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL STYLES
═══════════════════════════════════════════════════════════════ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 70px);
}

.admin-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.admin-sidebar-title {
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.25rem; padding: 0 0.5rem;
}

.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.65rem 0.75rem; border-radius: 4px; margin-bottom: 3px;
  background: none; border: none; cursor: pointer; width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-secondary); text-align: left;
  transition: all 0.2s;
}
.admin-nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.admin-nav-item.active { background: var(--gold-subtle); color: var(--gold); }
.admin-nav-item svg { width: 16px; height: 16px; }

.admin-content { padding: 2.5rem; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-title { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 300; }

/* Vehicle edit card */
.admin-vehicle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px; margin-bottom: 1.5rem; overflow: hidden;
}

.admin-vehicle-header {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background 0.2s;
}
.admin-vehicle-header:hover { background: var(--bg-elevated); }

.admin-vehicle-thumb {
  width: 80px; height: 55px;
  border-radius: 4px; overflow: hidden; flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
}
.admin-vehicle-thumb img { width: 100%; height: 100%; object-fit: cover; }

.admin-vehicle-info { flex: 1; }
.admin-vehicle-name { font-size: 1rem; font-weight: 500; color: var(--text-primary); }
.admin-vehicle-meta { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }

.admin-vehicle-body { padding: 1.5rem; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: 6px;
  padding: 2.5rem; text-align: center;
  cursor: pointer; transition: all 0.2s;
  margin-bottom: 1.25rem;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold-border-hover); background: var(--gold-subtle);
}
.upload-zone-icon { font-size: 2rem; opacity: 0.4; margin-bottom: 0.5rem; }
.upload-zone-text { font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.05em; }
.upload-zone-hint { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.25rem; }

.upload-previews {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem; margin-top: 1rem;
}

.upload-preview {
  position: relative; aspect-ratio: 4/3;
  border-radius: 4px; overflow: hidden;
  background: var(--bg-elevated);
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-del {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,0.7); border: none; color: white;
  font-size: 0.75rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
}
.upload-preview:hover .upload-preview-del { opacity: 1; }

/* Bookings table */
.bookings-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.75rem;
}
.bookings-table th {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); text-align: left;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.bookings-table td {
  padding: 0.9rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: middle;
}
.bookings-table tr:hover td { background: var(--bg-elevated); }
.bookings-table .td-name { color: var(--text-primary); font-weight: 500; }
.bookings-table .td-amount { color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 1rem; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .fleet-grid { grid-template-columns: 1fr; }
}
