/* Rooms Page Specific Styles */
.rooms-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    isolation: isolate; /* Creates new stacking context */
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Smooth loading */
    transition: opacity 0.5s ease;
}

/* Progressive loading style */
.hero-image[loading="lazy"] {
    opacity: 0;
}
.hero-image.is-loaded {
    opacity: 1;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
    animation: fadeIn 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .rooms-hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title br {
        display: none;
    }
}

/* Animation for scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Accessibility class for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Rooms Intro Section */
.rooms-intro {
    padding: 80px 0;
    background-color: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.amenities-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background-color: rgba(147, 204, 250, 0.1);
    border-radius: var(--border-radius);
    min-width: 120px;
}

.amenity-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.amenity-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Rooms Gallery Section */
.rooms-gallery {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.room-category {
    text-align: center;
    margin-bottom: 50px;
}

.room-category h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.room-category p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.room-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.room-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

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

.room-card.featured .room-image {
    height: 100%;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.room-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-details {
    padding: 25px;
}

.room-card.featured .room-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.room-details h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.room-description {
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.room-size {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.room-features span {
    display: inline-block;
    background-color: rgba(147, 204, 250, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.room-actions {
    display: flex;
    gap: 15px;
}

.room-actions .btn-primary,
.room-actions .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Room Amenities Section */
.room-amenities {
    padding: 80px 0;
    background-color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.amenity-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(147, 204, 250, 0.3);
}

.amenity-column ul {
    list-style: none;
}

.amenity-column li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.amenity-column i {
    color: var(--primary-color);
    margin-right: 10px;
    margin-top: 3px;
    font-size: 0.9rem;
}

/* Room Testimonials Section */
.room-testimonials {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 0 15px;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -15px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info {
    margin-left: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    color: var(--secondary-color);
}

/* Rooms CTA Section */
.rooms-cta {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/rooms-cta-bg.jpg') no-repeat center center;
    background-size: cover;
    color: var(--white);
    text-align: center;
}

.rooms-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.rooms-cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.rooms-cta .btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
}

.rooms-cta .btn-primary:hover {
    background-color: #e6f3ff;
}

.rooms-cta .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.rooms-cta .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .room-card.featured {
        grid-template-columns: 1fr;
    }
    
    .room-card.featured .room-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .rooms-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .rooms-hero h1 {
        font-size: 2.5rem;
    }
    
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .room-actions {
        flex-direction: column;
    }
    
    .room-actions .btn-primary,
    .room-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .rooms-hero h1 {
        font-size: 2rem;
    }
    
    .rooms-hero p {
        font-size: 1.1rem;
    }
    
    .amenities-highlights {
        grid-template-columns: 1fr 1fr;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
}