/* NOTE: mobile menu overlay styles have been centralized to
   `public/frontend/css/mobile-menu-overlay.css` to avoid duplicates/conflicts.
   Please maintain only one canonical overlay stylesheet. */

@media (max-width: 991px) {
    #mobileMenuOverlay ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 400px;
        margin: 0;
        padding: 0;
    }

    #mobileMenuOverlay ul li {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #mobileMenuOverlay ul li a,
    #mobileMenuOverlay .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        font-size: 1.08rem;
        font-weight: bold;
        color: #222;
        background: #ffe082;
        border-radius: 10px;
        text-align: center;
        border: 2px solid #222;
        padding: 13px 0;
        margin-bottom: 10px;
        transition: background 0.2s, color 0.2s, transform 0.2s, border 0.2s;
        text-decoration: none;
        gap: 6px;
    }

    #mobileMenuOverlay .close-btn {
        left: 12px !important;
        right: auto !important;
        top: 12px !important;
        margin: 0 !important;
        background: none;
        color: #fff;
    }
}

@media (max-width: 600px) {
    #mobileMenuOverlay ul {
        max-width: 100vw;
    }

    #mobileMenuOverlay ul li a,
    #mobileMenuOverlay .mobile-menu-toggle {
        font-size: 1.02rem;
        padding: 10px 0;
    }

    #mobileMenuOverlay .close-btn {
        position: absolute !important;
        top: 10px !important;
        left: 10px !important;
        right: auto !important;
        font-size: 1.5rem !important;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 400px) {

    #mobileMenuOverlay ul li a,
    #mobileMenuOverlay .mobile-menu-toggle {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}

.submenu-arrow {
    margin-left: 4px;
    font-size: 1em;
    transition: transform 0.2s;
    width: 1.2em;
    min-width: 1.2em;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* Unified Button Styles */
.theme-btn,
.theme-btn2,
.book-btn,
.book-btn-mobile {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #222 !important;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 #c9a10044;
    border: none;
    padding: 12px 28px;
    transition: background 0.2s, color 0.2s;
    font-size: 1.05rem;
    text-align: center;
    display: inline-block;
}

.theme-btn:hover,
.theme-btn2:hover,
.book-btn:hover,
.book-btn-mobile:hover {
    background: #c9a100 !important;
    color: #000 !important;
}

/* Room Button */
.room-btn {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #222;
    font-weight: bold;
    border-radius: 8px;
    padding: 8px 18px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
    box-shadow: 0 2px 8px 0 #c9a10044;
}

.room-btn:hover {
    background: #c9a100;
    color: #000;
}

/* Responsive grid and card (tambahan opsional) */
@media (max-width: 991px) {
    .panel {
        margin-bottom: 1.5rem;
    }

    .panel .panel-heading,
    .panel .panel-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .panel .panel-title {
        font-size: 1.1rem;
    }

    .panel .panel-body {
        padding: 0.7rem;
    }
}

/* Responsive footer widgets */
@media (max-width: 767.98px) {
    .footer__widget__wrapper {
        flex-direction: column !important;
        gap: 24px;
    }

    .rts__widget {
        width: 100% !important;
        margin-bottom: 16px;
    }
}

/* Responsive grid and card */
.room-category {
    background: #fffbe6;
    border-radius: 18px;
    box-shadow: 0 2px 12px 0 #c9a10022;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
    height: 100%;
    min-height: 0;
}

.room-image {
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 90px;
    max-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.room-content {
    padding: 18px 18px 12px 18px;
    background: #fff;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 2;
    position: relative;
}

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

.room-feature {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Grid responsive */
@media (min-width: 1200px) {
    .room-category {
        min-height: 440px;
    }

    .room-image {
        min-height: 220px;
        max-height: 260px;
    }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .room-category {
        min-height: 380px;
    }

    .room-image {
        min-height: 180px;
        max-height: 200px;
    }
}

@media (max-width: 991.98px) {
    .room-category {
        min-height: 0;
        height: auto;
    }

    .room-image {
        min-height: 120px;
        max-height: 160px;
    }

    .room-content {
        padding: 14px 10px 10px 10px;
    }
}

@media (max-width: 767.98px) {
    .room-category {
        margin-bottom: 18px;
        min-height: 0;
        height: auto;
        border-radius: 14px;
    }

    .room-image {
        min-height: 80px;
        max-height: 120px;
    }

    .room-content {
        padding: 10px 6px 8px 6px;
    }

    .room-content h3 {
        font-size: 17px;
    }

    .room-features {
        flex-direction: column;
        gap: 4px 0;
    }

    .room-feature {
        width: 100%;
        font-size: 13px;
    }

    .section__title {
        font-size: 22px;
        text-align: center;
    }

    .row.g-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .room-category {
        margin-left: 6px;
        margin-right: 6px;
    }

    .room-image {
        min-height: 60px;
        max-height: 90px;
    }

    .room-content {
        padding: 7px 2px 7px 2px;
    }

    .room-content h3 {
        font-size: 14px;
    }

    .room-size {
        font-size: 11px;
    }

    .banner__slider__image::before {
        background-color: transparent !important;
        /* Pakai !important agar pasti override */
    }

    /* Tambahkan di bagian akhir file untuk memastikan override */
    .page__hero__bg::before,
    .rts__section.page__hero__bg::before {
        background: transparent !important;
        opacity: 0 !important;
        box-shadow: none !important;
        content: none !important;
    }

    .page__hero__content {
        background: none !important;
    }
}

/* Hamburger menu button always at the right on mobile */
@media (max-width: 991.98px) {
    #mobileMenuBtn {
        position: fixed !important;
        top: 24px !important;
        right: 24px !important;
        left: auto !important;
        z-index: 100100 !important;
        margin: 0 !important;
        background: #ffd000;
        border-radius: 12px;
        box-shadow: 0 2px 12px 0 #ffd70044;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        border: none;
    }
}

@media (max-width: 600px) {
    #mobileMenuBtn {
        top: 12px !important;
        right: 12px !important;
        padding: 8px !important;
    }
}

/* Tombol close bar selalu di kanan */
.mobileMenuCloseBar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* pastikan tombol di kanan */
    align-items: center;
    min-height: 48px;
}

/* Prevent dropdown menu labels from wrapping on desktop
   - Increase min-width so long labels like "MEETING DAN EVENT" fit in one line
   - Use white-space: nowrap to prevent line breaks inside the anchor
   - Keep mobile overlay unaffected (rule wrapped in media query) */
@media (min-width: 768px) {
    .navigation__menu .dropdown-menu {
        min-width: 240px !important;
        /* ensures items like MEETING DAN EVENT won't wrap */
        max-width: 420px;
        /* safety cap; adjust as needed */
    }

    /* Prevent main dropdown anchor (label) from wrapping */
    .navigation__menu .dropdown>a {
        white-space: nowrap;
    }

    /* Prevent dropdown link items from wrapping and add ellipsis if needed */
    .navigation__menu .dropdown-menu a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 95%;
    }

    /* More precise target for Meeting menu label */
    .navigation__menu .menu-meeting-event {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Optional: Explicitly target the particular Experiences -> Meeting label if needed
   (uncomment and add class to markup if you prefer targeted approach)
   .navigation__menu .dropdown a.menu-meeting-event { white-space: nowrap; } */