/* Hotel Filters Sidebar Styling */
.hotels-with-filters-wrapper {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.hotel-filters-sidebar {
    padding: 2rem;
    border: 1px solid #bab9b9;
    border-radius: 14px;
}

.hotel-filters-sidebar h3 {
    margin: 0 0 20px 0;
    font-size: 1.3em;
    color: #333;
    border-bottom: 2px solid #0077B5;
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin: 0 0 12px 0;
    font-size: 1em;
    font-weight: 600;
    color: #555;
}

/* Price Range Slider */
.price-range-slider {
    margin: 15px 0;
}

.price-slider {
    position: relative;
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 20px 0;
}

.price-slider-track {
    position: absolute;
    height: 100%;
    background: #0077B5;
    border-radius: 3px;
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #0077B5;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #0077B5;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}

/* Rating Filter */
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
    padding: 8px 13px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    text-align: left;
    width: 100%;
}
.rating-option-text{
    position: relative;
    top: 1px;
    margin-left: 6px;
}

.rating-option:hover {
    border-color: #0077B5;
    background: #f8f9fa;
}

.rating-option.active {
    background: #0077B5;
    color: white;
    border-color: #0077B5;
}

.rating-option i {
    font-size: 0.95em;
    margin-right: 2px;
}

.rating-option i.fa-star {
    color: #ffa500;
}

.rating-option.active i.fa-star {
    color: #ffd700;
}

.rating-option i.fa-star-o {
    color: #ddd;
}

.rating-option.active i.fa-star-o {
    color: rgba(255, 255, 255, 0.5);
}

.rating-filter input[type="hidden"] {
    display: none;
}

/* Amenities Filter */
.amenities-filter {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.amenities-filter::-webkit-scrollbar {
    width: 6px;
}

.amenities-filter::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.amenities-filter::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.amenities-filter::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.amenities-filter label {
    display: flex;
    align-items: center;
    padding: 4px 0;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.9em;
    white-space: nowrap;
}

.amenities-filter label:hover {
    color: #0077B5;
}

.amenities-filter input[type="checkbox"] {
    margin-right: 6px;
    flex-shrink: 0;
}

.amenity-count {
    margin-left: 4px;
    color: #999;
    font-size: 0.9em;
}

/* Filter Buttons */
.filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.filter-actions button {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s;
}

.apply-filters-btn {
    background: #0077B5;
    color: white;
}

.apply-filters-btn:hover {
    background: #0056b3;
}

.reset-filters-btn {
    background: #6c757d;
    color: white;
}

.reset-filters-btn:hover {
    background: #5a6268;
}

/* Hotels Container */
.hotels-listings-container {
    flex: 1;
    min-width: 0;
}

/* Loading State */
.hotels-listings-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

.hotels-loading-overlay {
    position: relative;
}

.hotels-loading-overlay::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    color: #0077B5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* No Results */
.no-hotels-found {
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.no-hotels-found h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hotels-with-filters-wrapper {
        display: block;
    }

    .hotel-filters-sidebar {
        position: static;
        flex: 1;
        max-width: 100%;
    }

    .hotels-listings-container {
        width: 100%;
    }
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 12px 20px;
    background: #0077B5;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    position: relative;
}

.mobile-filter-toggle i {
    margin-right: 8px;
}

.mobile-filter-toggle:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }

    .hotel-filters-sidebar {
        display: none;
    }

    .hotel-filters-sidebar.active {
        display: block;
    }
}
