/* Scroll margin for results container to account for sticky filter */
@media (max-width: 991px) {
    .group-card-item-listing {
        scroll-margin-top: 120px; /* Header + sticky filter + padding */
    }
}

/* Dependent field visibility guards */
/* CRITICAL: tfcl-deps-hidden MUST come AFTER tfcl-deps-visible to override it */
.tfcl-deps-visible { 
    display: block !important; 
    visibility: visible !important;
    opacity: 1 !important;
}

/* Higher specificity to override tfcl-deps-visible - MUST be after .tfcl-deps-visible */
/* Simplified and consolidated hiding rules for better performance and maintainability */
.tfcl-field.tfcl-deps-hidden,
.tfcl-field.tfcl-hidden,
.tfcl-deps-visible.tfcl-deps-hidden,
.tfcl-deps-visible.tfcl-hidden,
.tfcl-deps-hidden,
.tfcl-hidden,
[data-deps-controlled="true"].tfcl-hidden,
[data-deps-controlled="true"].tfcl-deps-hidden { 
    display: none !important; 
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}
body.home .tf-search-wrap[data-tfcl-body-empty="1"] .subtype-field-wrapper,
body.home .tf-search-wrap[data-tfcl-body-empty="1"] .tfcl-field-listing-subtype {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

body.home .tf-search-wrap[data-tfcl-has-subtypes="0"] .subtype-field-wrapper,
body.home .tf-search-wrap[data-tfcl-has-subtypes="0"] .tfcl-field-listing-subtype {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}
/* Style1 */
.tf-search-wrap.style1 .search-form-content{
    padding: 21px 28px 19px 28px;
    background-color: #fff;
    border-radius: 0px 16px 16px 16px;
}

/* Homepage filter: align Select2 placeholder tone with input placeholders (e.g. "Ціна від") */
body.home .tf-search-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.home .tf-search-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #696665;
}
body.home .tf-search-wrap .select2-container--default .select2-selection--single .select2-selection__rendered[title]:not([title=""]) {
    color: #24272C;
}

/* Homepage (Elementor) expanded filters: responsive grid layout */
.tf-search-wrap .search-more-options.desktop .row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.tf-search-wrap .search-more-options.desktop .tfcl-field {
  flex: 1 1 calc(25% - 16px);
  min-width: 220px;
}
/* Collapse hidden fields completely to avoid layout gaps */
.tfcl-field.tfcl-hidden,
.tfcl-field.tfcl-deps-hidden { 
    display: none !important; 
}
/* Backward compatibility for older class name used by dependencies */
.tfcl-dep-hidden { display: none !important; }
/* Ensure grid columns collapse when hidden via JS (safety for subsubtype and others) */
.tf-search-wrap .search-more-options.desktop .tfcl-field.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .col-xl-3.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .col-xl-3.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .col-md-6.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .col-md-6.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .col-xs-12.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .col-xs-12.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-subsubtype.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-subsubtype.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-subtype.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-subtype.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-model.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-model.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-engine_power.tfcl-hidden,
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-engine_power.tfcl-deps-hidden {
  display: none !important;
  flex: 0 0 auto !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}
/* Mobile form hidden fields */
.tf-search-wrap .search-more-options.mobile .tfcl-field.tfcl-hidden,
.tf-search-wrap .search-more-options.mobile .tfcl-field.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.mobile .tfcl-field-listing-model.tfcl-hidden,
.tf-search-wrap .search-more-options.mobile .tfcl-field-listing-model.tfcl-deps-hidden,
.tf-search-wrap .search-more-options.mobile .tfcl-field-listing-engine_power.tfcl-hidden,
.tf-search-wrap .search-more-options.mobile .tfcl-field-listing-engine_power.tfcl-deps-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Failsafe: if inner wrapper is hidden, also collapse the column (Chrome/Safari support :has) */
.tf-search-wrap .search-more-options.desktop .tfcl-field-listing-subsubtype:has(.subsubtype-field-wrapper[style*="display: none"]) {
  display: none !important;
  flex: 0 0 auto !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tf-search-wrap .search-more-options.desktop .tfcl-field .form-group,
.tf-search-wrap .search-more-options.desktop .tfcl-field .form-item {
  width: 100%;
}
.tf-search-wrap .search-more-options.desktop .select2-container,
.tf-search-wrap .search-more-options.desktop .nice-select,
.tf-search-wrap .search-more-options.desktop select.search-field,
.tf-search-wrap .search-more-options.desktop input.search-field {
  width: 100% !important;
}
@media (max-width: 1199px) {
  .tf-search-wrap .search-more-options.desktop .tfcl-field { flex-basis: calc(33.333% - 16px); }
}
@media (max-width: 991px) {
  .tf-search-wrap .search-more-options.desktop .tfcl-field { flex-basis: calc(50% - 16px); }
}
@media (max-width: 575px) {
  .tf-search-wrap .search-more-options.desktop .tfcl-field { flex-basis: 100%; min-width: 0; }
}

.tf-search-wrap.style1  .tfcl-search-form-top.desktop {
    display: flex;
    flex-wrap: wrap;
}
.tf-search-wrap.style1  .nice-select, .tf-search-wrap.style1 input[type='text'] {
    margin-bottom: 0;
}

.tf-search-wrap .search-form-content .form-item {
    margin: 0;
}

.tf-search-wrap .search-form-content .form-item input[type='text'] {
    padding-left: 0px !important;
    border-radius: 0 !important;
}

.tf-search-wrap.style1 .search-form-content .form-item .search-field {
    height: 100%;
}
.tf-search-wrap.style1 .search-form-content .wrap-search-form-btn {
    display: flex;
    gap: 12px;
}

.tf-search-wrap.style1 .tf-wrap-search-more-btn {
    position: relative;
    width: 50px;
    flex: unset !important;
    height: 100%;
    border-radius: 10px;
    flex-grow: 0;
    align-items: center;
    flex-shrink: 0;
    background: var(--theme-primary-rgba);
    font-size: 23px;
    padding: 0;
    text-align: center;
    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;
}

.tf-search-wrap.style1 .tf-wrap-search-more-btn a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.tf-search-wrap .tf-search-more-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.tf-search-wrap.style1 .tf-search-more-btn {
    color: var(--theme-primary-color);
}
.tf-search-wrap.style1 .tf-wrap-search-more-btn:hover,
.tf-search-wrap .tf-wrap-search-more-btn.active {
    background-color: var(--theme-primary-color);
    color: #fff;
}

.tf-search-wrap .tf-wrap-search-more-btn:hover a,
.tf-search-wrap .tf-wrap-search-more-btn.active a {
    color: #fff !important;
}

.tf-search-wrap.style4 .tf-wrap-search-more-btn.active {
    background: var(--theme-primary-color) !important;
    color: #fff !important;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn.active a i {
    transform: rotate(0deg);
}

.tf-search-wrap .tf-wrap-search-more-btn i {
    display: flex;
}

.tf-search-wrap .tf-search-more-btn.active i::before {
    content: '\e928';
    font-size: 14px;
}
.tf-search-wrap.style1 .tf-wrap-search-more-btn:hover .tf-search-more-btn {
    color: #fff;
}
.tf-search-wrap .search-form-content .submit-search-form {
    cursor: pointer;
}

.tf-search-wrap.style1 .search-form-content .submit-search-form {
    flex: unset !important;
    width: unset !important;
}

.tf-search-wrap.style1 .search-form-content .submit-search-form .tf-advanced-search-btn {
    border-radius: 14px;
    background: var(--theme-primary-color);
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 25px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20.16px;
    min-width: 204px;
}

.tf-search-wrap.style4 .search-form-content .submit-search-form .tf-advanced-search-btn {
    padding: 15px 25px;
}

.tf-search-wrap.style1 .search-form-content .submit-search-form .tf-advanced-search-btn i {
    margin-left: 10px;
    font-size: 20px;
}

.tf-search-wrap.style1 .search-form-content .submit-search-form .tf-advanced-search-btn:hover {
    background: #24272C;
    color: #fff;
}

.tf-search-wrap.style1 .submit-search-form .tf-advanced-search-btn i {
    margin-right: 5px;
}

.tf-search-wrap.style1 label {
    font-size: 16px;
    font-weight: 600;
    line-height: 20.16px;
    margin-bottom: 8px;
}

.tf-search-wrap.style1 .tfcl-search-form-top.desktop .form-item {
    width: 100px;
}

.tf-search-wrap .submit-search-form .tf-advanced-search-btn i {
    font-weight: 500;
    margin-right: 4px;
}

.tf-search-wrap.style1 .search-more-options {
    padding: 22px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 26px 0px #42474C14;
}

.tf-search-wrap .search-more-options .form-group {
    width: 25%;
}

.tf-search-wrap .search-more-options select.form-control,
.tf-search-wrap .search-more-options .select2-container--default .select2-selection--single,
.tf-search-wrap .search-more-options .select2-container--default .select2-selection--multiple,
.tf-search-wrap .search-more-options .nice-select {
    padding: 14px 16px;
}

.tf-search-wrap .search-more-options .checkbox label {
    font-family: 'Inter';
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    cursor: pointer;
    display: block;
}

.tf-search-wrap .search-more-options .form-group label {
    display: none;
}

.tf-search-wrap .search-more-options .checkbox label {
    display: block;
}

.tf-search-wrap .search-more-options .features-wrap > .features label {
font-size: 18px;
font-weight: 500;
line-height: 22.68px;
}

.tf-search-wrap .search-more-options .features-wrap {
    border-top: 1px solid #EDEDED;
    padding-top: 20px;
    margin-top: 10px;
}

.tf-search-wrap .search-more-options .enable-features .btn-enable-features  {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 22.68px;
}

.tf-search-wrap .search-more-options .enable-features .btn-enable-features.show i::before {
    content: '\e912';
}

.tf-search-wrap .search-more-options .wrap-checkbox .checkbox-item {
    width: calc(20% - 30px);
}

.tf-search-wrap .search-more-options .wrap-checkbox {
    row-gap: 13px;
    margin-top: 30px;
}

.tf-search-wrap .search-more-options .checkbox input[type="checkbox"]::before { 
    width: 24px;
    height: 24px;
    border: 1px solid #E4E4E4;
    border-radius: 6px;
}

.tf-search-wrap .search-more-options  .checkbox input[type="checkbox"] {
    margin-right: 8px;
    top: 4px;
}

.tf-search-wrap .search-more-options .checkbox input[type="checkbox"]:checked:before {
    border-color: var(--theme-primary-color);
}


.tf-search-wrap .tfcl-range-slider-filter {
    padding: 0px;
}

.tf-search-wrap.style1 .search-more-options > .row {
    row-gap: 30px;
}

.tf-search-wrap.style1 .tf-search-condition-tab {
    display: flex;
    flex-shrink: 0;
}
.tf-search-wrap.style1 .tf-search-condition-tab a {
    width: 120px;
    height: 47px;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 20.16px;
    text-transform: capitalize;
    position: relative;
}
.tf-search-wrap.style1 .tf-search-condition-tab a:nth-child(odd) {
    margin: 0 1px;
}
.tf-search-wrap.style1 .tf-search-condition-tab a:nth-child(2) {
    border-start-start-radius: 16px;
}
.tf-search-wrap.style1 .tf-search-condition-tab a:last-child {
    border-start-end-radius: 16px;
}
.tf-search-wrap.style1 .tf-search-condition-tab a.active,
.tf-search-wrap.style1 .tf-search-condition-tab a:hover {
    background-color: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color) !important;
}

.tf-search-wrap.style1 .form-item .nice-select .current{
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: #24272C;    
}

.tf-search-wrap.style1 .search-form-content .form-item .search-field {
    height: unset;
    padding: 0px 12px;
    padding-left: 0;
    background: #fff;
    border: none;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-container--default .select2-selection--single {
    border-radius: 16px;
    border: 1px solid rgba(36, 39, 44, 0.16);
    background: #fff;
    min-height: 56px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--theme-primary-color);
    box-shadow: inset 0 0 0 1px var(--theme-primary-color);
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    color: #24272C;
    padding: 0;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 20px;
    display: flex;
    align-items: center;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #24272C transparent transparent transparent;
    margin-top: -2px;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-dropdown {
    border-radius: 16px;
    border: 1px solid #E4E4E4;
    box-shadow: 0px 16px 32px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-search--dropdown {
    padding: 0 12px 8px;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-search--dropdown .select2-search__field {
    border-radius: 12px;
    border: 1px solid #E4E4E4;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.3;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-results__options {
    padding: 0 8px;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-results__option {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
    font-weight: 500;
    color: #24272C;
    margin: 2px 0;
}

.tf-search-wrap.style1 .listing-select-meta-box-wrap .select2-results__option--highlighted {
    background: var(--theme-primary-color) !important;
    color: #FFFFFF !important;
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-container--default .select2-selection--single {
    border-radius: 12px;
    border: 1px solid #E4E4E4;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px transparent;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: #24272C;
    padding: 0;
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 16px;
    display: flex;
    align-items: center;
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #24272C;
    margin-top: -1px;
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--theme-primary-color);
    box-shadow: inset 0 0 0 1px var(--theme-primary-color);
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-dropdown {
    border-radius: 12px;
    border: 1px solid #E4E4E4;
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
}

.tf-search-wrap.style1 .subtype-field-wrapper .select2-results__option {
    font-size: 14px;
    line-height: 19.6px;
}

.tf-search-wrap.style1 .range-slider .output {
    border-radius: 4px;
    background: #F5F5F5;
    padding: 5px 15px;
    z-index: 99;
}

.tf-search-wrap.style1 .tfcl-search-form-top.desktop .form-item:not(:last-child) {
    margin-right: 30px;
    padding-right: 30px;
    border-right: 1px solid #EFEFEF;
}

.tf-search-wrap.style1 .tfcl-search-form-top.desktop .form-item:nth-child(4) {
    border-right: none !important;
    margin-right: 0;
}

.tf-search-wrap .tf-wrap-search-more-btn {
    padding: 15px;
}

/* style 2 */

.tf-search-wrap.style2 .search-form-content {
    padding: 22px 22px 22px 22px;
    border-radius: 16px;
}

.tf-search-wrap.style2 .tf-search-condition-tab a,
.tf-search-wrap.style4 .tf-search-condition-tab a,
.tf-search-wrap.style3 .tf-search-condition-tab a {
    width: 110px;
    height: 50px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    font-weight: 500;
    border: 1px solid #fff;
    border-radius: 14px;
}

.tf-search-wrap.style2 .tf-search-condition-tab a:nth-child(odd),
.tf-search-wrap.style4 .tf-search-condition-tab a:nth-child(odd),
.tf-search-wrap.style3 .tf-search-condition-tab a:nth-child(odd) {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.tf-search-wrap.style2 .tf-search-condition-tab,
.tf-search-wrap.style4 .tf-search-condition-tab,
.tf-search-wrap.style3 .tf-search-condition-tab {
    gap: 10px;
    margin-bottom: 20px;
}

.tf-search-wrap.style2 .tf-search-condition-tab a::after,
.tf-search-wrap.style4 .tf-search-condition-tab a::after,
.tf-search-wrap.style3 .tf-search-condition-tab a::after {
    content: '';
    width: 20px;
    height: 10px;
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    clip-path: polygon(50% 100%, 0 24%, 100% 24%);
    opacity: 0;
    visibility: hidden;
    background: var(--theme-primary-color);
}

.tf-search-wrap.style2 .tf-search-condition-tab a.active::after,
.tf-search-wrap.style4 .tf-search-condition-tab a.active::after,
.tf-search-wrap.style3 .tf-search-condition-tab a.active::after {
    opacity: 1;
    visibility: visible;
}

.tf-search-wrap.style2 .tfcl-search-form-top.desktop .form-item:not(:last-child) {
    margin-right: 10px;
    padding-right: 0px;
    border-right:none;
}

.tf-search-wrap.style2 .search-form-content .form-item .search-field {
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #EDEDED;
}

.tf-search-wrap.style2 .form-item .nice-select .current {
    color: #696665;
    font-family: 'Outfit';
}

.tf-search-wrap.style2 .nice-select .current:after {
    font-size: 18px;
}

/* Style2: Ensure year input fields are visible and styled correctly */
.tf-search-wrap.style2 .tfcl-field-listing-year-from,
.tf-search-wrap.style2 .tfcl-field-listing-year-to {
    display: flex !important;
    flex-direction: column;
}

.tf-search-wrap.style2 .tfcl-field-listing-year-from .form-item,
.tf-search-wrap.style2 .tfcl-field-listing-year-to .form-item {
    width: 100%;
    margin: 0;
}

.tf-search-wrap.style2 .tfcl-field-listing-year-from label,
.tf-search-wrap.style2 .tfcl-field-listing-year-to label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #24272C;
}

.tf-search-wrap.style2 .tfcl-year-from-input,
.tf-search-wrap.style2 .tfcl-year-to-input {
    width: 100% !important;
    padding: 14px 15px !important;
    background: #fff !important;
    border: 1px solid #EDEDED !important;
    border-radius: 0 !important;
}

/* style 3 */


.tf-search-wrap.style3 .tf-search-condition-tab a.active, .tf-search-wrap.style3 .tf-search-condition-tab a:hover {
    background-color: #fff;
    color: #24272C;
    border-color: #fff !important;
}

.tf-search-wrap.style3 .tf-search-condition-tab a::after {
    background: #fff;
}

.tf-search-wrap.style3 .search-form-content {
    padding: 23px 21px 21px 40px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.tf-search-wrap.style3 .tfcl-search-form-top.desktop label,
.tf-search-wrap.style3 .tfcl-search-form-top.desktop .nice-select .current,
.tf-search-wrap.style3 .tfcl-search-form-top.desktop .tfcl-slider-range-year-wrap label,
 .tf-search-wrap.style3 .tfcl-search-form-top.desktop .tfcl-slider-range-price-wrap label,
  .tf-search-wrap.style3 .tfcl-search-form-top.desktop .tfcl-slider-range-mileage-wrap label {
    color: #fff;
}

.tf-search-wrap.style3 .search-form-content .form-item .search-field {
    background: transparent;
}

.tf-search-wrap.style3 .tfcl-search-form-top.desktop .form-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-search-wrap.style3 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.tf-search-wrap.style3 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn:hover {
    background: var(--theme-primary-color);
    color: #fff;
}

.tf-search-wrap.style3 .tfcl-search-form-top.desktop .tf-search-more-btn {
    color: #fff;
}

.tf-search-wrap.style3 .tf-search-condition-tab {
    margin-bottom: 29px;
}

.tf-search-wrap.style3 .clear-option {
    width: 20px;
    height: 20px;
    right: 0;
    border-radius: 5px;
    background: #fff;
    line-height: 20px;
    -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;
}

.tf-search-wrap.style3 .clear-option:hover {
    background: var(--theme-primary-color);
}

.tf-search-wrap.style3 .clear-option:hover::after {
    color: #fff !important;
}

.tf-search-wrap.style3 .clear-option::after {
    font-size: 10px;
}

/* style 4 */

.tf-search-wrap.style4 .tfcl-search-form-top.desktop {
    flex-direction: column;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .form-item:not(:last-child) {
    margin-right: 0px;
    padding-right: 0px;
    border-right: none;
}

.tf-search-wrap.style4 .search-form-content .form-item .search-field {
    padding: 14px 15px;
    background: #fff;
    border: 1px solid #EDEDED;
    width: 100%;
}
.tf-search-wrap.style4 .tfcl-search-form-top.desktop .form-item {
    width: 100%;
}

.tf-search-wrap.style4 .by-budget-option,
.tf-search-wrap.style4 .by-brand-option {
    display: none;
}

.tf-search-wrap.style4 .by-budget-option.active,
.tf-search-wrap.style4 .by-brand-option.active {
    display: block;
}

.tf-search-wrap .by-budget-option .range-slider,
.tf-search-wrap .by-brand-option .range-slider {
    margin-bottom: 0;
}

.tf-search-wrap.style4 .search-form-content {
    padding: 0;
    background-color: transparent;
    border-radius: 0px;
}

.tf-search-wrap.style4 .form-search-inner {
    padding: 30px 30px 30px 30px;
    border-radius: 16px;
    background: #fff;
    position: relative;
}

.tf-search-wrap.style4 .tf-search-condition-tab a.active,
.tf-search-wrap.style4 .tf-search-condition-tab a:hover {
    background-color: #24272C;
    color: #fff;
    border-color: #24272C !important;
}

.tf-search-wrap.style4 .tf-search-condition-tab a::after {
    background-color: #24272C;
}

.tf-search-wrap.style4 .tf-search-condition-tab a:nth-child(odd) {
    border-left: 1px solid #24272C;
    border-right: 1px solid #24272C;
}

.tf-search-wrap.style4 .tf-search-condition-tab a {
    border-color: #24272C;
    color: #24272C;
}

.tf-search-wrap.style4 input[type="radio"] {
    width: 22px;
    height: 22px;
    border: 1px solid #E4E4E4;
}

.tf-search-wrap.style4 input[type="radio"]:checked {
    border-color: var(--theme-primary-color);
}

.tf-search-wrap.style4 input[type="radio"]:before {
    width: 16px;
    height: 16px;
}

.tf-search-wrap.style4 input[type="radio"]:checked ~ label {
    color: var(--theme-primary-color);
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .form-group label {
    display: none;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .form-group.form-item {
    margin-bottom: 10px;
}

.tf-search-wrap.style4 h3 {
    font-size: 40px;
    font-weight: 600;
    line-height: 50.4px;
    margin-bottom: 24px;
}

.tf-search-wrap.style4  .tf-search-condition-tab {
    justify-content: center;
}

.tf-search-wrap.style4 .group-radio-select {
    display: flex;
    gap: 20px;
}

.tf-search-wrap.style4 .group-radio-select .inner {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tf-search-wrap.style4 .group-radio-select label  {
    font-size: 14px;
    font-weight: 400;
    line-height: 19.6px;
    color: #696665;    
    margin: 0;
    cursor: pointer;
}

.tf-search-wrap.style4 .group-radio-select input {
    margin-right: 10px;
    cursor: pointer;
}

.tf-search-wrap.style4 .tf-search-condition-tab {
    margin-bottom: 29px;
}

.tf-search-wrap.style4 .search-form-content .wrap-search-form-btn {
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn {
    all: unset;
    border: 1px solid var(--theme-primary-color);
    background: transparent;
    padding: 14px 20px;
    color: var(--theme-primary-color);
    font-size: 16px;
    font-weight: 500;
    line-height: 20.16px;
    border-radius: 14px;
    -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;
    position: relative;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn:hover {
    background: var(--theme-primary-color);
    color: #fff;
}

.tf-search-wrap.style4 .tfcl-search-form-top.desktop .tf-wrap-search-more-btn i {
    margin-left: 7px;
    font-size: 20px;
}

.tf-search-wrap.style4 .search-listing-form {
    position: unset;
}

/* form mobile */
.tfcl-search-form-top.mobile {
    display: none;
}

/* price slider */
.range-slider {
    position: relative;
    margin-bottom: -30px;
    width: 100%;
    height: 35px;
    text-align: center;
}

.tfcl-range-slider-filter {
    transform: translateY(-14px);
}

.search-more-options .range-slider {
    margin-bottom: 0px;
}

.range-slider input {
    pointer-events: none;
    position: absolute;
    overflow: hidden;
    z-index: 99;
    left: 0;
    top: 15px;
    width: 200px;
    outline: none;
    height: 18px;
    margin: 0;
    padding: 0;
}

.range-slider input::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    outline: 0;
}

.range-slider input::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 10;
    -moz-appearance: none;
    width: 9px;
}


.range-slider input::-moz-range-track {
    position: relative;
    z-index: -1;
    background-color: rgba(0, 0, 0, 1);
    border: 0;
}


.range-slider input:last-of-type::-moz-range-track {
    -moz-appearance: none;
    background: none transparent;
    border: 0;
}

.range-slider input[type=range]::-moz-focus-outer {
  border: 0;
}

.rangeValue {
	width: 30px;
}

.output {
  position: absolute;
  border:1px solid transparent;
  height: 30px;
  text-align: center;
  color: #888B95;
  background-color: #f5f5f5;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  bottom: -90%;
  left: 0;
}

.output.outputTwo {
	left: 100%;
    transform: translateX(-40px);
}

.range-slider input[type=range] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    overflow: unset;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 5px;
  border: none;
  border-radius: 3px;
  background: transparent;
}

input[type=range]::-ms-track {
  height: 5px;
  background: transparent;
  border: none;
  border-radius: 3px;
}

input[type=range]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: none;
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  border: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: var(--theme-primary-color);
  border: 2px solid #fff;
  margin-top: -9px;
  position: relative;
  z-index: 10000;
  box-shadow: 0px 2px 4px 0px #0000001A;
  cursor: pointer;
}

input[type=range]::-ms-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--theme-primary-color);
    border: 2px solid #fff;
    margin-top: -9px;
    position: relative;
    z-index: 10000;
    box-shadow: 0px 2px 4px 0px #0000001A;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: var(--theme-primary-color);
    border: 2px solid #fff;
    margin-top: -9px;
    position: relative;
    z-index: 10000;
    box-shadow: 0px 2px 4px 0px #0000001A;
    cursor: pointer;
}

input[type=range]:focus {
  outline: none;
}

.full-range,
.incl-range {
	width: 100%;
	height: 4px;
	left: 0;
	top: 21px;
	position: absolute;
	background: var(--theme-primary-rgba);
}

.incl-range {
	background: var(--theme-primary-color);
} 

.tf-search-wrap .tfcl-slider-range-year-wrap label,
.tf-search-wrap .tfcl-slider-range-price-wrap label,
.tf-search-wrap .tfcl-slider-range-mileage-wrap label {
    display: block !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.64px;
    color: #161E2D;
    margin-bottom: -4px;
}

.tf-search-wrap .tfcl-slider-range-year-wrap .output,
.tf-search-wrap .tfcl-slider-range-price-wrap .output,
.tf-search-wrap .tfcl-slider-range-mileage-wrap .output {
    all: unset;
}

.tf-search-wrap .tfcl-range-slider-filter {
    transform: unset;
}

.search-form-buttons {
    display: flex;
    gap: 20px;
}

.tf-wrap-search-more-btn {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #000;
}
.tf-search-more-btn {
    color: #fff;
}

.tf-search-wrap .search-listing-form {
    position: relative;
}

.search-more-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 99;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    min-width: 1290px;
}

.tfcl-search-form-top.mobile{
    display: none;
}

.tfcl-search-form-top.mobile .tf-wrap-search-more-btn,
.tfcl-search-form-top.mobile .submit-search-form {
    width: 50px;
    height: 50px;
    border-radius: 16px !important;
}

.tf-search-wrap .tfcl-range-slider-filter {
    padding: 0;
    margin-top: 1px;
}

.tf-search-wrap.style1 .tfcl-search-form-top.desktop .form-item {
    flex: 1;
}

.tf-search-wrap.style1 .search-form-content .tfcl-search-form-top.mobile .submit-search-form {
    flex: unset;
}

.tf-search-wrap.style1 .tfcl-search-form-top.mobile .search-input {
    width: 50px;
    height: 50px;
}

.tf-search-wrap.style1 .tfcl-search-form-top.mobile > .form-group {
    gap: 12px;
}

.tf-search-wrap.style1 .tfcl-search-form-top.mobile .input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3), .input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-radius: 3px;
}

.tf-search-wrap.style1 .tfcl-search-form-top.mobile .input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-radius: 3px;
}

.tf-search-wrap.style2 .search-more-options.mobile {
    display: none;
}

.tf-search-wrap.style2 .tfcl-search-form-top.desktop .form-group.form-item label {
    display: none;
}

.tf-search-wrap.style2 .tfcl-search-form-top.desktop .tfcl-field-listing-model .form-group.form-item label,
.tf-search-wrap.style2 .tfcl-search-form-top.mobile .tfcl-field-listing-model .form-group.form-item label {
    display: block;
}

.tf-search-wrap .btn-enable-features {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-right: 5px;
}   

.tf-search-wrap.style1 .search-form-content .tfcl-search-form-top.mobile .submit-search-form,
.tf-search-wrap.style2 .search-form-content .tfcl-search-form-top.mobile .submit-search-form {
    flex: 1;
}

.tf-search-wrap.style2 .search-form-buttons {
    margin-top: 45px;
}

.tf-search-wrap.style2 .tf-advanced-search-btn i {
    margin-right: 5px;
}
.tf-search-wrap .btn-enable-features i {
    margin-left: 7px;
    font-weight: 900;
}

.clear-option {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-option::after {
    content: '\e928';
    color: var(--theme-primary-color);
    font-family: 'autodeal';
    font-size: 14px;
    font-weight: 700;
}

/* Mobile label next to advanced search toggle */
.tf-search-more-label-mobile {
    display: none;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1;
    margin-left: 8px;
}

/* --- Year picker enhancements (presets + lists) --- */
.tfcl-year-range-picker__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  /* margin: 8px 0 12px; */
}
.tfcl-chip {
  appearance: none;
  border: 1px solid #e4e6eb;
  background: #fff;
  color: #333;
  height: 32px;
  line-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tfcl-chip:hover { background: #ff7101; border-color: #d8dbe2; }
.tfcl-chip:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,106,0,.25); border-color: var(--theme-primary-color, #ff6a00); }
.tfcl-chip.is-active,
.tfcl-chip[aria-pressed="true"] { background: var(--theme-primary-color, #ff6a00); border-color: var(--theme-primary-color, #ff6a00); color: #fff; }
.tfcl-chip.is-disabled { opacity: .6; cursor: not-allowed; }

.tfcl-year-range-picker__sections-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Show only two rows of options (approx). Each row ~34px height + margins. Include room for sticky decade header. */
.tfcl-year-range-picker__grid { max-height: 53px; overflow: auto; padding-right: 4px; }
.tfcl-year-range-picker__decade { position: sticky; top: 0; background: #fff; font-weight: 600; color: #555; padding: 6px 0 4px; }
.tfcl-year-range-picker__option { display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    min-width: 36px;
    margin: 4px;
    padding: 0 1px;
    border-radius: 8px;
    background: #f6f7f8;
    color: #222;
    border: 1px solid transparent;
    transition: background .15s, color .15s, border-color .15s; }
.tfcl-year-range-picker__option:hover { background: #eef0f3; }
.tfcl-year-range-picker__option.is-selected { background: var(--theme-primary-color, #ff6a00); color: #fff; border-color: var(--theme-primary-color, #ff6a00); }
.tfcl-year-range-picker__option.is-disabled { opacity: .45; cursor: not-allowed; }

@media only screen and (max-width: 991px) {
    .tf-search-wrap.style1 .tfcl-search-form-top.desktop .form-item.submit-search-form {
        width: 100%;
    }
    .tf-search-wrap.style1:not(.style4) .tfcl-search-form-top.desktop .form-item:not(:last-child) {
        margin-right: 10px;
        padding-right: 10px;
    }
    .tf-search-wrap.style1 .search-form-content {
        padding: 20px 15px;
    }
    .tf-search-wrap.style1 .search-form-content .submit-search-form .tf-advanced-search-btn {
        padding: 15px 15px;
    }
    .tf-search-wrap .search-more-options .wrap-checkbox .checkbox-item {
        width: calc(33.33333% - 30px);
    }

    /* Expand filter toggle to fit label and align content on mobile */
    .tfcl-search-form-top.mobile .tf-wrap-search-more-btn {
        width: auto !important;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    .tfcl-search-form-top.mobile .tf-search-more-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        color: inherit;
    }
    .tfcl-search-form-top.mobile .tf-search-more-label-mobile {
        display: inline-block;
        color: inherit;
    }
}

/* Change button colors when filter is sticky on mobile */
@media only screen and (max-width: 991px) {
    .tf-search-wrap.tf-search-wrap-sticky .tf-search-condition-tab .btn-condition-filter:not(.active) {
        background-color: var(--theme-primary-color, #ff6a00) !important;
        color: #fff !important;
        border-color: var(--theme-primary-color, #ff6a00) !important;
    }
    .tf-search-wrap.tf-search-wrap-sticky .tf-search-condition-tab .btn-condition-filter:not(.active):hover {
        background-color: var(--theme-primary-color, #ff6a00) !important;
        color: #fff !important;
    }
}

@media only screen and (max-width: 767px) {
    .tf-search-wrap .submit-search-form .tf-advanced-search-btn i {
        margin-right: 4px;
    }
    .tf-search-wrap.style2 .search-more-options .form-item {
        width: 100%;
    }
    .tf-search-wrap.style1 .search-form-content .submit-search-form .tf-advanced-search-btn {
        padding: 14px 10px;
    }
    .tfcl-search-form-top.mobile .tf-advanced-search-btn i {
        margin: 0 !important;
    }
    .tfcl-search-form-top.mobile .tf-advanced-search-btn {
        width: 50px;
    }
    .tfcl-search-form-top.mobile .search-field {
        border-radius: 16px !important;
    }
    .tf-search-wrap .search-more-options.mobile  {
        display: block;
    }
    .tf-search-wrap.style1 .tfcl-search-form-top.desktop,
    .tf-search-wrap.style2 .tfcl-search-form-top.desktop {
        display: none;
    }  
    
    .tfcl-search-form-top.mobile {
        display: block !important;
    }

    .tf-search-wrap .tfcl-search-form-top.mobile {
        position: sticky;
        top: var(--tfcl-sticky-header-height, 70px);
        z-index: 1002;
        background: inherit;
        margin-left: 0;
        margin-right: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .tf-search-wrap .tfcl-search-form-top.mobile::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background: inherit;
        z-index: -1;
        box-shadow: 0 4px 12px rgba(15, 24, 38, 0.12);
        border-radius: inherit;
    }

    /* Home only: remove sticky from filter - it should scroll away */
    body.home .tf-search-wrap .tfcl-search-form-top.mobile {
        position: relative !important;
        top: auto !important;
        z-index: auto !important;
        background: #fff !important;
    }
    body.home .tf-search-wrap .tfcl-search-form-top.mobile::before {
        background: #fff !important;
        box-shadow: none !important;
    }

    /* Ensure responsive behavior is maintained for subtype field */
    @media only screen and (min-width: 992px) {
        .tfcl-search-form-top.mobile .subtype-field-wrapper,
        .tfcl-search-form-top.mobile .subtype-field-wrapper.visible {
            display: none !important;
        }
    }
    
    @media only screen and (max-width: 991px) {
        .tfcl-search-form-top.desktop .subtype-field-wrapper,
        .tfcl-search-form-top.desktop .subtype-field-wrapper.visible {
            display: none !important;
        }
        .tfcl-search-form-top.mobile .subtype-field-wrapper.hidden {
            display: none !important;
        }
        .tfcl-search-form-top.mobile .subtype-field-wrapper.visible {
            display: block !important;
        }
    }

    .tf-search-wrap .search-more-options.mobile  {
        display: block;
    }

    .tf-search-wrap .search-more-options.desktop {
        display: none;
    }

    .tf-search-form-top.mobile .form-group {
        display: flex;
        gap: 12px;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile {
        display: flex !important;
        flex-wrap: wrap;
        gap: 12px;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile > .tfcl-field {
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
        width: calc(50% - 6px) !important;
        box-sizing: border-box;
        min-width: 0;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile > .form-group.input-group.w-100 {
        flex: 0 0 100%;
        max-width: 100%;
        order: 100;
    }
    .tf-search-wrap.style1  .search-form-content {
        padding: 20px;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    body.home .tf-search-wrap.style1 .search-form-content {
        padding: 12px;
    }

    /* body.home .tf-search-wrap.style1 .tf-search-condition-tab {
        margin-bottom: 8px;
    } */

    body.home .tf-search-wrap.style1 .tf-search-condition-tab a {
        height: 36px;
        padding: 10px 0;
        font-size: 13px;
        line-height: 16px;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile .tfcl-field-listing-year,
    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile .tfcl-field-listing-year-range,
    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile .tfcl-field-listing-year-from,
    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile .tfcl-field-listing-year-to {
        display: none !important;
    }

    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile > .tfcl-field-listing-body {
        order: 10;
    }
    body.home .tf-search-wrap.style1 .tfcl-search-form-top.mobile > .tfcl-field-listing-subtype {
        order: 20;
    }

    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="1"] .tfcl-search-form-top.mobile > .tfcl-field-listing-make {
        order: 30;
    }
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="1"] .tfcl-search-form-top.mobile > .tfcl-field-listing-price {
        order: 31;
    }

    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="0"] .tfcl-search-form-top.mobile > .tfcl-field-listing-make,
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="pending"] .tfcl-search-form-top.mobile > .tfcl-field-listing-make,
    body.home .tf-search-wrap.style1:not([data-tfcl-has-subtypes]) .tfcl-search-form-top.mobile > .tfcl-field-listing-make,
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes=""] .tfcl-search-form-top.mobile > .tfcl-field-listing-make {
        order: 11;
    }
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="0"] .tfcl-search-form-top.mobile > .tfcl-field-listing-price,
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes="pending"] .tfcl-search-form-top.mobile > .tfcl-field-listing-price,
    body.home .tf-search-wrap.style1:not([data-tfcl-has-subtypes]) .tfcl-search-form-top.mobile > .tfcl-field-listing-price,
    body.home .tf-search-wrap.style1[data-tfcl-has-subtypes=""] .tfcl-search-form-top.mobile > .tfcl-field-listing-price {
        order: 40;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100% !important;
    }

    .tf-search-wrap .search-more-options .form-item
    {
        width: 100%;        
    }

    .tf-search-wrap.style2 .form-control.search-input {
        height: 50px;
        margin-bottom: 0;
    }

    .tf-search-wrap.style2 .submit-search-form {
        flex: unset;
    }

    .tf-search-wrap.style4 .search-form-content {
        padding: 0px;
    }
    .tf-search-wrap.style4 h3 {
        font-size: 24px;
        line-height: 40px;
        margin-bottom: 15px;
    }
    .tf-search-wrap.style4 .tf-search-condition-tab {
        display: none;
    }
    .tf-search-wrap.style4 .form-search-inner {
        padding: 20px;
    }
    .tf-search-wrap.style4 .tf-search-condition-tab a {
        width: unset;
        padding: 10px 15px;
    }

    .tf-search-wrap.style1 .tf-search-condition-tab a {
        flex: 1;
    }
    
    .tf-search-wrap .search-more-options .wrap-checkbox .checkbox-item {
        width: calc(100% - 30px);
    }
}

@media (max-width: 768px) {
  .mobile-filter-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .mobile-filter-fields .form-group,
  .mobile-filter-fields .form-item {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .mobile-filter-fields .full-width-mobile {
    grid-column: 1 / 3;
  }
  .mobile-filter-fields .full-width-mobile > * {
    width: 100%;
  }
}

/* Ensure Elementor widget wrappers create a high stacking context */
.tf-search-wrap {
    position: relative;
    z-index: 9999 !important;
}

.elementor-widget-tf_search {
    position: relative;
    z-index: 9999;
}

/* Force Elementor layout containers to not trap the z-index */
.elementor-section:has(.tf-search-wrap),
.elementor-column:has(.tf-search-wrap),
.elementor-widget-wrap:has(.tf-search-wrap) {
    z-index: 9999 !important;
}