/* Rooms Page Specific Styles */
.rooms-page .page-title {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
                url('../assets/img/rooms/rooms-bg.jpg') center/cover no-repeat;
    padding: 80px 0 40px;
    border-bottom: 1px solid #e8f4fc;
}

.rooms-page .page-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.rooms-page .breadcrumbs {
    background: transparent;
    padding: 0;
}

.rooms-page .breadcrumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rooms-page .breadcrumbs ol li {
    display: flex;
    align-items: center;
}

.rooms-page .breadcrumbs ol li a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rooms-page .breadcrumbs ol li a:hover {
    color: #2980b9;
}

.rooms-page .breadcrumbs ol li.current {
    color: #7f8c8d;
}

.rooms-page .breadcrumbs ol li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: #bdc3c7;
}

/* Rooms Section */
.rooms-2.section {
    padding: 60px 0;
}

/* Room Filters */
.room-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.room-filters .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.room-filters .form-select {
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.room-filters .form-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    background-color: white;
}

.room-filters .form-select option {
    padding: 10px;
}

/* Rooms Grid */
.rooms-grid {
    margin-bottom: 40px;
}

/* Room Card */
.room-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.room-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.room-features {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
}

.feature-badge {
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-badge.featured {
    background: linear-gradient(135deg, #3498db, #2ecc71);
}

.feature-badge.discount {
    background: linear-gradient(135deg, #ff4757, #ff3838);
}

.feature-badge.new {
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
}

.feature-badge.default {
    background: rgba(52, 152, 219, 0.9);
}

.feature-badge.safari {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.feature-badge.family {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.feature-badge.group {
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Room Content */
.room-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 15px;
}

.room-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.room-rating {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 2px;
}

.room-rating i {
    font-size: 16px;
}

.room-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 14px;
}

.room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    color: #95a5a6;
    font-size: 13px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
}

.room-amenities span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-amenities i {
    color: #3498db;
    font-size: 15px;
}

/* Room Footer */
.room-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: auto;
}

.room-price {
    text-align: left;
}

.price-from {
    display: block;
    font-size: 11px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 2px;
}

.price-period {
    font-size: 13px;
    color: #95a5a6;
}

/* Book Now Button */
.btn-room-details {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-room-details:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a82);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    color: white;
}

/* Loading States */
#rooms-loading {
    padding: 40px 0;
}

#rooms-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #3498db;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* No Results */
#no-rooms {
    padding: 60px 0;
}

#no-rooms .alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

#no-rooms .alert-heading {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

#no-rooms p {
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Load More Section */
.load-more-section {
    padding: 30px 0;
    border-top: 1px solid #ecf0f1;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-lg:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a82);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-lg:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Animation for room cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.room-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* Pagination Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error States */
.alert-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

.alert-danger i {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .room-header h3 {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .room-filters .row {
        row-gap: 20px;
    }
    
    .room-header h3 {
        font-size: 1.4rem;
    }
    
    .btn-room-details {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .rooms-page .page-title {
        padding: 60px 0 30px;
        text-align: center;
    }
    
    .rooms-page .page-title h1 {
        font-size: 2rem;
    }
    
    .rooms-page .breadcrumbs {
        justify-content: center;
    }
    
    .room-filters {
        padding: 20px;
    }
    
    .room-image {
        height: 220px;
    }
    
    .room-header h3 {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .btn-lg {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .room-filters {
        margin-bottom: 30px;
    }
    
    .room-content {
        padding: 20px;
    }
    
    .room-amenities {
        gap: 10px;
    }
    
    .room-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .btn-room-details {
        width: 100%;
        justify-content: center;
    }
    
    .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .room-card,
    .btn-room-details,
    .btn-lg {
        transition: none;
    }
    
    .room-card:hover {
        transform: none;
    }
    
    .room-image img {
        transition: none;
    }
}

/* Focus styles for accessibility */
.room-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn-room-details:focus,
.btn-lg:focus,
.form-select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .rooms-page .page-title {
        background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9));
    }
    
    .room-filters {
        background: #1a1a1a;
    }
    
    .room-card {
        background: #1a1a1a;
    }
    
    .room-header h3,
    .price-amount {
        color: white;
    }
    
    .room-description,
    .room-amenities,
    .price-from,
    .price-period {
        color: #cccccc;
    }
    
    .room-header,
    .room-amenities {
        border-color: #333;
    }
}