/* ---------------- Grid View Layout ---------------- */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 20px;
    padding: 20px;
    justify-content: center;
}

/* Hotel Card */
.hotel-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 15px; /* Prevent content from sticking too close */
}

.hotel-card:hover {
    transform: scale(1.02);
}

/* ---------------- Hotel Image Section ---------------- */
.hotel-image {
    position: relative;
    width: 100%;
    height: 220px; /* Adjusted for better proportion */
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Wishlist Heart (Top Right) */
.wishlist-heart {
    position: absolute;
    top: 12px; /* Better aligned */
    right: 12px; /* Better aligned */
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
    z-index: 2;
}

.wishlist-heart:hover {
    background: red;
    color: white;
}

/* Featured Badge (Top Left) */
.featured-badge {
    position: absolute;
    top: 12px; /* Better aligned */
    left: 12px; /* Better aligned */
    background: #ffcc33;
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px; /* More natural look */
    font-weight: bold;
}

/* ---------------- Listing Content Section ---------------- */
.listing-content {
    text-align: center;
    padding: 15px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Sponsored Badge */
.sponsored-badge {
    display: inline-block;
    background: #3f51b5;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin: 10px auto; /* Center the badge */
}

/* Hotel Title */
.listing-content h3 {
    margin: 8px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

/* Description */
.listing-content p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* ---------------- Rating Stars ---------------- */
.hotel-rating {
    font-size: 16px;
    color: #ffcc00;
    margin: 5px 0;
    display: flex;
    justify-content: center;
}

/* ---------------- Price Section ---------------- */
.hotel-price {
    font-size: 18px;
    font-weight: bold;
    color: #ff5722;
    margin-top: 5px;
}

/* ---------------- Booking Button ---------------- */
.book-me-button {
    display: inline-block;
    background-color: #ffcc33;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin: 10px auto;
    width: 80%;
}

.book-me-button:hover {
    background-color: #d4a017;
}

/* ---------------- Responsive Fixes ---------------- */
@media screen and (max-width: 1200px) {
    .hotels-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on medium screens */
    }
}

@media screen and (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on small screens */
    }
    
    .hotel-image {
        height: 180px;
    }

    .wishlist-heart {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .book-me-button {
        font-size: 14px;
        padding: 8px 12px;
    }
}
