body { background: #f8f9fa; margin: 0; font-family: 'Segoe UI', Arial, sans-serif; }

/* Enhanced Hero Section */
.hero { 
  padding: 60px 0; 
  text-align: center; 
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3em;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: white !important;
}

.hero-subtitle {
  font-size: 1.3em;
  margin: 0 0 40px 0;
  opacity: 0.95;
  color: white !important;
}

.browse-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95em;
  opacity: 0.9;
}

/* Quick Categories Section */
.quick-categories {
  padding: 60px 0;
  background: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.quick-categories h2 {
  text-align: center;
  font-size: 2.2em;
  margin: 0 0 16px 0;
  color: #1e293b;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.category-card {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}

.category-card:hover {
  border-color: #6366f1;
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  transition: all 0.2s;
}

.category-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-card:hover .category-icon {
  background: #6366f1;
  border-color: #6366f1;
}

.category-card:hover .category-icon img {
  filter: brightness(0) invert(1);
}

/* No Results and Tips Icons */
.no-results-icon, .tip-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.no-results-icon img, .tip-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: opacity(0.7);
}

.tip-card:hover .tip-icon {
  background: #6366f1;
  border-color: #6366f1;
}

.tip-card:hover .tip-icon img {
  filter: brightness(0) invert(1);
}

.category-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.2em;
  color: #334155;
}

.category-card p {
  margin: 0;
  font-size: 0.9em;
  color: #64748b;
}

/* Main Listings Section */
.main-listings {
  background: #f8f9fa;
  padding: 40px 0 0 0;
}

/* Hide mobile elements on desktop */
.mobile-filters-toggle {
  display: none;
}

.filters-content {
  display: block;
}

.car-list-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 1200px;
  padding: 20px 16px 0 16px;
}

.car-list-filters {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 28px 20px 22px 20px;
  margin-bottom: 24px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.car-list-main {
  flex: 1 1 0%;
  min-width: 0;
}

.car-list-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.car-list-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 18px 24px;
  position: relative;
  transition: box-shadow 0.2s;
  cursor: pointer;
  min-height: 120px;
}

.car-list-row:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}

.car-list-photo {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
  margin-right: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.car-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.car-list-title {
  font-size: 1.18em;
  margin: 0 0 4px 0;
  color: #222;
}

.car-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.98em;
  color: #666;
}

.car-list-price {
  font-weight: bold;
  color: #2a2a2a;
  font-size: 1.12em;
  margin-top: 6px;
}

.car-link-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  text-indent: -9999px;
  background: transparent;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.car-link-overlay {
  display: none;
}

/* Results Summary */
.results-summary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.results-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.6em;
  color: #1e293b;
}

.results-count {
  margin: 0;
  color: #64748b;
  font-size: 1em;
}

.clear-filters {
  color: #6366f1;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 500;
}

.clear-filters:hover {
  text-decoration: underline;
}

.search-tips {
  max-width: 400px;
  flex: 0 0 auto;
}

.search-tips summary {
  cursor: pointer;
  font-weight: 500;
  color: #6366f1;
  margin-bottom: 8px;
}

.search-tips ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  font-size: 0.9em;
  color: #64748b;
}

.search-tips li {
  margin-bottom: 4px;
}

/* No Results Section */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.no-results-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.8em;
  margin: 0 0 12px 0;
  color: #1e293b;
}

.no-results > p {
  font-size: 1.1em;
  color: #64748b;
  margin: 0 0 32px 0;
}

.no-results-suggestions {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.no-results-suggestions h4 {
  margin: 0 0 16px 0;
  color: #374151;
  text-align: center;
}

.no-results-suggestions ul {
  margin: 0 0 32px 0;
  padding-left: 20px;
}

.no-results-suggestions li {
  margin-bottom: 8px;
  color: #64748b;
}

.no-results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #5b5bd6;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* Existing styles below */
.results-summary {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.results-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.6em;
  color: #1e293b;
}

.results-count {
  margin: 0;
  color: #64748b;
  font-size: 1em;
}

.clear-filters {
  color: #6366f1;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 500;
}

.clear-filters:hover {
  text-decoration: underline;
}

.search-tips {
  max-width: 400px;
  flex: 0 0 auto;
}

.search-tips summary {
  cursor: pointer;
  font-weight: 500;
  color: #6366f1;
  margin-bottom: 8px;
}

.search-tips ul {
  margin: 12px 0 0 0;
  padding-left: 20px;
  font-size: 0.9em;
  color: #64748b;
}

.search-tips li {
  margin-bottom: 4px;
}

/* No Results Section */
.no-results {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.no-results-icon {
  font-size: 4em;
  margin-bottom: 20px;
}

.no-results h3 {
  font-size: 1.8em;
  margin: 0 0 12px 0;
  color: #1e293b;
}

.no-results > p {
  font-size: 1.1em;
  color: #64748b;
  margin: 0 0 32px 0;
}

.no-results-suggestions {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.no-results-suggestions h4 {
  margin: 0 0 16px 0;
  color: #374151;
  text-align: center;
}

.no-results-suggestions ul {
  margin: 0 0 32px 0;
  padding-left: 20px;
}

.no-results-suggestions li {
  margin-bottom: 8px;
  color: #64748b;
}

.no-results-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #6366f1;
  color: white;
}

.btn-primary:hover {
  background: #5b5bd6;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.car-list-filters {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  padding: 28px 20px 22px 20px;
  margin-bottom: 24px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.car-list-main {
  flex: 1 1 0%;
  min-width: 0;
}
.car-list-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.car-list-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 18px 24px;
  position: relative;
  transition: box-shadow 0.2s;
  cursor: pointer;
  min-height: 120px;
}
.car-list-row:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}
.car-list-photo {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
  margin-right: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.car-list-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.car-list-title {
  font-size: 1.18em;
  margin: 0 0 4px 0;
  color: #222;
}
.car-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.98em;
  color: #666;
}
.car-list-price {
  font-weight: bold;
  color: #2a2a2a;
  font-size: 1.12em;
  margin-top: 6px;
}
.car-link-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10;
  text-indent: -9999px;
  background: transparent;
  border: none;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.car-link-overlay {
  display: none;
}
.car-list-filters .search-form select,
.car-list-filters .search-form input[type="text"],
.car-list-filters .search-form input[type="number"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 1em;
  background: #fafbfc;
  transition: border 0.2s;
}

/* Special styling for search input */
.car-list-filters .search-input {
  background: #fff;
  border: 2px solid #6366f1;
  font-weight: 500;
  margin-bottom: 15px;
}

.car-list-filters .search-input:focus {
  border: 2px solid #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.car-list-filters .search-input::placeholder {
  color: #6b7280;
  font-weight: normal;
}

/* Special styling for sort dropdown */
.car-list-filters .sort-select {
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  font-weight: 500;
  margin-bottom: 15px;
}

.car-list-filters .sort-select:focus {
  border: 1.5px solid #0ea5e9;
  outline: none;
}
.car-list-filters .btn {
  width: 100%;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 0;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.car-list-filters .btn:hover {
  background: #2563eb;
}
@media (max-width: 900px) {
  .car-list-layout {
    flex-direction: column;
    gap: 0;
  }
  .car-list-filters {
    margin-bottom: 24px;
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: 8px;
    padding-right: 8px;
  }
  .car-list-main {
    justify-content: center;
  }
}
.car-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); padding: 18px; width: 260px; margin-bottom: 24px; display: flex; flex-direction: column; align-items: center; transition: box-shadow 0.2s; position: relative; cursor: pointer; }
.car-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.14); }

/* Search and Sort Header */
.listings-header {
  margin-bottom: 24px;
}

.search-sort-form {
  width: 100%;
}

.search-sort-container {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.main-sort-select {
  flex: 0 0 200px;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1em;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.main-sort-select:focus {
  border: 1px solid #6366f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.main-sort-select:hover {
  border: 1px solid #9ca3af;
}

/* Mobile responsiveness for search/sort header */
@media (max-width: 768px) {
  /* Drastically reduce hero section */
  .hero {
    padding: 30px 0 20px 0;
  }
  
  .hero h1 {
    font-size: 2em;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  
  .browse-stats {
    display: none; /* Hide stats on mobile */
  }
  
  /* Hide quick categories on mobile to save space */
  .quick-categories {
    display: none;
  }
  
  /* Make main listings section start immediately */
  .main-listings {
    padding-top: 20px;
  }
  
  /* Hide buying tips section on mobile */
  .buying-tips {
    display: none;
  }
  
  /* Hide browse CTA section on mobile */
  .browse-cta {
    display: none;
  }
  
  .search-sort-container {
    flex-direction: column;
    gap: 12px;
  }
  
  .main-sort-select {
    width: 100%;
    flex: none;
  }
}

/* Buying Tips Section */
.buying-tips {
  padding: 80px 0;
  background: #f8fafc;
}

.buying-tips h2 {
  text-align: center;
  font-size: 2.2em;
  margin: 0 0 16px 0;
  color: #1e293b;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1em;
  color: #64748b;
  margin: 0 0 48px 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.tip-card {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tip-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  position: relative;
}

.tip-card h3 {
  margin: 0 0 16px 0;
  font-size: 1.3em;
  color: #1e293b;
}

.tip-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

/* CTA Section */
.browse-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  text-align: center;
}

.browse-cta h2 {
  font-size: 2.4em;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: white !important;
}

.browse-cta p {
  font-size: 1.2em;
  margin: 0 0 32px 0;
  opacity: 0.95;
  color: white !important;
}

.browse-cta .btn-primary {
  background: white;
  color: #6366f1;
  font-size: 1.1em;
  padding: 16px 32px;
}

.browse-cta .btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Additional Mobile Responsiveness */
@media (max-width: 768px) {
  /* Drastically reduce hero section */
  .hero {
    padding: 30px 0 20px 0;
  }
  
  .hero h1 {
    font-size: 2em;
    margin-bottom: 8px;
  }
  
  .hero-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  
  .browse-stats {
    display: none; /* Hide stats on mobile */
  }
  
  /* Hide quick categories on mobile to save space */
  .quick-categories {
    display: none;
  }
  
  /* Make main listings section start immediately */
  .main-listings {
    padding-top: 20px;
  }
  
  /* Hide buying tips section on mobile */
  .buying-tips {
    display: none;
  }
  
  /* Hide browse CTA section on mobile */
  .browse-cta {
    display: none;
  }
  
  .category-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  
  .results-summary {
    flex-direction: column;
    gap: 16px;
  }
  
  .search-tips {
    max-width: none;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .no-results-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .car-list-layout {
    flex-direction: column;
    padding: 20px 16px 0 16px;
  }
  
  .car-list-filters {
    flex: none;
    width: 100%;
    margin-bottom: 20px;
  }
  
  /* Mobile filters toggle */
  .mobile-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
  }
  
  .mobile-filters-toggle:hover {
    background: #5856eb;
  }
  
  .toggle-arrow {
    transition: transform 0.2s;
  }
  
  .filters-content {
    display: none;
  }
  
  .filters-content.open {
    display: block;
  }
}
