.home-search-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home-search-form .basic-fields {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 5px 0;
    gap: 10px;

    @media screen and (max-width: 768px) {
        flex-direction: column;
    }
}

.home-search-form .form-item {
    width: 100%;
    margin: 0 5px;
}

.home-search-form select {
    width: 100%;
}

.home-search-form input[type="text"] {
    width: 100%;
}

.advsearch-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 24px 0 10px;
    border-bottom: 1px solid #ffffff80;
    border-top: 1px solid #ffffff80;
}

.advsearch-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    width: 100%;
    padding: 16px 0;
}

.advsearch-title > div {
    font-size: 14px !important;
    text-transform: uppercase;
    font-weight: 600;
}

.advsearch-fields {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px;
}

.advsearch-hide {
    display: none !important;
}

.categories-districts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    width: 100%;
    margin: 10px 0;
}

.categories-districts.hide {
    display: none !important;
}

.categories-districts-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px 4px;
    width: 32%;

    @media screen and (max-width: 575px) {
        width: 100%;
    }

    @media screen and (min-width: 576px) and (max-width: 1240px) {
        width: 47.5%;
    }
}

.categories-districts-item .category-title {
    color: white !important;
}

.categories-districts-item .category-title:hover {
    color: var(--link-color) !important;
}

.categories-districts-item .item-districts {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 300;
}

.categories-districts-item .item-districts .district {
    margin: 2px;
}

.categories-districts-item .item-districts .district a {
    color: #FFFFFF80 !important;
}

.categories-districts-item .item-districts .district:not(:last-child):after {
    content: "|";
    margin: 0 1px 0 4px;
    color: #FFFFFF80;
}

.categories-districts h2 {
    font-size: 16px !important;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

.categories-districts-item .item-icon {
    padding: 10px;
    border-radius: 4px;
}

.categories-districts-item .item-icon img {
    width: 22px;
    filter: invert(100%) sepia(95%) saturate(2%) hue-rotate(324deg) brightness(112%) contrast(101%);
}

.advsearch-title span.expander {
    width: 14px;
    height: 8px;
    background: url("dropdown-arrow.svg") no-repeat;
    transform: rotate(180deg);
    cursor: pointer;
    user-select: none;
    display: inline-block;
    vertical-align: top;
    margin-top: -13px;
    margin-left: auto;
}

.advsearch-title span.expander.active {
    /* background-position: 0 -119px; */
    transform: rotate(0deg);
}


.listing-grid-item-home {
    width: 24%;

    @media screen and (max-width: 575px) {
        width: 49.5%;
    }

    @media screen and (min-width: 575px) and (max-width: 768px) {
        width: 32%;
    }

    /*@media screen and (min-width: 1480px) {*/
    /*    width: 19.5%;*/
    /*}*/
}

#homepage_link_all_listings {
    background: var(--btn-background-color);
    height: 40px;
    min-width: 130px;
    padding: 0 20px 0;
    color: var(--btn-color);
    font-size: 14px;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    cursor: pointer;
    -webkit-appearance: none;
    border-radius: 20px;
    -webkit-font-smoothing: antialiased;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration) var(--timing);
}
#homepage_link_all_listings:hover {
    background: var(--btn-background-color-hover);
    box-shadow: 0px 4px 8px -2px var(--accent);
}



@media screen and (max-width: 768px) {
    .categories-districts-item .item-districts .district {
        margin: 4px;
    }
    .categories-districts-item .item-districts .district:not(:last-child):after {
        content: "|";
        margin: 0 6px;
        color: #FFFFFF80;
    }
    .categories-districts-item .item-districts .district {
        margin: 4px;
    }
    .categories-districts-item .item-districts {
        font-size: 14px;
    }
}