
/* ============================================================
   ANANSI — VEHICLES PAGE
   Shares the :root palette with index.html
   ============================================================ */
:root {
  --paper: #f5efe0;          /* warm bone — same on mobile & desktop */
  --paper-2: #ede4cf;        /* secondary bg */
  --paper-3: #e0d4b5;        /* deeper */
  --ink: #0e0e10;
  --ink-2: #1f1f23;
  --adire: #1a2b5c;
  --kente: #d97b29;
  --terra: #b8421e;
  --ochre: #c89a3a;
  --ochre-bright: #f0b75e;
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--adire); color: var(--paper); }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   RIPPLE
   ============================================================ */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple-anim 0.6s var(--ease-out) forwards;
  pointer-events: none;
  z-index: 1;
}
.btn > *, .btn-primary > *, .btn-magnetic > * { position: relative; z-index: 2; }
@keyframes ripple-anim { to { transform: scale(1); opacity: 0; } }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--paper-3); }
::-webkit-scrollbar-thumb:hover { background: var(--adire); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 { font-family: 'Unbounded', sans-serif; font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; color: var(--ink); }
.serif { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   NAV (compact for inner page)
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(243, 236, 225, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.nav.scrolled { border-bottom-color: rgba(14, 14, 16, 0.08); padding: 10px 32px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; }
.logo-text { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.04em; }
.logo-text .dot { color: var(--terra); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  position: relative; padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--adire); }
.nav-links a.active { color: var(--adire); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px;
  background: var(--adire);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .btn-primary, .btn-magnetic {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); border-radius: 100px;
  background: transparent; color: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-magnetic { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--paper); color: var(--ink); border-color: var(--adire); }
.btn-magnetic:hover { background: var(--terra); color: var(--paper); }

/* ============================================================
   PAGE HERO (vehicles)
   ============================================================ */
.v-hero {
  padding: 130px 32px 50px;
  max-width: 1440px; margin: 0 auto;
}
.v-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2); opacity: 0.6;
  margin-bottom: 24px; font-weight: 600;
}
.v-breadcrumb a { color: var(--adire); text-decoration: none; }
.v-breadcrumb a:hover { text-decoration: underline; }
.v-title {
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.85; margin-bottom: 16px;
}
.v-title .stroke { -webkit-text-stroke: 2px var(--ink); color: transparent; }
.v-title .accent { color: var(--adire); }
.v-subtitle {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2);
  max-width: 640px; margin-bottom: 28px;
}
.v-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid rgba(14, 14, 16, 0.1);
}
.v-stat { display: flex; flex-direction: column; gap: 2px; }
.v-stat-num { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 28px; color: var(--adire); }
.v-stat-lbl { font-size: 12px; color: var(--ink-2); opacity: 0.7; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }

/* ============================================================
   SEARCH + FILTERS BAR
   ============================================================ */
.filters {
  max-width: 1440px; margin: 32px auto 0;
  padding: 0 32px;
}
.filters-bar {
  background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: 16px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px;
  align-items: center;
  box-shadow: 8px 8px 0 var(--kente);
}
.f-input, .f-select {
  background: rgba(243, 236, 225, 0.08);
  border: 1px solid rgba(243, 236, 225, 0.15);
  color: var(--paper); padding: 12px 16px;
  border-radius: 12px; font-family: 'Manrope', sans-serif;
  font-weight: 600; font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.f-input::placeholder { color: rgba(243, 236, 225, 0.4); }
.f-input:focus, .f-select:focus { border-color: var(--kente); }
.f-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f3ece1' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.f-select option { background: var(--ink); color: var(--paper); }
.f-submit {
  background: var(--kente); color: var(--ink);
  border: none; padding: 12px 24px;
  border-radius: 12px; font-weight: 800; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s var(--ease-out);
}
.f-submit:hover { transform: translateY(-2px); }

/* Quick filter chips */
.chips {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 16px;
}
.chip {
  padding: 8px 16px; border-radius: 100px;
  background: transparent; border: 1.5px solid rgba(14, 14, 16, 0.15);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { font-size: 11px; opacity: 0.6; }

/* ============================================================
   LISTINGS GRID
   ============================================================ */
.listings-wrap {
  max-width: 1440px; margin: 48px auto 0;
  padding: 0 32px 100px;
}
.l-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.l-count {
  font-family: 'Unbounded', sans-serif; font-weight: 900;
  font-size: 22px; color: var(--ink);
}
.l-count .num { color: var(--adire); }
.l-sort {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink-2); font-weight: 600;
}
.l-sort select {
  background: var(--paper-2); border: 1.5px solid var(--paper-3);
  color: var(--ink); padding: 8px 32px 8px 12px; border-radius: 100px;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230e0e10' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Listing card (shared style with homepage) */
.listing {
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  border-radius: 16px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  position: relative; transition: border-color 0.3s;
  will-change: transform;
}
.listing:hover { border-color: var(--ink); }
.listing-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--paper-3);
}
.listing-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}
.listing-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; z-index: 2;
  background: var(--paper); color: var(--ink);
}
.listing-badge.hot { background: var(--terra); color: var(--paper); }
.listing-badge.verified { background: var(--adire); color: var(--paper); }
.listing-badge.tokunbo { background: var(--kente); color: var(--ink); }
.listing-badge.new { background: var(--ochre-bright); color: var(--ink); }
.listing-heart {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(243, 236, 225, 0.95);
  border: none; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--ink);
  transition: all 0.2s;
}
.listing-heart:hover { background: var(--terra); color: var(--paper); transform: scale(1.1); }
.listing-heart.liked { background: var(--terra); color: var(--paper); }

.listing-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing-title {
  font-family: 'Unbounded', sans-serif; font-weight: 700;
  font-size: 15px; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px dashed rgba(14, 14, 16, 0.12);
  margin-top: auto;
}
.listing-price {
  font-family: 'Unbounded', sans-serif; font-weight: 900;
  font-size: 18px; color: var(--adire);
}
.listing-price .currency { font-size: 14px; opacity: 0.7; margin-right: 2px; }
.listing-time { font-size: 12px; color: var(--ink-2); opacity: 0.6; font-weight: 600; }
.listing-attrs {
  display: flex; gap: 12px; font-size: 12px; color: var(--ink-2);
  font-weight: 600; opacity: 0.85; flex-wrap: wrap;
}
.listing-attrs span { display: inline-flex; align-items: center; gap: 4px; }
.listing-attrs span::before { content: '·'; opacity: 0.4; }
.listing-attrs span:first-child::before { display: none; }
.listing-loc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2); font-weight: 600; opacity: 0.75;
}
.listing-loc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terra); display: inline-block;
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink); color: var(--paper);
  padding: 60px 32px 30px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 60px;
}
.footer h4 { color: var(--paper); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px; opacity: 0.5; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--paper); text-decoration: none; font-size: 14px; opacity: 0.7; transition: opacity 0.2s, color 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--ochre-bright); }
.footer-brand p { font-size: 14px; opacity: 0.65; max-width: 320px; margin-top: 12px; line-height: 1.6; }
.footer-bottom {
  max-width: 1440px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(243, 236, 225, 0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; opacity: 0.5; flex-wrap: wrap; gap: 12px;
}
.footer-socials { display: flex; gap: 8px; margin-top: 16px; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(243, 236, 225, 0.2);
  background: transparent; color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 14px; font-weight: 700;
  transition: all 0.2s;
}
.footer-social:hover { background: var(--kente); color: var(--ink); border-color: var(--kente); transform: translateY(-2px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .filters-bar { grid-template-columns: 1fr 1fr; }
  .filters-bar .f-submit { grid-column: 1/-1; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav { padding: 14px 20px; }
  .v-hero { padding: 110px 20px 30px; }
  .filters { padding: 0 20px; }
  .listings-wrap { padding: 0 20px 60px; }
  .listings-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .listing-body { padding: 14px; }
  .listing-title { font-size: 13px; }
  .listing-price { font-size: 15px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer { padding: 40px 20px 20px; }
}
@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
}
