.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: 7px;
}

.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;
}

/* 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: #120A21;
    padding: 6px 11px;
    background: #fff;
    box-shadow: 0px 4px 26px 0px rgba(66, 71, 76, 0.1215686275);
    width: max-content;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
}

.hv-tool::after {
    --translate-y: calc(-1.1 * 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 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 .property-gallery .main-swiper .swiper-image {
    border-radius: 12px;
    height: 500px;
    object-fit: cover;
}

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

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

.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: 1rem;
}

.popup-property-container .property-content .inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    row-gap: 15px;
    column-gap: 20px;
}

.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 .value {
    font-weight: 700;
}

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

@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: 1320px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 50px;
}

.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: 30px;
    padding-left: 30px;
    padding-bottom: 30px;
    margin-right: -12px;
}

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

.cards-container.half-map-right .tfre-heading-property {
    margin-top: 3px;
    font-family: 'DM Sans';
    font-size: 30px;
    font-weight: 700;
    line-height: 42px;
}

.cards-container.half-map-left .tfre-heading-property {
    margin-top: 3px;
    font-family: 'DM Sans';
    font-size: 30px;
    font-weight: 700;
    line-height: 42px;
}

.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-right.no-sidebar .properties-list-wrap,
.cards-container.half-map-left.no-sidebar .properties-list-wrap {
    height: calc(100vh - 208px);
    overflow-x: hidden;
    overflow-y: auto;
}

.cards-container.half-map-right.no-sidebar .properties-list-wrap::-webkit-scrollbar-track,
.cards-container.half-map-left.no-sidebar .properties-list-wrap::-webkit-scrollbar-track {
    background: #E4E4E4;
}

.cards-container.half-map-right.no-sidebar .properties-list-wrap::-webkit-scrollbar {
    width: 8px;
}

.cards-container.half-map-left.no-sidebar .properties-list-wrap::-webkit-scrollbar {
    width: 20px;
}

.cards-container.half-map-right.no-sidebar .properties-list-wrap::-webkit-scrollbar-thumb,
.cards-container.half-map-left.no-sidebar .properties-list-wrap::-webkit-scrollbar-thumb {
    background: #5C6368;
}

.cards-container.half-map-right.no-sidebar .map-container,
.cards-container.half-map-left.no-sidebar .map-container {
    height: calc(100vh - 208px) !important;
    overflow: hidden !important;
}

/* Navigation Property */

.btn-display-properties-list,
.btn-display-properties-grid {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #A3ABB0;
    font-size: 21px;
    cursor: pointer;
}

.btn-display-properties-list.active,
.btn-display-properties-grid.active,
.btn-display-properties-list:hover,
.btn-display-properties-grid:hover {
    color: #161E2D;
}

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

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

.toolbar-search-list .nice-select .current {
    font-family: 'DM Sans';
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #161E2D;
    padding-right: 46px;
}

.toolbar-search-list .nice-select .current:after {
    font-size: 25px;
}

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

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

/* Pagination */


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

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

.cards-container .paging-navigation>span,
.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;
    color: #161E2D;
    margin-right: 8px;
    width: 48px;
    height: 50px;
    border: 1px solid transparent;
    text-align: center;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-family: 'DM Sans';
    font-size: 16px;
    font-weight: 700;
    line-height: 26px;
}

/* 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.post-type-archive-real-estate .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-property-type .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-property-status .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-property-feature .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-property-label .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-province-state .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-neighborhood .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search),
.archive.tax-property-status .cards-container:not(.half-map-right, .half-map-left, .half-map-right-with-search)  {
    max-width: 1320px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-bottom: 70px;
}

.cards-container.hide-map {
    padding-top: 80px;
    padding-bottom: 50px;
}

@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 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .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;
    }
    .cards-container.half-map-right.no-sidebar .properties-list-wrap,
    .cards-container.half-map-right.no-sidebar .map-container,
    .cards-container.half-map-left.no-sidebar .properties-list-wrap,
    .cards-container.half-map-left.no-sidebar .map-container {
        height: 100% !important;
        overflow-x: unset;
        overflow-y: unset;
    }
}

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