:root {
  --sl-black: #0b0b0d;
  --sl-black-2: #151517;
  --sl-black-3: #1e1e21;
  --sl-red: #d81f2a;
  --sl-red-dark: #a3141d;
  --sl-white: #f5f5f6;
  --sl-grey: #9a9aa2;
  --sl-border: #2a2a2e;
}

body {
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #f7f7f8;
  color: #1c1c1e;
}

a { text-decoration: none; }

.text-brand-red { color: var(--sl-red) !important; }
.bg-brand-black { background-color: var(--sl-black) !important; }
.bg-brand-black-2 { background-color: var(--sl-black-2) !important; }
.bg-brand-red { background-color: var(--sl-red) !important; }

.btn-brand {
  background: linear-gradient(135deg, var(--sl-red) 0%, var(--sl-red-dark) 100%);
  border-color: var(--sl-red);
  color: #fff;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 4px 14px rgba(216,31,42,.28);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-brand:hover, .btn-brand:focus {
  background: linear-gradient(135deg, var(--sl-red-dark) 0%, #7d0f16 100%);
  border-color: var(--sl-red-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(216,31,42,.38);
}
.btn-outline-brand {
  border-color: var(--sl-white);
  color: var(--sl-white);
  font-weight: 600;
}
.btn-outline-brand:hover {
  background-color: var(--sl-white);
  color: var(--sl-black);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--sl-black-2);
  color: var(--sl-grey);
  font-size: .82rem;
}
.topbar a { color: var(--sl-grey); }
.topbar a:hover { color: var(--sl-red); }

/* ---------- Navbar ---------- */
.navbar-brand-shiftline {
  background: var(--sl-black);
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.navbar-brand-shiftline .navbar-brand img { height: 76px; }
.navbar-brand-shiftline .nav-link {
  color: var(--sl-white) !important;
  font-weight: 600;
  font-size: .93rem;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: .6rem 1rem !important;
  border-bottom: 2px solid transparent;
  transition: border-color .15s, color .15s;
}
.navbar-brand-shiftline .nav-link:hover,
.navbar-brand-shiftline .nav-link.active {
  color: var(--sl-red) !important;
  border-bottom-color: var(--sl-red);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 6rem 0 4.5rem;
  background: var(--sl-black);
}
.hero-slideshow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0;
  animation: heroFade 20s infinite;
}
@keyframes heroFade {
  0%   { opacity: 0; }
  2%   { opacity: 1; }
  23%  { opacity: 1; }
  27%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(11,11,13,.96) 15%, rgba(11,11,13,.82) 45%, rgba(11,11,13,.55) 75%, rgba(216,31,42,.35) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero .eyebrow {
  color: var(--sl-red);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: .85rem;
}
.hero h1 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.hero .lead { color: #d8d8dc; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero-check { color: #d8d8dc; font-size: .92rem; }
.hero-check i { color: var(--sl-red); margin-right: .35rem; }

.search-card {
  background: #fff;
  border-radius: .6rem;
  box-shadow: 0 20px 45px rgba(0,0,0,.25);
}

/* ---------- Section headings ---------- */
.section-eyebrow {
  color: var(--sl-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
}
.section-title { font-weight: 800; color: var(--sl-black); position: relative; }

/* ---------- Stats strip ---------- */
.stats-strip {
  background: radial-gradient(circle at 15% 20%, rgba(216,31,42,.18), transparent 40%), radial-gradient(circle at 85% 80%, rgba(216,31,42,.12), transparent 40%), var(--sl-black);
  color: #fff;
}
.stats-strip .num { font-size: 2.1rem; font-weight: 800; color: var(--sl-red); }
.stats-strip .label { color: var(--sl-grey); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Vehicle cards ---------- */
.vehicle-card {
  border: 1px solid #eaeaec;
  border-radius: .85rem;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.vehicle-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.14); border-color: rgba(216,31,42,.35); }
.vehicle-card .img-wrap { position: relative; aspect-ratio: 4/3; background: #e9e9eb; overflow: hidden; }
.vehicle-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card .status-badge { position: absolute; top: .6rem; left: .6rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.vehicle-card .price { color: var(--sl-red); font-weight: 800; font-size: 1.15rem; }
.vehicle-card .spec-row { font-size: .82rem; color: #55555c; }
.vehicle-card .spec-row i { color: var(--sl-red); width: 18px; }
.vehicle-card .title { font-weight: 700; color: var(--sl-black); }

/* ---------- Brand / category tiles ---------- */
.brand-tile, .category-tile {
  border: 1px solid #eaeaec;
  border-radius: .75rem;
  background: #fff;
  padding: 1.1rem .75rem;
  text-align: center;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.brand-tile:hover, .category-tile:hover {
  border-color: var(--sl-red);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.09);
}
.brand-tile .name, .category-tile .name { font-weight: 700; color: var(--sl-black); font-size: .95rem; }
.brand-tile .count, .category-tile .count { font-size: .78rem; color: var(--sl-grey); }
.brand-logo-img { height: 40px; max-width: 100%; object-fit: contain; }
.category-tile i { font-size: 1.6rem; color: var(--sl-red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sl-black); color: #c9c9ce; }
.site-footer a { color: #c9c9ce; }
.site-footer a:hover { color: var(--sl-red); }
.site-footer h6 { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .5px; }
.site-footer .social-icon {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #3a3a3e; display: inline-flex; align-items: center; justify-content: center;
}
.site-footer .social-icon:hover { border-color: var(--sl-red); color: var(--sl-red); }
.footer-bottom { background: #000; font-size: .82rem; color: #8a8a90; }

/* ---------- Vehicle detail page ---------- */
.gallery-main { aspect-ratio: 16/10; background: #101012; border-radius: .5rem; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #101012; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: .35rem; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--sl-red); }
.spec-table th { color: var(--sl-grey); font-weight: 600; width: 45%; }
.feature-pill { background: #f1f1f3; border-radius: 2rem; padding: .35rem .9rem; font-size: .82rem; display: inline-flex; align-items: center; gap: .35rem; margin: 0 .35rem .5rem 0; }
.feature-pill i { color: var(--sl-red); }

/* ---------- Filters sidebar ---------- */
.filter-card { border: 1px solid #eaeaec; border-radius: .6rem; background: #fff; }
.filter-card .form-label { font-weight: 600; font-size: .85rem; }

/* ---------- Page headers ---------- */
.page-header {
  background: linear-gradient(120deg, var(--sl-black) 0%, #232326 100%);
  color: #fff;
  padding: 3rem 0;
}

/* ---------- Admin panel ---------- */
.admin-sidebar { background: linear-gradient(180deg, var(--sl-black) 0%, #17171a 100%); min-height: 100vh; width: 250px; box-shadow: 2px 0 12px rgba(0,0,0,.15); }
.admin-sidebar .brand { padding: 1.1rem 1.2rem; border-bottom: 1px solid #26262a; }
.admin-sidebar .brand img { height: 54px; }
.admin-sidebar .nav-link {
  color: #c9c9ce; padding: .65rem 1.2rem; font-size: .9rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.admin-sidebar .nav-link i { width: 20px; margin-right: .5rem; }
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-sidebar .nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(216,31,42,.22), rgba(216,31,42,.04)); border-left-color: var(--sl-red); }
.admin-topbar { background: #fff; border-bottom: 1px solid #e8e8ea; box-shadow: 0 1px 6px rgba(0,0,0,.02); }
.admin-content table.table tbody tr { transition: background-color .12s ease; }
.admin-content table.table tbody tr:hover { background-color: #fbf7f7; }
.admin-content { background: #f4f4f6; min-height: 100vh; }
.stat-card {
  border: 1px solid #eaeaec;
  border-radius: .75rem;
  background: #fff;
  padding: 1.2rem;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
.stat-card .icon { width: 48px; height: 48px; border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--sl-red), var(--sl-red-dark)); box-shadow: 0 4px 10px rgba(216,31,42,.3); }
.stat-card .value { font-size: 1.6rem; font-weight: 800; }
.stat-card .label { color: #7a7a82; font-size: .82rem; }
.admin-card { border: 1px solid #eaeaec; border-radius: .75rem; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.thumb-sm { width: 56px; height: 42px; object-fit: cover; border-radius: .3rem; }
