header.header #logo-header {
    height: 50px;
}

.luxury-home .content .tf-button-primary,
.luxury-home .content .tf-button-primary:visited {
    color: var(--Secondary) !important;
}

.luxury-home .content .tf-button-primary.wow {
    visibility: visible !important;
    opacity: 1 !important;
}

.tf-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

footer.footer #logo-footer {
    width: 200px;
    height: auto;
}

.notification-wrapper .notification-item .box-dream.style-favorities .content {
    padding-top: 15px;
}

.notification-wrapper .notification-item .box-dream .content .price {
    font-size: 22px;
}

.notification-wrapper .notification-item .box-dream .content .old-price {
    font-weight: 500;
    font-size: 18px;
    line-height: 20px;
    color: #bcbcbc;
    text-decoration: line-through;
}

.wrap-map-v5 {
    position: relative;
    padding-bottom: 0px;
}

.wrap-map-v5 .grid-contact-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    gap: 40px;
}

.wrap-map-v5 .grid-contact-wrapper .grid-contact {
    position: relative;
    bottom: auto;
    left: auto;
    -webkit-transform: translate(0, 0);
    -moz-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
}

.wrap-map-v5 .grid-contact-wrapper .contact-item {
    box-shadow: 0px 6px 15px 0px rgb(64 79 104 / 10%);
}

/* Contact page compact layout */
.contact-page .flat-title {
    padding-top: 42px;
    padding-bottom: 44px;
}

.contact-page .wrap-map-v5 {
    padding-bottom: 0;
    margin-top: 24px;
    margin-bottom: 0;
}

.contact-page .wrap-map-v5 #map-1 {
    height: 360px;
}

.contact-page .wrap-map-v5 .grid-contact-wrapper {
    margin: 22px 0 0;
    gap: 16px;
}

.contact-page .wrap-map-v5 .grid-contact-wrapper .grid-contact {
    width: 100%;
    max-width: 1120px;
}

.contact-page .contact-item {
    padding: 28px 24px;
    min-height: 230px;
    border-radius: 16px;
}

.contact-page .contact-item .icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.contact-page .contact-item .icon i {
    font-size: 24px;
}

.contact-page .contact-item .content {
    min-height: auto;
}

.contact-page .contact-item .content h4 {
    margin-bottom: 8px;
    font-size: 22px;
}

.contact-page .contact-item .bot {
    margin-top: 14px;
    padding-top: 14px;
}

.contact-page .tf-section.send-message {
    padding-top: 26px;
    padding-bottom: 66px;
}

.contact-page .send-message .heading-section {
    margin-bottom: 20px;
}

.contact-page .send-message form {
    gap: 16px;
}

.contact-page .send-message form textarea {
    height: 140px !important;
}

.contact-page .contact-bottom-section {
    padding-top: 30px;
    padding-bottom: 70px;
}

.contact-page .contact-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.contact-page .contact-bottom-info .contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-page .contact-bottom-info .contact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-page .contact-bottom-form {
    background-color: var(--White);
    border: 1px solid var(--Border);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0px 6px 15px 0px rgba(64, 79, 104, 0.05);
}

.contact-page .contact-bottom-form .heading-section {
    text-align: left;
    margin-bottom: 18px;
}

.contact-page .contact-bottom-form .heading-section .text {
    margin-top: 8px;
}

.contact-page .contact-bottom-form form {
    gap: 16px;
}

.contact-page .contact-bottom-form form fieldset {
    margin-bottom: 10px;
}

.contact-page .contact-bottom-form form .cols {
    margin-bottom: 10px;
}

@media (max-width: 991px) {
    .contact-page .flat-title {
        padding-top: 32px;
        padding-bottom: 34px;
    }

    .contact-page .wrap-map-v5 #map-1 {
        height: 280px;
    }

    .contact-page .contact-item {
        min-height: auto;
        padding: 22px 18px;
    }

    .contact-page .contact-bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .contact-bottom-info .contact-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-page .contact-bottom-form {
        padding: 22px 18px;
    }
}

.team-search-home5 {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 40px;
    padding: 19px 20px 19px 30px;
    border-radius: 12px;
    background-color: var(--White);
    z-index: 50 !important;
}

.team-search-wrap .team-search-home5 {
    position: relative;
    z-index: 15;
    margin-bottom: 46px;
    margin-top: 46px;
    max-width: 1022px;
    box-shadow: 0px 6px 15px 0px rgba(64, 79, 104, 0.0509803922);
    border: 1px solid var(--Border);
}

.team-search-home5 > .list {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-grow: 1;
    gap: 30px;
    margin-top: 7px;
}

.team-search-home5 > .list .group-form {
    width: 170px;
}

/* Homepage reference logos: force larger slides via CSS (even if Swiper sets inline width). */
.flat-brand .slider-brand .swiper-wrapper {
    align-items: center;
}

.flat-brand .slider-brand .swiper-slide {
    width: 180px !important;
    margin-right: 36px !important;
}

.flat-brand .slider-brand .slogan-logo {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flat-brand .slider-brand .slogan-logo a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flat-brand .slider-brand .slogan-logo img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 116px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .flat-brand .slider-brand .swiper-slide {
        width: 150px !important;
        margin-right: 22px !important;
    }

    .flat-brand .slider-brand .slogan-logo {
        height: 112px;
    }

    .flat-brand .slider-brand .slogan-logo img {
        max-height: 98px;
    }
}

@media (max-width: 767px) {
    .flat-brand .slider-brand .swiper-slide {
        width: 128px !important;
        margin-right: 14px !important;
    }

    .flat-brand .slider-brand .slogan-logo {
        height: 92px;
    }

    .flat-brand .slider-brand .slogan-logo img {
        max-height: 78px;
    }
}

.team-search-home5 > .list > .divider-1 {
    background-color: var(--Border);
    width: 1px;
}

.team-search-home5 .wg-filter {
    position: unset;
}

.team-search-home5 .button-submit button {
    padding: 19px 30px;
    background-color: var(--Primary);
    width: 100%;
    color: var(--Secondary);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    line-height: 17px;
}

/* Advisor detail: keep filter panel inside left column and prevent overlap with sidebar */
.advisor-detail-page .team-search-wrap .team-search-home5 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    padding: 18px 20px;
    gap: 0;
    z-index: 1 !important;
}

.advisor-detail-page .team-search-home5 > .list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 16px;
    margin-top: 0;
}

.advisor-detail-page .team-search-home5 > .list .group-form {
    width: 100%;
    min-width: 0;
}

.advisor-detail-page .team-search-home5 .group-form input,
.advisor-detail-page .team-search-home5 .group-form select,
.advisor-detail-page .team-search-home5 .group-form .nice-select {
    width: 100%;
}

.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select,
.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select.default {
    border: 1px solid var(--Border) !important;
    background-color: var(--White);
    border-radius: 12px;
    padding: 12px 38px 12px 14px;
    min-height: 54px;
}

.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select::after,
.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select.default::after {
    right: 14px;
    margin-top: -6px;
}

.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select.open,
.advisor-detail-page .team-search-home5 .form-style-has-title .nice-select.default.open {
    border-color: var(--Secondary) !important;
}

.advisor-detail-page .team-search-home5 .form-style-has-title select.form-control {
    border: 1px solid var(--Border);
    border-radius: 12px;
    background-color: var(--White);
    min-height: 54px;
}

.advisor-detail-page .team-search-home5 .flex.gap10.mt-20 {
    margin-top: 14px !important;
    align-items: center;
}

.advisor-detail-page .team-search-home5 .button-submit button,
.advisor-detail-page .team-search-home5 .tf-button-primary {
    min-height: 48px;
}

@media (max-width: 1200px) {
    .advisor-detail-page .team-search-home5 > .list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .advisor-detail-page .team-search-home5 > .list {
        grid-template-columns: 1fr;
    }

    .advisor-detail-page .team-search-home5 .flex.gap10.mt-20 {
        flex-direction: column;
        gap: 10px;
    }

    .advisor-detail-page .team-search-home5 .group-form,
    .advisor-detail-page .team-search-home5 .tf-button-primary {
        width: 100%;
    }
}

.nice-select > .list {
    border-radius: 6px;
}

.nice-select.open .list {
    max-height: 400px;
}

.nice-select.default ul.list {
    width: max-content;
}

/* Blog detail hero image: keep a balanced viewport height */
.blog-single-wrap .image-head {
    margin: 0 auto 40px;
    max-width: 1320px;
    padding: 0 20px;
}

.blog-single-wrap .image-head img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

@media (max-width: 767px) {
    .blog-single-wrap .image-head {
        padding: 0;
    }
}

.blog-detail-layout {
    align-items: flex-start;
}

.blog-detail-layout .image-head {
    margin: 0 0 22px;
    max-width: none;
    padding: 0;
}

.blog-detail-content p:last-child {
    margin-bottom: 0;
}

.blog-detail-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-sidebar-widget {
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 18px 16px;
    background: #fff;
}

.blog-sidebar-widget h4 {
    margin-bottom: 14px;
    font-size: 20px;
    line-height: 1.2;
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-sidebar-item {
    display: flex;
    gap: 10px;
}

.blog-sidebar-item:not(:last-child) {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.blog-sidebar-item .thumb {
    width: 84px;
    min-width: 84px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
}

.blog-sidebar-item .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-sidebar-item .meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-sidebar-item .meta .title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
    line-height: 1.35;
    color: #1f1f1f;
}

.blog-sidebar-item .meta .date {
    color: #6a6a6a;
    font-size: 13px;
}

.blog-sidebar-item .meta .location {
    color: #8b8b8b;
    font-size: 12px;
    line-height: 1.3;
}

.sidebar-empty {
    margin: 0;
    color: #7f7f7f;
    font-size: 14px;
}

@media (max-width: 1199px) {
    .blog-detail-sidebar {
        position: static;
        margin-top: 18px;
    }
}

.account-area {
    padding-top: 200px;
}


.account-area .account-area_card {
    position: relative;
    border-radius: 16px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: row;
    max-width: 800px;
    overflow: hidden;
    margin: 0 auto;
    transform: translateY(3px);
    padding-top: 0;
}

.account-area .image-left {
    width: 386px;
    flex-shrink: 0;
    position: relative;
}

.account-area .image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-area .image-left h3 {
    position: absolute;
    top: 45px;
    left: 30px;
    right: 30px;
    color: var(--Secondary);
    text-align: center;
}

.account-area .content-right {
    padding: 78px 30px 30px 30px;
    width: 100%;
}

.account-area .content-right h4 {
    margin-bottom: 22px;
}

.account-area .content-right form {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 15px;
    flex-direction: column;
    margin-bottom: 22px;
}

.account-area .content-right form .lost-password {
    font-size: 14px;
    font-weight: 400;
    line-height: 28px;
    color: var(--Third);
}

.account-area .content-right .btn-show-register {
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    margin-left: 4px;
}

.account-area .content-right .wg-social-1 {
    gap: 20px;
    margin-top: 2px;
}

.account-area .content-right .wg-social-1 li a i {
    font-size: 20px;
}

.wrap-gallery-image .more-photos {
    position: absolute;
    bottom: 30px;
    right: 15px;
    z-index: 9999999;
}

.wrap-gallery-image .owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: 500px;
    max-height: 500px;
}

@media screen and (max-width: 991.98px) {
    #header_main .header-inner .header-inner-wrap .header-right {
        display: flex;
    }
    
    #header_main .header-inner .header-inner-wrap .header-right .tf-button-default {
        width: 41px;
        height: 41px;
        padding: 0;
    }
    
    #header_main .header-inner .header-inner-wrap .header-right .tf-button-default span {
        display: none;
    }
    
    .account-area .account-area_card {
        flex-wrap: wrap;
        transform: translateY(0) !important;
    }
    
    .account-area .image-left {
        width: 100%;
        height: 500px;
    }
    
    .account-area .content-right {
        padding: 34px 30px 30px 30px;
    }
    
    .wrap-gallery-image .more-photos {
        bottom: 50px;
    }
    
    .wrap-gallery-image .owl-carousel .owl-item img {
        height: 250px;
        border-radius: 12px;
    }

    /* Mobile listing filter should stay above listing badges/cards */
    .property-list-wrap.v1 .top {
        z-index: 120;
    }

    .property-list-wrap.v1 .top .wg-filter {
        z-index: 130;
    }

    .property-list-wrap.v1 .top .wg-filter .open-filter {
        z-index: 140;
    }

    .property-list-wrap.v1 .top .wg-filter .open-filter.active {
        z-index: 150;
    }
}

@media screen and (max-width: 567.98px) {
    .account-area {
        padding-top: 140px !important;
    }
}

.alert {
    margin: 20px auto;
    font-size: 18px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.box-dream .button-heart.active {
    opacity: 1;
    visibility: visible;
    background-color: #ff4757;
}

.box-dream .button-heart.active i {
    color: #ffffff !important;
}

.list-icons-page .item.favorite-action.active .icon {
    background-color: #ff4757;
    border-color: #ff4757;
}

.list-icons-page .item.favorite-action.active .icon i {
    color: #ffffff !important;
}

.list-icons-page .item.favorite-action.active p {
    color: #ff4757;
}

.js-advert-card-link {
    cursor: pointer;
}

.js-advert-card-link:focus-visible {
    outline: 2px solid var(--Primary);
    outline-offset: 2px;
}

.list-tags .tags-item.for-rent {
    background-color: var(--Third);
    color: var(--White);
}

.list-tags .tags-item:not(.for-sell):not(.for-rent):not(.featured) {
    background-color: rgba(26, 26, 26, 0.85);
    color: var(--White);
}
