/* 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. */

/* Single source-of-truth for mobile menu overlay */
@import url("mobile-menu-overlay.css");

/* 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;
    }
}

/* Gallery/mobile overlay fine-tuning moved to mobile-menu-overlay.css */

.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: var(--btn-1) !important;
    color: #fff !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: var(--btn-1) !important;
    color: #fff !important;
}

@media (max-width: 767px) {

    .theme-btn,
    .theme-btn2,
    .book-btn,
    .book-btn-mobile {
        font-size: 0.98rem !important;
        padding: 10px 18px !important;
        border-radius: 8px !important;
        width: 100% !important;
        margin-top: 0.7rem !important;
    }

    /* Offers page: keep the Contact Us CTA compact on mobile */
    .offers-contact-btn {
        width: auto !important;
        min-width: unset !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        border-radius: 999px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Responsive Offer Cards Grid */
.offer__card {
    background: #fff;
    border-radius: 14px;
    /* box-shadow: 0 2px 12px #c9a10044; */
    /* Hapus shadow */
    padding: 18px 12px 16px 12px;
    margin-bottom: 28px;
    text-align: center;
    transition: transform 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 260px;
}

.offer__card:hover {
    transform: translateY(-6px) scale(1.03);
    /* box-shadow: 0 6px 24px #c9a10066; */
    /* Hapus shadow */
}

.offer__image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Pastikan gambar mulai dari atas card */
    overflow: hidden;
    /* Hindari gambar keluar dari card */
}

.offer__image img {
    border-radius: 10px;
    width: 100%;
    height: 170px;
    max-width: 340px;
    object-fit: cover;
    margin-bottom: 14px;
    display: block;
}

/* Responsive image & card di mobile */
@media (max-width: 767px) {
    .offer__card {
        min-height: 270px;
        /* Tambah tinggi card jika perlu */
        padding: 14px 6px 12px 6px;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
        /* Pastikan konten tidak terpotong */
    }

    .offer__image {
        height: 200px;
        /* Tinggi container gambar diperbesar */
        min-height: 200px;
        max-height: 200px;
    }

    .offer__image img {
        height: 200px;
        /* Tinggi gambar sama dengan container */
        max-width: 100%;
        object-fit: cover;
        display: block;
        margin-bottom: 0;
    }
}

/* Samakan ukuran card pada desktop */
@media (min-width: 768px) {
    .offer__card {
        max-width: 340px;
        min-height: 250px;
        /* dikurangi dari 300px */
        height: 100%;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .offer__image {
        height: 200px;
        /* ubah tinggi container gambar */
        min-height: 200px;
        max-height: 200px;
    }

    .offer__image img {
        width: 100%;
        /* pastikan gambar lebar penuh */
        height: 200px;
        /* samakan dengan container */
        object-fit: cover;
        /* gambar tetap proporsional */
        max-width: none;
        /* hapus batasan max-width */
        margin-bottom: 0;
        border-radius: 10px;
        display: block;
    }
}

/* Responsive grid spacing */
@media (max-width: 991px) {
    .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {

    .col-lg-3,
    .col-md-4,
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Container padding for mobile */
@media (max-width: 600px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Jarak antar info/text di bawah gambar pada card */
.offer__info,
.offer__title,
.offer__desc {
    margin-top: 14px;
    margin-bottom: 8px;
}

@media (max-width: 767px) {

    .offer__info,
    .offer__title,
    .offer__desc {
        margin-top: 10px;
        margin-bottom: 6px;
    }

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

/* 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;
    }
}

/* Mobile overlay close-btn positions moved to mobile-menu-overlay.css */