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

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --bg:            #080808;
  --bg2:           #0e0e0e;
  --surface:       #141414;
  --surface-hover: #1a1a1a;
  --surface2:      #1e1e1e;
  --border:        #222222;
  --border-hover:  #333333;
  --text:          #f0f0f0;
  --text-muted:    #888888;
  --text-subtle:   #444444;
  --accent:        #e53e3e;
  --accent-glow:   rgba(255, 77, 0, 0.15);
  --r-xl:  20px;
  --r-lg:  16px;
  --r-md:  12px;
  --r-sm:   8px;
  --r-xs:   6px;
  --t:     180ms ease;
}

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 58px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
}
.nav-brand span { color: var(--accent); }
.nav-brand-logo { height: 32px; width: auto; display: block; margin-right: 8px; }

.hero-logo {
  height: clamp(48px, 8vw, 80px);
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

.nav-links { display: flex; gap: 2px; }

.nav-link {
  padding: 6px 12px;
  border-radius: var(--r-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--text); }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255, 77, 0, 0.08) 0%, transparent 70%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 0%, transparent 75%);
}

.hero-title {
  position: relative;
  font-size: clamp(30px, 5.5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-sub {
  position: relative;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

/* ── Search ── */
.search-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 10px;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 15px 22px 15px 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg2);
}

.search-hint {
  position: relative;
  font-size: 12px;
  color: var(--text-subtle);
}
.search-hint kbd {
  display: inline-block;
  padding: 1px 6px;
  background: var(--surface2);
  border: 1px solid var(--border-hover);
  border-radius: 4px;
  font-family: inherit;
  font-size: 11px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 0 28px;
}

.stat-item {
  flex: 1;
  max-width: 160px;
  padding: 16px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════
   CONTROLS
══════════════════════════════════════ */
.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 28px;
  max-width: 1240px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.category-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.filter-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--border-hover); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.sort-wrap { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.sort-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.sort-btn {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.sort-btn:hover { border-color: var(--border-hover); color: var(--text); }
.sort-btn.active {
  background: var(--surface2);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ══════════════════════════════════════
   SECTION
══════════════════════════════════════ */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 28px 56px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.result-count {
  font-size: 13px;
  color: var(--text-subtle);
}

/* ══════════════════════════════════════
   MAKES GRID
══════════════════════════════════════ */
.makes-grid { display: flex; gap: 12px; flex-wrap: wrap; }

/* Make chip - browse by make section */
.make-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--t);
  cursor: pointer;
}
.make-chip:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Logo-style make items */
.make-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--t);
  color: var(--text);
  text-decoration: none;
}
.make-logo-item:hover { transform: translateY(-3px); }
.make-logo-item:hover .make-logo-badge { box-shadow: 0 8px 24px rgba(0,0,0,0.5); }

.make-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
  transition: box-shadow var(--t);
}

.make-logo-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  transition: color var(--t);
}
.make-logo-item:hover .make-logo-label { color: var(--text); }

/* Keep .make-initial for make-chip usage elsewhere (make.html) */
.make-initial {
  width: 28px;
  height: 28px;
  border-radius: var(--r-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   BIKE CARDS GRID
══════════════════════════════════════ */
.bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 14px;
}

/* ── Load more ── */
.load-more-btn {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--t);
}
.load-more-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface);
}

/* ── No results ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 0;
  color: var(--text-muted);
}
.no-results h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.no-results p { font-size: 14px; }

/* ══════════════════════════════════════
   BIKE CARD
══════════════════════════════════════ */
.bike-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--t), border-color var(--t), background var(--t), box-shadow var(--t);
  color: var(--text);
}
.bike-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.bike-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.make-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

.make-badge-lg {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
  flex-shrink: 0;
}

.bike-year {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: auto;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.bike-card-body { display: flex; flex-direction: column; gap: 3px; }

.bike-model {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.bike-make-name {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

.bike-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.bike-stat { display: flex; align-items: baseline; gap: 2px; }

.bike-stat-value { font-size: 14px; font-weight: 700; }

.bike-stat-unit { font-size: 11px; color: var(--text-muted); font-weight: 400; }

.stat-dot { color: var(--text-subtle); font-size: 14px; }

.bike-card-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
}
.bike-card:hover .bike-card-cta { color: var(--accent); }
.cta-arrow { display: inline-block; transition: transform var(--t); }
.bike-card:hover .cta-arrow { transform: translateX(3px); }

/* ══════════════════════════════════════
   MAKE PAGE
══════════════════════════════════════ */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 20px 28px 0;
  max-width: 1240px;
  margin: 0 auto;
  display: block;
  transition: color var(--t);
}
.page-back:hover { color: var(--text); }

.make-header {
  padding: 28px 28px 40px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

#make-logo { display: none; }

.make-header-info {}

.make-header-info h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.make-header-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ══════════════════════════════════════
   BIKE DETAIL PAGE
══════════════════════════════════════ */
.bike-hero {
  padding: 28px 28px 0;
  max-width: 1240px;
  margin: 0 auto;
}

.bike-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.bike-hero-eyebrow a:hover { color: var(--text); }
.bike-hero-eyebrow .sep { color: var(--text-subtle); }

.bike-hero-title {
  font-size: clamp(26px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 10px;
}

.bike-hero-tagline {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 520px;
  line-height: 1.6;
  font-style: italic;
}

.bike-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Key Stats ── */
.key-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px auto;
  max-width: 1240px;
}

.key-stat {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
  position: relative;
}

.key-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.key-stat-value {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.key-stat-unit {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 3px;
}

/* ── Spec Grid ── */
.spec-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 56px;
}

.spec-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.spec-item {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background var(--t);
}
.spec-item:hover { background: var(--surface-hover); }
.spec-item:nth-child(2n) { border-right: none; }
.spec-item:nth-last-child(-n+2) { border-bottom: none; }

.spec-key {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.spec-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.spec-unit {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 3px;
}

/* ── More from make ── */
.more-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 64px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 28px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 13px;
}
.footer a { color: var(--text-muted); transition: color var(--t); }
.footer a:hover { color: var(--text); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav { padding: 0 18px; }
  .nav-brand-logo { height: 22px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .hero { padding: 52px 18px 44px; }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1; min-width: 0; }
  .stat-item:last-child { border-right: none; }

  .controls { padding: 14px 18px; }
  .section, .spec-section, .bike-hero, .make-header,
  .more-section { padding-left: 18px; padding-right: 18px; }
  .page-back { padding-left: 18px; }

  .bikes-grid { grid-template-columns: 1fr; }

  .key-stats { grid-template-columns: 1fr; margin: 24px 18px; }

  .spec-grid { grid-template-columns: 1fr; }
  .spec-item { border-right: none !important; }
  .spec-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border) !important; }
  .spec-item:last-child { border-bottom: none !important; }

  .make-header { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 480px) {
  .sort-wrap { flex-wrap: wrap; }
  .hero-title { font-size: 26px; }
  .stat-item { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}


/* ══════════════════════════════════════
   COMPARE PAGE
══════════════════════════════════════ */
.compare-header {
  padding: 48px 28px 40px;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compare-subtitle {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.clear-compare-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.clear-compare-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.compare-search {
  padding: 32px 28px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

.compare-search .search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.search-results {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999;
  width: 500px;
  max-width: calc(100vw - 32px);
  backdrop-filter: blur(8px);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t);
  border-radius: var(--r-md);
  margin: 4px 8px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--surface-hover);
  transform: translateX(4px);
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.search-result-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.search-result-add {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-left: 16px;
  transition: all var(--t);
}

.search-result-item:hover .search-result-add {
  transform: scale(1.2);
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  font-style: italic;
}

.compare-empty-state {
  padding: 60px 28px;
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

.compare-empty-state p:first-child {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.compare-empty-state p:last-child {
  font-size: 16px;
  opacity: 0.8;
}

.compare-bikes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  padding: 40px 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.compare-bike-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all var(--t);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.compare-bike-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff6b6b);
  opacity: 0;
  transition: opacity var(--t);
}

.compare-bike-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.compare-bike-card:hover::before {
  opacity: 1;
}

.compare-bike-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.compare-bike-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.remove-compare-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-xs);
  transition: all var(--t);
}

.remove-compare-btn:hover {
  background: var(--surface2);
  color: var(--accent);
}

.compare-bike-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.compare-bike-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.compare-bike-tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.compare-bike-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  transition: color var(--t);
}

.compare-bike-card:hover .compare-bike-link {
  color: var(--accent);
  transform: translateX(4px);
}

.compare-table-container {
  padding: 40px 28px;
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.compare-spec-header {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  padding: 20px 24px;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  position: sticky;
  left: 0;
  z-index: 10;
}

.compare-bike-header-cell {
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  padding: 20px 24px;
  text-align: center;
  border-bottom: 2px solid var(--border);
  border-left: 1px solid var(--border);
  min-width: 200px;
}

.compare-bike-mini-make {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.compare-bike-mini-model {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.compare-row:nth-child(even) {
  background: var(--bg2);
}

.compare-row:hover {
  background: rgba(229, 62, 62, 0.02);
}

.compare-spec-label {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 5;
}

.compare-spec-value {
  padding: 18px 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  border-left: 1px solid var(--border);
  font-weight: 500;
}

.compare-spec-value .spec-unit {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 3px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .compare-bikes {
    grid-template-columns: 1fr;
    padding: 32px 18px;
  }

  .compare-table-container {
    padding: 32px 18px;
  }

  .compare-search {
    padding: 24px 18px;
  }

  .compare-header {
    padding: 32px 18px 24px;
  }

  .compare-title {
    font-size: 28px;
  }

  .compare-subtitle {
    font-size: 16px;
  }

  .compare-empty-state {
    margin: 24px 18px;
    padding: 40px 20px;
  }

  .search-results {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }
}

/* ══════════════════════════════════════
   BIKE COMPARE SECTION
══════════════════════════════════════ */
.bike-compare-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.compare-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t);
}

.compare-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
}

.compare-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.compare-btn.active:hover {
  background: #c53030;
  border-color: #c53030;
}

.view-compare-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--t);
}

/* ══════════════════════════════════════
   PAGE LAYOUT (sidebar + main)
══════════════════════════════════════ */
.page-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1580px;
  margin: 0 auto;
}

.page-layout-main {
  flex: 1;
  min-width: 0;
}

/* Remove auto-centering from sections when they're inside the layout */
.page-layout-main .section,
.page-layout-main .controls,
.page-layout-main .bike-hero,
.page-layout-main .key-stats,
.page-layout-main .spec-section,
.page-layout-main .more-section,
.page-layout-main .page-back,
.page-layout-main .make-header {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* ── Sidebar ── */
.page-layout-sidebar {
  width: 320px;
  flex-shrink: 0;
  padding: 100px 28px 32px 0;
  position: sticky;
  top: 0;
  height: fit-content;
  align-self: flex-start;
}

.ad-slot-sidebar {}

/* Fallback placeholder shown when no ad fills */
.ad-placeholder {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: url('/FakeAd.png') center/contain no-repeat;
}

.ad-placeholder--mobile {
  min-height: 60px;
  background-size: cover;
}

.ad-placeholder .adsbygoogle {
  position: relative;
  z-index: 1;
}

.ad-slot-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 6px;
  text-align: center;
}

/* ── Mobile sticky bottom banner ── */
.ad-slot-mobile-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 4px 0;
  text-align: center;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  .page-layout-sidebar { display: none; }
  .ad-slot-mobile-bottom {
    visibility: visible;
    height: auto;
    overflow: visible;
  }
  /* Prevent content hiding behind sticky bottom ad */
  body { padding-bottom: 68px; }
}

.view-compare-link:hover {
  color: var(--text);
}