/* ===== Additional styles for vehicles, admin, etc. ===== */

/* --- Car Cards --- */
.car-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: all 0.3s;
}
.car-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.car-gallery {
  position: relative; aspect-ratio: 16/10;
  background: var(--bg-secondary); overflow: hidden;
}
.car-slides { width: 100%; height: 100%; position: relative; }
.car-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.4s ease;
}
.car-slide.active { opacity: 1; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; }
.car-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.car-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: all 0.2s;
  cursor: pointer;
}
.car-dot.active { background: var(--orange); width: 20px; border-radius: 4px; }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer; z-index: 2;
  transition: background 0.2s;
}
.car-nav:hover { background: rgba(0,0,0,0.7); }
.car-nav-prev { left: 8px; }
.car-nav-next { right: 8px; }
.car-price-tag {
  position: absolute; top: 12px; right: 12px;
  background: rgba(232,101,26,0.92); color: #fff;
  padding: 4px 14px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 700; z-index: 2;
}
.car-info { padding: 20px; }
.car-info h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.car-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.car-info p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 14px; }
.car-cta {
  display: block; text-align: center; padding: 10px;
  background: rgba(232,101,26,0.1); border: 1px solid rgba(232,101,26,0.2);
  border-radius: 8px; font-size: 0.88rem; color: var(--orange-light);
  transition: all 0.2s;
}
.car-cta:hover { background: rgba(232,101,26,0.18); }

/* --- Admin Page --- */
.admin-login-box {
  max-width: 400px; margin: 120px auto 0; padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; text-align: center;
}
.admin-login-box h2 { font-family: var(--font-display); margin-bottom: 8px; }
.admin-login-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.admin-input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-primary); font-size: 0.95rem;
  transition: border-color 0.2s; margin-bottom: 16px;
}
.admin-input:focus { outline: none; border-color: var(--orange); }
.admin-panel { display: none; }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.admin-header h2 { font-family: var(--font-display); }
.admin-vehicle-list { margin: 24px 0; }
.admin-car-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 8px;
}
.admin-car-info { display: flex; flex-direction: column; gap: 2px; }
.admin-car-info strong { font-size: 0.95rem; }
.admin-car-info span { font-size: 0.82rem; color: var(--text-muted); }
.admin-car-actions { display: flex; gap: 8px; }
.btn-sm {
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.82rem; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary);
  cursor: pointer; transition: all 0.2s;
}
.btn-sm:hover { border-color: var(--orange); color: var(--orange-light); }
.btn-sm-delete:hover { border-color: #ff4444; color: #ff4444; }
.vehicle-form {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-top: 24px;
}
.vehicle-form h3 { margin-bottom: 16px; font-size: 1rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.form-group .admin-input { margin-bottom: 0; }
.form-group textarea.admin-input { min-height: 80px; resize: vertical; font-family: var(--font-body); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
