/**
 * StayEasy — Home page Popular regions & Featured properties grids + Coming Soon cards.
 * Loaded from index.php only. Upload this file with index.php when deploying to cPanel.
 */
.home-featured-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

.home-featured-grid__item {
  display: flex;
  min-width: 0;
}

.home-featured-grid__item > .card {
  width: 100%;
}

.home-featured-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 24rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .home-featured-grid--count-1 {
    max-width: 28rem;
  }
}

@media (max-width: 575.98px) {
  .home-featured-grid--count-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 576px) {
  .home-featured-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-featured-grid--count-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 768px) {
  .home-featured-grid--count-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-featured-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 992px) {
  .home-featured-grid--count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-featured-section .home-chosen-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-featured-section .home-featured-card__footer .btn {
    flex-shrink: 0;
  }
}

/* Popular regions — photo CTA with text over the image (mobile + desktop) */
.home-region-feeling-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #0d1b2a;
  border-radius: 0.95rem;
  overflow: hidden;
}

.home-region-feeling-card .property-card-img-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 12.75rem;
  border-radius: 0.95rem;
  overflow: hidden;
}

.home-region-feeling-card .property-card-img-wrap .card-img-top,
.home-region-feeling-card .card-img-top {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.home-region-feeling-card__shade {
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(13, 27, 42, 0.82) 0%,
    rgba(13, 27, 42, 0.28) 45%,
    rgba(13, 27, 42, 0.08) 70%,
    transparent 100%
  );
  pointer-events: none;
}

.home-region-feeling-card__badge {
  z-index: 3;
}

.home-feeling-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.95rem 1rem 1rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.home-feeling-overlay__title {
  margin: 0 0 0.2rem;
  font-family: var(--stayeasy-font-heading);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-feeling-overlay__place {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 500;
  opacity: 0.95;
}

.home-feeling-overlay__place span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-feeling-overlay__place .bi {
  flex-shrink: 0;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.home-region-feeling-card:hover .home-feeling-overlay__place .bi {
  transform: translateX(0.15rem);
}

.home-feeling-overlay__count {
  margin: 0.35rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.82;
}

.home-feeling-overlay__count .bi {
  font-size: 0.8rem;
}

@media (min-width: 992px) {
  .home-region-feeling-card .property-card-img-wrap {
    min-height: 16.25rem;
  }

  .home-feeling-overlay {
    padding: 1.1rem 1.15rem 1.15rem;
  }

  .home-feeling-overlay__title {
    font-size: 1.2rem;
  }
}

/* Coming Soon placeholder cards */
.home-coming-soon-card {
  border-radius: 0.85rem;
  overflow: hidden;
}

.home-coming-soon-card .card-body {
  min-height: 12rem;
  padding-top: 0 !important;
}

.home-coming-soon-card__img-wrap {
  position: relative;
  overflow: hidden;
}

.home-coming-soon-card__img-wrap .home-coming-soon-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.78) brightness(1.04);
  opacity: 0.92;
}

.home-coming-soon-card__icon {
  width: 3.75rem;
  height: 3.75rem;
  margin-top: -1.875rem;
  background-color: rgba(148, 210, 189, 0.55);
  color: #087a7d;
  font-size: 1.2rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: 0 0.2rem 0.65rem rgba(13, 27, 42, 0.14);
}

.home-coming-soon-card__copy {
  max-width: 15rem;
  margin-inline: auto;
  line-height: 1.5;
}

.home-coming-soon-card__cta {
  background-color: rgba(148, 210, 189, 0.38);
  border: 0;
  color: #087a7d;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.35rem;
}

.home-coming-soon-card__cta:hover,
.home-coming-soon-card__cta:focus-visible {
  background-color: rgba(148, 210, 189, 0.55);
  color: #065f61;
}

.home-coming-soon-card:hover .home-coming-soon-card__img {
  transform: none;
}

@media (max-width: 575.98px) {
  .home-coming-soon-card__cta {
    width: 100%;
    max-width: 15rem;
  }

  .home-coming-soon-card__img-wrap .home-coming-soon-card__img {
    height: 180px;
  }
}
