/* Room List Page Styles */

/* Import Better Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply font to entire page */
body {
    font-family: 'Poppins', sans-serif;
}

/* Hero Section Styles - Override main.css */
.hero-section {
    color: white;
    position: relative;
}

.hero-section.hero-gradient {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.85) 0%, rgba(255, 20, 147, 0.85) 100%), url('/media/gallery/hero_room.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Remove the light blue overlay from main.css */
.hero-section.hero-gradient::before {
    background: none !important;
    animation: none !important;
}

.hero-with-image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-with-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.85) 0%, rgba(255, 20, 147, 0.85) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero Overlay for Background Image */
.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.85) 0%, rgba(255, 20, 147, 0.85) 100%);
    z-index: 0;
}

/* Room Card Styles - Enhanced Animations */
.room-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    height: 100%;
    border-radius: 12px;
}

.room-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.2) !important;
}

/* Card Image Animation */
.room-card:hover .room-image {
    transform: scale(1.1);
}

.room-image {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Room Placeholder Image */
.room-placeholder {
    background: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.3;
}

.room-placeholder-list {
    height: 200px;
}

.room-placeholder-list i {
    font-size: 3rem;
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.room-features {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.room-features li {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 5px;
}

.room-features i {
    color: #FF69B4;
    margin-right: 5px;
}

.filter-card {
    border-radius: 10px;
    /* Removed sticky positioning - causes issues with scrolling and layout */
}

/* Sort Dropdown Styling */
#sortBy {
    min-width: 200px;
    padding-right: 35px; /* Space for dropdown arrow */
    background-position: right 0.75rem center; /* Arrow position - right corner */
    background-size: 16px 12px; /* Proper arrow size */
    background-repeat: no-repeat; /* Prevent arrow repetition */
}

/* Remove checkmarks from dropdown options */
#sortBy option {
    background-image: none !important;
    background-color: transparent;
    padding: 0.5rem;
}

/* View Toggle Buttons - Smaller & Animated */
.btn-group [data-view] {
    min-width: 38px;
    padding: 0.25rem 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 6px;
}

.btn-group [data-view]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.btn-group [data-view] i {
    font-size: 0.9rem;
}

.btn-group [data-view].active {
    background-color: #FF69B4;
    border-color: #FF69B4;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

/* Button Animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.availability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.available {
    background-color: #28a745;
}

.unavailable {
    background-color: #FF69B4;
}

/* List view specific styles */
.list-view-image {
    height: 200px;
    object-fit: cover;
}

.list-card {
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 991px) {
    /* On tablets and mobile, make filter card not sticky */
    .filter-card {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    /* Mobile specific adjustments */
    .room-image {
        height: 200px;
    }

    .list-view-image {
        height: 180px;
    }

    .filter-card {
        margin-bottom: 1.5rem;
    }
}
