.loco-menu-preferences { width: 290px; max-width: calc(100vw - 24px); }
.loco-top-navigation, .loco-top-submenu { display: none; }
:root { --loco-top-navigation-height: 68px; }

@media (min-width: 1200px) {
    html[data-menu-position="top"].layout-navbar-fixed .layout-wrapper.layout-content-navbar #layout-menu { display: none !important; }
    html[data-menu-position="top"].layout-navbar-fixed .layout-wrapper.layout-content-navbar .layout-page {
        padding-inline-start: 0 !important;
        padding-block-start: calc(var(--loco-shell-header-height) + var(--loco-top-navigation-height)) !important;
    }
    html[data-menu-position="top"].layout-navbar-fixed .layout-wrapper.layout-content-navbar #layout-navbar.layout-navbar.navbar-detached {
        inline-size: 100% !important;
        inset-inline-start: 0 !important;
    }
    /* Keep page summaries below both fixed navigation rows while scrolling. */
    html[data-menu-position="top"] .layout-page :is(.be-rooms, .eb-summary, .reserve-side, .product-form-shell .summary-card, .contract-summary-wrap) {
        top: calc(var(--loco-shell-header-height) + var(--loco-top-navigation-height) + 24px);
    }
    html[data-menu-position="top"] .layout-page .contract-summary-wrap {
        max-height: calc(100vh - var(--loco-shell-header-height) - var(--loco-top-navigation-height) - 40px);
    }
    html[data-menu-position="top"] .loco-top-navigation {
        display: flex;
        position: fixed;
        inset: var(--loco-shell-header-height) 0 auto;
        height: var(--loco-top-navigation-height);
        padding: 4px 12px;
        gap: 4px;
        background: #fffdfb;
        border-bottom: 1px solid #f3e5db;
        box-shadow: 0 3px 10px rgba(47, 43, 61, .04);
        z-index: 1070;
    }
    .loco-top-items {
        display: flex;
        flex: 1;
        min-width: 0;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: #d8dbe2 transparent;
    }
    .loco-top-link {
        display: flex;
        flex: 1 0 auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 70px;
        padding: 4px 10px;
        border: 0;
        border-radius: 7px;
        background: transparent;
        color: #73685f;
        font: inherit;
        font-size: 12px;
        font-weight: 500;
        white-space: nowrap;
    }
    .loco-top-link > i { --bs-icon-size: 18px; font-size: 18px; color: #bd8059; }
    .loco-top-link:hover, .loco-top-link[aria-expanded="true"] { background: #fff2e8; color: #b84212; }
    .loco-top-link:hover > i, .loco-top-link[aria-expanded="true"] > i { color: #e65a20; }
    .loco-top-link.active { background: #ffeadb; color: #b84212; box-shadow: inset 0 0 0 1px #ffd4b7; font-weight: 600; }
    .loco-top-link.active > i { color: #e65a20; }
    .loco-top-link:focus-visible, .loco-top-submenu a:focus-visible { outline: 2px solid #d8551e; outline-offset: -2px; }
    .loco-top-scroll { align-self: center; flex: 0 0 30px; padding: 0; height: 36px; }
    html[data-menu-position="top"] .loco-top-submenu:not([hidden]) {
        display: block;
        position: fixed;
        width: 272px;
        overflow-y: auto;
        padding: 8px;
        background: #fff;
        border: 1px solid #e6e7ec;
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(47, 43, 61, .15);
        z-index: 1071;
    }
    .loco-top-submenu a { display: block; padding: 10px 12px; border-radius: 7px; color: #343748; font-size: 14px; }
    .loco-top-submenu a:hover { background: #fff2e8; color: #b84212; }
    .loco-top-submenu a.active { background: #ffeadb; color: #b84212; box-shadow: inset 0 0 0 1px #ffd4b7; font-weight: 600; }
    body.modal-open .loco-top-navigation, body.modal-open .loco-top-submenu { z-index: 9; }
}

@media print {
    .loco-top-navigation, .loco-top-submenu, .loco-menu-preferences { display: none !important; }
    html[data-menu-position="top"].layout-navbar-fixed .layout-wrapper.layout-content-navbar .layout-page { padding: 0 !important; }
}
