/* ========== ROOMS & SUITES PAGES GLOBAL STYLES ========== */

/* Hero Sections */
.rooms-hero, .room-details-hero {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
}

.rooms-hero::before, .room-details-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.rooms-hero .container, .room-details-hero .container {
    position: relative;
    z-index: 2;
}

.room-details-hero {
    height: 40vh;
}

.separator-light {
    width: 80px;
    height: 3px;
    background-color: white;
    margin: 0 auto;
}

/* Room Filter Section */
.room-filter {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 50px;
    padding: 8px 16px;
    margin: 5px;
}

.room-filter.active {
    background-color: #006d77 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(0, 109, 119, 0.2);
}

.room-filter:hover:not(.active) {
    background-color: #edf6f9;
    transform: translateY(-2px);
}

/* Room Cards */
.room-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important;
    border-radius: 1rem !important;
    overflow: hidden;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12) !important;
}

.room-img-container {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-img {
    transform: scale(1.1);
}

.room-ribbon {
    position: absolute;
    top: 20px;
    right: 0;
    background-color: #006d77;
    color: white;
    padding: 8px 15px;
    font-weight: 500;
    font-size: 0.9rem;
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 8% 100%, 0% 50%);
    padding-left: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    z-index: 2;
}

/* Room Amenities */
.room-amenities span {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    margin-right: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.room-amenities i {
    color: #006d77;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Amenity Items */
.amenity-item {
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: transparent;
}

.amenity-item:hover {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.amenity-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: 50px;
}

.amenity-icon i {
    color: #006d77;
    transition: transform 0.3s ease;
}

.amenity-item:hover .amenity-icon i {
    transform: scale(1.2);
}

/* Room Details Page */
#roomCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

#roomCarousel .carousel-control-prev,
#roomCarousel .carousel-control-next {
    width: 10%;
    opacity: 0.7;
}

#roomCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: #006d77;
}

.card-header[style*="background-color: #006d77"] {
    border-radius: 1rem 1rem 0 0 !important;
}

/* Room Features List */
.list-unstyled li.d-flex {
    margin-bottom: 0.75rem;
}

.list-unstyled li.d-flex i {
    color: #006d77;
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

/* Booking Form */
.booking-form input,
.booking-form select {
    border: 1px solid #dee2e6;
    padding: 12px;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.booking-form input:focus,
.booking-form select:focus {
    border-color: #006d77;
    box-shadow: 0 0 0 0.25rem rgba(0, 109, 119, 0.25);
    outline: none;
}

.booking-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.booking-form .btn {
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-tag {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Alert Messages */
.alert {
    border-radius: 0.5rem;
    padding: 12px;
    margin: 15px 0;
    border: none;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-left: 4px solid #198754;
    color: #198754;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

/* Policy Items */
.card-body .row .col-md-6 .d-flex {
    margin-bottom: 1rem;
}

.card-body .row .col-md-6 .d-flex i {
    color: #006d77;
    width: 20px;
    text-align: center;
    margin-right: 0.75rem;
}

/* Similar Rooms Section */
.bg-light {
    background-color: #f8f9fa !important;
}

/* Admin dropdown menu fix (from previous memory) */
.dropdown-menu {
    max-height: 80vh;
    overflow-y: auto;
}

/* Sticky Booking Card */
@media (min-width: 992px) {
    .sticky-top {
        position: sticky;
        top: 100px;
        z-index: 100;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .sticky-top {
        position: relative;
        top: 0 !important;
    }
    
    #roomCarousel .carousel-item img {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .rooms-hero, .hero-section {
        height: 30vh;
        background-attachment: scroll;
    }
    
    .room-details-hero {
        height: 25vh;
        background-attachment: scroll;
    }
    
    .room-img-container {
        height: 200px;
    }
    
    #roomCarousel .carousel-item img {
        height: 300px;
    }
    
    .amenity-item {
        padding: 15px 10px;
    }
    
    .room-card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .room-filter {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .room-ribbon {
        font-size: 0.8rem;
        padding: 6px 12px;
        padding-left: 16px;
    }
    
    .room-amenities span {
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
    
    #roomCarousel .carousel-item img {
        height: 250px;
    }
    
    .list-unstyled li.d-flex {
        margin-bottom: 0.5rem;
    }
}
