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

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

/* Ikuti custom-home.css: arrow konsisten */
.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;
}

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

/* Gallery Styles */
.gallery__filter {
    margin-bottom: 30px;
}

.gallery__filter button {
    background: none;
    border: 1px solid #ccc;
    padding: 8px 20px;
    margin: 0 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.gallery__filter button:hover,
.gallery__filter button.is-checked {
    background: #c8a97e;
    color: white;
    border-color: #c8a97e;
}

.gallery__item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery__item:hover {
    transform: translateY(-5px);
}

.gallery__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

.gallery__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* Animation for filtering */
.grid-item {
    transition: all 0.5s ease;
}

.hidden-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.visible-item {
    display: block;
    opacity: 1;
}

/* Fixed Header Styles (match index.blade.php) */
.header__top {
    position: static;
    background: linear-gradient(90deg, #c9a100 0%, #d2b48c 100%);
    color: #222;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 2px 12px 0 #d2b48c;
    width: 100%;
    padding: 0;
    z-index: 1;
}

.main__header {
    position: static;
    background: linear-gradient(90deg, #fffbe6 0%, #fcffb2 100%);
    box-shadow: 0 2px 16px 0 #c9a100;
    border-radius: 0 0 18px 18px;
    z-index: 1;
}

.main__logo img {
    height: 56px !important;
    width: auto;
    filter: drop-shadow(0 2px 8px #c9a100);
    transition: none;
}

.page__hero__height {
    margin-top: 0 !important;
}

@media (max-width: 991px) {
    .main__header {
        top: 0;
    }

    .header__top {
        display: none;
    }

    .page__hero__height {
        margin-top: 0 !important;
    }
}

@import url("mobile-menu-overlay.css");
/* Mobile menu overlay styles moved to `mobile-menu-overlay.css` — keep single source-of-truth. */

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

#mobileMenuOverlay .close-btn {
    position: absolute !important;
    top: 24px !important;
    left: 32px !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;
}

#mobileMenuOverlay .close-btn:hover {
    transform: scale(1.2);
}

#mobileMenuOverlay ul {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    max-width: 320px;
    /* Changed from 300px to match original size */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

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

#mobileMenuOverlay ul li a.book-btn-mobile {
    background: #c9a100 !important;
    color: #000 !important;
    transition: all 0.3s ease;
}

#mobileMenuOverlay ul li a.book-btn-mobile:hover {
    background: #c9a100 !important;
    transform: scale(1.04);
}

#mobileMenuOverlay ul li a:hover,
#mobileMenuOverlay ul li a.active {
    background: #c9a100;
    color: #000;
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    #mobileMenuOverlay ul li a {
        font-size: 1.1rem;
        padding: 10px 15px;
    }

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

@media (max-width: 480px) {
    #mobileMenuOverlay ul li a {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

/* Prevent content shifting when menu opens */
body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* Ensure main content stays behind menu */
.main-content {
    position: relative;
    z-index: 1;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s;
}

.gallery-modal-content {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 18px;
    background: #fff;
    object-fit: contain;
}

.gallery-modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 100001;
    transition: transform 0.2s;
}

.gallery-modal-close:hover {
    transform: scale(1.2);
}

#galleryModalCaption {
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    max-width: 90vw;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .gallery-modal-content {
        max-width: 98vw;
        max-height: 50vh;
    }

    .gallery-modal-close {
        top: 16px;
        right: 18px;
        font-size: 2rem;
    }

    #galleryModalCaption {
        font-size: 1rem;
    }
}

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

.gallery-collage-grid-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    grid-auto-flow: dense;
}

@media (max-width: 991px) {
    .gallery-collage-grid-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .collage-item-masonry {
        min-height: 100px;
    }
}

@media (max-width: 600px) {
    .gallery-collage-grid-masonry {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .collage-item-masonry {
        min-height: 80px;
        border-radius: 10px;
    }

    .collage-caption-masonry {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
}

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

/* Konsistensi posisi tombol X mobile menu overlay di kiri atas */
#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;
}

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

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

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