.hero-section {
  background-color: var(--light-gray);
  padding: 3rem 0;
  position: relative;
}

.hero-content {
  margin-bottom: 0;
}

/* Search Box Wrapper - Desktop only */
.search-box-wrapper {
  position: relative; /* Default for mobile */
  margin-top: 2rem;
  z-index: 100;
}

.search-box {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Featured Listings */
.listing-section {
  padding-top: 3rem;
}

/* Desktop - Floating search box effect */
@media (min-width: 992px) {
  .hero-section {
    padding: 4rem 0;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .search-box-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: 0;
    transform: translateY(50%); /* Overlap effect - only on desktop */
  }

  .listing-section {
    padding-top: 8rem; /* Space for overlapping search box */
  }
}

/* Tablet adjustments */
@media (max-width: 991px) and (min-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem 0;
  }

  .search-box {
    padding: 1.5rem;
  }

  .listing-section {
    padding-top: 2rem;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0 1.5rem 0;
  }

  .hero-content {
    margin-bottom: 1.5rem;
  }

  .search-box-wrapper {
    margin-top: 1.5rem;
  }

  .search-box {
    padding: 1.25rem;
  }

  /* Stack form fields vertically on mobile */
  .search-box .row > div {
    margin-bottom: 1rem;
  }

  .listing-section {
    padding-top: 2rem;
  }

  .property-listing-header {
    max-width: 270px;
  }
}
