/* === Popular Bookings Widget Container === */
#popularBookingsWidget {
  width: 100%;
  margin-top: 40px;
  overflow: hidden;
  padding: 0;
  height: auto;
  box-sizing: border-box;
}

/* === Grid Layout: Exactly 4 Cards === */
#popularServices {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ✅ Force 4 cards */
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Booking Card === */
.booking-card-item {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 4px 10px #0000000f;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #e5e7eb;
  background-color: #d1fae5;
}

.booking-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* === Info Overlay === */
.booking-card-item .info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.619), transparent);
}


.booking-card-item .info h4 {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-card-item .info p {
  margin: 4px 0 0;
  font-size: 9px;
  color: #ffffff;
}

/* === Responsive Tweak: 2 cards on tablets === */
@media (max-width: 1024px) {
  #popularServices {
    grid-template-columns: repeat(4, 1fr);
  }

  .booking-card-item {
    height: 150px;
  }

  .booking-card-item .info h4 {
  font-size: 12px;
  color: #ffffff;

}

.booking-card-item .info p {
  margin: 4px 0 0;
  font-size: 10px;
  color: #ffffff;
}
}

@media (max-width: 480px) {
  #popularBookingsWidget {
  margin-top: 30px;
}

  #popularServices {
    grid-template-columns: repeat(2, 2fr); /* ✅ Stack cards in 1 column */
    gap: 10px;
    padding: 0 6px;
  }

  .booking-card-item {
    height: 100px;
    border-radius: 10px;
  }

  .booking-card-item .info h4 {
  font-size: 8px;
  color: #ffffff;

}

.booking-card-item .info p {
  margin: 1px 0 0;
  font-size: 6px;
  color: #ffffff;
}

}
