/* ==========================================
   ENHANCED HERO SECTION
   Full-width background with search
   ========================================== */

.hero-enhanced {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(11,15,26,0.95) 0%, 
    rgba(15,22,41,0.9) 50%,
    rgba(11,15,26,0.95) 100%);
}

.hero-enhanced.hero-enhanced--compact {
  min-height: 42vh;
}

.hero-enhanced.hero-enhanced--compact .hero-content {
  padding: 2.25rem 4% 2.5rem;
}

.hero-enhanced.hero-enhanced--compact .hero-search-container {
  display: none;
}

/* Background Image */
.hero-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/section.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.65;
  filter: brightness(1.15) contrast(1.05);
  z-index: 0;
}

@media (max-width: 1024px) {
  .hero-enhanced::before {
    background-attachment: scroll;
  }
}

/* Lighter Overlay for brighter hero */
.hero-enhanced::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,15,26,0.45) 0%,
    rgba(11,15,26,0.25) 30%,
    rgba(11,15,26,0.35) 70%,
    rgba(11,15,26,0.75) 100%);
  z-index: 1;
}

/* Content Container - Full Width */
.hero-enhanced .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  padding: 2rem 4%;
  text-align: left;
}

/* Hero Title */
.hero-enhanced h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  max-width: 900px;
}

/* Subtitle */
.hero-enhanced .hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
  max-width: 800px;
  line-height: 1.6;
}

/* Stats Bar */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

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

.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* Search Container - Glassmorphism - Full Width */
.hero-search-container {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.3),
    0 10px 20px rgba(0,0,0,0.2);
  width: 100%;
}

/* Search Form Grid - Full Width Layout */
.hero-search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
  gap: 1.25rem;
  align-items: end;
  width: 100%;
}

@media (max-width: 1200px) {
  .hero-search-form {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr auto;
  }
}

@media (max-width: 1024px) {
  .hero-search-form {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .price-range-group {
    grid-column: span 2;
  }
  .hero-search-form button {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .hero-search-form {
    grid-template-columns: 1fr;
  }
  .price-range-group {
    grid-column: span 1;
  }
  .hero-search-form button {
    grid-column: span 1;
  }
}

/* Search Inputs */
.hero-search-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Price Range Group - Match height with other inputs */
.hero-search-form .price-range-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-search-form .price-range-group .price-slider-container {
  padding-bottom: 0.25rem;
}

.hero-search-form label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.8);
  text-align: left;
}

.hero-search-form input,
.hero-search-form select {
  background: rgba(91,140,255,0.15);
  border: 1px solid rgba(91,140,255,0.35);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

/* Fix dropdown options visibility */
.hero-search-form select option {
  background: #1a2332;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.hero-search-form select option:hover,
.hero-search-form select option:focus {
  background: #10b981;
}

/* Optgroup styling */
.hero-search-form select optgroup {
  background: #0f1629;
  color: #10b981;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem;
}

.hero-search-form select optgroup option {
  background: #1a2332;
  color: #fff;
  padding-left: 1.5rem;
}

.hero-search-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.hero-search-form input:focus,
.hero-search-form select:focus {
  background: rgba(91,140,255,0.25);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91,140,255, 0.3);
  outline: none;
}

/* Price Range Inputs */
.hero-search-form .price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.hero-search-form .price-range input {
  padding-left: 2rem;
}

.hero-search-form .input-with-symbol {
  position: relative;
}

.hero-search-form .input-with-symbol span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}

/* Search Button */
.hero-search-form button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
  height: auto;
  min-height: 56px;
  width: 100%;
}

.hero-search-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.hero-search-form button svg {
  width: 20px;
  height: 20px;
}

/* Trust Badges - Left Aligned */
.hero-trust-badges {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.hero-trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

/* Popular Searches - Left Aligned */
.hero-popular {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-popular span {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
}

.hero-popular a {
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.hero-popular a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 4%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-enhanced {
    min-height: auto;
    padding: 4rem 0;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .hero-search-container {
    padding: 1.5rem;
  }
  
  .hero-trust-badges {
    gap: 1rem;
  }
}

/* Theme Color Support */
.theme-emerald .hero-stat-number { color: #10b981; }
.theme-gold .hero-stat-number { color: #f59e0b; }
.theme-purple .hero-stat-number { color: #8b5cf6; }
.theme-rose .hero-stat-number { color: #f43f5e; }
.theme-teal .hero-stat-number { color: #14b8a6; }
.theme-blue .hero-stat-number { color: #5b8cff; }
