/* =========================================================
   ROOMERA HEADER
   ========================================================= */

#roomera-header.site-header {
    position: sticky;
    top: 0;
    z-index: 5000;

    width: 100%;
    height: auto;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: #ffffff;

    border: 0;
    border-bottom: 1px solid #e9e5de;

    box-shadow:
        0 2px 12px rgba(16, 42, 64, 0.04);
}


/* =========================================================
   CONTAINER
   ========================================================= */

#roomera-header .ht-container {
    width: min(1320px, calc(100% - 48px));
    max-width: 1320px;

    margin: 0 auto;
    padding: 0;
}


/* =========================================================
   MAIN ROW
   ========================================================= */

#roomera-header .header-inner {
    position: relative;

    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr)
        auto;

    align-items: center;

    width: 100%;

    min-height: 74px;

    margin: 0;
    padding: 0;

    gap: 24px;
}


/* =========================================================
   BRAND
   ========================================================= */

#roomera-header .roomera-brand {
    display: inline-flex;

    flex-direction: column;

    align-items: flex-start;
    justify-content: center;

    width: auto;
    min-width: 0;

    margin: 0;
    margin-left: 20px;

    padding: 0;

    color: #102a40;

    line-height: 1;

    text-decoration: none;
}


#roomera-header .roomera-brand img {
    display: none !important;
}


#roomera-header .brand-name {
    display: block;

    margin: 0;
    padding: 0;

    color: #102a40;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: -0.035em;

    text-transform: lowercase;
}


#roomera-header .brand-tagline {
    display: block;

    width: 100%;

    margin-top: 6px;
    padding-top: 4px;

    border-top:
        1px solid #c6ae7c;

    color: #777f86;

    font-family:
        Arial,
        sans-serif;

    font-size: 7px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.2em;

    text-align: center;
    text-transform: uppercase;
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

#roomera-header .main-nav {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;
}


#roomera-header .main-menu {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: nowrap;

    gap: 22px;

    width: auto;

    margin: 0;
    padding: 0;

    list-style: none;
}


#roomera-header .main-menu > li {
    position: relative;

    margin: 0;
    padding: 0;

    list-style: none;
}


#roomera-header .main-menu > li > a {
    position: relative;

    display: flex;
    align-items: center;

    height: 74px;
    min-height: 74px;

    margin: 0;
    padding: 0;

    color: #354756;

    font-family:
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


#roomera-header .main-menu > li > a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 17px;
    left: 0;

    height: 1px;

    background: #c6ae7c;

    transform: scaleX(0);

    transform-origin: center;

    transition:
        transform 0.2s ease;
}


#roomera-header .main-menu > li > a:hover {
    color: #a18755;
}


#roomera-header .main-menu > li > a:hover::after {
    transform: scaleX(1);
}


/* =========================================================
   DESKTOP ACTIONS
   ========================================================= */

#roomera-header .header-actions {
    display: flex !important;

    align-items: center;
    justify-content: flex-end;

    width: auto;

    margin: 0;
    padding: 0;

    gap: 18px;

    white-space: nowrap;
}


#roomera-header .header-phone {
    display: inline-flex !important;

    align-items: center;

    gap: 7px;

    margin: 0;
    padding: 0;

    color: #102a40;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 500;

    line-height: 1;

    text-decoration: none;
}


#roomera-header .header-phone:hover {
    color: #a18755;
}


#roomera-header .header-phone svg {
    width: 17px;
    height: 17px;
}


/* =========================================================
   LANGUAGE
   ========================================================= */

#roomera-header .language-switcher {
    display: flex;

    align-items: center;

    margin: 0;
    padding: 0;

    color: #536471;

    font-size: 11px;
    font-weight: 600;
}


#roomera-header .language-switcher ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


#roomera-header .language-switcher a {
    color: #536471;

    text-decoration: none;
}


/* =========================================================
   DESKTOP BUTTON
   ========================================================= */

#roomera-header .header-price {
    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: auto;

    min-height: 42px;

    margin: 0;

    padding: 0 18px;

    border:
        1px solid #d7bf8d;

    border-radius: 5px;

    background: #ddc897;

    color: #102a40;

    font-family:
        Arial,
        sans-serif;

    font-size: 12px;
    font-weight: 600;

    line-height: 1;

    white-space: nowrap;

    text-decoration: none;
}


/* =========================================================
   BURGER
   ========================================================= */

#roomera-header .mobile-nav-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 7px;

    background: #f8f6f1;

    color: #102a40;

    cursor: pointer;
}


#roomera-header .mobile-nav-toggle svg {
    width: 25px;
    height: 25px;
}


#roomera-header .mobile-nav-toggle-icon,
#roomera-header .mobile-nav-toggle-close {
    display: flex;

    align-items: center;
    justify-content: center;
}


#roomera-header .mobile-nav-toggle-close {
    display: none;
}


#roomera-header.nav-open
.mobile-nav-toggle-icon {
    display: none;
}


#roomera-header.nav-open
.mobile-nav-toggle-close {
    display: flex;
}


/* =========================================================
   MOBILE PANEL DEFAULT
   ========================================================= */

#roomera-header .mobile-header-panel {
    display: none;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.roomera-menu-open {
    overflow: hidden;
}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1420px) {

    #roomera-header .ht-container {
        width:
            calc(100% - 36px);
    }


    #roomera-header .header-inner {
        grid-template-columns:
            130px
            minmax(0, 1fr)
            auto;

        gap: 18px;
    }


    #roomera-header .main-menu {
        gap: 17px;
    }


    #roomera-header .main-menu > li > a {
        font-size: 12px;
    }


    #roomera-header .header-actions {
        gap: 12px;
    }


    #roomera-header .header-price {
        padding-right: 14px;
        padding-left: 14px;
    }


    #roomera-header .roomera-brand {
        margin-left: 14px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1180px) {

    #roomera-header .header-inner {
        grid-template-columns:
            auto 1fr auto;

        min-height: 68px;
    }


    #roomera-header .main-nav,
    #roomera-header .header-actions {
        display: none !important;
    }


    #roomera-header .mobile-nav-toggle {
        display: inline-flex !important;

        grid-column: 3;

        justify-self: end;
    }


    #roomera-header .mobile-header-panel {
        position: absolute;

        top: 100%;
        right: 0;
        left: 0;

        z-index: 5001;

        display: none;

        width: 100%;

        max-height:
            calc(100vh - 68px);

        overflow-y: auto;

        padding: 20px;

        background: #ffffff;

        border-top:
            1px solid #eee9e0;

        box-shadow:
            0 18px 35px
            rgba(16, 42, 64, 0.12);
    }


    #roomera-header.nav-open
    .mobile-header-panel {
        display: block;
    }


    #roomera-header
    .mobile-header-menu ul {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin: 0;
        padding: 0;

        gap: 0 28px;

        list-style: none;
    }


    #roomera-header
    .mobile-header-menu li {
        border-bottom:
            1px solid #eee9e0;
    }


    #roomera-header
    .mobile-header-menu a {
        display: flex;

        align-items: center;

        min-height: 52px;

        color: #243b4d;

        font-size: 14px;
        font-weight: 500;

        text-decoration: none;
    }


    #roomera-header
    .mobile-header-phone {
        display: flex;

        align-items: center;
        justify-content: center;

        gap: 8px;

        min-height: 44px;

        margin-top: 20px;

        color: #102a40;

        font-size: 14px;
        font-weight: 500;

        text-decoration: none;
    }


    #roomera-header
    .mobile-language-switcher {
        margin-top: 14px;

        text-align: center;
    }


    #roomera-header
    .mobile-header-price {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 100%;

        min-height: 48px;

        margin-top: 16px;

        padding: 0 20px;

        border-radius: 5px;

        background: #ddc897;

        color: #102a40;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;
    }


    #roomera-header .roomera-brand {
        margin-left: 8px;
    }

}


/* =========================================================
   PHONE - FULL SCREEN MENU
   ========================================================= */

@media (max-width: 640px) {

    #roomera-header.site-header {
        height: 64px;
    }


    #roomera-header .ht-container {
        width: calc(100% - 24px);
    }


    #roomera-header .header-inner {
        min-height: 64px;
        height: 64px;
    }


    #roomera-header .brand-name {
        font-size: 25px;
    }


    #roomera-header .brand-tagline {
        margin-top: 5px;

        padding-top: 3px;

        font-size: 6px;
    }


    #roomera-header .roomera-brand {
        margin-left: 14px;
    }


    #roomera-header .mobile-nav-toggle {
        width: 44px;
        height: 44px;
    }


    /*
     * Full viewport mobile menu.
     * Header stays visible.
     */
    #roomera-header .mobile-header-panel {
        position: fixed;

        top: 64px;
        right: 0;
        bottom: 0;
        left: 0;

        z-index: 4999;

        display: none;

        flex-direction: column;

        width: 100vw;
        max-width: none;

        height:
            calc(100vh - 64px);

        height:
            calc(100dvh - 64px);

        max-height: none;

        margin: 0;

        padding:
            26px
            26px
            max(
                26px,
                env(safe-area-inset-bottom)
            );

        overflow-x: hidden;
        overflow-y: auto;

        background: #ffffff;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        overscroll-behavior: contain;
    }


    #roomera-header.nav-open
    .mobile-header-panel {
        display: flex;
    }


    /*
     * Menu takes all free vertical space.
     */
    #roomera-header
    .mobile-header-menu {
        flex: 1 0 auto;
    }


    #roomera-header
    .mobile-header-menu ul {
        display: block;

        width: 100%;

        margin: 0;
        padding: 0;

        list-style: none;
    }


    #roomera-header
    .mobile-header-menu li {
        width: 100%;

        margin: 0;
        padding: 0;

        border-bottom:
            1px solid #e9e5de;
    }


    #roomera-header
    .mobile-header-menu li:first-child {
        border-top:
            1px solid #e9e5de;
    }


    #roomera-header
    .mobile-header-menu a {
        display: flex;

        align-items: center;

        width: 100%;
        min-height: 61px;

        margin: 0;
        padding: 0;

        color: #20384b;

        font-size: 17px;
        font-weight: 400;

        line-height: 1.2;

        text-decoration: none;
    }


    #roomera-header
    .mobile-header-menu a:active {
        color: #9f8250;
    }


    /*
     * Phone at bottom
     */
    #roomera-header
    .mobile-header-phone {
        display: flex;

        flex: 0 0 auto;

        align-items: center;
        justify-content: center;

        min-height: 54px;

        margin-top: 25px;

        gap: 10px;

        color: #102a40;

        font-size: 16px;
        font-weight: 500;

        text-decoration: none;
    }


    #roomera-header
    .mobile-header-phone svg {
        width: 21px;
        height: 21px;
    }


    /*
     * Language
     */
    #roomera-header
    .mobile-language-switcher {
        flex: 0 0 auto;

        width: 100%;

        margin-top: 10px;

        text-align: center;
    }


    /*
     * CTA at bottom
     */
    #roomera-header
    .mobile-header-price {
        display: flex;

        flex: 0 0 auto;

        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 56px;

        margin-top: 17px;

        padding: 0 20px;

        border-radius: 6px;

        background: #ddc897;

        color: #102a40;

        font-size: 16px;
        font-weight: 600;

        line-height: 1;

        text-align: center;

        text-decoration: none;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 380px) {

    #roomera-header .roomera-brand {
        margin-left: 12px;
    }


    #roomera-header .brand-name {
        font-size: 22px;
    }


    #roomera-header
    .mobile-header-panel {
        padding-right: 20px;
        padding-left: 20px;
    }


    #roomera-header
    .mobile-header-menu a {
        min-height: 56px;

        font-size: 16px;
    }

}