#header {
    background-color: white;
    /*background: repeat space center url(/img/site/header_pattern.jpg), linear-gradient(135deg, #ffffff, #ffffff);*/
    background-size: contain;
     background-repeat: space;
    height: 90px;
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 4;
    /* box-shadow: 0px 1px 8px 0px #d1c29259; */
    border-bottom: 1px solid #d1c29259;
    background-blend-mode: luminosity;
}

/*.header-triangle {
    position: absolute;
    width: 80px;
    height: 100%;
    background-color: #022148;
    left: -50px;
    top: -40px;
    border-top: 87px solid #fec90f;
    border-left: 95px solid #022148;
    border-right: 72px solid #022148;
    border-bottom: 0px solid #022148;
    transform: rotate(142deg);
}*/

.container.top-header {
    height: 100%;
}

.top-header .row {
    position: relative;
    z-index: 2;
    height: 100%;
}

.top-header .row {
    justify-content: center;
    align-items: center;
}

.top-header .navbar {
    background-color: transparent !important;
    box-shadow: none;
}

.top-header #navbarNav {
    /*justify-content: center;*/
    align-items: center;
}

.top-header .nav-item {
    /*border: 1px solid #fec90f;*/
    margin-right: 20px;
    border-radius: 10px;
    /*box-shadow: 0px 0px 2px 0px #cbcaca;*/
}

#header .dropdown:hover>.dropdown-menu {
    display: flex;
}

#header .top-header .dropdown:hover>.dropdown-menu {
    width: 600px;
}

#header .dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}

.search-dropdown-title {
    display: flex;
    align-content: center;
    align-items: center;
    height: 65px;
    margin-bottom: 10px;
}

.search-dropdown-title svg {
    padding: 10px;
    border-radius: 25px;
    margin-right: 10px;
    color: #fec90f;
    background-color: #fec90f36;
    width: 1vw;
    height: 1vw;
}

#header a:hover {
    color: #fec90f;
}

#header .nav-link:hover {
    color: #fec90f !important;
}

.dropdown-list {
    /*list-style-type: "-";*/
    list-style-type: none;
    padding-right: 15px;
}

.dropdown-list p {
    margin-bottom: 0px;
    font-weight: 500;
}

.property-search-submenu .last {
    background-color: var(--bs-dropdown-link-hover-bg);
    margin-top: 10px;
}

.top-header .nav-link {
    font-size: 0.85rem;
    color: #022148db;
    text-transform: uppercase;
    text-indent: 5px;
    word-spacing: 4px;
    border-radius: 10px;
    letter-spacing: 1px;
    padding: 7px;
    font-weight: 500;
    border: 1px solid #fec90f;
}

.top-header .logo {
    width: 9.5vw;
    background-color: #fec90f;
    border-radius: 16px;
    padding: 1px 6px;
    border: 1px solid;
    box-shadow: 0px 0px 0px 3px #fec90f;
    filter: drop-shadow(2px 3px 2px rgb(0 0 0 / 0.4));
}

.main-menu-contact {
    display: flex;
}

.main-menu-contact a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fec90f;
    text-decoration: none;
}

.main-menu-contact .wechat-img {
    width: 50px;
    margin-left: 20px;
}

.main-menu-contact-icon {
    height: 43px;
    margin-right: 10px;
}

.main-menu-contact-icon img {
    filter: drop-shadow(2px 3px 2px rgb(0 0 0 / 0.4));
}

.main-menu-contact-text {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    color: #022148;
}

#offcanvas-btn {
    height: 55px;
    width: 55px;
    /*border: 1px solid white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;*/
    cursor: pointer;
    margin: auto;
}

#offcanvas-btn div {
    width: 45%;
    height: 5px;
    background-color: white;
    margin: 2px 0;
}

#offcanvas-btn img {
    filter: drop-shadow(2px 3px 2px rgb(0 0 0 / 0.4));
}

.language-flags {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 12px;
}

.language-flags .select2-selection {
    border-radius: 1.25rem !important;
    padding: 0.375rem 2rem 0.375rem 0.5rem !important;
}

.language-flag {
    width: 25px;
    cursor: pointer;
    margin-right: 13px;
}

@media only screen and (min-width: 1921px) {
    .top-header {
        max-width: 2100px;
    }
}

@media only screen and (max-width: 1921px) {
    .top-header {
        max-width: 1900px;
    }
}

@media screen and (max-width: 1680px) {
    .top-header .logo {
        width: 13vw;
    }

    .search-dropdown-title svg {
        height: 1.3vw;
        width: 1.3vw;
    }
}

@media only screen and (max-width: 1400px) {
    .search-dropdown-title svg {
        height: 1.5vw;
        width: 1.5vw;
    }

    .top-header .logo {
        width: 14vw;
    }

    #offcanvas-btn {
        height: 50px;
        width: 50px;
    }

    .main-menu-contact .wechat-img {
        display: none;
    }
}

@media only screen and (max-width: 1200px) {
    .search-dropdown-title svg {
        height: 1.7vw;
        width: 1.7vw;
    }

    .top-header .logo {
        width: 15vw;
    }

    .main-menu-contact-text {
        font-size: 0.9rem;
    }

    .top-header {
        max-width: 1080px;
    }

    .language-flags {
        padding: 0px 12px;
    }

    .language-flag {
        margin-right: 0px;
        margin-top: 3px;
    }
}

@media only screen and (max-width: 992px) {
    .top-header .logo {
        width: 21vw;
    }

    .top-header {
        max-width: 90%;
    }

    .language-flags {
        padding: 0px 0px;
        margin-left: 5px;
    }
}

@media only screen and (max-width: 768px) {
    .top-header .logo {
        width: 26vw;
    }

    .language-flags-box {
        display: none;
    }
}

@media only screen and (max-width: 576px) {
    #header {
        height: 75px;
    }

    .top-header .logo {
        width: 31vw;
    }

    .header-triangle {
        left: -87px;
    }

    .main-menu-contact {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    .top-header .logo {
        width: 40vw;
    }
}

@media only screen and (max-width: 420px) {
    .top-header {
        max-width: 335px;
    }

    .top-header .logo {
        width: 47vw;
    }
}

@media only screen and (max-width: 360px) {
    .top-header {
        max-width: 290px;
    }
}

@media only screen and (max-width: 320px) {
    .top-header .logo {
        width: 53vw;
    }
}