/* ─── Brand ──────────────────────────────────────────────────────────────── */
:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
}
a { color: inherit; }
.text-red    { color: var(--red) !important; }
.bg-red      { background-color: var(--red) !important; }
.btn-red     { background-color: var(--red); color: #fff; border: none; }
.btn-red:hover { background-color: var(--red-dark); color: #fff; }

/* ─── Top/secondary nav ──────────────────────────────────────────────────── */
.topbar { font-size: .78rem; }
.secondary-nav { overflow-x: auto; white-space: nowrap; }
.secondary-nav-link { transition: color .15s; }
.secondary-nav-link:hover { color: var(--red) !important; }

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.car-card { transition: box-shadow .2s, transform .15s; cursor: pointer; }
.car-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); transform: translateY(-2px); }
.car-card img { height: 180px; object-fit: cover; }

.brand-card { transition: box-shadow .2s, transform .15s; }
.brand-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); transform: translateY(-3px); }
.brand-card img { height: 60px; object-fit: contain; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: .875rem;
  display: block;
  margin-bottom: .4rem;
  transition: color .15s;
}
.footer-links a:hover { color: #ef4444; }
.social-icon {
  width: 36px; height: 36px;
  background: #374151;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9ca3af; font-size: 1rem;
  transition: background .2s, color .2s;
  text-decoration: none;
}
.social-icon:hover { background: var(--red); color: #fff; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #7f1d1d 100%);
  color: #fff;
  min-height: 420px;
}

/* ─── Filter sidebar ─────────────────────────────────────────────────────── */
.filter-section .form-check-label { font-size: .875rem; cursor: pointer; }
.filter-section .form-check-input:checked { background-color: var(--red); border-color: var(--red); }

/* ─── Compare bar ────────────────────────────────────────────────────────── */
.compare-bar { z-index: 1040; }
.compare-chip { background: #f9fafb; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge-fuel    { background: #dbeafe; color: #1e40af; }
.badge-trans   { background: #f3f4f6; color: #374151; }
.badge-type    { background: #fef3c7; color: #92400e; }

/* ─── Image gallery ──────────────────────────────────────────────────────── */
.gallery-thumb { cursor: pointer; opacity: .7; transition: opacity .15s; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; }
.gallery-main { height: 380px; object-fit: cover; border-radius: .5rem; }

/* ─── Insurance ──────────────────────────────────────────────────────────── */
.plan-card { border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.plan-card.selected, .plan-card:hover { border-color: var(--red); box-shadow: 0 4px 14px rgba(220,38,38,.15); }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.nav-tabs .nav-link { color: #6b7280; }
.nav-tabs .nav-link.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ─── Skeleton loader ────────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: .375rem; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── Rating stars ───────────────────────────────────────────────────────── */
.stars { color: #f59e0b; }

/* ─── City dropdown ──────────────────────────────────────────────────────── */
.city-btn { color: #374151 !important; white-space: nowrap; }
.city-btn:hover { color: var(--red) !important; }
.city-label { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
#cityList .dropdown-item { font-size: .875rem; }
#cityList .dropdown-item.active { background: #fff1f2; color: var(--red) !important; }
#cityList .dropdown-item:hover  { background: #f9fafb; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
.search-form { max-width: 480px; }
@media (max-width: 768px) {
  .search-form { max-width: 100%; }
  .gallery-main { height: 220px; }
  .car-card img { height: 150px; }
}
