.row>.col.ak-form-grp {
        flex: 1 1 auto;
        min-width: 200px;
    }
    .row.ak-b-next {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .row.ak-b-next>.col {
        padding-left: 5px !important;
        padding-right: 5px !important;
        margin: 0 !important;
    }
    .sub-tab.custom-tab {
        flex: 1;
        text-align: center;
        padding: 6px 12px;
        font-weight: 500;
        color: #555;
        transition: all 0.3s ease;
        user-select: none;
    }
    .sub-tab.custom-tab.active {
        background: #ff4b4b !important;
        color: white !important;
        font-weight: 600;
    }
    .sub-tab.custom-tab:not(.active):hover {
         background: #e1e1e1 !important;
    }
    .price-dropdown .row.ak-banner-price1 .col-md-6 {
        padding-left: 5px !important;
    }
    .price-dropdown .row.ak-banner-price1 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
    }
    .price-dropdown .col-md-6 .dropdown-label {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .price-dropdown .row.ak-banner-price2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
    }
    .price-dropdown .row.ak-banner-price2 .col-md-6 {
        padding-left: 5px !important;
        padding-right: 10px !important;
        flex: 1 1 0;
    }
    .price-dropdown .row.ak-banner-price2 .col-md-6 button {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .dropdown-list h4 {
        font-size: 0.9rem !important;
        color: black !important;
        font-weight: 600 !important;
    }

    .dropdown .dropdown-list {
        max-height: none !important;
        height: auto !important;
    }
    .dropdown.open .checkbox {
        padding: 5px 10px !important;
    }

    .btn {
        background: #ff4b4b !important;
    }

    .ak-form-h .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }

    #type option.sub-option {
        font-weight: normal;
        padding-left: 15px;
        background-color: #f8f9fa;
    }

    #type option[value="1"],
    #type option[value="2"] {
        font-weight: bold;
    }

    body {
        overflow-x: hidden;
    }

    .select2-results__option[role="group"] {
        padding-left: 0 !important;
    }

    .select2-results__option[aria-selected="true"] {
        background-color: #007bff;
        color: white;
    }

    .select2-results__option--highlighted {
        background-color: #f8f9fa;
        color: #495057;
    }

    .area-dropdown,
    .price-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        margin-top: 5px;
        min-width: 300px;
        display: none;
    }

    .area-dropdown.active,
    .price-dropdown.active {
        display: block;
    }

    .dropdown-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        margin-top: 5px;
        display: none;
        max-height: 400px;
        overflow-y: auto;
    }

    .dropdown.open .dropdown-list {
        display: block;
    }

    .dropdown-label:hover {
        border-color: #007bff;
    }

    .checkbox {
        margin-bottom: 8px;
        display: flex;
        align-items: center;
    }

    .checkbox-custom {
        margin-right: 8px;
    }

    .checkbox-custom-label {
        margin-bottom: 0;
        cursor: pointer;
        font-size: 14px;
    }

    .ak-banner-price1 {
        margin-bottom: 10px;
    }

    .ak-banner-price2 {
        margin-top: 10px;
    }

    .ak-b-next {
        position: relative;
        z-index: 1;
    }

    .area-dropdown select,
    .price-dropdown select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #ddd;
        font-size: 14px;
    }

    .beds-baths-section .dropdown.open .dropdown-list {
        display: block !important;
    }

    .beds-baths-section .dropdown-list {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 9999;
        margin-top: 5px;
    }

    .beds-baths-section {
        position: relative;
        z-index: 1000;
    }

    .checkbox {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
    }

    .checkbox-custom {
        margin-right: 10px;
    }

    .checkbox-custom-label {
        margin-bottom: 0;
        cursor: pointer;
    }

    .price-dropdown .select2-container {
        z-index: 10060 !important;
        width: 100% !important;
    }

    .price-dropdown .select2-dropdown {
        z-index: 10070 !important;
    }

    .ak-btn-y,
    .ak-btn-r {
        min-width: 120px !important;
        width: 100% !important;
        white-space: nowrap !important;
        display: inline-block !important;
        text-align: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }



    #property-filter-form .col.col-shrink .blue-btn.btn.ak-btn-y.btn-success,
    #property-filter-form .col.col-shrink .btn.btn-success.ak-btn-r {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 10px 15px !important;
        height: auto !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        border-radius: 5px !important;
        display: inline-block;
    }


    .row.ak-b-next>.col:has(.price-dropdown) {
        display: block !important;
        visibility: visible !important;

    }

    .col:has(.price-dropdown) {
        display: block !important;
    }

    .area-dropdown,
    .price-dropdown {
        padding: 0 !important;

    }

    .dropdown-list {
        padding: 12px !important;
    }

    .area-dropdown select,
    .price-dropdown select {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }

    .form-group.asb.dropdown {
        margin-bottom: 0 !important;
    }

    #property-form-container {
        padding: 10px 0 !important;
    }

    .form-group {
        position: relative;
    }

    .dropdown .dropdown-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .selected-tags-container {
        align-items: center;
        gap: 5px;
        width: min-content;
    }
    #type {
        cursor: pointer;
        background: white;
        border: 1px solid #ddd;
        padding: 8px 12px;
        width: 100%;
        border-radius: 5px;
        color: #999;
    }
    .property-type-dropdown {
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        width: auto;
        position: absolute;
        z-index: 999;
    }
    .property-type-actions {
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .apply-btn,
    .reset-btn {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        line-height: 1.5;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 100px;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
    }

    .apply-btn {
         background: #ff0202 !important;
        color: #fff;
    }
    .apply-btn:hover {
        background-color: #0056b3;
    }

    .reset-btn {
        background-color: #e1e1e1;
        color: #555;
    }

    .reset-btn:hover {
        background-color: #e0e0e0;
    }
    .select2-container .select2-selection--single {
        height: 2.5rem !important;
        border-radius: 5px !important;
    }

    #property-filter-form .col-main-tab {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .location-tag {
        border: none !important;
        background: #e1e1e1;
    }

    .ak-form-grp i {
        left: 6px !important;
        top: 12px !important;
        color: #645d5d !important;
    }
    #property-filter-form .col .form-group,
    #property-filter-form .col select {
        height: 2.4rem !important;
        min-width: 180px !important;
        max-width: 250px !important;
    }
    .select2-container {
        width: 100% !important;
    }

    .form-group.asb.dropdown .price-label {
        min-width: 100px !important;
    }
    .location-search-bar {
        overflow-x: visible !important;
        border-radius: 5px;
        gap: 2px !important;
    }
    .selected-tags-container {
        flex-wrap: nowrap !important;
    }

    .location-tag {
        padding: 0 2px !important;
        white-space: nowrap !important;
    }

    .location-search-input {
        background: transparent !important;
        transition: height 0.15s ease;
        min-width: 0 !important;
    }

    
    #property-filter-form .col .form-group,
    #property-filter-form .col .location-search-bar,
    #property-filter-form .col select,
    #property-filter-form .col input[type="text"],
    #property-filter-form .col .btn {
        height: 2.5rem !important;
    }

    .dropdown .dropdown-label {
        height: 2.5rem !important;
        border-radius: 5px !important;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #aaa !important;
    }

    .dropdown .dropdown-label {
        border-radius: 5px !important;
    }
         #property-filter-form .col .form-group{
        min-width: 180px !important;
        max-width: 250px !important;
    }

    .form-group.asb.dropdown.completion-dropdown #completionBtn {
        min-width: 180px !important;
        max-width: 250px !important;

    }
    #property-filter-form .col .form-group,
    #property-filter-form .col select {
        height: 2.5rem !important;
        min-width: 180px !important;
        max-width: 250px !important;
    }

    #property-filter-form .main-tab-container {
        display: inline-flex !important;
    }

    #property-filter-form .main-tab-container label.main-tab {
        display: inline-block;
        padding: 5px 10px;
        white-space: nowrap;
        cursor: pointer;
    }


    #property-filter-form .col-main-tab {
        flex: 0 0 auto !important;
        width: auto !important;
        padding-left: 5px !important;
    }


    #property-filter-form .col.col-shrink {
        flex: 0 0 auto !important;
        width: auto !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    #property-filter-form .col.col-shrink input,
    #property-filter-form .col.col-shrink select
    {
    width: auto;
    min-width: 180px;
    max-width: 250px;
    box-sizing: border-box;
    }

    .panels {
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        width: auto !important;
    }

.location-search-container {
    position: absolute;
    min-width: -webkit-fill-available;
}

    #property-filter-form .location-col {
        flex: 1 1 auto !important;
        min-width: 250px !important;
        max-width: 100% !important;
        padding-left: 0 !important;
    }

    #property-filter-form .col.col-shrink:not(.location-col) {
        flex: 0 0 auto !important;
        width: auto !important;
    }

    @media (max-width: 767px) {
        #property-filter-form .location-col {
            padding-left: 15px !important;
        }
        .panels {
            min-height: 240px !important;
        }
        .main-tab.custom-tab:not(.active):hover {
            background: none !important;
        }

        #property-filter-form .col.col-shrink input {
            width: 100% !important;
        }

        .ak-banner-price2,
        .reset-btn-wrapper {
            display: flex !important;
            gap: 10px;
            flex-wrap: nowrap !important;
        }

        .ak-banner-price2 .col-md-6,
        .reset-btn-wrapper .btn {
            flex: 1 1 0;
            width: auto !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }


        .ak-banner-price2 button,
        .reset-btn-wrapper .btn {
            width: 100%;
            box-sizing: border-box;
        }

        .row.ak-banner-price1 .col-md-6 {
            margin-bottom: 8px !important;
        }

        .row.ak-banner-price1 .col-md-6 {
            margin-bottom: 8px !important;
        }

        .property-type-dropdown {
            bottom: auto !important;
            top: auto;
        }

        #completion-wrapper {
            padding-top: 2px !important;
            margin-top: -7px !important;
            margin-bottom: 5px !important;
        }

        #property-form-container {
            padding: 0px 0 !important;
        }

        .form-group.asb.dropdown.completion-dropdown {
            display: block !important;
        }

        #sub-options {
            display: none !important;
        }

        #one-panel .row {
            flex-wrap: wrap !important;
        }

        body.counter-scroll.iti-mobile {
            overflow: visible !important;
        }

        #one-panel .col,
        #one-panel .col-auto,
        #one-panel .form-group,
        #one-panel .dropdown,
        #one-panel select,
        #one-panel button,
        #one-panel label {
            width: 100% !important;
            max-width: 100% !important;
        }

        .custom-property-type {
            margin: 0 0 !important;
        }

        #property-filter-form .col .location-search-bar,
        .location-search-bar {
            width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box;
            margin-bottom: 10px;
        }

        #property-filter-form .col.col-shrink {
            flex: 1 1 100% !important;
            width: 100% !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .sub-tab-container {
            margin-left: 0 !important;
        }

        .row.ak-b-next>.col {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .reset-btn-wrapper {
            width: 40% !important;
            display: flex;
            gap: 10px;
            justify-content: flex-start;
            flex-wrap: nowrap;
        }

        .reset-btn-wrapper .btn {
            flex: 1 1 auto;
            width: auto !important;
            max-width: none !important;
        }

        #property-filter-form .col .form-group,
        #property-filter-form .col input[type="text"],
        #property-filter-form .col select,
        #property-filter-form .col .btn,
        #property-filter-form .col.col-shrink .blue-btn.btn.ak-btn-y.btn-success,
        #property-filter-form .col.col-shrink .btn.btn-success.ak-btn-r {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 100% !important;
            box-sizing: border-box;
            margin: 5px 0 !important;
        }

        #property-filter-form .col-main-tab {
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .blue-btn.btn.ak-btn-y.btn-success,
        .btn.btn-success.ak-btn-r {
            border-radius: 5px !important;
        }

        #property-filter-form .col.col-shrink:not(.location-col) {
            flex: 1 1 100% !important;
            width: 100% !important;
            padding-left: 15px !important;
            padding-right: 15px !important;
        }

        .form-group.asb.dropdown.completion-dropdown #completionBtn {
            min-width: 100% !important;
            max-width: 100% !important;
            width: 100% !important;
        }

    }

    @media (min-width: 768px) and (max-width: 1210px) {
        .ak-form-h .row {
            display: flex !important;
            flex-wrap: wrap !important;
            justify-content: center;
        }

        #property-filter-form .location-col {
            flex: 1 1 0% !important;
            max-width: 100% !important;
            padding-left: 0 !important;
        }

        .ak-form-h .row.ak-b-next>.col {
            margin-top: 10px !important;
        }

        .ak-tab-box .row {
            margin: 0px 0px !important;
        }

        .panels {
            min-height: 170px !important;
        }

        #property-filter-form .col.col-shrink .blue-btn.btn.ak-btn-y.btn-success,
        #property-filter-form .col.col-shrink .btn.btn-success.ak-btn-r {
            padding: 10px 35px !important;
        }

        .ak-b-next>.col:not(.search-buttons) {
            max-width: 33.3333% !important;
            box-sizing: border-box;
        }

        .ak-b-next>.col.search-buttons {
            flex: 0 0 50% !important;
            max-width: 50% !important;
            margin-top: 10px;
        }
    }

    #property-filter-form .col.location-col .form-group.location-search {
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }
    .location-item {
    text-align: center !important;
}

.location-tag .tag-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 3rem; 
}

@media (min-width: 992px) {
    .location-tag .tag-text {
        width: 5rem; 
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .dropdown .dropdown-list {
        width: 280px !important;  
        max-width: 100% !important;
        right: 0;                 
        left: auto;
    }

    .reset-btn-wrapper button {
    padding: 8px 20px !important;
}
}
.dropdown .dropdown-list {
    width: 300px !important;
}

.btn-success {
    border-color: #ff4b4b !important;
}
.location-dropdown {
    display: flex;
    flex-direction: column; 
    width: 100%;
}

.dropdown-section {
    width: 100%; 
    margin-bottom: 10px;
}

.selected-dropdown-locations {
    display: flex;
    flex-wrap: wrap; 
    gap: 5px; 
    color: black;
}

.recent-locations {
    display: flex;
    flex-direction: column;
    gap: 5px; 
}
.dropdown-title {
    text-align: left;      
    font-size: 16px;       
    font-weight: 600;       
    color: #333;    
    padding:8px;       
}
