/* NOTE: mobile menu overlay styles have been centralized to
    `public/frontend/css/mobile-menu-overlay.css` to avoid duplicates/conflicts.
    Remove overlay styles from per-page files and keep a single canonical stylesheet. */

@media (max-width: 600px) {
    #mobileMenuOverlay .close-btn {
        top: 10px !important;
        left: 10px !important;
        right: auto !important;
        font-size: 1.5rem !important;
        width: 36px;
        height: 36px;
    }
}

/* Hapus/override aturan yang memindahkan ke kanan */
@media (max-width: 991.98px) {
    #mobileMenuOverlay .close-btn {
        left: 12px !important;
        right: auto !important;
        top: 12px !important;
        margin: 0 !important;
        background: none;
        color: #fff;
    }
}

#mobileMenuOverlay ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 400px;
    transform: translateY(20px);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#mobileMenuOverlay.active ul {
    transform: translateY(0);
}

#mobileMenuOverlay ul li {
    position: relative;
}

#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 ul li a.active,
#mobileMenuOverlay ul li a:hover,
#mobileMenuOverlay .mobile-menu-toggle[aria-expanded='true'] {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #000;
    border: 2px solid #222;
    transform: scale(1.04);
}

/* Prevent dropdown menu labels from wrapping on desktop */
@media (min-width: 768px) {
    .navigation__menu .dropdown-menu {
        min-width: 240px !important;
        max-width: 420px;
    }

    .navigation__menu .dropdown>a {
        white-space: nowrap;
    }

    .navigation__menu .dropdown-menu a {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: 95%;
    }

    .navigation__menu .menu-meeting-event {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.mobile-submenu {
    background: #fffde7;
    border-radius: 0 0 10px 10px;
    margin: 0;
    padding: 0 0 8px 0;
    list-style: none;
    width: 100%;
    display: none;
    animation: fadeInSubmenu 0.2s;
}

.mobile-submenu li a {
    color: #c9a100 !important;
    background: #fffde7 !important;
    font-size: 1.05rem !important;
    padding: 8px 24px !important;
    border-radius: 8px !important;
    text-align: left !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    border: 2px solid #222 !important;
}

.mobile-submenu li a.active,
.mobile-submenu li a:hover {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #000 !important;
    border: 2px solid #222 !important;
}

.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;
}

.mobile-menu-toggle[aria-expanded='true'] .submenu-arrow {
    transform: rotate(180deg);
}

@keyframes fadeInSubmenu {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobileMenuOverlay ul li:last-child {
    margin-bottom: 0;
}

#mobileMenuOverlay ul li a {
    display: block;
    width: 100%;
    font-size: 1.25rem;
    font-weight: bold;
    color: #222;
    padding: 14px 0;
    border-radius: 10px;
    background: #ffe082;
    /* kuning muda */
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    text-align: center;
}

#mobileMenuOverlay ul li a.active,
#mobileMenuOverlay ul li a:hover {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #000;
    transform: scale(1.04);
}

/* --- FIX: Warna menu utama mobile selalu kuning muda #ffe082, submenu kuning sangat muda #fffde7 --- */
#mobileMenuOverlay ul li a,
#mobileMenuOverlay .mobile-menu-toggle {
    background: #ffe082 !important;
    /* kuning muda */
    color: #222 !important;
    border-radius: 10px !important;
    font-weight: bold;
    text-align: center;
    border: 2px solid #222 !important;
    /* garis tepi hitam */
    transition: background 0.2s, color 0.2s, transform 0.2s, border 0.2s;
}

#mobileMenuOverlay ul li a.active,
#mobileMenuOverlay ul li a:hover,
#mobileMenuOverlay .mobile-menu-toggle[aria-expanded='true'] {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #000 !important;
    border: 2px solid #222 !important;
    /* tetap garis tepi hitam saat aktif/hover */
    transform: scale(1.04);
}

#mobileMenuOverlay ul li ul li a,
#mobileMenuOverlay .mobile-submenu li a {
    background: #fffde7 !important;
    /* kuning sangat muda */
    color: #c9a100 !important;
    font-size: 1.05rem !important;
    padding-left: 32px !important;
    text-align: left !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    border: 2px solid #222 !important;
    /* garis tepi hitam juga untuk submenu */
    transition: background 0.2s, color 0.2s, border 0.2s;
}

#mobileMenuOverlay ul li ul li a.active,
#mobileMenuOverlay ul li ul li a:hover,
#mobileMenuOverlay .mobile-submenu li a.active,
#mobileMenuOverlay .mobile-submenu li a:hover {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #000 !important;
    border: 2px solid #222 !important;
}

/* Hapus aturan border putih agar tidak konflik */
@media (max-width: 991px) {

    .mobile-menu-toggle,
    #mobileMenuOverlay ul li a {
        border: 2px solid #222 !important;
        background: #ffe082 !important;
        color: #222 !important;
    }

    #mobileMenuOverlay ul li a.active,
    #mobileMenuOverlay ul li a:hover {
        border: 2px solid #222 !important;
        background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
        color: #000 !important;
    }
}

@media (max-width: 991px) {
    #mobileMenuOverlay {
        padding: 12px;
    }

    #mobileMenuOverlay ul {
        max-width: 95vw;
    }

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

    #mobileMenuOverlay .close-btn {
        font-size: 2rem;
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 600px) {
    #mobileMenuOverlay {
        padding: 6px;
    }

    #mobileMenuOverlay ul {
        max-width: 100vw;
    }

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

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

@media (max-width: 400px) {

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

/* =========================
   POPUP RESPONSIVE FIX
   ========================= */
@media (max-width: 991px) {
    #krakatauPopup {
        width: 95vw;
        max-height: 90vh;
        border-radius: 18px;
    }

    #krakatauPopup img {
        max-height: 40vh;
        border-radius: 18px 18px 0 0;
    }

    #krakatauPopup .popup-caption {
        font-size: 1rem;
        padding: 12px 16px;
    }
}

@media (max-width: 600px) {
    #krakatauPopup {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding: 0;
    }

    #krakatauPopup img {
        max-height: 60vw;
        border-radius: 0;
    }

    #krakatauPopup .popup-caption {
        font-size: 0.95rem;
        padding: 8px 8px;
    }
}

@media (max-width: 400px) {
    #krakatauPopup {
        border-radius: 0;
    }

    #krakatauPopup img {
        border-radius: 0;
    }
}

/* =========================
   GENERAL RESPONSIVE FIX
   ========================= */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.main-content {
    position: relative;
    z-index: 1;
}

.modern-search-card {
    background: #fffbe6;
    border-radius: 22px;
    box-shadow: 0 8px 32px 0 rgba(201, 161, 0, 0.13), 0 1.5px 8px 0 #c9a100;
    border: 2px solid #c9a100;
    max-width: 1100px;
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.modern-search-card .form-floating>.form-control,
.modern-search-card .form-floating>.form-select {
    border-radius: 12px;
    border: 1.5px solid #c9a100;
    background: #fff;
    font-size: 1.08rem;
    box-shadow: none;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.modern-search-card .form-floating>label {
    color: #b08d66;
    font-weight: 500;
    left: 1.5rem;
}

.modern-search-card .input-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #c9a100;
    z-index: 2;
}

.modern-search-card .form-floating>.form-control:focus,
.modern-search-card .form-floating>.form-select:focus {
    border-color: #c9a100;
    box-shadow: 0 0 0 2px #c9a10033;
}

.modern-search-card .theme-btn {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #222;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 #c9a10044;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.modern-search-card .theme-btn:hover {
    background: #c9a100;
    color: #000;
}

@media (max-width: 991px) {
    .modern-search-card {
        padding: 1.5rem 0.7rem;
    }
}

@media (max-width: 767px) {
    .modern-search-card {
        border-radius: 14px;
    }

    .modern-search-card .form-floating>.form-control,
    .modern-search-card .form-floating>.form-select {
        font-size: 0.98rem;
    }
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(34, 34, 34, 0.82);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 8px #c9a10044;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    padding: 0;
}

.nav-button.nav-left {
    left: 18px;
    right: auto;
}

.nav-button.nav-right {
    right: 18px;
    left: auto;
}

.nav-button:hover {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #000;
    transform: scale(1.08) translateY(-50%);
    opacity: 1;
}

.video-slider-dots {
    margin-top: 10px;
    margin-bottom: 10px;
}

.video-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #c9a100;
    background: #fffbe6;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 4px #c9a10033;
    margin: 0 4px;
    padding: 0;
    display: inline-block;
}

.video-dot.active,
.video-dot:focus {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    border-color: #c9a100;
    box-shadow: 0 2px 8px #c9a10044;
}

@media (max-width: 767px) {
    .nav-button {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .nav-button.nav-left {
        left: 4px;
    }

    .nav-button.nav-right {
        right: 4px;
    }

    .video-dot {
        width: 10px;
        height: 10px;
    }
}

.gallery-modern-card {
    background: #fffbe6;
    border: 1.5px solid #c9a100;
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Tambahan agar card selalu sama tinggi */
    height: 100%;
}

.gallery-modern-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
    background: #f9f9f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 280px;
}

.gallery-modern-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    background: #f9f9f9;
    display: block;
}

.gallery-modern-card:hover .gallery-modern-img {
    transform: scale(1.06);
}

.gallery-modern-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-modern-card:hover .gallery-modern-overlay {
    opacity: 1;
}

.gallery-modern-caption {
    background: #fff;
    border-radius: 0 0 18px 18px;
    font-size: 1.08rem;
    color: #222;
    font-weight: 500;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#galleryModernPopup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    opacity: 0;
}

#galleryModernPopup.show {
    display: flex !important;
    opacity: 1;
    transition: opacity 0.2s;
}

.gallery-popup-content {
    background: #fff;
    border-radius: 18px;
    padding: 18px 18px 12px 18px;
    max-width: 95vw;
    max-height: 95vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-popup-close {
    position: absolute;
    top: 10px;
    right: 18px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #222;
    cursor: pointer;
    z-index: 10;
}

.gallery-popup-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 1;
    border-radius: 18px;
}

.gallery-popup-content img {
    max-width: 80vw;
    max-height: 60vh;
    border-radius: 12px;
    margin-bottom: 12px;
    z-index: 2;
    background: #f9f9f9;
}

/* =========================
   MOVED: Promo & WhatsApp popup styles (was inline in index.blade.php)
   - Consolidated here to avoid inline CSS duplication
   - Reduced use of `!important`; IDs provide sufficient specificity
   - Commented so future editors know where to find these rules
   ========================= */

#promoWhatsappPopup {
    position: fixed;
    right: 18px;
    bottom: 18px;
    top: auto;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
}

#closePromoWhatsappPopup {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #222;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.promo-whatsapp-btn {
    margin-top: 0;
    display: inline-block;
    transition: box-shadow 0.2s;
    border-radius: 50%;
    box-shadow: 0 2px 8px #c9a10033;
}

.promo-whatsapp-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.promo-whatsapp-btn:hover {
    box-shadow: 0 4px 16px #c9a10055;
}

/* Promo card responsive tweaks (moved from inline in blade) */

#promoAdCardImg {
    max-height: 44vw;
    height: auto;
    object-fit: contain;
    display: block;
}

#promoAdCardText {
    font-size: 1.01rem;
    line-height: 1.45;
    box-sizing: border-box;
    text-align: center;
    color: #222;
    word-break: break-word;
}

@media (max-width: 767px) {
    #promoWhatsappPopup {
        bottom: 12px;
        right: 12px;
        top: auto;
    }

    #promoAdCard {
        top: 6vw;
    }

    /* Make promo card fit smaller screens */
    #promoAdCard {
        width: 98vw;
        max-width: 98vw;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px;
        padding: 0;
        background: #F0F0F0;
        align-items: center;
        box-sizing: border-box;
    }

    #promoAdCardImg {
        width: 94vw;
        max-width: 94vw;
        min-width: 0;
        max-height: 44vw;
        height: auto;
        object-fit: contain;
        border-radius: 10px;
        display: block;
        margin: 12px auto 0 auto;
    }

    #promoAdCardText {
        max-width: 94vw;
        width: 100%;
        padding: 8px 0 14px 0;
        margin: 0 auto;
    }
}

@media (max-width: 400px) {
    #promoAdCard {
        padding: 7px 1vw 10px 1vw;
        border-radius: 6px;
    }

    #promoAdCardImg {
        width: 88vw;
        max-width: 88vw;
        max-height: 28vw;
        border-radius: 4px;
    }

    #promoAdCardText {
        font-size: 0.93rem;
    }
}

.gallery-popup-caption {
    font-size: 1.08rem;
    color: #222;
    font-weight: 500;
    text-align: center;
    z-index: 2;
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 4px;
}

@media (max-width: 767px) {
    .gallery-modern-thumb {
        aspect-ratio: 2 / 3;
        min-height: 320px;
    }

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

    .gallery-modern-card {
        min-height: 220px;
    }

    .gallery-modern-caption {
        font-size: 0.98rem;
        min-height: 40px;
    }

    .gallery-popup-content img {
        max-width: 96vw;
        max-height: 40vh;
    }

    .gallery-popup-content {
        padding: 8px 4px 8px 4px;
    }
}

/* Tambahan responsif untuk grid dan card */
@media (max-width: 575px) {

    .container,
    .container-fluid {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

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

    .col,
    [class*='col-'] {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .gallery-modern-card,
    .rts__card {
        min-height: 380px;
        border-radius: 10px;
    }

    .gallery-modern-thumb {
        aspect-ratio: 2 / 3;
        min-height: 340px;
        border-radius: 10px 10px 0 0;
    }

    .gallery-modern-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
    }

    .gallery-modern-caption {
        font-size: 0.92rem;
        min-height: 28px;
        border-radius: 0 0 10px 10px;
    }

    .gallery-popup-content img {
        max-width: 98vw;
        max-height: 32vh;
    }
}

/* Untuk layar sangat kecil (≤375px) */
@media (max-width: 375px) {
    .modern-search-card {
        padding: 0.7rem 0.2rem;
        border-radius: 8px;
    }

    .gallery-modern-card,
    .rts__card {
        border-radius: 6px;
    }

    .gallery-modern-thumb,
    .gallery-modern-img {
        border-radius: 6px 6px 0 0;
    }

    .gallery-modern-caption {
        border-radius: 0 0 6px 6px;
        font-size: 0.85rem;
    }

    #krakatauPopup {
        border-radius: 0;
        padding: 0;
    }
}

/* Pastikan gambar tidak overflow */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Pastikan tombol dan input full width di mobile */
@media (max-width: 575px) {

    .modern-search-card .theme-btn,
    .modern-search-card .form-control,
    .modern-search-card .form-select {
        width: 100% !important;
        min-width: 0;
    }
}

/* Perbaiki jarak antar elemen di mobile */
@media (max-width: 575px) {

    .section__title,
    .content__title,
    h2,
    h1 {
        font-size: 1.25rem !important;
        line-height: 1.2 !important;
    }

    .section__topbar {
        margin-bottom: 12px !important;
    }

    .mb-40,
    .pb-90,
    .pt-120,
    .pb-120 {
        margin-bottom: 16px !important;
        padding-bottom: 16px !important;
        padding-top: 16px !important;
    }
}

.book-btn-custom {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px 28px;
    box-shadow: 0 2px 12px #c9a10033;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
}

.book-btn-custom:hover,
.book-btn-custom:focus {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #fff;
    transform: scale(1.04);
    box-shadow: 0 4px 16px #c9a10055;
}

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

/* Tambahan: border putih pada semua tombol menu mobile hitam */
@media (max-width: 991px) {

    .mobile-menu-toggle,
    #mobileMenuOverlay ul li a {
        border: 2px solid #fff !important;
        box-sizing: border-box;
    }

    /* Khusus tombol menu utama yang hitam */
    #mobileMenuOverlay ul li a {
        background: rgba(34, 34, 34, 0.82);
        color: #fff;
    }

    /* Jika ada tombol menu aktif/hover, tetap kasih border putih */
    #mobileMenuOverlay ul li a.active,
    #mobileMenuOverlay ul li a:hover {
        border: 2px solid #fff !important;
    }
}

/* Hapus/override aturan berikut agar tidak konflik (khusus mobile < 991px) */
@media (max-width: 991px) {

    .mobile-menu-toggle,
    #mobileMenuOverlay ul li a {
        border: none !important;
        background: #ffe082 !important;
        color: #222 !important;
    }

    #mobileMenuOverlay ul li a.active,
    #mobileMenuOverlay ul li a:hover {
        border: none !important;
        background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
        color: #000 !important;
    }
}

/* Hamburger menu close button (X) always at the right on mobile */
@media (max-width: 991.98px) {
    #mobileMenuOverlay .close-btn {
        position: absolute !important;
        top: 18px !important;
        left: 18px !important;
        right: auto !important;
        margin: 0 !important;
        z-index: 10001 !important;
        background: none;
        border: none;
        font-size: 2.2rem;
        color: #c9a100;
    }
}

@media (max-width: 600px) {
    #mobileMenuOverlay .close-btn {
        top: 0 !important;
        left: 0 !important;
        right: auto !important;
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }
}

/* =========================
   MOBILE MENU RESPONSIVE FIX
   ========================= */
#mobileMenuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 250, 240, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 99999;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#mobileMenuOverlay.active {
    opacity: 1;
    visibility: visible;
}

#mobileMenuOverlay .close-btn {
    position: absolute !important;
    top: 18px !important;
    left: 18px !important;
    right: auto !important;
    margin: 0 !important;
    z-index: 10001 !important;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Responsive mobile kecil, tetap proporsional */
@media (max-width: 600px) {
    #mobileMenuOverlay .close-btn {
        top: 12px !important;
        left: 12px !important;
        right: auto !important;
        font-size: 1.5rem;
        width: 36px;
        height: 36px;
    }
}

/* Hapus/override aturan yang memindahkan ke kanan */
@media (max-width: 991.98px) {
    #mobileMenuOverlay .close-btn {
        left: 12px !important;
        right: auto !important;
        top: 12px !important;
        margin: 0 !important;
        background: none;
        color: #fff;
    }

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

    #mobileMenuOverlay ul li a {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
        font-size: 1.08rem;
        letter-spacing: 0.02em;
        text-align: center;
        border-radius: 0;
    }
}

.mobileMenuCard {
    background: #fffbe7;
    border-radius: 18px;
    box-shadow: 0 8px 32px #c9a10033, 0 1.5px 8px #ffd70022;
    padding: 24px 12px 18px 12px;
    max-width: 370px;
    width: 92vw;
    min-height: 60vh;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: popInCard 0.25s;
    overflow-y: auto;
}

.mobileMenuCard ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 340px;
}

.mobileMenuCard ul li {
    margin: 0 0 14px 0;
    text-align: center;
    width: 100%;
}

.mobileMenuCard ul li a,
.mobileMenuCard .mobile-menu-toggle {
    background: #ffe082 !important;
    color: #222 !important;
    border-radius: 10px !important;
    font-weight: bold;
    text-align: center;
    border: 2px solid #222 !important;
    transition: background 0.2s, color 0.2s, transform 0.2s, border 0.2s;
    margin-bottom: 8px !important;
    padding: 12px 0 !important;
    box-sizing: border-box;
    font-size: 1.08rem;
}

.mobileMenuCard ul li a.active,
.mobileMenuCard ul li a:hover,
.mobileMenuCard .mobile-menu-toggle[aria-expanded='true'] {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #000 !important;
    border: 2px solid #222 !important;
    transform: scale(1.04);
}

.mobileMenuCard ul li ul li a,
.mobileMenuCard .mobile-submenu li a {
    background: #fffde7 !important;
    color: #c9a100 !important;
    font-size: 1.01rem !important;
    padding-left: 32px !important;
    text-align: left !important;
    text-transform: uppercase !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    border: 2px solid #222 !important;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.mobileMenuCard ul li ul li a.active,
.mobileMenuCard ul li ul li a:hover,
.mobileMenuCard .mobile-submenu li a.active,
.mobileMenuCard .mobile-submenu li a:hover {
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%) !important;
    color: #000 !important;
    border: 2px solid #222 !important;
}

.mobileMenuCloseBar {
    border-bottom: 1px solid #ffe082;
    margin-bottom: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: transparent;
    min-height: 38px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.submenu-arrow {
    margin-left: 8px;
    font-size: 1rem;
    transition: transform 0.2s;
}

.mobile-menu-toggle[aria-expanded='true'] .submenu-arrow {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .mobileMenuCard {
        max-width: 99vw !important;
        width: 99vw !important;
        padding: 12px 2vw 12px 2vw !important;
    }

    .mobileMenuCard ul li a,
    .mobileMenuCard .mobile-menu-toggle {
        font-size: 1rem !important;
        padding: 10px 0 !important;
    }

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

    .mobileMenuCloseBar {
        min-height: 28px;
        padding-top: 2px;
        padding-bottom: 2px;
    }
}

@media (max-width: 400px) {

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

/* --- PROMO POPUP RESPONSIVE FIX --- */
.promo-popup-card {
    max-width: 90vw;
    width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 18px 16px 16px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promo-popup-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 14px auto;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

.promo-popup-card .popup-text {
    font-size: 1.08rem;
    line-height: 1.5;
    color: #222;
    margin-bottom: 0;
    word-break: break-word;
}

@media (max-width: 600px) {
    .promo-popup-card {
        width: 96vw !important;
        max-width: 96vw !important;
        border-radius: 10px !important;
        padding: 12px 2vw 14px 2vw !important;
        margin: 2vw auto !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .promo-popup-card img {
        width: 92vw !important;
        max-width: 92vw !important;
        max-height: 38vw !important;
        height: auto !important;
        border-radius: 8px !important;
        object-fit: contain !important;
        margin-bottom: 12px !important;
        background: #fff !important;
        display: block;
        box-shadow: 0 2px 8px #0001;
    }

    .promo-popup-card .popup-text {
        font-size: 1.04rem !important;
        line-height: 1.45 !important;
        padding: 0 2vw !important;
        word-break: break-word;
        text-align: center;
        color: #222;
        margin-bottom: 0;
    }
}

@media (max-width: 400px) {
    .promo-popup-card {
        padding: 7px 1vw 10px 1vw !important;
        border-radius: 6px !important;
    }

    .promo-popup-card img {
        width: 88vw !important;
        max-width: 88vw !important;
        max-height: 28vw !important;
        border-radius: 4px !important;
    }

    .promo-popup-card .popup-text {
        font-size: 0.93rem !important;
    }
}

@media (max-width: 767px) {
    #promoAdCard {
        width: 96vw !important;
        max-width: 96vw !important;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-radius: 12px !important;
        padding: 0 !important;
        background: #f0f0f0 !important;
        align-items: center !important;
        box-sizing: border-box;
    }

    #promoAdCardImg {
        width: 92vw !important;
        max-width: 92vw !important;
        min-width: 0 !important;
        max-height: 38vw !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 10px !important;
        display: block;
        margin: 12px auto 0 auto !important;
    }

    #promoAdCardText {
        max-width: 92vw !important;
        width: 100% !important;
        padding: 8px 0 14px 0 !important;
        margin: 0 auto !important;
        font-size: 1.01rem !important;
        line-height: 1.45 !important;
        box-sizing: border-box;
        text-align: center !important;
        color: #222 !important;
        word-break: break-word;
    }
}

@media (max-width: 400px) {
    #promoAdCard {
        width: 98vw !important;
        max-width: 98vw !important;
        border-radius: 8px !important;
    }

    #promoAdCardImg {
        width: 88vw !important;
        max-width: 88vw !important;
        max-height: 28vw !important;
        border-radius: 6px !important;
    }

    #promoAdCardText {
        max-width: 88vw !important;
        font-size: 0.93rem !important;
    }
}

/* --- END PROMO POPUP FIX --- */

/* =========================
   FIX: WhatsApp FAB responsive & accessible
   - Limit size with `clamp()` so it stays proportionate on laptop/tablet/mobile
   - Lower z-index to sit above content but below global modals (adjust if you use higher modal z-index)
   - Provide focus/hover states and ensure click target >=44x44px
   - Target `.whatsapp-fab` which is added to the anchor in the blade view
   ========================= */
.whatsapp-fab {
    position: fixed;
    right: clamp(12px, 2vw, 24px);
    bottom: clamp(12px, 2vw, 24px);
    width: clamp(44px, 4.5vw, 56px);
    height: clamp(44px, 4.5vw, 56px);
    z-index: 1001;
    /* above content but below heavy modals (adjust if necessary) */
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    background-color: #25D366;
    display: grid;
    place-items: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-fab img,
.whatsapp-fab svg {
    width: 60%;
    height: 60%;
    display: block;
}

.whatsapp-fab:focus {
    outline: 3px solid #ffffff40;
    outline-offset: 2px;
}

.whatsapp-fab:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

/* Mobile: reduce visual weight and ensure it doesn't overlap important CTAs */
@media (max-width: 480px) {
    .whatsapp-fab {
        width: 44px;
        height: 44px;
        right: 12px;
        bottom: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    }
}

/* If the page has a sticky/footer or booking bar, add a helper class to body: `.has-sticky-footer`.
   That class will push the WhatsApp FAB up so it doesn't overlap booking CTA. */
@media (min-width: 768px) {
    .has-sticky-footer .whatsapp-fab {
        bottom: 72px;
        /* leave room for sticky footer/booking bar */
    }
}

/* Ensure legacy promo styles don't force oversized image: constrain existing selector */
#promoWhatsappPopup .promo-whatsapp-btn img,
#promoWhatsappPopup .promo-whatsapp-btn svg {
    width: 100%;
    height: 100%;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

/* If you want the close button to be visually separate from the FAB on small screens, reduce its size */
#closePromoWhatsappPopup {
    font-size: 1.1rem;
    line-height: 1;
    padding: 6px 8px;
}

/* END WhatsApp FAB fixes */
/* Fix: Back to Top button (rts__back__top) - prevent left/right overlap */
.rts__back__top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    min-width: 40px;
    min-height: 40px;
    max-width: 56px;
    box-sizing: border-box;
    z-index: 1002;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(90deg, #c9a100 0%, #c9a100 100%);
    color: #222;
    border: none;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.rts__back__top img,
.rts__back__top svg {
    width: 55%;
    height: 55%;
    display: block;
}

.rts__back__top:not(.show) {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    pointer-events: none;
}

.rts__back__top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (max-width: 480px) {
    .rts__back__top {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .has-sticky-footer .rts__back__top {
        bottom: 72px;
    }
}

/* If a WhatsApp FAB exists, push the back-to-top button left so they don't overlap */
/* Desired layout: stack vertically (Back-to-Top below WhatsApp).
   When Back-to-Top is visible, move the WhatsApp FAB up by (button height + gap). */
body.has-whatsapp.has-backtop #promoWhatsappPopup {
    bottom: calc(18px + 48px + 12px);
}

/* Also support the alternative WhatsApp button variant used on some pages */
body.has-whatsapp.has-backtop .whatsapp-fab {
    bottom: calc(18px + 48px + 12px);
}

@media (max-width: 480px) {
    body.has-whatsapp.has-backtop #promoWhatsappPopup {
        bottom: calc(12px + 40px + 10px);
    }

    body.has-whatsapp.has-backtop .whatsapp-fab {
        bottom: calc(12px + 40px + 10px);
    }
}

/* When both a sticky footer and WhatsApp exist, lift the button further */
body.has-whatsapp.has-sticky-footer .rts__back__top {
    bottom: calc(72px + 18px);
}

/* Provide an explicit fallback gap variable (optional override) */
:root {
    --rts-wp-gap-desktop: 12px;
    --rts-wp-gap-mobile: 8px;
}

/* Avoid overlap with back-to-top button */
body.has-backtop #promoWhatsappPopup {
    bottom: calc(18px + 56px + 12px);
}

@media (max-width: 480px) {
    body.has-backtop #promoWhatsappPopup {
        bottom: calc(12px + 40px + 8px);
    }
}

/* Raise if page has sticky footer/booking bar */
.has-sticky-footer #promoWhatsappPopup {
    bottom: 72px;
}

@media (max-width: 480px) {
    .has-sticky-footer #promoWhatsappPopup {
        bottom: 64px;
    }
}

/* When both back-to-top is shown and sticky footer exists */
body.has-backtop.has-sticky-footer #promoWhatsappPopup {
    bottom: calc(72px + 18px);
}

@media (max-width: 480px) {
    body.has-backtop.has-sticky-footer #promoWhatsappPopup {
        bottom: calc(64px + 12px);
    }
}