/* Rooms Page Styles */

.rooms-hero {
    margin-top: 0;
    padding-top: 60px; /* bù chiều cao header trên mobile */
    height: 400px;
    background: linear-gradient(135deg, #8B7355 0%, #6B5845 50%, #4A3D2F 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Default background image only if no inline style */
.rooms-hero:not([style*="background-image"]) {
    background-image: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1400&q=80');
}

.rooms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.rooms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.rooms-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.rooms-title {
    font-size: 48px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
}

.rooms-subtitle {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 1px;
}

/* Introduction Section */
.rooms-intro {
    padding: 80px 20px;
    background-color: var(--darker-olive);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.rooms-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
}

.intro-text {
    margin-top: 30px;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: justify;
}

.intro-text p:first-child {
    font-size: 18px;
    font-weight: 500;
    color: var(--gold);
}

/* Rooms Table Section */
.rooms-table-section {
    padding: 80px 20px;
    background-color: var(--dark-olive);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.rooms-table-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.rooms-table-wrapper {
    max-width: 1000px;
    margin: 50px auto 0;
    overflow-x: auto;
}

.rooms-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--gold);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rooms-table thead {
    background: linear-gradient(135deg, var(--darker-olive), var(--dark-olive));
}

.rooms-table th {
    padding: 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--gold);
}

.rooms-table th:not(:last-child) {
    border-right: 1px solid rgba(212, 175, 55, 0.3);
}

.rooms-table tbody tr {
    transition: all 0.3s ease;
}

.rooms-table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: scale(1.02);
}

.rooms-table td {
    padding: 25px 20px;
    text-align: center;
    color: var(--white);
    font-size: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.rooms-table td:not(:last-child) {
    border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.rooms-table tbody tr:last-child td {
    border-bottom: none;
}

.rooms-table td strong {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
}

.highlight-box {
    display: inline-block;
    background-color: #DC143C;
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 18px;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(220, 20, 60, 0.6);
}

/* Room Features */
.room-features {
    padding: 80px 20px;
    background-color: var(--darker-olive);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.room-features.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.room-features.visible .feature-item {
    opacity: 1;
    transform: translateY(0);
}

.room-features.visible .feature-item:nth-child(1) { transition-delay: 0.1s; }
.room-features.visible .feature-item:nth-child(2) { transition-delay: 0.2s; }
.room-features.visible .feature-item:nth-child(3) { transition-delay: 0.3s; }
.room-features.visible .feature-item:nth-child(4) { transition-delay: 0.4s; }
.room-features.visible .feature-item:nth-child(5) { transition-delay: 0.5s; }
.room-features.visible .feature-item:nth-child(6) { transition-delay: 0.6s; }

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.feature-item .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--gold), var(--light-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--dark-olive);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.feature-item h3 {
    font-size: 18px;
    font-family: 'Arial', sans-serif;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Gallery Section */
.rooms-gallery-section {
    padding: 80px 20px;
    background-color: var(--dark-olive);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.rooms-gallery-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.rooms-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 50px auto 0;
}

.gallery-item-room {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rooms-gallery-section.visible .gallery-item-room {
    opacity: 1;
    transform: scale(1);
}

.rooms-gallery-section.visible .gallery-item-room:nth-child(1) { transition-delay: 0.1s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(2) { transition-delay: 0.15s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(3) { transition-delay: 0.2s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(4) { transition-delay: 0.25s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(5) { transition-delay: 0.3s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(6) { transition-delay: 0.35s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(7) { transition-delay: 0.4s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(8) { transition-delay: 0.45s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(9) { transition-delay: 0.5s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(10) { transition-delay: 0.55s; }
.rooms-gallery-section.visible .gallery-item-room:nth-child(11) { transition-delay: 0.6s; }

.gallery-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    font-size: 40px;
    color: var(--gold);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.gallery-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--light-gold);
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.gallery-image-wrapper:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.1);
}

.no-images {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

/* CTA Section */
.rooms-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-olive) 0%, var(--darker-olive) 100%);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.rooms-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.rooms-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.rooms-cta h2 {
    font-size: 36px;
    font-family: 'Arial', sans-serif;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.rooms-cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.phone-btn {
    background-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.phone-btn:hover {
    background-color: #B8122E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.contact-btn {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.contact-btn:hover {
    background-color: var(--gold);
    color: var(--dark-olive);
    transform: translateY(-3px);
}

/* Active Nav Link */
.nav-link.active {
    color: var(--gold);
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .rooms-title {
        font-size: 32px;
    }

    .rooms-subtitle {
        font-size: 16px;
    }

    .rooms-table-wrapper {
        overflow-x: auto;
    }

    .rooms-table {
        min-width: 600px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .rooms-gallery {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .rooms-hero {
        padding-top: 70px; /* bù chiều cao header desktop */
        height: 500px;
    }
}

@media (min-width: 1024px) {
    .rooms-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
