.form-control.error,
.form-control.error:active,
.form-control.error:focus,
.select2-container--default.error .select2-selection,
.form-check-input.is-invalid,
.was-validated .form-check-input:invalid {
    border: 1px solid #dc3545 !important;
}

.is-invalid label {
    color: #a94442;
}

.star.active {
    color: gold;
}

.disabled-click {
    pointer-events: none;
}

.features-list .checkbox label input[type="checkbox"] {
    margin-right: 10px;
}

.tfre-light-gallery:hover a.zoomGallery {
    opacity: 1;
}

.tfre-light-gallery a.zoomGallery {
    position: absolute;
    top: 15px;
    bottom: 0;
    left: 15px;
    right: 0;
    opacity: 0;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    cursor: pointer;
}

.tfre-light-gallery {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    cursor: pointer;
    z-index: 2;
}

.tfre_profile-form .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid var(--theme-primary-color);
    border-radius: 10px !important;
}

.tfre_profile-form .select2-container--default .select2-selection--multiple {
    padding: 0px 18px;
    height: 50px;
}

/* btn popup */

.mfp-arrow {
    width: 70px !important;
    height: 70px !important;
}

.mfp-arrow:after {
    top: -13px !important;
}

.mfp-arrow::before {
    display: none !important;
}

.mfp-arrow-right:after {
    margin-left: 32px !important;
}

.mfp-arrow-left:after {
    margin-left: 20px !important;
}

.hv-tool {
    position: relative;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.hv-tool::before {
    --translate-y: calc(-100% - var(--arrow-size));
    content: attr(data-tooltip);
    color: #2b2b2b;
    padding: 6px 11px;
    background: #fff;
    box-shadow: 0px 4px 10px 0px rgba(66, 71, 76, 0.1215686275);
    width: max-content;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    height: 26px;
    line-height: 1.2em;
}

.hv-tool::after {
    --translate-y: calc(-1.4 * var(--arrow-size));
    content: "";
    border: 6px solid transparent;
    border-top-color: #fff;
}

.hv-tool::after,
.hv-tool::before {
    opacity: 0;
    visibility: hidden;
    --arrow-size: 6px;
    position: absolute;
    top: 0px;
    left: 45%;
    transform: translateX(-50%) translateY(var(--translate-y, 0));
    -webkit-transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -ms-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    transition: all 0.2s ease 0s;
}

.hv-tool:hover::before,
.hv-tool:hover::after {
    opacity: 1;
    top: -6px;
    visibility: visible;
}

.hv-tool:hover {
    z-index: 2;
}

.property_quick_view_modal {
    z-index: 99999;
}

/* Property Quick View Popup */
.property_quick_view_modal .modal-content .modal-body .loading {
    display: flex;
    justify-content: center;
}

.property_quick_view_modal .modal-content {
    border-radius: 16px;
}

.property_quick_view_modal .modal-content button.close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transition-delay: 2s;
}

.property_quick_view_modal .modal-content button.close:hover {
    background: #2b2b2b;
    color: #fff;
    transition-delay: 0s;
}

.property_quick_view_modal.show .modal-content button.close {
    opacity: 1;
    visibility: visible;
}

.property_quick_view_modal .modal-content .property-gallery .main-swiper .swiper-image {
    border-radius: 16px;
    object-fit: cover;
    height: 390px;
}

.property_quick_view_modal .modal-content .property-gallery .thumb-swiper .swiper-image {
    border-radius: 16px;
    height: 90px;
    object-fit: cover;
}

.property_quick_view_modal .modal-content .modal-body {
    padding: 20px 20px;
    border-radius: 16px;
}

.property_quick_view_modal .modal-content .modal-body button.close {
    position: absolute;
    top: 13px;
    right: 13px;
    z-index: 5;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    font-weight: 200;
    background-color: var(--theme-primary-color);
    color: #FFF;
    -webkit-transition: all 0.2s ease 0s;
    -moz-transition: all 0.2s ease 0s;
    -ms-transition: all 0.2s ease 0s;
    -o-transition: all 0.2s ease 0s;
    transition: all 0.2s ease 0s;
}

.property_quick_view_modal .modal-content .modal-body button.close:hover {
    background-color: #222;
}

.popup-property-container {
    display: flex;
}

.popup-property-container .property-gallery {
    flex: 0 0 50%;
    max-width: 50%;
}

.popup-property-container .property-gallery .thumb-swiper .swiper-slide:not(.swiper-slide-thumb-active) {
    opacity: 0.5;
}

.popup-property-container .property-content {
    flex: 1;
    padding: 27px 8px 20px 37px;
}

.popup-property-container .property-content .inner h5 {
    margin: 0;
}

.popup-property-container .property-content .property-title {
    display: inline-block;
}

.popup-property-container .property-content .featured-text {
    background: #198754;
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: 0.08em;
    padding: 0 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

.popup-property-container .property-content .sale-text {
    background: #0B213266;
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: 0.08em;
    padding: 0 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

.popup-property-container .property-content .tfre-property-price {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    letter-spacing: 0em;
    color: #161E2D;
    margin-top: 20px;
}

.popup-property-container .property-content .tfre-property-price .tfre-prop-price-postfix,
.popup-property-container .property-content .tfre-property-price .tfre-prop-price-prefix {
    color: #5C6368;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}

.popup-property-container .property-content .entry-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0;
}

.popup-property-container .property-content .description {
    display: flex;
    flex-direction: column;
}

.popup-property-container .property-content .description .property-information,
.popup-property-container .property-content .header-user {
    display: flex;
    align-items: center;
    column-gap: 7px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: 0em;
    color: #161E2D;
}

.popup-property-container .property-content .description .property-information i,
.popup-property-container .property-content .header-user i {
    color: #5C6368;
    font-size: 18px;
    font-weight: 500;
}

.popup-property-container .property-content .description .property-information svg {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: left;
    margin-right: 5px;
    flex-shrink: 0;
}

.popup-property-container .property-content .description .property-information svg * {
    fill: #aaaaaa;
}

.popup-property-container .property-content .description .property-information .value {
    font-weight: 700;
}

.popup-property-container .property-content .description .property-information {
    border-top: 1px solid #E4E4E4;
    padding: 0.75rem 0;
}

.popup-property-container .header-content {
    margin-bottom: 30px;
}

.popup-property-container .header-content .property-status {
    font-size: 15px;
    font-weight: 500;
    color: #2b2b2b;
}

.popup-property-container .header-content .property-status::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--theme-primary-color);
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 3px;
    display: inline-block;
}

.popup-property-container .header-content .inner-title {
    display: flex;
    align-items: baseline;
    column-gap: 15px;
}

.popup-property-container .header-content .property-title {
    font-size: 28px;
    display: block;
}

.popup-property-container .header-content .property-location {
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    color: #5C5E61;
    margin-bottom: 15px;
}

.popup-property-container .header-content .property-location i {
    font-size: 18px;
    margin-right: 7px;
    vertical-align: text-top;
}

.popup-property-container .header-content .tfre-property-price {
    font-size: 18px;
    color: #2b2b2b;
}

.popup-property-container .header-content .tfre-prop-price-value {
    color: var(--theme-primary-color);
}

.popup-property-container .property-content .infor-bottom .tfre-features-infor {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
}

.popup-property-container .property-content .infor-bottom .tfre-features-infor .inner {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: #969799;
}

.popup-property-container .property-content .infor-bottom .tfre-features-infor .inner .property-info-value {
    color: #2C2E33;
}

.popup-property-container .property-content .btn-question {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--theme-primary-color);
    border-radius: 16px;
    padding: 13px 40px;
    margin-top: 37px;
}

.popup-property-container .property-content .btn-question:hover {
    background: #2b2b2b;
}

.popup-property-container .infor-overview {
    margin-top: 34px;
}

.popup-property-container .tfre-property-info {
    display: flex;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-left: -20px;
}

.popup-property-container .property-location a {
    color: #555;
}

.popup-property-container .tfre-property-info>* {
    width: calc(33.33333% - 20px);
    margin-left: 20px;
}

.popup-property-container .tfre-property-info .inner {
    display: flex;
}

.popup-property-container .tfre-property-info .inner .icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 1px solid #ECECEC;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary-color);
    margin-right: 12px;
    font-size: 24px;
    flex-shrink: 0;
    color: #2C2E33;
}

.popup-property-container .content-property-info {
    margin-top: -5px;
}

.popup-property-container .tfre-property-info .inner .property-info-title {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #5C5E61;
    margin-top: 6px;
    display: block;
}

.popup-property-container .tfre-property-info .inner .property-info-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    color: #2C2E33;
}

.popup-property-container .tfre-property-info .property-type::before {
    display: none;
}

.popup-property-container  .swiper-button-next,
.popup-property-container .swiper-button-prev {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgb(43 43 43 / 70%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    z-index: 10;
}

.popup-property-container  .swiper-button-next::after,
.popup-property-container .swiper-button-prev::after {
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    .popup-property-container {
        flex-direction: column;
    }

    .popup-property-container .property-gallery {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* End Property Quick View Popup */

/* Layout with Map */

.cards-container.map-header {
    max-width: 1310px;
    margin: 0 auto;
}

.cards-container.has-sidebar.sidebar-left,
.cards-container.half-map-left {
    flex-direction: row-reverse;
}

.cards-container.half-map-right .properties-list-wrap {
    padding-top: 17px;
    padding-right: 22px;
    padding-left: 56px;
    padding-bottom: 48px;
}

.cards-container.half-map-left .properties-list-wrap {
    padding-top: 17px;
    padding-right: 56px;
    padding-left: 22px;
    padding-bottom: 48px;
}

.cards-container.half-map-right .tfre-heading-property {
    margin-top: -2px;
    margin-bottom: -1px;
    font-size: 30px;
    font-weight: 700;
    line-height: 42px;
}

.cards-container.half-map-right .tf-properties-wrap {
    margin-top: 12px;
}

.cards-container.half-map-right > .col-md-6:not(.properties-list-wrap),
.cards-container.half-map-left > .col-md-6:not(.properties-list-wrap) {
    padding: 0;
}

.cards-container.half-map-left .tfre-heading-property {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.25em;
}

.cards-container.half-map-right .cards-container .tf-properties-wrap {
    margin-top: 15px;
}

.cards-container.half-map-left .cards-container .tf-properties-wrap {
    margin-top: 15px;
}

.cards-container.half-map-left .col-md-7 {
    width: 56%;
    position: relative;
    z-index: 99;
    background: #fff;
}

.cards-container.half-map-left .col-md-5 {
    width: 44%;
}

.cards-container.half-map-right .col-md-7 {
    width: 56%;
    position: relative;
    z-index: 99;
    background: #fff;
}

.cards-container.half-map-right .col-md-5 {
    width: 44%;
}

.page-half-map-style .cards-container .col-lg-6.properties-list-wrap::-webkit-scrollbar-track {
    background: #ECECEC;
}

.page-half-map-style .cards-container .col-lg-6.properties-list-wrap::-webkit-scrollbar {
    width: 8px;
}

.page-half-map-style .cards-container.half-map-left .col-lg-6.properties-list-wrap::-webkit-scrollbar {
    width: 20px;
}

.page-half-map-style .cards-container .col-lg-6.properties-list-wrap::-webkit-scrollbar-thumb {
    background: #a8abaecf;
    border-radius: 10px;
}

.page-half-map-style {
    overflow: hidden;
    height: 100vh;
}

.page-half-map-style .footer-action-box,
.page-half-map-style .footer_background {
    display: none;
}

.page-half-map-style .cards-container .col-lg-6.properties-list-wrap {
    height: calc(100vh - 130px);
    overflow-y: scroll;
}

.page-half-map-style .cards-container .with-map {
    padding-left: 0;
    padding-right: 0;
}

.page-half-map-style .form-search-inner .tf-search-form-bottom {
    min-width: unset !important;
}

.page-half-map-style .form-search-inner .tf-search-form-bottom .col-xl-3 {
    width: 33.33333%;
}

/* Navigation Property */

.btn-display-properties-list,
.btn-display-properties-grid {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #ECECEC;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5C5E61;
    font-size: 23px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease 0s;
    -moz-transition: all 0.3s ease 0s;
    -ms-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.btn-display-properties-list.active,
.btn-display-properties-grid.active,
.btn-display-properties-list:hover,
.btn-display-properties-grid:hover {
    background: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
    color: #fff;
}

.toolbar-search-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 9px;
    row-gap: 10px;
    justify-content: right;
}

.toolbar-search-list .nice-select {
    margin: 0;
    border: 1px solid #ECECEC;
    padding: 9px 15px;
    border-radius: 10px;
}

.toolbar-search-list .nice-select .current {
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    color: #2C2E33;
    padding-right: 35px;
}

.toolbar-search-list .nice-select .current:after {
    color: #2C2E33;
    content: '\e939';
    right: 2px;
    font-size: 14px;
    font-weight: 900;
}

.tfre-heading-property {
    margin: 0;
    margin-top: 4px;
}

.cards-container .tf-properties-wrap {
    margin-top: 17px;
}

/* Pagination */


.cards-container.no-sidebar .paging-navigation {
    text-align: center;
}

.cards-container .paging-navigation {
    margin-top: 12px;
    text-align: left;
}

.cards-container.half-map-left .paging-navigation,
.cards-container.half-map-right .paging-navigation {
    margin-top: 17px;
}

.cards-container .paging-navigation a:hover,
.cards-container .paging-navigation .current {
    color: #fff;
    background: var(--theme-primary-color);
    border-color: var(--theme-primary-color);
}

.cards-container .paging-navigation>* {
    position: relative;
    margin-right: 6px;
    width: 44px;
    height: 44px;
    border: 1px solid #ECECEC;
    background: #fff;
    text-align: center;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #2C2E33;
}

.cards-container .paging-navigation .next.page-numbers i,
.cards-container .paging-navigation .prev.page-numbers i {
    font-size: 14px;
}

.tf-properties-wrap.style2 .wrap-properties-post.column-4 .item,
.tf-properties-wrap.style2 .wrap-properties-post.column-3 .item {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}

.cards-container .navigation.loadmore a,
.wrapper-btn-load-more .btn-load-more {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--theme-primary-color);
    padding: 12px 31px;
    border-radius: 16px;
    position: relative;
    display: inline-block;
}

.wrapper-btn-load-more .btn-load-more::after {
    width: 18px;
    height: 18px;
    border-radius: 100%;
    border: solid 2px #fff;
    border-top-color: transparent !important;
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    animation: rotating .6s linear infinite;
    opacity: 0;
}

.wrapper-btn-load-more .btn-load-more.active::after {
    opacity: 1;
}

.wrapper-btn-load-more .btn-load-more.active span {
    opacity: 0;
}

.wrapper-btn-load-more .btn-load-more:hover {
    background: #2C2E33;
    color: #fff;
}

.wrapper-btn-load-more {
    margin-top: 12px;
    text-align: center;
}

.cards-container .navigation.loadmore a::after {
    width: 18px;
    height: 18px;
    border-radius: 100%;
    border: solid 2px #fff;
    border-top-color: transparent !important;
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    animation: rotating .6s linear infinite;
    opacity: 0;
}

.cards-container .navigation.loadmore a.active::after {
    opacity: 1;
}

.cards-container .navigation.loadmore a.active span {
    opacity: 0;
}

@keyframes rotating {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cards-container .navigation.loadmore {
    text-align: center;
    margin-top: 12px;
}

.cards-container .navigation.loadmore a:hover {
    background: #222;
    color: #fff;
}
  

/* Archive */

.archive.post-type-archive-real-estate .page-header,
.archive.tax-property-type .page-header,
.archive.tax-property-status .page-header,
.archive.tax-property-feature .page-header,
.archive.tax-property-label .page-header,
.archive.tax-province-state .page-header,
.archive.tax-neighborhood .page-header,
.archive.tax-property-status .page-header,
.class-name-page-advanced-search .page-header {
    display: none;
}

.archive.post-type-archive-real-estate #themesflat-content,
.archive.tax-property-type #themesflat-content,
.archive.tax-property-status #themesflat-content,
.archive.tax-property-feature #themesflat-content,
.archive.tax-property-label #themesflat-content,
.archive.tax-province-state #themesflat-content,
.archive.tax-neighborhood #themesflat-content,
.archive.tax-property-status #themesflat-content,
.class-name-page-advanced-search  #themesflat-content {
    padding-top: 0px;
    padding-bottom: 0;
}

.archive .tfre-advanced-search-wrap.hide-map {
    margin-top: 0;
}

.cards-container.hide-map {
    padding-top: 43px;
    padding-bottom: 64px;
}

.cards-container.hide-map .tf-properties-wrap .wrap-properties-post .group-card-item-property,
.cards-container.map-header .tf-properties-wrap .wrap-properties-post .group-card-item-property {
    margin-left: -10px;
    margin-right: -10px;
}

.cards-container .tf-properties-wrap .wrap-properties-post .item {
    padding: 10px;
}

.cards-container.half-map-left .tf-properties-wrap .wrap-properties-post .group-card-item-property,
.cards-container.half-map-right .tf-properties-wrap .wrap-properties-post .group-card-item-property {
    margin-left: -12px;
    margin-right: -12px;
}

.cards-container.half-map-left .tf-properties-wrap .wrap-properties-post .item {
    padding: 15px;
}

.cards-container.map-header .tf-properties-wrap {
    margin-top: 12px;
}

/* tool select column card */

.tf-control-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 15px;
    row-gap: 10px;
}

.tf-control-layout li {
    display: flex;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}

.tf-control-layout li svg {
    max-width: 15px;
}

.tf-control-layout li svg * {
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.tf-control-layout li svg * {
    stroke: #B6B6B6;
    fill: #B6B6B6;
    width: 4px;
    height: 4px;
}

.tf-control-layout li:hover svg *,
.tf-control-layout li.active svg * {
    stroke: var(--theme-primary-color);
    fill: var(--theme-primary-color);
}

/* filter search */

.tfre-filter-search .overlay {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 99999;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    cursor: url(../../../includes/elementor-widget/assets/images/icons/close.svg), auto;
}

.tfre-filter-search .popup-search-map .tfre-sidebar {
    background: #fff;
    width: 450px;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
    will-change: transform;
    overflow: hidden;
    transform: translateX(100%);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 99999;
    left: auto;
    right: 0;
    overflow-y: auto;
    padding: 20px;
    padding-top: 50px;
    padding-right: 5px;
}

.tfre-filter-search .tf-btn-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: #2C2E33;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.tfre-filter-search .tf-btn-close i {
    font-weight: 900;
}

.tfre-filter-search .tf-btn-close:hover {
    color: var(--theme-primary-color);
    transform: rotate(90deg);
}

.tfre-filter-search.active .popup-search-map .tfre-sidebar {
    transform: translateX(0%);
}

.tfre-filter-search.active .overlay {
    opacity: 1;
    visibility: visible;
}

.tfre-filter-search .popup-search-map .tfre-sidebar::-webkit-scrollbar {
    width: 8px;
    border-radius: 999px;
}

.tfre-filter-search .popup-search-map .tfre-sidebar::-webkit-scrollbar-thumb {
    background-color: #E4E4E4;
}

.tfre-filter-search .popup-search-map .tfre-sidebar::-webkit-scrollbar-track {
    background-color: transparent;
}

.filter-popup {
    border-radius: 10px;
    padding: 8px 19px;
    background: var(--theme-primary-color);
    color: #fff;
    cursor: pointer;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    flex-shrink: 0;
}

.filter-popup:hover {
    background: #2C2E33;
}

body.enable-filter::-webkit-scrollbar {
    opacity: 0;
    visibility: hidden;
}

/* Filter Loader */
.overlay-filter-tab {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 9999;
}

.filter-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--theme-primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.properties-empty{
    width: auto;
    margin: 150px auto;
    text-align: center;
}

.properties-switch-map .properties-empty{
    position: absolute;
    z-index: 15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.properties-empty .item-not-found{
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: #000;
    margin-bottom: 15px;
}

.properties-empty .item-another{
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    color: #545454;
    margin: 8px 0 0;
}

.properties-empty .btn-clear-all{
    display: inline-block;
    color: #fff;
    margin: 30px auto 0;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 30px;
    background: var(--theme-primary-color);
    border-radius: 10px;
}

.properties-empty .btn-clear-all:hover {
    background: #1C1C1E;
    color: #fff;
}

/* reset filter */

.wrapper-action a {
    display: inline-block;
}

.wrapper-action {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #ECECEC;
}

.wrapper-action .btn-show-properties {
    padding: 17px 40px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
}

.wrapper-action .btn-show-properties i {
    margin-left: 6px;
    font-size: 20px;
    vertical-align: bottom;
}

.btn-clear-all.active::after {
    content: '\e962';
    vertical-align: middle;
    margin-left: 5px;
    font-family: 'proty';
    animation: spin 1s linear infinite;
    display: inline-block;
} 

.btn-clear-all.search-sidebar {
    position: absolute;
    top: 20px;
    right: 20px;
    -webkit-transition: all 0.4s ease-in-out;
    -moz-transition: all 0.4s ease-in-out;
    -ms-transition: all 0.4s ease-in-out;
    -o-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
} 

.btn-clear-all.search-sidebar .icon-proty-close {
    font-weight: 700;
}

.btn-clear-all.search-sidebar:hover {
    transform: rotate(90deg);
}

.btn-clear-all.search-sidebar::after {
    display: none;
}

.btn-clear-all.card-clear {
    display: flex;
    align-items: center;
    gap: 5px;
    display: none;
}

.btn-clear-all.card-clear.show {
    display: block;
}

.btn-clear-all.card-clear::after {
    content: "\e964";
    vertical-align: middle;
    margin-left: 5px;
    font-family: 'proty';
    display: inline-block;
    font-weight: 700;
    font-size: 14px;
}


.btn-clear-all.card-clear.active::after {
    content: '\e962';
    animation: spin 1s linear infinite;
} 

.popup-search-map .tfre-advanced-search-wrap .btn-clear-all {
    display: none;
}

@media only screen and (max-width: 1850px) {
    .cards-container.half-map-left .properties-list-wrap {
        padding-right: 30px;
    }
}

@media only screen and (max-width: 1500px) {

    .advanced-half-map.search-half-map .search-properties-form .tf-search-form .tf-search-form-top {
        flex-wrap: wrap;
        justify-content: left !important;
    }
    .advanced-half-map.search-half-map .tf-search-form-top.desktop .tfre-search-group-input {
        width: 100%;
    }
    .advanced-half-map.search-half-map .tf-search-form-top.desktop .tfre-search-group-input {
        flex-wrap: wrap;
        flex: unset;
    }
    .advanced-half-map.search-half-map .tf-search-form-top.desktop .tfre-search-group-input .form-group {
        max-width: unset;
        flex: 1;
    }
    .advanced-half-map.half-map-left .tf-search-form-top.desktop .tfre-search-group-input .form-group.keyword-field,
    .advanced-half-map.half-map-right .tf-search-form-top.desktop .tfre-search-group-input .form-group.keyword-field {
        min-width: unset;
        max-width: unset;
        width: 100%;
        flex: unset;
    }
}

@media only screen and (max-width: 1110px) {
    .cards-container.half-map-left .tf-properties-wrap .wrap-properties-post .item,
    .cards-container.half-map-right .tf-properties-wrap .wrap-properties-post .item {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
    .cards-container.half-map-right .tfre-my-property-search .col-lg-6,
    .cards-container.half-map-left .tfre-my-property-search .col-lg-6 {
        width: 100%;
    }
    .cards-container.half-map-left .tfre-my-property-search .toolbar-search-list,
    .cards-container.half-map-right .tfre-my-property-search .toolbar-search-list {
        justify-content: left !important;
        margin-top: 20px;
    }
    .popup-property-container .tfre-property-info>* {
        width: calc(50% - 20px);
        margin-left: 20px;
    }
    .property_quick_view_modal .modal-dialog {
        max-width: 100%;
        padding: 15px;
    }
    .cards-container.half-map-left .col-md-7,
    .cards-container.half-map-left .col-md-5,
    .cards-container.half-map-right .col-md-7,
    .cards-container.half-map-right .col-md-5 {
        width: 50%;
    }
    .cards-container.half-map-right .properties-list-wrap,
    .cards-container.half-map-left .properties-list-wrap {
        padding-right: 30px;
        padding-left: 30px;
    }
    .advanced-half-map.search-half-map .tf-search-form-top.desktop .tfre-search-group-input .form-group {
        width: calc(50% - 6px);
    }
    .tf-control-layout .layout-4 {
        display: none;
    }
}

@media only screen and (max-width: 991px) {
    .cards-container.half-map-left .col-md-7,
    .cards-container.half-map-left .col-md-5,
    .cards-container.half-map-right .col-md-7,
    .cards-container.half-map-right .col-md-5 {
        width: 100%;
    }

    .cards-container.half-map-left .col-md-5 {
        order: -1;
    }
    .cards-container.half-map-left .map-container,
     .cards-container.half-map-left .map-container #map,
      .cards-container.half-map-right .map-container,
       .cards-container.half-map-right .map-container #map {
        height: 40vh !important;
    }

    .page-half-map-style {
        overflow: unset;
        height: unset;
    }
    
    .page-half-map-style .cards-container .col-lg-6.properties-list-wrap {
        height: unset;
        overflow-y: unset;
    }

    .cards-container.half-map-left .col-lg-6.properties-list-wrap {
        order: 1;
    }

    .cards-container.map-header .filter-popup,
    .cards-container.half-map-right .filter-popup ,
.cards-container.half-map-left .filter-popup {
        display: block;
    }
    .cards-container.map-header {
        padding: 60px 0;
    }

    .advanced-half-map.map-header {
        margin-bottom: 0;
    }

    .cards-container.half-map-right .properties-list-wrap,
    .cards-container.half-map-left .properties-list-wrap {
        padding-top: 60px;
        padding-bottom: 60px;
    }

}

@media only screen and (max-width: 767px) {

    .page-half-map-style .form-search-inner .tf-search-form-bottom .col-xl-3 {
        width: 100%;
    }

    .popup-property-container .property-content {
        padding: 0;
        padding-top: 30px;
    }
    .tf-control-layout  {
        display: none;
    }
    .tfre-filter-search .popup-search-map .tfre-sidebar {
        width: 300px;
        padding-right: 20px;
    }

    .tfre-filter-search .search-properties-form .tf-search-form .tf-search-form-top.mobile,
    .tfre-filter-search  .tf-search-more-btn {
        display: none !important;
    }

    .tfre-filter-search .search-properties-form .tf-search-form-bottom.desktop {
        display: flex !important
        ;
    }
    .tfre-filter-search .tf-search-form-top.tf-search-form-top-action.desktop {
        display: block !important;
    }
    .popup-search-map .tfre-sidebar .tfre-advanced-search-wrap .tf-search-form-top.desktop {
        display: flex !important
;
    }
    .cards-container .thumb-blog-sidebar {
        margin: -20px;
    }
}