/* Out the Door — Modern, Responsive, Butter Smooth */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
  background: #f8f9fa; 
  color: #1a1a1a; 
  line-height: 1.6; 
}

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem; 
}

/* Header */
header { 
  background: #0d6efd; 
  color: white; 
  text-align: center; 
  padding: 2rem 0; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
header h1 { 
  font-size: 2.5rem; 
  font-weight: 700; 
}
header p { 
  font-size: 1.1rem; 
  opacity: 0.9; 
}

/* Navigation Tabs */
.tabs { 
  background: #fff; 
  padding: 1rem 0; 
  text-align: center; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.tabs a { 
  margin: 0 1rem; 
  color: #0d6efd; 
  text-decoration: none; 
  font-weight: 600; 
  padding: 0.5rem 1rem; 
  border-radius: 8px; 
  transition: all 0.3s; 
}
.tabs a:hover, .tabs a.active { 
  background: #0d6efd; 
  color: white; 
}

/* Hero Listings Section */
.hero-listings { 
  padding: 3rem 0; 
}
.hero-listings h2 { 
  text-align: center; 
  font-size: 2rem; 
  margin-bottom: 1.5rem; 
}
.filters { 
  text-align: center; 
  margin-bottom: 2rem; 
}
.filters input { 
  padding: 12px; 
  margin: 5px; 
  width: 220px; 
  border: 1px solid #ced4da; 
  border-radius: 6px; 
  font-size: 1rem; 
}
.filters button { 
  background: #198754; 
  color: white; 
  padding: 12px 24px; 
  border: none; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: 0.3s; 
}
.filters button:hover { 
  background: #157347; 
}

/* Listings Grid */
#listings { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 1.5rem; 
}
.car-listing { 
  background: white; 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  transition: transform 0.3s, box-shadow 0.3s; 
}
.car-listing:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 12px 24px rgba(0,0,0,0.15); 
}
.car-listing img { 
  width: 100%; 
  height: 200px; 
  object-fit: cover; 
}
.car-info { 
  padding: 1rem; 
}
.car-info h3 { 
  margin: 0; 
  font-size: 1.3rem; 
  font-weight: 600; 
}
.otd-price { 
  font-size: 1.6rem; 
  color: #dc3545; 
  font-weight: bold; 
  margin: 0.5rem 0; 
}
.dealer { 
  font-size: 0.9rem; 
  color: #6c757d; 
}
.reserve-btn { 
  background: #0d6efd; 
  color: white; 
  width: 100%; 
  padding: 12px; 
  border: none; 
  border-radius: 6px; 
  cursor: pointer; 
  font-weight: bold; 
  transition: 0.3s; 
}
.reserve-btn:hover { 
  background: #0b5ed7; 
}

/* Dealer CTA */
.dealer-cta { 
  background: #e9ecef; 
  padding: 3rem 0; 
  text-align: center; 
}
.dealer-cta h2 { 
  font-size: 2rem; 
  margin-bottom: 1rem; 
}
.btn { 
  background: #198754; 
  color: white; 
  padding: 14px 28px; 
  text-decoration: none; 
  border-radius: 6px; 
  font-weight: bold; 
  display: inline-block; 
  transition: 0.3s; 
}
.btn:hover { 
  background: #157347; 
  transform: translateY(-2px); 
}

/* Calculator */
.calc-section { 
  padding: 3rem 0; 
  text-align: center; 
}
.calculator input { 
  padding: 12px; 
  margin: 8px; 
  width: 220px; 
  border: 1px solid #ced4da; 
  border-radius: 6px; 
}
.calculator button { 
  background: #198754; 
  color: white; 
  padding: 12px 24px; 
  border: none; 
  cursor: pointer; 
}
#result, #breakdown, #ai-prediction { 
  margin: 1.5rem 0; 
  font-size: 1.2rem; 
}

/* Private Seller */
.seller-form { 
  padding: 3rem 0; 
}
.seller-form input, 
.seller-form textarea { 
  width: 100%; 
  padding: 12px; 
  margin: 8px 0; 
  border: 1px solid #ced4da; 
  border-radius: 6px; 
}
#payout-box { 
  background: #e7f3ff; 
  padding: 1rem; 
  border-radius: 8px; 
  margin: 1rem 0; 
  font-weight: bold; 
}

/* Aggregator */
.aggregator { 
  padding: 3rem 0; 
}
.search input { 
  padding: 12px; 
  margin: 5px; 
  width: 200px; 
}
.search button { 
  background: #198754; 
  color: white; 
  padding: 12px; 
  border: none; 
  cursor: pointer; 
}
.tab-content { 
  display: none; 
}
.tab-content.active { 
  display: block; 
}
#links-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 2rem; 
}
.link-card { 
  background: white; 
  padding: 1.5rem; 
  border-radius: 12px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
  text-align: center; 
  transition: 0.3s; 
}
.link-card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
}
.link-card a { 
  background: #0d6efd; 
  color: white; 
  padding: 12px; 
  text-decoration: none; 
  border-radius: 6px; 
  display: block; 
  font-weight: bold; 
}

/* Ad Hub */
.ad-hub .spots { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 1rem; 
}
.spot { 
  background: white; 
  padding: 1.5rem; 
  border-radius: 12px; 
  text-align: center; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
}
.spot button { 
  background: #198754; 
  color: white; 
  padding: 10px 20px; 
  border: none; 
  border-radius: 6px; 
  cursor: pointer; 
  margin-top: 1rem; 
}

/* Footer */
footer { 
  background: #212529; 
  color: #adb5bd; 
  text-align: center; 
  padding: 1.5rem 0; 
  margin-top: 3rem; 
}
footer a { 
  color: #0d6efd; 
  text-decoration: none; 
}
footer a:hover { 
  text-decoration: underline; 
}

/* Responsive */
@media (max-width: 768px) {
  .filters input { 
    width: 100%; 
    margin: 5px 0; 
  }
  .tabs a { 
    display: block; 
    margin: 0.5rem 0; 
  }
}