/*
 * AutoCAD Motors â€” UI v2
 * Aesthetic: Dark-first automotive editorial. Precision engineering meets luxury showroom.
 * Fonts: Barlow Condensed (headings) + Outfit (body)
 * Philosophy: Photos are the hero. Everything else gets out of their way.
 */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,500;0,600;0,700;0,800;0,900;1,700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   DESIGN TOKENS
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --accent:       #FF3B1F;
  --accent-soft:  rgba(255,59,31,.14);
  --accent-glow:  rgba(255,59,31,.22);

  /* Light mode */
  --bg:           #F5F4F0;
  --bg-alt:       #ECEAE4;
  --surface:      #FFFFFF;
  --surface-alt:  #F9F8F5;
  --glass:        rgba(255,255,255,.72);

  --ink:          #111110;
  --ink-2:        #4A4845;
  --ink-3:        #9B9890;

  --line:         rgba(0,0,0,.08);
  --line-strong:  rgba(0,0,0,.14);

  --shadow-sm:    0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 2px 6px rgba(0,0,0,.06), 0 8px 28px rgba(0,0,0,.1);
  --shadow-lg:    0 8px 16px rgba(0,0,0,.08), 0 24px 56px rgba(0,0,0,.14);

  /* Nav is always dark */
  --nav-bg:       #0E0D0B;
  --nav-border:   rgba(255,255,255,.07);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:           #0B0A09;
  --bg-alt:       #131210;
  --surface:      #1A1916;
  --surface-alt:  #201E1B;
  --glass:        rgba(26,25,22,.82);

  --ink:          #EDE9E3;
  --ink-2:        #8A8680;
  --ink-3:        #5A5750;

  --line:         rgba(255,255,255,.07);
  --line-strong:  rgba(255,255,255,.12);

  --shadow-sm:    0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.28);
  --shadow-md:    0 2px 6px rgba(0,0,0,.3), 0 8px 28px rgba(0,0,0,.36);
  --shadow-lg:    0 8px 16px rgba(0,0,0,.4), 0 24px 56px rgba(0,0,0,.5);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESET & BASE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: 'Outfit', sans-serif; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border-radius: 3px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NAVBAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.navbar {
  position: sticky; top: 0; z-index: 900;
  height: 62px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.navbar-inner {
  max-width: 1440px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 1.5rem;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; object-fit: contain; }

.nav-center { display: flex; align-items: center; gap: .15rem; margin-left: 1.5rem; }
.nav-item {
  color: rgba(255,255,255,.52);
  font-size: .825rem; font-weight: 500;
  padding: .4rem .8rem; border-radius: var(--r-sm);
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav-item:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; }

.nav-right { display: flex; align-items: center; gap: .6rem; margin-left: auto; }

/* WA pill */
.nav-wa {
  display: flex; align-items: center; gap: .4rem;
  background: #1DAE54; color: #fff;
  padding: .38rem .95rem; border-radius: 100px;
  font-size: .8rem; font-weight: 600;
  transition: background .18s, transform .18s;
  white-space: nowrap;
}
.nav-wa:hover { background: #18984A; color: #fff; transform: translateY(-1px); }

/* Theme toggle */
.theme-btn {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  border-radius: 50%; color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem;
  transition: all .18s;
}
.theme-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.ic-sun { display: none; }
.ic-moon { display: block; }
[data-theme="dark"] .ic-sun  { display: block; }
[data-theme="dark"] .ic-moon { display: none; }

/* Staff */
.nav-staff-btn {
  color: rgba(255,255,255,.45);
  border: 1px solid rgba(255,255,255,.1);
  background: none;
  padding: .36rem .88rem; border-radius: 100px;
  font-size: .78rem; font-weight: 500;
  display: flex; align-items: center; gap: .38rem;
  transition: all .18s; white-space: nowrap;
}
.nav-staff-btn:hover { color: #fff; border-color: rgba(255,255,255,.28); }

.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: .92rem; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; position: relative;
}

/* Staff dropdown */
.staff-drop {
  display: none; position: absolute;
  top: calc(100% + .6rem); right: 0;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: .35rem; z-index: 200;
}
.staff-drop.open { display: block; }
.staff-drop-header {
  padding: .6rem .75rem .5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: .3rem;
}
.staff-drop-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.staff-drop-role { font-size: .72rem; color: var(--ink-3); margin-top: .1rem; }
.drop-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .48rem .75rem; border-radius: var(--r-sm);
  font-size: .83rem; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.drop-link:hover { background: var(--bg-alt); color: var(--ink); }
.drop-link i { color: var(--accent); font-size: .82rem; width: 15px; }
.drop-link.danger { color: var(--accent); }
.drop-link.danger:hover { background: var(--accent-soft); }
.drop-link.danger i { color: var(--accent); }
.drop-divider { height: 1px; background: var(--line); margin: .3rem 0; }

/* Mobile hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .4rem;
  margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: rgba(255,255,255,.75); border-radius: 2px;
  transition: all .2s;
}
/* Mobile nav drawer */
.nav-drawer {
  display: none; position: absolute;
  top: 62px; left: 0; right: 0;
  background: #0E0D0B;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: .8rem 1.2rem 1.2rem;
  flex-direction: column; gap: .3rem;
  z-index: 899;
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-item { color: rgba(255,255,255,.65); width: 100%; }
.nav-drawer .nav-wa,
.nav-drawer .nav-staff-btn { width: fit-content; }

@media (max-width: 720px) {
  .nav-hamburger { display: flex; }
  .nav-center, .nav-right { display: none; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO / FILTER BAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hero {
  background: linear-gradient(150deg, #0E0D0B 0%, #18150F 55%, #1A120E 100%);
  padding: 3.2rem 1.5rem 2.4rem;
  position: relative; overflow: hidden;
}
/* Subtle tyre-track texture */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 90% 40%, rgba(255,59,31,.06) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(255,200,80,.03) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 48px);
  pointer-events: none;
}
.hero-inner {
  max-width: 1440px; margin: 0 auto;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent-soft);
  border: 1px solid rgba(255,59,31,.28);
  color: #FF8570;
  font-size: .7rem; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; padding: .26rem .8rem;
  border-radius: 100px; margin-bottom: .9rem;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; background: var(--accent);
  border-radius: 50%; animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(1.4); }
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800; color: #fff;
  line-height: .98; letter-spacing: -.01em;
  margin-bottom: .5rem;
  text-transform: uppercase;
}
.hero-title-accent { color: var(--accent); font-style: italic; }
.hero-sub {
  color: rgba(255,255,255,.38); font-size: .88rem;
  display: flex; align-items: center; gap: .55rem;
  margin-bottom: 2rem;
}
.hero-count {
  background: var(--accent); color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: .82rem;
  padding: .15rem .6rem; border-radius: 100px;
  letter-spacing: .5px;
}

/* Filter panel */
.filter-wrap {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(12px);
}
.filter-search-row {
  display: flex; gap: .7rem; margin-bottom: .8rem;
}
.search-field {
  flex: 1; position: relative;
}
.search-field i {
  position: absolute; left: .95rem; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.3); font-size: .84rem; pointer-events: none;
}
.search-input {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm);
  color: #fff; padding: .68rem 1rem .68rem 2.55rem;
  font-family: 'Outfit', sans-serif; font-size: .875rem;
  outline: none; transition: border .18s, background .18s, box-shadow .18s;
}
.search-input::placeholder { color: rgba(255,255,255,.28); }
.search-input:focus {
  border-color: rgba(255,59,31,.55);
  background: rgba(255,255,255,.1);
  box-shadow: 0 0 0 3px rgba(255,59,31,.12);
}
.filter-selects-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: .6rem; margin-bottom: .7rem;
}
.f-select {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.75);
  padding: .54rem .75rem;
  font-family: 'Outfit', sans-serif; font-size: .8rem;
  outline: none; cursor: pointer; transition: border .18s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  padding-right: 2rem;
}
.f-select:focus { border-color: rgba(255,59,31,.5); }
.f-select option { background: #1A1916; color: #fff; }
.filter-bottom-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.price-box {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm); color: #fff;
  padding: .54rem .75rem;
  font-family: 'Outfit', sans-serif; font-size: .8rem;
  width: 112px; outline: none; transition: border .18s;
}
.price-box::placeholder { color: rgba(255,255,255,.28); }
.price-box:focus { border-color: rgba(255,59,31,.5); }
.btn-filter {
  display: flex; align-items: center; gap: .45rem;
  background: var(--accent); color: #fff; border: none;
  padding: .56rem 1.3rem; border-radius: var(--r-sm);
  font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: .83rem;
  transition: background .18s, transform .18s;
  white-space: nowrap;
}
.btn-filter:hover { background: #D92E10; transform: translateY(-1px); }
.btn-clear {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.45);
  padding: .56rem .85rem; border-radius: var(--r-sm);
  font-size: .83rem; transition: all .18s;
}
.btn-clear:hover { color: #fff; background: rgba(255,255,255,.1); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LISTINGS AREA
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.listings {
  max-width: 1440px; margin: 0 auto;
  padding: 1.8rem 1.5rem 5rem;
}
.listings-toolbar {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 1.3rem; flex-wrap: wrap; gap: .6rem;
}
.listings-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: .5px;
}
.listings-label span { color: var(--accent); }
.view-switch {
  display: flex; gap: .2rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: .22rem;
}
.vsw {
  padding: .3rem .55rem; border-radius: 6px;
  border: none; background: none; color: var(--ink-3);
  font-size: .88rem; transition: all .18s;
}
.vsw.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Cars grid */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
  gap: 1.15rem;
}
.cars-grid.list { grid-template-columns: 1fr; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAR CARD
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.car-card {
  background: var(--surface);
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .2s;
  animation: rise .38s var(--ease) both;
}
.car-card:nth-child(1)  { animation-delay: 0s; }
.car-card:nth-child(2)  { animation-delay: .05s; }
.car-card:nth-child(3)  { animation-delay: .1s; }
.car-card:nth-child(4)  { animation-delay: .14s; }
.car-card:nth-child(n+5){ animation-delay: .18s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.car-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,59,31,.22);
}

/* Photo area */
.card-photo {
  position: relative; overflow: hidden;
  height: 218px; background: var(--bg-alt); flex-shrink: 0;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.car-card:hover .card-photo img { transform: scale(1.07); }

/* Floating badges */
.f-badge {
  position: absolute; top: .7rem; left: .7rem;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 100px;
}
.f-badge.avail { background: rgba(22,163,74,.88); color: #fff; }
.f-badge.sold  { background: rgba(220,38,38,.88);  color: #fff; }
.f-badge.feat  {
  position: absolute; top: .7rem; right: .7rem;
  background: rgba(234,179,8,.9); color: #fff;
  font-size: .66rem; font-weight: 700; padding: .22rem .6rem;
  border-radius: 100px; display: flex; align-items: center; gap: .25rem;
}

/* Hover action bar */
.card-hover-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 100%);
  padding: .6rem .65rem;
  display: flex; gap: .45rem; align-items: flex-end;
  opacity: 0; transform: translateY(4px);
  transition: opacity .22s, transform .22s;
}
.car-card:hover .card-hover-actions { opacity: 1; transform: translateY(0); }
.ha-btn {
  display: flex; align-items: center; gap: .3rem;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 100px;
  padding: .35rem .82rem; font-size: .73rem; font-weight: 600;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.ha-btn:hover { background: var(--accent); border-color: var(--accent); }
.ha-btn.wa:hover { background: #1DAE54; border-color: #1DAE54; }

/* Sold stamp */
.sold-veil {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.46);
  display: flex; align-items: center; justify-content: center;
}
.sold-stamp {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900; font-size: 1.4rem;
  letter-spacing: 5px; color: #fff; text-transform: uppercase;
  border: 2.5px solid rgba(255,255,255,.75);
  padding: .32rem 1.1rem; border-radius: 4px;
  transform: rotate(-9deg);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* Card body */
.card-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.card-make {
  font-size: .67rem; font-weight: 600; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: .18rem;
}
.card-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.12rem; font-weight: 700; line-height: 1.2;
  color: var(--ink); margin-bottom: .5rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: .3px;
}
.card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: .65rem;
}
.card-pills {
  display: flex; flex-wrap: wrap; gap: .3rem;
  margin-bottom: .9rem;
}
.pill {
  display: flex; align-items: center; gap: .28rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 6px;
  padding: .24rem .58rem; font-size: .7rem; font-weight: 500;
}
[data-theme="dark"] .pill { background: var(--surface-alt); }
.pill i { color: var(--ink-3); font-size: .67rem; }
.card-cta {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--r-sm);
  padding: .6rem; font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: .83rem;
  width: 100%; margin-top: auto;
  transition: opacity .18s, transform .18s, background .18s;
  text-decoration: none;
}
.card-cta:hover { opacity: .82; transform: translateY(-1px); color: var(--bg); }
.card-cta i { transition: transform .2s; font-size: .78rem; }
.card-cta:hover i { transform: translateX(3px); }
[data-theme="dark"] .card-cta { background: var(--ink); color: var(--bg); }

/* List view */
.cars-grid.list .car-card { flex-direction: row; }
.cars-grid.list .card-photo { width: 234px; height: 165px; flex-shrink: 0; }
.cars-grid.list .card-body  { padding: 1.1rem 1.3rem; }
@media (max-width: 580px) {
  .cars-grid.list .car-card { flex-direction: column; }
  .cars-grid.list .card-photo { width: 100%; height: 200px; }
}

/* Empty / loading states */
.state-wrap {
  grid-column: 1/-1;
  display: flex; flex-direction: column; align-items: center;
  padding: 5rem 0; gap: 1rem; color: var(--ink-3);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state-wrap i { font-size: 3rem; opacity: .3; }

/* Pagination */
.pager-wrap {
  grid-column: 1/-1; display: flex;
  justify-content: center; flex-wrap: wrap; gap: .35rem;
  margin-top: 2.2rem;
}
.pg-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: .83rem; font-weight: 500; padding: 0 .55rem;
  transition: all .18s;
}
.pg-btn:hover { border-color: var(--accent); color: var(--accent); }
.pg-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pg-meta { grid-column: 1/-1; text-align: center; color: var(--ink-3); font-size: .78rem; margin-top: .4rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CAR DETAIL PAGE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.detail-wrap {
  max-width: 1300px; margin: 0 auto;
  padding: 1.8rem 1.5rem 6rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--ink-3); margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb i { font-size: .6rem; }

/* Gallery */
.gallery-block { margin-bottom: 1.8rem; }
.gallery-main {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-alt); position: relative;
}
.gallery-main .swiper-slide img {
  width: 100%; height: 490px; object-fit: cover;
}
@media (max-width: 900px) { .gallery-main .swiper-slide img { height: 340px; } }
@media (max-width: 560px) { .gallery-main .swiper-slide img { height: 240px; } }

/* Swiper arrows */
.swiper-button-prev,
.swiper-button-next {
  background: rgba(0,0,0,.44) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 50% !important;
  width: 40px !important; height: 40px !important;
  backdrop-filter: blur(8px);
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: .8rem !important; color: #fff !important; font-weight: 800 !important;
}

/* Fullscreen trigger */
.fs-trigger {
  position: absolute; bottom: .9rem; right: .9rem; z-index: 10;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: var(--r-sm); padding: .44rem .72rem;
  font-size: .78rem; display: flex; align-items: center; gap: .38rem;
  transition: background .18s;
}
.fs-trigger:hover { background: rgba(0,0,0,.8); }

/* Thumb strip */
.gallery-thumbs { margin-top: .65rem; }
.gallery-thumbs .swiper-slide {
  border-radius: 8px; overflow: hidden; cursor: pointer;
  opacity: .5; transition: opacity .2s; border: 2px solid transparent;
}
.gallery-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--accent); }
.gallery-thumbs .swiper-slide img { height: 72px; width: 100%; object-fit: cover; }

/* â”€â”€ Fullscreen Lightbox â”€â”€ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lb-close {
  position: absolute; top: 1.1rem; right: 1.3rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #fff; border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all .18s; z-index: 10;
}
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-counter {
  position: absolute; top: 1.3rem; left: 1.5rem;
  color: rgba(255,255,255,.45); font-family: 'Barlow Condensed', sans-serif;
  font-size: .9rem; letter-spacing: .5px;
}
.lb-swiper { width: 100%; max-width: 1120px; padding: 0 3.5rem; }
.lb-swiper .swiper-slide img {
  width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--r);
}
.lb-thumbs { width: 100%; max-width: 540px; padding: 0 1rem; margin-top: .8rem; }
.lb-thumbs .swiper-slide {
  border-radius: 6px; overflow: hidden; cursor: pointer;
  opacity: .4; transition: opacity .2s; border: 2px solid transparent;
}
.lb-thumbs .swiper-slide-thumb-active { opacity: 1; border-color: var(--accent); }
.lb-thumbs .swiper-slide img { height: 54px; width: 100%; object-fit: cover; }

/* Detail layout */
.detail-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.2rem;
}
@media (max-width: 1050px) { .detail-body { grid-template-columns: 1fr; } }

/* Car identity */
.det-make {
  font-size: .7rem; font-weight: 700; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--accent); margin-bottom: .22rem;
}
.det-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  color: var(--ink); line-height: 1; letter-spacing: -.01em;
  text-transform: uppercase; margin-bottom: .55rem;
}
.det-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.det-badge {
  display: inline-flex; align-items: center; gap: .28rem;
  font-size: .7rem; font-weight: 700; padding: .24rem .7rem;
  border-radius: 100px;
}
.db-avail { background: rgba(22,163,74,.1); color: #16A34A; border: 1px solid rgba(22,163,74,.2); }
.db-sold  { background: rgba(220,38,38,.1); color: #DC2626; border: 1px solid rgba(220,38,38,.2); }
.db-feat  { background: rgba(234,179,8,.1); color: #B45309; border: 1px solid rgba(234,179,8,.22); }
[data-theme="dark"] .db-avail { color: #4ADE80; border-color: rgba(74,222,128,.25); }
[data-theme="dark"] .db-feat  { color: #FCD34D; border-color: rgba(252,211,77,.25); }
.det-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 900; color: var(--ink);
  letter-spacing: -.02em; line-height: 1; margin-bottom: 1.5rem;
}

/* Specs grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: .7rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 460px) { .specs-grid { grid-template-columns: 1fr; } }
.spec-tile {
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: .85rem;
  transition: border-color .2s;
}
.spec-tile:hover { border-color: rgba(255,59,31,.22); }
.spec-icon {
  width: 34px; height: 34px;
  background: var(--accent-soft); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: .88rem; flex-shrink: 0;
}
.spec-lbl { font-size: .66rem; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-3); }
.spec-val { font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: .1rem; }

/* Section heading */
.sec-head {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ink);
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .55rem;
}
.sec-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.det-desc { color: var(--ink-2); line-height: 1.78; font-size: .88rem; }

/* Feature chips */
.feat-chips { display: flex; flex-wrap: wrap; gap: .42rem; }
.feat-chip {
  display: flex; align-items: center; gap: .32rem;
  background: var(--surface);
  border: 1px solid rgba(22,163,74,.2); color: #16A34A;
  border-radius: 100px; padding: .3rem .85rem;
  font-size: .79rem; font-weight: 500;
  transition: transform .18s;
}
[data-theme="dark"] .feat-chip { color: #4ADE80; border-color: rgba(74,222,128,.2); background: var(--surface-alt); }
.feat-chip:hover { transform: translateY(-1px); }
.feat-chip i { font-size: .68rem; }

/* â”€â”€ Inquiry sidebar â”€â”€ */
.inquiry-col { position: sticky; top: 78px; }
.inq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.inq-header {
  background: linear-gradient(140deg, #111008, #1D190F);
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.inq-header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: .18rem;
}
.inq-header-sub { color: rgba(255,255,255,.38); font-size: .78rem; }
.inq-body { padding: 1.2rem 1.3rem; }
.btn-wa-big {
  display: flex; align-items: center; justify-content: center; gap: .52rem;
  background: #1DAE54; color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: .84rem; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .9rem; width: 100%;
  margin-bottom: .9rem;
  transition: background .18s, transform .18s, box-shadow .18s;
  text-decoration: none;
}
.btn-wa-big:hover {
  background: #18984A; color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(29,174,84,.32);
}
.form-or {
  display: flex; align-items: center; gap: .6rem;
  font-size: .72rem; color: var(--ink-3); margin-bottom: .9rem;
}
.form-or::before, .form-or::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.inq-field { margin-bottom: .62rem; }
.inq-field input, .inq-field textarea {
  width: 100%; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--ink); padding: .66rem .9rem;
  font-family: 'Outfit', sans-serif; font-size: .85rem;
  outline: none; resize: none;
  transition: border .18s, box-shadow .18s, background .18s;
}
.inq-field input:focus, .inq-field textarea:focus {
  border-color: rgba(255,59,31,.4);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.inq-field input::placeholder, .inq-field textarea::placeholder { color: var(--ink-3); }
.btn-send {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--r-sm);
  padding: .84rem; font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: .88rem; width: 100%;
  transition: opacity .18s, transform .18s;
}
.btn-send:hover { opacity: .8; transform: translateY(-1px); }
.inq-msg {
  display: none; border-radius: var(--r-sm);
  padding: .68rem .9rem; font-size: .83rem; margin-bottom: .68rem;
}
.inq-msg.show { display: block; }
.inq-msg.ok  { background: rgba(22,163,74,.1); color: #16A34A; border: 1px solid rgba(22,163,74,.2); }
.inq-msg.err { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-glow); }

/* Share */
.share-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: .88rem 1rem;
  margin-top: .85rem; text-align: center;
}
.share-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-3); margin-bottom: .6rem; }
.share-row { display: flex; justify-content: center; gap: .45rem; }
.sh-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-alt);
  color: var(--ink-2); display: flex; align-items: center; justify-content: center;
  font-size: .88rem; transition: all .18s;
}
.sh-btn:hover { transform: translateY(-2px); }
.sh-btn.wa:hover  { background: #1DAE54; border-color: #1DAE54; color: #fff; }
.sh-btn.fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.sh-btn.cp:hover  { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Related */
.related-block { margin-top: 4rem; }
.related-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--ink); margin-bottom: 1.2rem;
}
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(234px,1fr)); gap: 1rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-footer {
  background: #0B0A09;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 3rem 1.5rem 1.8rem;
}
.footer-grid {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img { height: 30px; margin-bottom: .9rem; }
.footer-tagline { color: rgba(255,255,255,.28); font-size: .82rem; line-height: 1.65; }
.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .9rem;
}
.footer-link {
  display: flex; align-items: center; gap: .45rem;
  color: rgba(255,255,255,.42); font-size: .82rem;
  margin-bottom: .45rem; transition: color .18s;
}
.footer-link:hover { color: rgba(255,255,255,.85); }
.footer-link i { font-size: .8rem; }
.footer-bottom {
  max-width: 1440px; margin: 2.2rem auto 0;
  padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}
.footer-copy { color: rgba(255,255,255,.2); font-size: .75rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
@media (max-width: 640px) {
  .cars-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
  .listings   { padding: 1.4rem 1rem 4rem; }
  .detail-wrap { padding: 1.2rem 1rem 5rem; }
  .filter-wrap  { padding: 1rem; }
}