#offcanvas {
    height: 680px;
    max-width: 100%;
    z-index: 1052;
}

#offcanvas a:hover button svg {
    color: white;
}

.offcanvas-header {
    border-bottom: 1px solid;
    background-color: #fec90f;
}

.mobile-offcanvas-header {
    display: none;
}

.mobile-offcanvas-header span.select2-selection.select2-selection--single {
    height: calc(1.8rem + 2px);
    padding: 0.275rem 1.5rem 0.275rem 0.5rem;
    border: none;
    box-shadow: none;
}

.mobile-offcanvas-header span#select2-w0-container {
    font-size: 0.8rem;
}

.btn-close {
    border: 1px solid;
    border-radius: 20px;
}

.property-featured-buttons {
    display: none;
    margin-bottom: 20px;
}

.property-featured-buttons .btn{
    background-color: #022148;
    color: #fec90f;
    margin-bottom: 7px;
}

.header-row {
    height: auto !important;
}

.header-row {
    justify-content: center;
}

.offcanvas .header-row {
    z-index: initial !important;
}

#offcanvas-favorites, #offcanvas-recent {
    width: 30vw;
    z-index: 9999;
}

.offcanvas-body {
    overflow-x: hidden;
}

.offcanvas-body svg {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #303a53;
}

.offcanvas-header .icon-logo {
    width: 50px;
    margin-left: 100px;
}

.user-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-search-icon, .favorites-icon, .recent-icon {
    margin-left: 30px;
}

.offcanvas-search-icon a, .mobile-search-icon a {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    color: #303a53;
    text-decoration: none;
}

.mobile-search-icon a {
    margin-bottom: 15px;
    color: #303a53cf;
    font-size: 1.4rem;
}

.offcanvas-search-icon a:hover, .mobile-search-icon a:hover {
    color: white !important;
}

.mobile-favorites-icon, .mobile-recent-icon {
    font-size: 1.4rem;
}

.offcanvas-search-icon svg, .mobile-search-icon svg {
    padding: 7px 5px 6px 5px;
    border: 1px solid #303a53;
    border-radius: 50px;
}

.mobile-favorites-icon svg, .mobile-recent-icon svg{
    border: none;
    padding: 8px 6px 8px 6px !important;
    background-color: #fec90f;
    margin-bottom: 0px;
}

.favorites-btn:hover, .recent-btn:hover {
    color: white !important;
}

.mobile-user-icon {
    border: 1px solid #303a53;
    border-radius: 50px;
    margin-right: 10px;
    color: #303a53;
    padding: 7px 6px 0px 6px;
    background-color: #fec90f;
}

.favorites-btn, .recent-btn {
    border: none;
    background-color: transparent;
    color: #303a53;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.favorites-btn svg, .recent-btn svg {
    padding: 7px 5px 6px 5px;
    border: 1px solid #303a53;
    border-radius: 50px;
}

#favorites-close-btn, #recent-close-btn {
    border: 1px solid;
    border-radius: 20px;
}

#offcanvas-favorites-link, #offcanvas-recent-link {
    text-decoration: none;
}

.favorites-background-img {
    width: 95%;
    height: 100%;
    position: absolute;
    background: url(/img/site/favorites-background.png);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    background-position: 50% 30%;
    z-index: -1;
}

#recent-list .remove-favorite, #recent-list .mobile-remove-favorite {
    display: none;
}

#favorites-list .mobile-remove-favorite {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
}

.mobile-user-buttons {
    display: none;
    font-size: 0.8rem;
}

.mobile-user-buttons svg{
    font-size: 1rem;
}

.user-menu {
    display: flex;
    margin-left: 30px;
    align-items: center;
    flex-direction: column;
}

.user-menu ul {
    align-items: center;
    justify-content: center;
}

.user-menu li {
    margin-right: 10px;
}

.user-menu a {
    color: #303a53;
    text-decoration: none;
}

.user-menu a:hover {
    color: white !important;
}

.user-dropdown {
    flex-wrap: wrap;
}

.user-icon {
    border: 1px solid #303a53;
    border-radius: 50px;
    margin-right: 10px;
    color: #303a53;
    padding: 4px 5px 2px 5px;
}

.featured-pages a {
    color: white;
    background-color: #022147;
    padding: 13px;
    border-radius: 20px;
    text-decoration: none;
}

.offcanvas-close-btn {
    display: flex;
}

.offcanvas-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.offcanvas-menus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.offcanvas-list {
    /*margin-right: 40px;*/
}

.offcanvas-list p {
    font-weight: 500;
}

.offcanvas-list a {
    text-decoration: none;
}

.offcanvas-list ul {
    padding: 0px;
    list-style: none;
}

/*.offcanvas-list:nth-of-type(2) ul {
    height: 300px;
    overflow-y: scroll;
}*/

.offcanvas-list li, .offcanvas-list li a {
    color: #6c6666;
    text-decoration: none;
}

.offcanvas-contact {
    display: flex;
    flex-wrap: wrap;
}

.offcanvas-media-icons svg {
    margin-right: 10px;
    color: #022148c2;
}

.mobile-offcanvas-lists .accordion-header {
    margin-top: -10px;
}

.mobile-offcanvas-lists {
    display: none;
}

.mobile-offcanvas-lists .accordion-item {
    border: none;
}

.mobile-offcanvas-lists .accordion-button:not(.collapsed) {
    background-color: #ffffff;
}

.mobile-offcanvas-lists ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.mobile-offcanvas-lists a{
    text-decoration: none;
}

.mobile-user-buttons div {
    margin-right: 10px;
}

.offcanvas-list .wechat-img {
    width: 120px;
    display: flex;
}

.wechat-img span {
    color: #6c6666;
}

.contact-page-btn {
    display: none;
}

.branches {
    padding-right: 25px;
}

.career-buttons {
    display: flex;
    justify-content: flex-start;
}

.career-buttons a {
    text-decoration: none;
}

.career-buttons button {
    padding: 10px 15px 10px 15px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0px 0px 4px 0px #838383;
}

.mobile-career-row {
    display: none;
}

#job-btn {
    background-color: #fec90f;
    color: #022148;
}

#job-btn svg {
    color: #022148;
}

#job-btn:hover {
    /*background-color: #022148;*/
    color: white;
}

#job-btn:hover svg{
    color: white;
}

#agent-btn {
    background-color: #022148;
    color: white;
}

#agent-btn:hover {
    /*background-color: #fec90f;*/
    color: #fec90f;
}

#agent-btn svg{
    color: white;
}

#agent-btn:hover svg{
    color: #fec90f;
}

.offcanvas-pages {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.page-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.page-buttons button, .page-buttons a {
    background-color: white;
    color: #022148;
    border-radius: 0px;
    border: 1px solid #022148;
    text-decoration: none;
}

.page-buttons a:hover svg {
    color: #fec90f;
}

.page-buttons button:hover, .page-buttons a:hover {
    background-color: #022148;
    color: white !important;
    border: 1px solid white;
}

.page-buttons a {
    height: 100%;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-buttons button {
    border-left: none;
}

.offcanvas-pages .dropend:hover>.dropdown-menu {
    display: flex;
    transform: translate(230px, -5px);
    border: none;
}

.offcanvas-pages .dropend>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
    pointer-events: none;
}

.offcanvas-pages .btn-group {
    width: 100%;
    height: 110px;
}

.offcanvas-lists {
    display: flex;
}

.offcanvas-search-buttons {
    margin-top: 20px;
    position: relative;
}

.offcanvas-search-buttons button {
    padding: 15px 0px 15px 0px;
    width: 100%;
    background-color: white;
    color: #022148;
    border-radius: 0px;
    border: 1px solid #022148;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offcanvas-search-buttons a {
    text-decoration: none;
}

.offcanvas-search-buttons button:hover {
    background-color: #022148;
    color: white;
    border: 1px solid white;
}

.mobile-buttons {
    display: flex;
    justify-content: center;
    align-content: flex-end;
    flex-direction: column;
    flex-wrap: wrap;
}

.holidays-btn {
    display: none;
    margin-top: 20px;
}

.holidays-btn a {
    background-color: #fec90f;
    color: #022148;
    padding: 7px 14px 7px 14px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.holidays-btn p {
    margin-bottom: 0px;
}

.mobile-offcanvas-media {
    display: none;
}

.app-images-block {
    display: flex;
    justify-content: flex-start;
}

.app-images {
    display: flex;
    width: 135px;
}

#header .offcanvas-search-buttons .dropdown-menu.show {
    transform: translate(12px, 85px) !important;
}

.offcanvas-search-buttons .dropdown-menu.show {
    display: flex;
    border: none;
    transform: translate(12px, 85px) !important;
}

.panel-heading {
    margin-bottom: 20px;
}

.modal-content .form-group {
    margin-bottom: 10px;
}

#logout-form .btn {
    margin-left: 1rem;
}

#favorites-list div[data-key], #recent-list div[data-key] {
    margin-bottom: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 1px 4px 1px #eaeaea;
}

#favorites-list .summary, #recent-list .summary {
    margin-bottom: 20px;
}

#favorites-list .property, #recent-list .property {
    position: relative;
    display: flex;
    padding: 10px;
}

#favorites-list .property-image, #recent-list .property-image {
    width: 30%;
    margin-right: 25px;
    height: 120px;
}

#favorites-list img, #recent-list img {
    border-radius: 10px;
    object-fit: cover;
}

#favorites-list h5, #recent-list h5 {
    font-size: 1rem;
}

#favorites-list p, #recent-list p {
    margin-bottom: 10px;
}

#favorites-list a, #recent-list a {
    text-decoration: none;
    font-weight: 600;
    color: #4c4a4a;
}

#favorites-list .property-area, #recent-list .property-area {
    font-size: 0.9rem;
    color: #6a6a6a;
}

#favorites-list .property-id, #recent-list .property-id {
    color: #fec90f;
    font-weight: bolder;
}

#favorites-list .property-price, #recent-list .property-price {
    color: #fec90f;
    font-weight: bolder;
    font-size: 1.2rem;
}

#favorites-list .remove-favorite {
    margin-left: 40px;
}

.favorites-property-code, .recent-property-code {
    display: flex;
}

@media only screen and (min-width: 1921px) {}

@media only screen and (max-width: 1921px) {}

@media screen and (max-width: 1680px) {
    #offcanvas {
        height: 790px;
    }

    .offcanvas-pages .dropdown-menu {
        box-shadow: 0px 0px 6px 1px #e3e3e3;
        padding: 10px;
    }

    .offcanvas-search-buttons .dropdown-menu.show {
        transform: translate(15px, 110px) !important;
    }

    #offcanvas-favorites, #offcanvas-recent {
        width: 40vw;
    }
}

@media only screen and (max-width: 1400px) {
    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(200px, -5px);
    }

    #offcanvas-favorites, #offcanvas-recent {
        width: 45vw;
    }

    .mobile-buttons {
        align-content: center;
    }
}

@media only screen and (max-width: 1200px) {
    #offcanvas {
        height: 100vh;
    }

    .featured-pages {
        display: none;
    }

    .career-buttons button {
        height: 100%;
    }

    .offcanvas-search-buttons .dropdown-menu.show {
        transform: translate(0px, 90px) !important;
    }

    .mobile-buttons {
        align-content: flex-start;
    }

    #offcanvas-favorites, #offcanvas-recent {
        width: 50vw;
    }
}

@media only screen and (max-width: 992px) {
    .offcanvas-body {
        max-width: 90%;
    }

    #offcanvas-favorites .offcanvas-body, #offcanvas-recent .offcanvas-body {
        max-width: 100%;
    }

    .offcanvas-header .icon-logo {
        margin-left: 25px;
    }

    .user-options {
        justify-content: center;
    }

    .offcanvas-lists {
        flex-wrap: wrap;
    }

    .offcanvas-media {
        margin-left: 20px;
    }

    .career-buttons button {
        padding: 10px 15px 10px
    }

    .page-buttons {
        align-content: flex-start;
    }

    .page-buttons a {
        font-size: 0.8rem;
        padding: 10px;
    }

    .offcanvas-pages {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .offcanvas-pages .btn-group {
        width: 50%;
        height: 135px;
    }

    .offcanvas-pages .btn-group button{
        display: none;
    }

    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(163px, -5px);
    }

    .offcanvas-pages .btn-group.dropend {
        height: 110px;
    }

    .branches {
        padding-right: 0px;
    }

    .app-images {
        width: 90px;
        height: 30px;
    }

    #offcanvas-favorites, #offcanvas-recent {
        width: 60vw;
    }

    .offcanvas-search-buttons .dropdown-menu.show {
        transform: translate(0px, 185px) !important;
    }
    
}

@media only screen and (max-width: 768px) {
    .mobile-hide {
        display: none;
    }

    .offcanvas-header {
        justify-content: space-between;
    }

    .offcanvas-navigation {
        justify-content: center;
    }

    .offcanvas-close-btn {
        padding-left: 10px;
    }

    .property-featured-buttons {
        display: block;
    }

    .property-featured-buttons a {
        display: block;
        margin-right: auto;
        margin-left: auto;
        width: 60%;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .mobile-offcanvas-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 15px;
    }

    .mobile-user-buttons {
        display: flex;
    }

    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(65px, -5px);
    }

    .offcanvas-list {
        margin-left: 0px;
    }

    .mobile-offcanvas-lists {
        display: block;
        margin-top: 30px;
    }

    #favorites-list, #recent-list {
        max-width: 80%;
    }

    #favorites-list .remove-favorite {
        margin-left: 6px;
    }

    #favorites-list .remove-favorite-btn {
        float: right;
    }

    .contact-page-btn {
        display: block;
    }

    .offcanvas-media {
        margin-left: 0px;
    }
    
    .branches-list {
        display: none;
    }

    .career-buttons {
        justify-content: center;
    }

    .career-buttons.mobile-hide {
        display: none;
    }

    .mobile-career-row {
        display: block;
    }

    .offcanvas-search-buttons {
        justify-content: center;
    }

    .mobile-buttons {
        margin-top: 20px;
        align-items: center;
        align-content: center;
    }

    .holidays-btn {
        display: flex;
        justify-content: center;
    }

    .mobile-offcanvas-media {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 20px;
    }
    
    .app-images-block {
        justify-content: center;
    }

    .app-images {
        width: 300px;
        height: 50px;
    }

    .app-text {
        text-align: center;
    }
  
    .offcanvas-search-buttons .dropdown-menu.show {
        flex-wrap: wrap;
        background-color: white;
        box-shadow: 0px 0px 6px 1px #d7d7d7;
        transform: translate(0px, 165px) !important;
    }

    #offcanvas-favorites, #offcanvas-recent {
        width: 100%;
    }

    .career-buttons a {
        display: block;
        width: 41vw;
        height: 16vw;
    }
}

@media only screen and (max-width: 576px) {
    .offcanvas-search-icon, .favorites-icon, .recent-icon {
        display: none;
    }

    .user-menu {
        flex-direction: row;
    }

    .offcanvas-list ul {
        list-style-type: none;
    }

    #favorites-list, #recent-list {
        max-width: 100%;
    }

    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(0px, -5px);
    }

    .career-buttons a {
        font-size: 0.8rem;
        width: 39vw;
        height: 23vw;
    }

    .app-images {
        height: 40px;
    }
}

@media only screen and (max-width: 480px) {
    #favorites-list .property-image, #recent-list .property-image {
        width: 50%;
    }
}

@media only screen and (max-width: 420px) {
    #offcanvas .offcanvas-body {
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .offcanvas-close-btn {
        padding-left: 3px;
    }

    #favorites-list .property, #recent-list .property {
        flex-direction: column;
    }

    #favorites-list .property-image, #recent-list .property-image {
        width: 50%;
        margin-bottom: 10px;
    }

    #favorites-list .remove-favorite {
        display: none;
    }

    #favorites-list .mobile-remove-favorite {
        display: block;
    }

    .offcanvas-list ul {
        padding-left: 0px;
    }

    .page-buttons a {
        font-size: 0.8rem;
        padding: 10px;
    }

    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(-20px, -5px);
    }

    .career-buttons a {
        font-size: 0.8rem;
        width: 43vw;
        height: 25vw;
    }
}

@media only screen and (max-width: 360px) {
    #favorites-list .property-image, #recent-list .property-image {
        width: 60%;
    }

    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(-40px, -5px);
    }

    .career-buttons a {
        font-size: 0.8rem;
        width: 42vw;
        height: 34vw;
    }
}

@media only screen and (max-width: 320px) {
    .offcanvas-pages .dropend:hover>.dropdown-menu {
        transform: translate(-65px, -5px);
    }
}