/* Basic styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    margin: 0 auto;
}

header {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #000;
    color: #fff;
}

/* Search Bar Styling */
.search-bar {
    flex-grow: 1;
    margin-left: 20px;
}

.search-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 25px;
    width: 250px;
    max-width: 100%; /* Ensure responsiveness */
}

/* Filter Dropdowns Styling */
.filters {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.filters select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 25px; /* Rounded corners */
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    border-color: #007bff;
}

/* Hotel Listings Grid */
.hotel-listings {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Hotel Card Styling */
.hotel-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.hotel-card:hover {
    transform: scale(1.05);
}

.hotel-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.hotel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    box-sizing: border-box;
    text-align: left;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.hotel-card h3, .hotel-card p {
    margin: 5px 0;
    color: #fff;
}

.hotel-price {
    color: #ff4c4c;
    font-weight: bold;
}

/* Pagination Styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
    background-color: #0056b3;
}

.pagination a.active {
    background-color: #0056b3;
    pointer-events: none;
}

.items-per-page {
    text-align: right;
    margin-top: 20px;
}

.items-per-page select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.pagination-controls .pagination {
    display: inline-block;
}

.pagination-controls select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


/* Mobile responsiveness for search bar and filters */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
        margin: 0 0 10px 0;
    }

    .search-input {
        width: 100%;
        padding: 6px;
    }

    .filters {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: space-between;
        width: 100%;
    }

    .filters select {
        flex: 1;
        min-width: 100px;
    }

    .hotel-listings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hotel-listings {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        gap: 5px;
    }
}
