/* Hotel Card & Filters Styles */

.hotels-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #014f86;
    color: #014f86;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
    background: #014f86;
    color: #fff;
}

.hotels-count {
    color: var(--brand-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Hotels Grid - Desktop: 4 columns, Tablet: 3 columns, Mobile: 2 columns */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .hotels-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 992px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.hotel-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    opacity: 1;
    transform: scale(1);
    overflow: hidden;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.hotel-image-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.hotel-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: #111;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hotel-location-tag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: #fff;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
}

.hotel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #e8ecf7;
    display: block;
}

.hotel-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hotel-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
    line-height: 1.3;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.hotel-rating .fa-star {
    color: #e91e63;
}

.hotel-rating strong {
    color: #111;
    font-weight: 700;
}

.hotel-reviews {
    color: #888;
}

.hotel-content p {
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7rem;
    /* 0.9rem * 1.5 line-height * 2 lines */
}

.hotel-amenities {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: auto;
}

.amenity-icon {
    width: 36px;
    height: 36px;
    background: #f5f6f8;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #444;
    font-size: 0.9rem;
}

.hotel-booking-bar {
    display: flex;
    flex-direction: column;
}

.book-btn {
    width: 100%;
    padding: 12px 16px;
    background: #012a4a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.book-btn:hover {
    transform: translateY(-2px);
    background: #011d33;
}

/* Filters Section */
.filters-collapse {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border-radius: 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.filters-collapse.is-active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 24px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.filters-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    margin: 0;
}

.close-filters {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.close-filters:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.filter-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 16px;
    display: block;
    text-transform: capitalize;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.filter-pill.is-active {
    background: #012a4a;
    color: #fff;
    border-color: #012a4a;
}

.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #012a4a;
    cursor: pointer;
}

.filter-count {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.price-range-wrapper {
    padding: 10px 0;
}

.range-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

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

.range-progress-mock {
    position: absolute;
    left: 20%;
    right: 20%;
    height: 100%;
    background: #012a4a;
    border-radius: 3px;
}

.range-thumb-mock {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #012a4a;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-pills {
    display: flex;
    gap: 10px;
}

.rating-pill {
    flex: 1;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-pill i {
    color: #94a3b8;
}

.rating-pill.is-active {
    background: #012a4a;
    color: #fff;
    border-color: #012a4a;
}

.rating-pill.is-active i {
    color: #fff;
}

.amenities-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
    margin-top: 10px;
}

.results-info span {
    display: block;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0f172a;
}

.results-info p {
    color: #64748b;
    margin: 4px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.reset-btn {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.reset-btn:hover {
    color: #012a4a;
}

.apply-btn {
    background: #012a4a;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(1, 42, 74, 0.15);
}

.apply-btn:hover {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(1, 42, 74, 0.25);
}

/* Responsive Styles for Hotel Cards & Filters */

@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .hotel-card img {
        height: 160px;
    }

    .hotel-content {
        padding: 14px;
    }

    .hotel-content h3 {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .hotel-content p {
        font-size: 0.85rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hotel-badge {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .hotel-location-tag {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .book-btn {
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .filters-collapse.is-active {
        padding: 20px;
    }

    .amenities-filter-grid {
        grid-template-columns: 1fr;
    }

    .filters-footer {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .filter-actions {
        flex-direction: row;
        justify-content: space-between;
    }

    .apply-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .hotels-grid {
        gap: 8px;
        margin-top: 20px;
    }

    .hotel-card {
        padding: 0;
        border-radius: 12px;
    }

    .hotel-image-wrapper {
        border-radius: 12px 12px 0 0;
        margin-bottom: 8px;
    }

    .hotel-card img {
        height: 110px;
    }

    .hotel-badge {
        padding: 4px 8px;
        font-size: 0.6rem;
        top: 6px;
        left: 6px;
    }

    .hotel-location-tag {
        padding: 4px 8px;
        font-size: 0.6rem;
        bottom: 6px;
        right: 6px;
    }

    .hotel-content {
        padding: 0 8px 8px 8px;
    }

    .hotel-content h3 {
        font-size: 0.85rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .hotel-rating {
        font-size: 0.75rem;
        margin-bottom: 6px;
        gap: 4px;
    }

    .hotel-content p {
        font-size: 0.7rem;
        margin-bottom: 8px;
        height: 2.2rem;
    }

    .hotel-amenities {
        gap: 4px;
        margin-bottom: 12px;
    }

    .amenity-icon {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        font-size: 0.6rem;
    }

    .hotel-booking-bar .book-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .hotels-filter-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .hotels-count {
        font-size: 0.75rem;
    }

    .filter-pills {
        gap: 8px;
    }

    .filter-pill {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .rating-pill {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
}