/* Bottom navigation. Desktop rules and existing common CSS are retained. */
@media screen and (max-width: 1024px) {
    :root {
        --ngm-bottom-safe-left: env(safe-area-inset-left, 0px);
        --ngm-bottom-safe-right: env(safe-area-inset-right, 0px);
        --ngm-bottom-safe-bottom: env(safe-area-inset-bottom, 0px);
        --ngm-bottom-nav-height: calc(69px + var(--ngm-bottom-safe-bottom));
    }
    html { scroll-padding-bottom: calc(var(--ngm-bottom-nav-height) + 16px); }
    body.ngm-bottom-navigation { padding-bottom: calc(var(--ngm-bottom-nav-height) + 16px); }
    body.ngm-bottom-navigation .mobile-fixed-cta.sp-only {
        box-sizing: border-box;
        display: grid !important;
        grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        gap: 6px;
        min-height: 0;
        right: 0;
        width: auto;
        max-width: none;
        padding: 6px max(6px, var(--ngm-bottom-safe-right)) calc(6px + var(--ngm-bottom-safe-bottom)) max(6px, var(--ngm-bottom-safe-left));
        border-top: 0;
        background: transparent;
        box-shadow: none;
        z-index: 20004;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta > a,
    body.ngm-bottom-navigation .mobile-fixed-cta #sp-menu .sp-menu-trigger {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        min-height: 56px;
        margin: 0;
        padding: 5px 4px;
        border: 2px solid;
        border-radius: 8px;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta__booking {
        font-size: clamp(13px, 3.5vw, 15px);
        font-weight: 700;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta__booking span { white-space: nowrap; }
    body.ngm-bottom-navigation .mobile-fixed-cta__phone {
        flex-direction: column;
        font-size: 12px;
        font-weight: 700;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta .mobile-fixed-cta__icon {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta #sp-menu {
        position: static;
        display: flex;
        width: auto;
        height: auto;
        margin: 0;
        padding: 0;
        background: none;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta #sp-menu .sp-menu-trigger {
        position: static;
        flex-direction: column;
        height: 100%;
        color: #a64e10;
        border-color: #dd8a46;
        background: #fff;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, .88), 0 2px 8px rgba(0, 0, 0, .22);
        animation: none;
        transform: none;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta .sp-menu-label {
        height: auto;
        font-size: 12px;
        line-height: 15px;
    }
    body.ngm-bottom-navigation .mobile-fixed-cta .sp-menu-icon { width: 22px; height: 16px; margin: 0; }
    body.ngm-bottom-navigation .mobile-fixed-cta .sp-menu-icon span { width: 22px; height: 2px; }
    body.ngm-bottom-navigation.ngm-mobile-menu-open .sp-menu-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.ngm-bottom-navigation.ngm-mobile-menu-open .sp-menu-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    body.ngm-bottom-navigation.ngm-mobile-menu-open .mobile-fixed-cta.sp-only {
        right: var(--ngm-menu-scrollbar-gap, 0px);
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: none;
    }
    body.ngm-bottom-navigation #header-navigation.header-nav {
        top: var(--ngm-menu-admin-offset, 0px);
        right: var(--ngm-menu-scrollbar-gap, 0px);
        bottom: var(--ngm-bottom-nav-height);
        left: 0;
        width: auto;
        height: calc(100dvh - var(--ngm-bottom-nav-height) - var(--ngm-menu-admin-offset, 0px));
        padding: 0;
        z-index: 20002;
    }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-panel {
        box-sizing: border-box;
        width: calc(100% - 16px);
        max-width: 430px;
        height: 100%;
        max-height: 100%;
        padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, var(--ngm-bottom-safe-right)) 18px max(12px, var(--ngm-bottom-safe-left));
        scroll-padding: 12px;
        overscroll-behavior: contain;
    }
    body.ngm-bottom-navigation .ngm-mobile-menu-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; border-bottom: 2px solid #ef9c56; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-title { flex: 1; min-height: 48px; margin: 0; padding: 0 6px; border: 0; }
    body.ngm-bottom-navigation .ngm-mobile-menu-close { min-width: 76px; min-height: 44px; padding: 8px; border: 1px solid #dd8a46; border-radius: 6px; background: #fff; color: #93440d; font-size: 14px; line-height: 1.4; }
    body.ngm-bottom-navigation .ngm-mobile-menu-close:focus-visible,
    body.ngm-bottom-navigation .mobile-fixed-cta .sp-menu-trigger:focus-visible { outline: 3px solid #17365d; outline-offset: 2px; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-news { margin: 0 0 12px; padding: 0 0 10px; border-top: 0; border-bottom: 1px solid #e7d8c9; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-news h2 { margin: 0 0 6px; padding: 0 2px; font-size: 15px; line-height: 1.4; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-news li { display: block; height: auto; margin-bottom: 6px; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-news a { display: block; height: auto; min-height: 44px; padding: 7px 9px; font-size: 14px; font-weight: 400; line-height: 1.5; }
    body.ngm-bottom-navigation .ngm-mobile-menu-news time { display: block; margin-bottom: 2px; color: #76695c; font-size: 11px; line-height: 1.4; }
    body.ngm-bottom-navigation .ngm-mobile-menu-news-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-height: 3em; overflow: hidden; line-height: 1.5; overflow-wrap: anywhere; }
    body.ngm-bottom-navigation #header-navigation .ngm-mobile-menu-news .ngm-mobile-menu-news-archive { margin-top: 6px; padding: 8px 4px; text-align: center; color: #984808; font-size: 13px; font-weight: 600; line-height: 1.4; }
    body.ngm-bottom-navigation .ngm-back-to-top { bottom: calc(var(--ngm-bottom-nav-height) + 12px); }
    body.ngm-bottom-navigation input,
    body.ngm-bottom-navigation select,
    body.ngm-bottom-navigation textarea { scroll-margin-bottom: calc(var(--ngm-bottom-nav-height) + 16px); }
}
/* The old upper MENU no longer needs a reserved logo column. Preserve image sizing. */
@media screen and (max-width: 767px) {
    body.ngm-bottom-navigation #header-middle .sp-nav #sp-top {
        width: 100%;
        margin: 0;
        text-align: center;
    }
    body.ngm-bottom-navigation #header-middle .sp-nav #sp-top .ngm-brand-link,
    body.ngm-bottom-navigation #header-middle .sp-nav #sp-top .ngm-brand-logo {
        margin-left: auto;
        margin-right: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.ngm-bottom-navigation .mobile-fixed-cta,
    body.ngm-bottom-navigation .mobile-fixed-cta .sp-menu-icon span { transition: none; }
}
