/* Dropdown Menu Fix - Ensure consistent styling */
.main-menu .navigation > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > a,
.main-menu .navigation > li > ul > li > ul > li > ul > li > a {
    display: block !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 29px;
    margin: 0 30px !important;
    padding: 10px 0px !important;
    position: relative;
    text-align: left;
    text-transform: capitalize;
    transition: all 200ms ease;
}

/* Room Section Styles - Specific to room section only */
.room-section {
    position: relative;
    padding: 120px 0 80px;
}

/* CSS namespace ensures room styles don't affect other components */

/* Animation keyframes for room section */
@keyframes roomFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes roomSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.room-section .room-block {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    position: relative;
    background: #F4F4F4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    min-height: 500px;
}

.room-section .room-block .inner-box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.room-section .room-block .inner-box:before {
    display: none !important; /* Remove overlay background */
}

.room-section .room-block.animate-in {
    opacity: 1;
    transform: translateY(0);
    animation: roomFadeInUp 0.8s ease forwards;
}

.room-section .room-block:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.room-section .room-block .image-box {
    position: relative;
    overflow: hidden;
    height: 320px;
}

.room-section .room-block .image-box .image {
    position: relative;
    margin: 0;
    height: 100%;
}

.room-section .room-block .image-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-section .room-block:hover .image-box .image img {
    transform: scale(1.05);
}

/* Overlay removed - all info moved to content box for clean image view */

.room-section .room-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
    color: #333;
    min-height: 50px;
    display: flex;
    align-items: center;
    text-align: left;
}

.room-section .room-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.room-section .room-title a:hover {
    color: var(--theme-color1);
}

.room-section .room-details {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.room-section .room-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-section .room-location {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 18px;
}

.room-section .content-box {
    padding: 25px 20px;
    text-align: left;
    background: #F4F4F4;
    position: static !important; /* Override global .room-block positioning */
    bottom: auto !important;
    right: auto !important;
    z-index: auto !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-section .room-price {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.room-section .price-from {
    font-size: 14px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.room-section .price-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-color1);
    display: block;
    line-height: 1.2;
}

.room-section .currency {
    font-size: 18px;
    font-weight: 600;
}

.room-section .price-period {
    font-size: 14px;
    color: #666;
    display: block;
    margin-top: 2px;
}

.room-section .btn-box {
    margin-top: 15px;
    text-align: center;
}

.room-section .theme-btn.btn-style-one {
    background: var(--theme-color1);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--theme-color1);
}

.room-section .theme-btn.btn-style-one:hover {
    color: var(--theme-color1) !important; /* Theme color text on white background */
}

/* Keep the original animation but ensure proper styling */
.room-section .theme-btn.btn-style-one {
    background: var(--theme-color1) !important;
    color: #ffffff !important;
    border: 1px solid var(--theme-color1) !important;
    position: relative;
    z-index: 1;
}

.room-section .theme-btn.btn-style-one:before {
    background: #F4F4F4 !important; /* Light background for animation */
}

.room-section .theme-btn.btn-style-two {
    background: transparent;
    color: var(--theme-color1);
    padding: 18px 45px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid var(--theme-color1);
}

.room-section .theme-btn.btn-style-two:hover {
    color: var(--theme-color1) !important; /* Theme color text on white background */
}

/* Keep the original animation but ensure proper styling for btn-style-two */
.room-section .theme-btn.btn-style-two {
    background: var(--theme-color1) !important;
    color: #ffffff !important;
    border: 1px solid var(--theme-color1) !important;
    position: relative;
    z-index: 1;
}

.room-section .theme-btn.btn-style-two:before {
    background: #F4F4F4 !important; /* Light background for animation */
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .room-section .room-block .image-box {
        height: 300px;
    }
    
    .room-section .room-block {
        min-height: 480px;
    }
}

@media (max-width: 991px) {
    .room-section {
        padding: 100px 0 60px;
    }
    
    .room-section .room-block {
        margin-bottom: 40px;
        min-height: 450px;
    }
    
    .room-section .room-block .image-box {
        height: 280px;
    }
    
    .room-section .content-box {
        padding: 25px 18px;
    }
}

@media (max-width: 767px) {
    .room-section {
        padding: 80px 0 40px;
    }
    
    .room-section .room-block {
        min-height: 420px;
    }
    
    .room-section .room-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .room-section .content-box {
        padding: 20px 15px;
    }
    
    .room-section .price-amount {
        font-size: 22px;
    }
    
    .room-section .room-title {
        font-size: 18px;
        margin-bottom: 12px;
        min-height: 45px;
    }
    
    .room-section .room-location {
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .room-section .room-block {
        min-height: 400px;
    }
    
    .room-section .room-block .image-box {
        height: 240px;
    }
    
    .room-section .room-title {
        font-size: 16px;
        min-height: 40px;
    }
    
    .room-section .content-box {
        padding: 18px 12px;
    }
    
    .room-section .room-details {
        gap: 6px;
    }
    
    .room-section .theme-btn.btn-style-one {
        padding: 10px 25px;
        font-size: 14px;
    }
}