/* ==========================================================================
   Hotel Royal Palace - Rooms Specific Stylesheet
   Filter controls, Room display cards, Availability tags, Detail modals
   ========================================================================== */

/* Hero Banner for Subpages */
.subpage-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-top: 0;
    padding-top: var(--header-height);
}

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

.subpage-hero-content {
    position: relative;
    z-index: 2;
}

.subpage-hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.subpage-hero-breadcrumbs {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-light);
}

.subpage-hero-breadcrumbs a:hover {
    color: #ffffff;
}

/* Filter Controls */
.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 1px solid var(--border-color);
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--text-primary);
    border-color: var(--text-primary);
    color: #ffffff;
}

/* Rooms Grid */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.room-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-img-wrapper {
    width: 100%;
    height: 260px;
    position: relative;
    overflow: hidden;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-availability-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    z-index: 2;
}

.room-availability-badge.available {
    background-color: rgba(46, 204, 113, 0.9);
    color: #ffffff;
}

.room-availability-badge.unavailable {
    background-color: rgba(231, 76, 60, 0.9);
    color: #ffffff;
}

.room-card-content {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.room-card-description {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.room-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.room-price-info {
    display: flex;
    flex-direction: column;
}

.room-price-amount {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.room-price-label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.room-detail-btn {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
}

.room-detail-btn:hover {
    color: var(--gold-dark);
    border-bottom-color: var(--gold-dark);
}

/* Room Details Modal Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: #ffffff;
    width: 90%;
    max-width: 950px;
    max-height: 90vh;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: translateY(40px);
    transition: var(--transition-smooth);
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-primary);
    z-index: 10;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--text-primary);
    color: #ffffff;
}

.modal-slider-section {
    position: relative;
    height: 100%;
    min-height: 400px;
    background-color: #1a1917;
}

.modal-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-section {
    padding: 3.5rem 3rem;
    display: flex;
    flex-direction: column;
}

.modal-room-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.modal-room-type {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.modal-room-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.75rem 0;
    margin-bottom: 2rem;
}

.spec-category-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spec-icon-gold {
    color: var(--gold);
    font-size: 0.9rem;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.modal-price-val {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--gold-dark);
}

/* Responsive Rooms CSS */
@media (max-width: 992px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .modal-card {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    
    .modal-slider-section {
        height: 280px;
        min-height: 280px;
    }
    
    .modal-info-section {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-wrapper {
        flex-wrap: wrap;
    }
    
    .filter-btn {
        flex-grow: 1;
        text-align: center;
        padding: 0.5rem 1rem;
    }
    
    .subpage-hero {
        height: 260px;
    }
    
    .subpage-hero-title {
        font-size: 2.25rem;
    }
}
