/* ============================================================
   MOTOR CONNECT AFRICA — Main Stylesheet
   Fully responsive, Bootstrap 5 compatible
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --primary:       #e85e0d;
  --primary-dark:  #c44d09;
  --primary-light: #ff7730;
  --secondary:     #0f1f3d;
  --secondary-mid: #1a3060;
  --accent:        #f5a623;
  --surface:       #f7f8fa;
  --surface-2:     #eef0f4;
  --white:         #ffffff;
  --text:          #1a1f2e;
  --text-muted:    #6b7385;
  --text-light:    #9aa0b0;
  --border:        #e2e5ed;
  --border-light:  #f0f2f6;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.15);
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --topbar-h: 36px;
  --nav-h:    72px;
  --total-nav: calc(var(--topbar-h) + var(--nav-h));
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---- Layout ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section-gap    { padding: 72px 0; }
.section-gap-sm { padding: 48px 0; }

/* ---- Typography helpers ---- */
.section-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 10px; }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3.5vw, 34px); font-weight: 800; color: var(--secondary); line-height: 1.15; margin-bottom: 12px; }
.section-title span { color: var(--primary); }
.section-subtitle { font-size: 15px; color: var(--text-muted); max-width: 520px; }

/* ---- Badges ---- */
.badge-new      { background: #10b981; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; letter-spacing: .4px; white-space: nowrap; }
.badge-used     { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.badge-featured { background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 600; font-size: 14px; border-radius: var(--radius); cursor: pointer; transition: all var(--transition); border: 2px solid transparent; padding: 10px 20px; line-height: 1; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,94,13,.35); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--secondary); border-color: var(--white); }
.btn-white:hover { background: var(--surface); color: var(--secondary); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.w-100 { width: 100%; justify-content: center; }

/* ---- Shortcut tags ---- */
.shortcut-tag { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 20px; background: var(--surface-2); color: var(--text-muted); cursor: pointer; transition: all var(--transition); display: inline-block; }
.shortcut-tag:hover { background: var(--primary); color: white; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 5px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius); border: 1.5px solid var(--border); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-muted); transition: all var(--transition); font-family: var(--font-body); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.page-gap { color: var(--text-muted); padding: 0 3px; user-select: none; }

/* ============================================================
   NAVBAR  — fully custom, no Bootstrap .navbar conflict
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* Top bar */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,.7);
  font-size: 12px;
  height: var(--topbar-h);
  display: flex; align-items: center;
}
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-bar a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.top-bar a:hover { color: var(--white); }
.top-bar-left,
.top-bar-right { display: flex; align-items: center; gap: 18px; }
.top-bar-left a,
.top-bar-right a { display: flex; align-items: center; gap: 5px; white-space: nowrap; }

/* Main nav bar */
.main-nav {
  height: var(--nav-h);
  display: flex; align-items: center;
  border-top: 1px solid var(--border-light);
}
.main-nav .container {
  display: flex; align-items: center; gap: 0;
  height: 100%; width: 100%;
}

/* Logo */
.nav-logo { flex-shrink: 0; margin-right: 28px; }
.nav-logo a { display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; display: block; }

/* Nav links list */
.nav-links {
  display: flex; align-items: center;
  gap: 0; flex: 1;
  height: 100%;
  margin: 0; padding: 0; list-style: none;
}

.nav-item-wrap { position: relative; height: 100%; display: flex; align-items: center; }

.nav-link-item {
  display: flex; align-items: center; gap: 5px;
  font-weight: 500; font-size: 14px; color: var(--text);
  padding: 0 14px; height: 100%;
  white-space: nowrap; cursor: pointer;
  transition: color var(--transition);
  border: none; background: none; font-family: var(--font-body);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.nav-link-item:hover,
.nav-link-item.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-link-item .chev { font-size: 10px; transition: transform var(--transition); margin-top: 1px; }
.nav-item-wrap:hover .chev { transform: rotate(180deg); }
.nav-link-item:hover { color: var(--primary); }

/* Dropdowns */
.nav-drop {
  position: absolute; top: 100%; left: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 500;
}
.nav-item-wrap:hover .nav-drop {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.nav-drop a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px; font-size: 13.5px; color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.nav-drop a:last-child { border-bottom: none; }
.nav-drop a:hover { background: var(--surface); color: var(--primary); }
.nav-drop a i { width: 16px; color: var(--primary); }

/* Mega dropdown */
.nav-mega {
  position: absolute; top: 100%; left: -60px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 580px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: all var(--transition);
  z-index: 500;
  padding: 20px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 6px;
}
.nav-item-wrap:hover .nav-mega {
  opacity: 1; pointer-events: all; transform: translateY(0);
}
.mega-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13.5px; color: var(--text);
  transition: background var(--transition);
}
.mega-item:hover { background: var(--surface); color: var(--primary); }
.mega-item i { color: var(--primary); font-size: 15px; width: 18px; }

/* Nav actions (right side) */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text); transition: all var(--transition);
  font-size: 15px; flex-shrink: 0;
}
.nav-icon-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(232,94,13,.06); }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px; color: var(--text); font-size: 24px;
  flex-shrink: 0; line-height: 1;
}

/* ---- Mobile drawer ---- */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--total-nav); left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 1040;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding: 0 0 40px;
}
.mobile-drawer.open { transform: translateX(0); }

.mob-nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}
.mob-nav-link:hover { color: var(--primary); background: var(--surface); }
.mob-nav-link i { font-size: 12px; color: var(--text-light); }

.mob-sub { display: none; background: var(--surface); }
.mob-sub.open { display: block; }
.mob-sub a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 36px;
  font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.mob-sub a i { color: var(--primary); }
.mob-sub a:hover { color: var(--primary); background: rgba(232,94,13,.04); }

.mob-actions { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* Page offset for fixed header */
.page-top { padding-top: var(--total-nav); }

/* ============================================================
   HERO / SEARCH
   ============================================================ */
.hero {
  position: relative;
  min-height: 540px;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 60%, #0d2137 100%);
}
.hero-bg { position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1494976388531-d1058494cdd8?w=1600&q=80') center/cover no-repeat; opacity: .18; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,22,40,.93) 40%, rgba(10,22,40,.5)); }
.hero-content { position: relative; z-index: 2; padding: 56px 0 64px; width: 100%; }

.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--primary); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.hero-eyebrow::after { content:''; flex:1; height:1px; background:rgba(255,255,255,.15); max-width:50px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(32px, 5.5vw, 54px); font-weight: 800; color: var(--white); line-height: 1.08; margin-bottom: 16px; }
.hero h1 span { color: var(--primary); }
.hero-lead { font-size: 15px; color: rgba(255,255,255,.68); line-height: 1.7; max-width: 480px; }

/* Search card */
.search-card { background: var(--white); border-radius: var(--radius-xl); padding: 26px 26px 22px; box-shadow: var(--shadow-xl); max-width: 780px; margin-top: 32px; }
.search-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.search-tab { font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: 30px; border: 2px solid var(--border); background: transparent; cursor: pointer; color: var(--text-muted); transition: all var(--transition); white-space: nowrap; }
.search-tab.active { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.search-tab:hover:not(.active) { border-color: var(--secondary); color: var(--secondary); }

.search-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.field-select, .field-input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--surface); outline: none; transition: border-color var(--transition); -webkit-appearance: none; appearance: none; }
.field-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7385' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field-select:focus, .field-input:focus { border-color: var(--primary); background: var(--white); }

.search-btn { height: 46px; padding: 0 24px; font-size: 14px; border-radius: var(--radius); white-space: nowrap; border: none; background: var(--primary); color: var(--white); font-family: var(--font-body); font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all var(--transition); }
.search-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,94,13,.4); }

.search-shortcuts { display: flex; align-items: center; gap: 7px; margin-top: 14px; flex-wrap: wrap; }
.search-shortcut-label { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }

.hero-stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat .lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }

/* ============================================================
   SECTION HEADERS (listings header)
   ============================================================ */
.listings-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; gap: 16px; flex-wrap: wrap; }
.listings-filter-tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.filter-tab { font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: 30px; border: 1.5px solid var(--border); background: transparent; cursor: pointer; color: var(--text-muted); font-family: var(--font-body); transition: all var(--transition); white-space: nowrap; }
.filter-tab.active { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.filter-tab:hover:not(.active) { border-color: var(--secondary); color: var(--secondary); }

/* ============================================================
   VEHICLE CARDS
   ============================================================ */
.vehicles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.vehicle-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; position: relative; }
.vehicle-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.vehicle-img-wrap { position: relative; height: 178px; overflow: hidden; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3ad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l1.5-5.5A2 2 0 0 1 6.4 3h11.2a2 2 0 0 1 1.9 1.5L21 10'/%3E%3Crect x='3' y='10' width='18' height='8' rx='1.5'/%3E%3Ccircle cx='7.5' cy='18' r='1.6'/%3E%3Ccircle cx='16.5' cy='18' r='1.6'/%3E%3C/svg%3E") center / 44px no-repeat, var(--surface-2); }
.vehicle-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vehicle-card:hover .vehicle-img-wrap img { transform: scale(1.05); }

.vehicle-badges { position: absolute; top: 9px; left: 9px; display: flex; gap: 4px; flex-wrap: wrap; }
.vehicle-fav { position: absolute; top: 9px; right: 9px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 13px; transition: all var(--transition); }
.vehicle-fav:hover { color: #e74c3c; }
.vehicle-fav.active { color: #e74c3c; }

.vehicle-body { padding: 13px 15px 15px; }
.vehicle-make { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 3px; }
.vehicle-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--secondary); margin-bottom: 9px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vehicle-price { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: var(--secondary); margin-bottom: 9px; }
.vehicle-price small { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.vehicle-specs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 11px; }
.spec-tag { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted); background: var(--surface); padding: 3px 8px; border-radius: 20px; }
.spec-tag i { font-size: 10px; color: var(--text-light); }
.vehicle-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--border-light); }
.vehicle-dealer { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; overflow: hidden; }
.vehicle-dealer i { color: var(--primary); flex-shrink: 0; }
.vehicle-action { font-size: 12px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 3px; white-space: nowrap; }

/* ============================================================
   DEALERS GRID
   ============================================================ */
.dealers-section { background: var(--surface); }
.dealers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.dealer-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; text-align: center; transition: all var(--transition); cursor: pointer; }
.dealer-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dealer-avatar-placeholder { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; font-weight: 700; font-family: var(--font-display); overflow: hidden; }
.dealer-image-fill { width: 100%; height: 100%; object-fit: cover; display: block; }
.dealer-image-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.dealer-image-fallback[hidden] { display: none; }
.dealer-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.dealer-location { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 3px; margin-bottom: 10px; }
.dealer-stats { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.dealer-stat { font-size: 11px; color: var(--text-muted); text-align: center; }
.dealer-stat strong { display: block; font-family: var(--font-display); font-size: 15px; color: var(--secondary); font-weight: 700; }
.dealer-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: #e8f5e9; color: #2e7d32; padding: 3px 10px; border-radius: 20px; font-weight: 600; }

/* ============================================================
   MODELS GRID
   ============================================================ */
.models-section { background: var(--white); }
.models-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.model-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 18px 12px 14px; text-align: center; cursor: pointer; transition: all var(--transition); display: block; }
.model-card:hover { border-color: var(--primary); background: rgba(232,94,13,.04); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.model-img-placeholder { height: 64px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 8px; }
.model-name { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--secondary); margin-bottom: 3px; }
.model-count { font-size: 11px; color: var(--text-muted); }

/* ---- /models — Browse by model page ---- */
.models-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.models-aside { position: sticky; top: calc(var(--nav-h) + 34px + 20px); height: fit-content; }

/* A–Z make filter */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.alpha-btn { min-width: 36px; height: 36px; padding: 0 13px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--white); color: var(--text-muted); font-family: var(--font-display); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.alpha-btn:hover { border-color: var(--primary); color: var(--primary); }
.alpha-btn.active { background: var(--secondary); border-color: var(--secondary); color: var(--white); }

/* Make sections */
.make-section { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.make-header { display: flex; align-items: center; gap: 13px; padding-bottom: 15px; margin-bottom: 16px; border-bottom: 1.5px solid var(--border); }
.make-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--surface); border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--secondary); }
.make-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--secondary); line-height: 1.2; }
.make-count { font-size: 12px; color: var(--text-muted); }

/* Dense model cards */
.model-grid-dense { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.model-card-dense { display: block; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 14px 13px; transition: all var(--transition); }
.model-card-dense:hover { border-color: var(--primary); background: rgba(232,94,13,.04); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.model-card-dense .emoji { display: block; font-size: 22px; line-height: 1; margin-bottom: 9px; }
.model-card-dense .name { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--secondary); line-height: 1.3; margin-bottom: 4px; }
.model-card-dense .count { font-size: 11px; color: var(--text-muted); }

/* Sidebar price guide */
.price-guide-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.price-guide-card:last-of-type { border-bottom: none; padding-bottom: 0; }
.price-guide-card .model-n { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.price-guide-card .listings-c { font-size: 11px; color: var(--text-muted); }
/* The bare .price-range rule (listing filters) is a two-column input grid —
   scoped here so the price text in these cards isn't turned into an empty
   grid. Higher specificity wins regardless of source order. */
.price-guide-card .price-range { display: block; font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--secondary); white-space: nowrap; }

/* ============================================================
   REQUEST / SAVE TIME SECTION
   ============================================================ */
.request-section { background: var(--secondary); overflow: hidden; position: relative; }
.request-section::before { content:''; position:absolute; top:-80px; right:-80px; width:380px; height:380px; border-radius:50%; background:rgba(232,94,13,.07); pointer-events:none; }
.request-section::after { content:''; position:absolute; bottom:-60px; left:10%; width:240px; height:240px; border-radius:50%; background:rgba(255,255,255,.03); pointer-events:none; }
.request-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 2; }
.request-text .section-label { color: rgba(255,255,255,.45); }
.request-text .section-title { color: var(--white); }
.request-text .section-subtitle { color: rgba(255,255,255,.6); }
.request-steps { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.request-step { display: flex; align-items: flex-start; gap: 12px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.step-content h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.step-content p { font-size: 13px; color: rgba(255,255,255,.5); }
.request-visual { background: rgba(255,255,255,.05); border-radius: var(--radius-xl); padding: 28px; border: 1px solid rgba(255,255,255,.08); }
.rfp-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 7px; display: block; }
.rfp-field { width: 100%; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 11px 14px; color: var(--white); font-family: var(--font-body); font-size: 14px; margin-bottom: 10px; outline: none; transition: border-color var(--transition); -webkit-appearance:none; appearance:none; }
.rfp-field:focus { border-color: var(--primary); }
.rfp-field::placeholder { color: rgba(255,255,255,.28); }
.rfp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
option { color: #000; }

/* ============================================================
   SELL SECTION
   ============================================================ */
.sell-section { background: linear-gradient(135deg,#fff8f5 0%,#fff 60%); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; }
.sell-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sell-img { border-radius: var(--radius-xl); overflow: hidden; height: 360px; position: relative; }
.sell-img img { width: 100%; height: 100%; object-fit: cover; }
.sell-floater { position: absolute; bottom: 18px; left: 18px; background: var(--white); border-radius: var(--radius-lg); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.sf-icon { width: 40px; height: 40px; border-radius: var(--radius); background: rgba(232,94,13,.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 18px; }
.sf-text h5 { font-size: 13px; font-weight: 700; color: var(--secondary); }
.sf-text p { font-size: 11px; color: var(--text-muted); }
.sell-features { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.sell-feature { display: flex; align-items: center; gap: 10px; }
.sf-check { width: 22px; height: 22px; border-radius: 50%; background: rgba(232,94,13,.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.sell-feature p { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   ARTICLES
   ============================================================ */
.articles-section { background: var(--surface); }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1.5px solid var(--border); transition: all var(--transition); }
.article-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-3px); }
.article-img { height: 195px; overflow: hidden; background: var(--surface-2); }
.article-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-img img { transform: scale(1.05); }
.article-body { padding: 18px; }
.article-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 7px; display: block; }
.article-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--secondary); line-height: 1.4; margin-bottom: 9px; }
.article-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 13px; }
.article-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-light); flex-wrap: wrap; gap: 6px; }
.article-author { display: flex; align-items: center; gap: 5px; }
.author-ava { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; flex-shrink: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.7); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 18px; max-width: 250px; }
.footer-socials { display: flex; gap: 7px; }
.social-btn { width: 34px; height: 34px; border-radius: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: all var(--transition); cursor: pointer; }
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-col h5 { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.38); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-app { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.app-badge { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; transition: all var(--transition); }
.app-badge:hover { background: rgba(255,255,255,.14); }
.app-badge i { font-size: 18px; color: white; }
.app-badge-text { font-size: 10px; color: rgba(255,255,255,.45); line-height: 1.2; }
.app-badge-text strong { display: block; font-size: 12px; color: white; }
.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.35); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.35); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,.75); }

/* ============================================================
   LISTING PAGE
   ============================================================ */
.listing-breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.listing-breadcrumb a { color: var(--text-muted); }
.listing-breadcrumb a:hover { color: var(--primary); }
.listing-breadcrumb .sep { color: var(--border); }
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 28px 0 60px; }

/* Filter sidebar */
.filter-sidebar { position: sticky; top: calc(var(--total-nav) + 16px); height: fit-content; max-height: calc(100vh - var(--total-nav) - 32px); overflow-y: auto; }
.filter-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.filter-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.filter-card-header h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--secondary); }
.filter-clear { font-size: 12px; color: var(--primary); font-weight: 600; cursor: pointer; background: none; border: none; }
.filter-group { padding: 14px 18px; border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-group-title { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.filter-group-title i { font-size: 10px; }
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); cursor: pointer; }
.filter-check input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; cursor: pointer; flex-shrink: 0; }
.filter-check span { flex: 1; }
.filter-check .count { font-size: 11px; color: var(--text-light); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-input { width: 100%; height: 38px; padding: 0 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: var(--font-body); outline: none; -webkit-appearance:none; appearance:none; }
.range-input:focus { border-color: var(--primary); }

/* Results bar */
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 14px; flex-wrap: wrap; }
.results-count { font-size: 13px; color: var(--text-muted); }
.results-count strong { color: var(--secondary); font-weight: 700; }
.results-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sort-select { height: 36px; padding: 0 30px 0 10px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 13px; font-family: var(--font-body); background: var(--white); outline: none; -webkit-appearance:none; appearance:none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7385' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.view-toggle { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.view-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; cursor: pointer; color: var(--text-muted); transition: all var(--transition); font-size: 13px; }
.view-btn.active { background: var(--secondary); color: white; }

.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Mobile filter toggle */
.mobile-filter-btn { display: none; }

/* ============================================================
   VEHICLE DETAIL
   ============================================================ */
/* isolation keeps the blurred backdrop (z-index:-1) above this gallery's own
   opaque background; without it the backdrop paints underneath and is hidden. */
.detail-gallery { position: relative; isolation: isolate; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.3' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l1.5-5.5A2 2 0 0 1 6.4 3h11.2a2 2 0 0 1 1.9 1.5L21 10'/%3E%3Crect x='3' y='10' width='18' height='8' rx='1.5'/%3E%3Ccircle cx='7.5' cy='18' r='1.6'/%3E%3Ccircle cx='16.5' cy='18' r='1.6'/%3E%3C/svg%3E") center / 72px no-repeat, var(--secondary); overflow: hidden; }
/* The box follows the photo's own aspect ratio: nothing is cropped, and there is
   no empty band above/below for the counter to float in. max-height only clamps
   unusually tall photos, and object-fit: contain keeps those undistorted. */
.main-gallery-img { width: 100%; height: auto; max-height: 620px; object-fit: contain; display: block; margin: 0 auto; }
/* A soft, blurred copy of the photo sitting behind it, so the space beside a
   centred photo is filled with that same photo instead of flat colour. The
   background is set by main.js to follow whichever photo is on screen. */
.gallery-backdrop { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: 0; filter: blur(26px) saturate(1.15); transform: scale(1.12); transition: opacity .3s ease; pointer-events: none; }
.gallery-backdrop.is-ready { opacity: .42; }
.gallery-thumbs { display: flex; gap: 7px; padding: 10px 12px; background: rgba(0,0,0,.45); backdrop-filter: blur(10px); position: absolute; bottom: 0; left: 0; right: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
.gallery-thumbs::-webkit-scrollbar { display: none; }
.thumb { width: 76px; height: 52px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; cursor: pointer; scroll-snap-align: center; transition: border-color var(--transition); }
.thumb.active { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Edge fades over the thumb strip: shown only on the side that still has
   photos (toggled in main.js), so it is a scroll hint and never a dead end. */
.detail-gallery { --thumbs-h: 72px; }
.detail-gallery::before,
.detail-gallery::after { content: ""; position: absolute; bottom: 0; height: var(--thumbs-h); width: 46px; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.detail-gallery::before { left: 0; background: linear-gradient(to right, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.detail-gallery::after  { right: 0; background: linear-gradient(to left, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.detail-gallery.more-left::before,
.detail-gallery.more-right::after { opacity: 1; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; padding: 28px 0 60px; }
.detail-main { }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-make { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 5px; }
.detail-title { font-family: var(--font-display); font-size: clamp(20px,3vw,28px); font-weight: 800; color: var(--secondary); line-height: 1.15; }
.detail-price { font-family: var(--font-display); font-size: clamp(22px,3vw,30px); font-weight: 800; color: var(--secondary); }
.detail-price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.detail-specs-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.detail-spec { display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 9px 14px; border-radius: var(--radius); font-size: 13px; color: var(--text-muted); }
.detail-spec i { color: var(--primary); font-size: 14px; }
.detail-spec strong { font-weight: 600; color: var(--secondary); }
.detail-section-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--secondary); margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1.5px solid var(--border-light); }
.detail-desc { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin-bottom: 26px; }
.features-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 26px; }
.feature-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.feature-item i { color: #10b981; font-size: 11px; flex-shrink: 0; }
.contact-sidebar { position: sticky; top: calc(var(--total-nav) + 16px); height: fit-content; }
.contact-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.contact-card-header { background: var(--secondary); padding: 18px 20px; }
.contact-price { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: white; }
.contact-price-mo { font-size: 12px; color: rgba(255,255,255,.5); }
.contact-card-body { padding: 18px; }
.contact-form-field { width: 100%; height: 42px; padding: 0 13px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; margin-bottom: 9px; outline: none; display: block; }
.contact-form-field:focus { border-color: var(--primary); }
.contact-textarea { height: 86px; padding: 10px 13px; resize: vertical; }
.contact-card-dealer { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-top: 1px solid var(--border); }
.ccd-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.ccd-info h5 { font-size: 13px; font-weight: 700; color: var(--secondary); }
.ccd-info p { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   DEALER HERO
   ============================================================ */
.dealer-hero { background: linear-gradient(135deg,var(--secondary) 0%,var(--secondary-mid) 100%); padding-top: calc(var(--total-nav) + 32px); padding-bottom: 36px; }
.dealer-hero-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dealer-hero-logo { width: 84px; height: 84px; border-radius: var(--radius-lg); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; font-family: var(--font-display); color: var(--primary); flex-shrink: 0; overflow: hidden; }
.dealer-hero-info h1 { font-family: var(--font-display); font-size: clamp(22px,4vw,30px); font-weight: 800; color: white; margin-bottom: 5px; }
.dealer-hero-meta { display: flex; gap: 16px; font-size: 13px; color: rgba(255,255,255,.6); flex-wrap: wrap; }
.dealer-hero-meta span { display: flex; align-items: center; gap: 4px; }
.dealer-stats-bar { display: flex; gap: 0; background: rgba(255,255,255,.06); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.1); margin-top: 26px; flex-wrap: wrap; }
.dealer-stat-item { flex: 1; min-width: 120px; padding: 16px 18px; border-right: 1px solid rgba(255,255,255,.08); text-align: center; }
.dealer-stat-item:last-child { border-right: none; }
.dealer-stat-item .val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: white; }
.dealer-stat-item .lbl { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* ============================================================
   SELL PAGE
   ============================================================ */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 36px; overflow-x: auto; padding-bottom: 4px; }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; min-width: 60px; }
.step-circle { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--text-muted); position: relative; z-index: 1; transition: all var(--transition); }
.step-circle.active { background: var(--primary); border-color: var(--primary); color: white; }
.step-circle.done { background: #10b981; border-color: #10b981; color: white; }
.step-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-align: center; white-space: nowrap; }
.step-label.active { color: var(--primary); }
.step-line { flex: 1; height: 2px; background: var(--border); margin-top: -21px; min-width: 20px; }
.step-line.done { background: #10b981; }
.form-section { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; }
.form-section-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.form-section-title i { color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.form-control-cc { width: 100%; height: 44px; padding: 0 13px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--white); outline: none; transition: border-color var(--transition); -webkit-appearance:none; appearance:none; display: block; }
.form-control-cc:focus { border-color: var(--primary); }
.form-control-cc.textarea { height: 108px; padding: 11px 13px; resize: vertical; }
select.form-control-cc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7385' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.photo-upload-zone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 36px 18px; text-align: center; cursor: pointer; transition: all var(--transition); background: var(--surface); }
.photo-upload-zone:hover { border-color: var(--primary); background: rgba(232,94,13,.03); }
.photo-upload-zone i { font-size: 38px; color: var(--text-light); margin-bottom: 11px; display: block; }
.photo-upload-zone p { font-size: 14px; color: var(--text-muted); margin-bottom: 3px; }
.photo-upload-zone small { font-size: 12px; color: var(--text-light); }
.package-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 22px 18px; cursor: pointer; transition: all var(--transition); text-align: center; }
.package-card.selected { border-color: var(--primary); background: rgba(232,94,13,.04); }
.package-card:hover:not(.selected) { border-color: var(--secondary); }
.package-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 9px; }
.package-price { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--secondary); margin-bottom: 3px; }
.package-name { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.package-features { text-align: left; display: flex; flex-direction: column; gap: 7px; }
.package-feature { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); }
.package-feature i { color: #10b981; font-size: 11px; flex-shrink: 0; }
.tip-box { background: rgba(232,94,13,.06); border: 1.5px solid rgba(232,94,13,.15); border-radius: var(--radius); padding: 11px 14px; display: flex; gap: 9px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.tip-box i { color: var(--primary); flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   PROFILE PAGE (client)
   ============================================================ */
/* Google profile picture: fills whatever avatar box it sits in */
.userpic-fill { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.nav-userpic { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; display: inline-block; vertical-align: -4px; }
.profile-main { padding: 40px 0 80px; background: var(--surface); }
.profile-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.profile-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.profile-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.profile-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.profile-aside { position: sticky; top: calc(var(--nav-h) + 34px + 20px); }
.profile-hero-actions { display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   WHATSAPP SUPPORT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1030;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 29px;
  box-shadow: 0 8px 24px rgba(37,211,102,.38);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1da851;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,.5);
}
.whatsapp-float:focus-visible { outline: 3px solid rgba(37,211,102,.35); outline-offset: 3px; }
.whatsapp-float::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity var(--transition), transform var(--transition);
}
.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before { opacity: 1; transform: translateX(0); }

/* ============================================================
   RESPONSIVE — Tablet (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .vehicles-grid    { grid-template-columns: repeat(3, 1fr); }
  .models-grid      { grid-template-columns: repeat(4, 1fr); }
  .dealers-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .listing-layout   { grid-template-columns: 260px 1fr; }
  .listing-grid     { grid-template-columns: repeat(2, 1fr); }
  .nav-mega         { width: 480px; left: -40px; }
}

/* ============================================================
   RESPONSIVE — Small tablet (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  :root { --nav-h: 64px; }

  /* Hide desktop nav, show hamburger */
  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; align-items: center; }
  .mobile-drawer    { display: block; }
  .nav-icon-btn     { display: none; }

  /* Grids */
  .vehicles-grid    { grid-template-columns: repeat(2, 1fr); }
  .dealers-grid     { grid-template-columns: repeat(2, 1fr); }
  .models-grid      { grid-template-columns: repeat(3, 1fr); }
  .articles-grid    { grid-template-columns: repeat(2, 1fr); }
  .request-inner    { grid-template-columns: 1fr; gap: 36px; }
  .sell-inner       { grid-template-columns: 1fr; }
  .detail-layout    { grid-template-columns: 1fr; }
  .contact-sidebar  { position: static; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Listing */
  .listing-layout   { grid-template-columns: 1fr; }
  .filter-sidebar   { position: static; max-height: none; }
  .mobile-filter-btn { display: flex; }
  .listing-grid     { grid-template-columns: repeat(2, 1fr); }

  /* Search */
  .search-fields    { grid-template-columns: 1fr 1fr; }
  .search-fields .search-btn { grid-column: 1/-1; width: 100%; justify-content: center; height: 46px; }

  /* Dealer hero */
  .dealer-hero-inner { flex-direction: column; align-items: flex-start; }

  /* Detail */
  .features-list    { grid-template-columns: 1fr 1fr; }
  .main-gallery-img { max-height: 460px; }

  /* Profile page */
  .profile-layout   { grid-template-columns: 1fr; }
  .profile-aside    { position: static; }

  /* Models page */
  .models-layout    { grid-template-columns: 1fr; }
  .models-aside     { position: static; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --topbar-h: 0px; --nav-h: 60px; }

  /* Hide top bar on small screens */
  .top-bar          { display: none; }

  .container        { padding: 0 14px; }
  .section-gap      { padding: 48px 0; }
  .section-gap-sm   { padding: 36px 0; }

  /* Nav */
  .nav-logo img     { height: 42px; }
  .nav-actions .btn { display: none; }

  /* Hero */
  .hero             { min-height: auto; }
  .hero-content     { padding: 36px 0 44px; }
  .hero-stats       { gap: 20px; }
  .search-card      { padding: 18px 16px; border-radius: var(--radius-lg); margin-top: 22px; }
  .search-fields    { grid-template-columns: 1fr; }
  .search-fields .search-btn { grid-column: 1; }
  .search-tabs      { gap: 5px; }
  .search-tab       { font-size: 12px; padding: 5px 12px; }

  /* Grids */
  .vehicles-grid    { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dealers-grid     { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .models-grid      { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .articles-grid    { grid-template-columns: 1fr; }
  .listing-grid     { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .features-list    { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; gap: 28px; }

  /* Vehicle card */
  .vehicle-img-wrap { height: 150px; }
  .vehicle-body     { padding: 10px 12px 12px; }
  .vehicle-name     { font-size: 13px; }
  .vehicle-price    { font-size: 15px; }

  /* Listings header */
  .listings-header  { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Request */
  .rfp-row          { grid-template-columns: 1fr; }

  /* Gallery */
  .main-gallery-img { max-height: 360px; }
  .gallery-backdrop { filter: blur(18px) saturate(1.1); }
  .gallery-thumbs   { padding: 8px 10px; gap: 5px; }
  .thumb            { width: 60px; height: 42px; }
  .detail-gallery   { --thumbs-h: 58px; }

  /* Detail */
  .detail-header    { flex-direction: column; }
  .detail-specs-row { gap: 7px; }
  .detail-spec      { font-size: 12px; padding: 7px 10px; }

  /* WhatsApp support */
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 26px; }
  .whatsapp-float::before { display: none; }

  /* Sell form */
  .form-row         { grid-template-columns: 1fr; }
  .step-indicator   { gap: 0; }
  .step-label       { font-size: 9px; }

  /* Dealer hero */
  .dealer-stats-bar { flex-direction: column; }
  .dealer-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }

  /* Footer */
  .footer-bottom    { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }

  /* Packages */
  .package-grid-3   { grid-template-columns: 1fr !important; }

  /* Profile page */
  .profile-main        { padding: 24px 0 56px; }
  .profile-card        { padding: 18px 16px; }
  .profile-form-row    { grid-template-columns: 1fr; }
  .profile-details-grid { grid-template-columns: 1fr; }
  .profile-hero-actions .btn { width: 100%; justify-content: center; }

  /* Models page */
  .make-section     { padding: 16px 14px; margin-bottom: 16px; }
  .make-header      { flex-wrap: wrap; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; }
  .model-grid-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .model-card-dense { padding: 12px 11px; }
  .alpha-nav        { gap: 6px; margin-bottom: 18px; }
  .alpha-btn        { min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px; }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-center  { text-align: center; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-0  { margin-bottom: 0 !important; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.flex-wrap     { flex-wrap: wrap; }

/* ============================================================
   LOGO — Motor Connect Africa  (circular PNG on white navbar)
   ============================================================ */

/* The logo is a circular design on white background.
   We display it at a controlled size and let the circular
   shape blend seamlessly with the white navbar. */
.nav-logo img {
  height: 54px;
  width: 54px;
  object-fit: contain;
  border-radius: 50%;          /* enforce circle clip */
  display: block;
  /* subtle lift so it feels "placed" not dropped */
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.12));
  transition: transform var(--transition);
}
.nav-logo a:hover img { transform: scale(1.04); }

/* On mobile, slightly smaller */
@media (max-width: 640px) {
  .nav-logo img { height: 44px; width: 44px; }
}

/* Footer logo — larger, sits on dark bg so we show the full circle */
.footer-logo img {
  height: 72px;
  width: 72px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 14px;
  /* White circle blends with the orange/navy brand color by adding a light ring */
  box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

/* Dealer hero logo (uses img) */
.dealer-hero-logo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: transparent;
}

/* Navbar height compensation so logo never clips */
.main-nav { height: var(--nav-h); align-items: center; }
