/* Hero Carousel */
.hero-carousel-section {
  width: 100%;
  margin-bottom: 1.5rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: 560px;
  overflow: hidden;
  border-radius: 0;
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.carousel-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-bg {
  position: relative;
  width: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(5, 32, 66, 0.58) 0%, rgba(10, 63, 120, 0.36) 44%, rgba(11, 92, 171, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
  z-index: 2;
}

.carousel-content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 3;
  max-width: 920px;
  padding: clamp(3rem, 8vw, 6rem) 1.2rem 5rem;
}

.carousel-content h2 {
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  margin: 0 0 1rem 0;
  text-shadow: 0 8px 24px rgba(6, 48, 95, 0.45);
}

.carousel-content p {
  font-size: 1.08rem;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 4px 16px rgba(6, 48, 95, 0.34);
}

.carousel-content .hero-theme-line {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 78, 145, 0.45);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carousel-control:hover {
  background: rgba(10, 78, 145, 0.75);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 2px solid white;
  cursor: pointer;
  transition: background 0.3s;
}

.indicator.active {
  background: white;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #0b5cab 0%, #1b78d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image {
  font-size: 3rem;
}

.property-info {
  padding: 1.5rem;
}

.property-info h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.location {
  color: var(--muted);
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0b5cab;
  margin: 0.5rem 0;
}

.property-details {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  text-align: center;
}

.feature h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Responsive Carousel */
@media (max-width: 768px) {
  .carousel-container {
    min-height: 500px;
    height: 500px;
  }

  .carousel-bg {
    min-height: 500px;
  }

  .carousel-content h2 {
    font-size: 2.6rem;
  }

  .carousel-content p {
    font-size: 1rem;
  }

  .carousel-content .hero-theme-line {
    font-size: 1.25rem;
  }

  .properties-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    min-height: 470px;
    height: 470px;
  }

  .carousel-bg {
    min-height: 470px;
  }

  .carousel-content h2 {
    font-size: 2rem;
  }

  .carousel-content p {
    font-size: 0.9rem;
  }

  .carousel-content .hero-theme-line {
    font-size: 1.05rem;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-control.prev {
    left: 10px;
  }

  .carousel-control.next {
    right: 10px;
  }
}
