/* Homes Section */
.homes-section {
  position: relative;
  overflow: hidden;
}

.pokhara-homes-section {
  background: linear-gradient(135deg, #2b4889, #de1c3e);
  color: #ffffff;
}

/* Home Card */
.home-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;

}

.home-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.home-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Home Card Image */
.home-card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.home-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform 0.4s ease;
}

.home-card:hover .home-card-image img {
  transform: scale(1.05);
}



/* Home Badge */
.home-badge {
    background: var(--nepalibnb-primary);
    position: absolute;
    top: 8px;
    left: 12px;
    color: var(--nepalibnb-white);
    font-size: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    z-index: 2;
    transition: background 0.3s ease;
  }


.home-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.home-favorite:hover {
  transform: scale(1.1);
  background: #ffffff;
}

.home-favorite:focus {
  outline: 2px solid #e53935;
  outline-offset: 2px;
}

.home-favorite.favorited i {
  color: #e53935;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.home-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  background: #f7f7f7;
}


.home-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333333;
  line-height: 1.4;
 
}

.home-card-price {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #e53935;
  margin-top: auto;
  margin-bottom: 0.75rem;
}


.pokhara-homes-section .home-card {
  background: rgba(255, 255, 255, 0.95);
}


.homes-carousel .owl-item {
  padding: 0 1rem;
}



@media (max-width: 768px) {
  .home-card-image {
    height: 200px;
  }

  .home-card-title {
    font-size: 13px;
  }

  .home-card-price {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .home-card-image {
    height: 180px;
  }

  .home-card-body {
    padding: 5px;
  }

  .home-card-title {
    font-size: 13px;
  }

  .home-card-price {
    font-size: 14px;
  }

  .home-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .home-favorite {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 400px) {
  .home-card-image {
    height: 160px;
  }

  .home-card-body {
    padding: 0.75rem;
  }
 
}
