.residence-marker {
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.residence-marker-icon {
    background: #0b4a89;
    border: 1px solid #3892ec;
    border-radius: 100% !important;

    padding: 6px;

    width: 42px;
    height: 42px;

    -webkit-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.05);
    box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.05);

    transform-origin: top left;

    transition: 0.2s all;
    transition-timing-function: linear;
}

@keyframes dancing {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.residence-marker.hover .residence-marker-icon {
    animation: dancing 0.5s infinite;
    animation-timing-function: ease-in-out;
    background: #f5e400;
    border-color: #f5e400;
    color: #000000;
}
.residence-marker.hover .residence-marker-icon svg > path {
    stroke: #000000;
}
.leaflet-marker-icon:has(.residence-marker.hover) {
    z-index: 1000 !important;
}

.residence-marker-icon svg {
    width: 100%;
}
.residence-marker .residence-marker-icon:hover {
    background: #3892ec;
}
.project-box-wrapper {
    position: relative;
    display: block;
    opacity: 1;
    transition: 0.5s opacity;
    width: 100%;
    aspect-ratio: 2.625;
}
.project-box-wrapper.not-loaded {
    pointer-events: none;
}
.project-box-wrapper.transparent {
    pointer-events: none;
    opacity: 0;
}
.residence-filter {
    position: relative;
    display: block;
    margin: 5px 0px;
    margin-bottom: 25px;
}
.residence-filter-form {
    position: relative;
    display: block;
}
.residence-filter-form-main {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;

    margin-bottom: 5px;
}
.residence-filter-form-col {
    position: relative;
    display: block;
    flex: 1 1 auto;
    height: 44px;
}
.residence-filter-form-col.auto {
    flex: 0 0 auto;
}

.residence-filter-form-main .btn {
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
}
.residence-filter-form-main .btn .filter-total-zone {
    position: relative;
    display: inline-block;
}
.filter-total-zone-mobile{
    background: #ff0000;
    color: #ffffff;
    padding: 5px;
    font-weight: normal;
}
.residence-filter-form-main .btn .filter-total-zone b {
    position: relative;
    display: inline-block;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 13px;
    vertical-align: 1px;
    background: #ff0000;
    font-weight: 300;
    color: #ffffff;
}
.residence-filter-form-main .btn.btn-bigger {
    font-size: 18px;
    font-weight: 600;
}

.residence-filter-form-main .btn.btn-default {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    border: 1px solid #000000;
    background: #ffffff;
    color: #000000;
}
.residence-filter-form-main .btn.btn-default span.x2{
    /* display: block;
    flex: 0 0 auto; */
    font-size: 16px;
    line-height: 16px;
    padding: 0;
    border: none;
    /* margin-right: 10px; */
    background: #cc0040;
    border-radius: 100%;
    padding: 3px 2px;
    color: #ffffff;
    width: 20px;
    height: 20px;
    text-align: center;
}
.residence-filter-form-main .btn.btn-default:hover {
    border: 1px solid #162b4c;
    background: #162b4c;
    color: #ffffff;
}

.residence-filter-form-main .btn.btn-default .actual-btn {
    display: block;
    border: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    background: none;
    color: inherit;
}
.residence-filter-form-main .btn.btn-default.disabled {
    border-color: #ff0040 !important;
    background: #ff0040 !important;
    color: #ffffff !important;
    stroke: #ffffff;
    opacity: 1;
}
.residence-filter-form-main .btn.btn-default .close-btn {
    display: block;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 16px;
    padding: 0;
    border: none;
    /* margin-right: 10px; */
    background: #cc0040;
    border-radius: 100%;
    padding: 3px 2px;
    color: #ffffff;
    width: 20px;
    height: 20px;
    text-align: center;
}

.residence-filter-form-main .btn.btn-success {
    border: 1px solid #ff0040;
    background: #ff0040;
    color: #ffffff;
}
.residence-filter-form-main .btn.btn-success:hover {
    border: 1px solid #3992ec;
    background: #3992ec;
    color: #ffffff;
}
.residence-filter-form-main .btn i {
    transform: rotate(0deg);
    transition: 0.5s all;
}
.residence-filter-form-main .btn.filter-active {
    border: 1px solid #162b4c;
    background: #162b4c;
    color: #ffffff;
}
.residence-filter-form-main .btn.filter-active i {
    transform: rotate(180deg);
}

.residence-filter-form-main .btn.btn-disabled {
    opacity: 0.6;
    background: #dddddd;
    border-color: #999999;
    color: #999999;
    cursor: not-allowed;
    pointer-events: none;
}

.residence-filter-title {
    position: relative;
    display: block;
    font-size: 24px;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.residence-filter-subtitle {
    position: relative;
    display: block;
    font-size: 16px;
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 5px;
}

.residence-filter-form-cities-wrap {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-bottom: 5px;
    /* height: 28px; */
    overflow: hidden;
    transition: 0.5s height;
}
.residence-filter-form-cities {
    position: relative;
    display: flex;
    overflow-x: hidden;
    gap: 5px;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}
.residence-filter-form-city-arrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.residence-filter-form-city-arrow i.fa {
    display: inline-block;
    line-height: 20px;
    font-size: 20px;
    padding: 0px 10px;
    cursor: pointer;
    transition: 0.2s color;
}
.residence-filter-form-city-arrow i.fa:hover {
    color: #3992ec;
}
.residence-filter-form-city-arrow .residence-filter-form-citys.hidden {
    height: 0px;
    pointer-events: none;
}
.residence-filter-form-city {
    position: relative;
    flex: 0 0 auto;
}
.residence-filter-form-city button {
    position: relative;
    display: block;
    border-radius: 4px;
    border: 1px solid #ff0000;
    color: #ffffff;
    background: #ff0000;
    font-size: 14px;
    line-height: 14px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 400;
    transition: 0.2s all;
}
.residence-filter-form-city a, .residence-filter-form-city div.filter-click {
    position: relative;
    display: block;
    border-radius: 4px;
    border: 1px solid #999999;
    color: #000000;
    background: #dddddd;
    font-size: 14px;
    line-height: 14px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 400;
    transition: 0.2s all;
}
.residence-filter-form-city button:hover,
.residence-filter-form-city a:hover,
.residence-filter-form-city div.filter-click:hover {
    border-color: #3992ec;
    color: #3992ec;
    background: #ffffff;
}

.residence-filter-form-city-zones-modal-wrap {
    position: fixed;

    display: flex;
    flex-direction: column;
    padding: 25px 25px;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 100;
    overflow-y: auto;
    justify-content: center;
}
.residence-filter-form-city-zones-modal-wrap .container {
    position: relative;
    display: block;

    padding: 15px 15px;
    background: #ffffff;
    width: 1200px;

    border-radius: 12px;

    z-index: 2;
    flex: 0 0 auto;
}

.residence-filter-form-city-zones-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.residence-filter-form-city-group {
    position: relative;
    display: block;
}

.residence-filter-form-city-group + .residence-filter-form-city-group {
    margin-top: 30px;
}
.residence-filter-form-city-group-title {
    position: relative;
    display: block;
    font-size: 24px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 10px;
}
.residence-filter-form-city-group-row {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
}
.residence-filter-form-city-group-row.extended {
    gap: 10px;
}
.residence-filter-form-city-group-col {
    position: relative;
    display: block;
    flex: 0 0 15%;
}
.residence-filter-form-city-group-col {
    display: flex;
    gap: 15px;
}

.residence-filter-form-city-group-input {
    position: relative;
    display: block;
}
.residence-filter-form-city-group-input.city-zone {
    margin-bottom: 5px;
}
.residence-filter-form-city-group-input input {
    margin-right: 0px;
}

.residence-filter-form-city-group-input input + label {
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
    transition: 0.2s color;
}
.residence-filter-form-city-group-input input:checked + label {
    color: #3992ec;
}
.residence-filter-form-city-group-input.city-zone input + label {
    font-weight: 600;
    font-size: 18px;
    line-height: 18px;
}

.residence-filter-form-city-zones-modal-wrap .btn-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    color: #000000;
    border: none;
}
.residence-filter-form-city-zones-modal-wrap .btn-modal-close i {
    font-size: 45px;
}
.residence-filter-form-city-zones-modal-wrap .btn-modal-close:hover {
    color: #3992ec;
}

.residence-filter-form-city-zones-modal-search {
    position: relative;
    display: block;
    margin-bottom: 10px;
    max-width: 600px;
}
.residence-filter-form-city-zones-modal-search .input-group .form-control {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.residence-filter-form-city-zones-modal-search .input-group .btn.btn-warning {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;

    background: #f5821f;
    border-color: #f5821f;
    color: #ffffff;
}
.residence-filter-form-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding-top: 0px;
    z-index: 10;

    pointer-events: none;
    opacity: 0;
    transform: translateY(-30px);
    transition: 0.3s all;
}

.residence-filter-form-dropdown-wrap.residence-filter-form-price-wrap {
    right: auto;
    width: 200%;
}
.residence-filter-form-dropdown-wrap.residence-filter-form-surface-wrap {
    right: auto;
    width: 200%;
}

.residence-filter-form-dropdown-wrap.active {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0px);
}
.residence-filter-form-dropdown {
    position: relative;
    display: block;
    border-radius: 8px;
    border: 1px solid #162b4c;
    background: #ffffff;
    padding: 6px 12px;

    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-top: none;
    margin-top: -5px;
}
.residence-filter-form-dropdown-wrap.residence-filter-form-price-wrap
    .residence-filter-form-dropdown {
    border-top: 1px solid #162b4c;
}
.residence-filter-form-dropdown .residence-filter-form-checkbox {
    position: relative;
    display: block;
}
.residence-filter-form-dropdown .residence-filter-form-checkbox input {
    vertical-align: -1px;
}
.residence-filter-form-dropdown .residence-filter-form-checkbox input + label {
    position: relative;
    font-size: 16px;
    color: #000000;
    transition: 0.2s all;
    cursor: pointer;
}
.residence-filter-form-dropdown
    .residence-filter-form-checkbox
    input:checked
    + label {
    color: #3992ec;
}

.residence-filter-form-price {
    position: relative;
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}
.residence-filter-form-price-select {
    position: relative;
    display: block;
    flex: 1 1 50%;
}
.residence-filter-form-price-select span.label {
    position: relative;
    display: block;
    color: #999999;
    font-size: 14px;
}

.residence-filter-form-price-select select {
    position: relative;
    display: block;

    border-color: #999999;
    color: #999999;

    cursor: pointer;

    transition: 0.2s all;
}
.residence-filter-form-price-select select.has-value:focus,
.residence-filter-form-price-select select.has-value:hover,
.residence-filter-form-price-select select.has-value {
    border-color: #3992ec;
    color: #3992ec;
}
.residence-filter-form-price-select i {
    position: absolute;

    top: 31px;
    right: 7px;
    font-size: 28px;
    color: #3992ec;

    opacity: 0;
    pointer-events: none;

    transition: 0.2s all;

    z-index: 2;

    cursor: pointer;
}
.residence-filter-form-price-select select.has-value + i {
    opacity: 1;
    pointer-events: all;
}
.residence-filter-form-price-select i:hover {
    color: #000000;
}

.residence-filter-form-surface {
    position: relative;
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}
.residence-filter-form-surface-select {
    position: relative;
    display: block;
    flex: 1 1 50%;
}
.residence-filter-form-surface-select span.label {
    position: relative;
    display: block;
    color: #999999;
    font-size: 14px;
}

.residence-filter-form-surface-select select {
    position: relative;
    display: block;

    border-color: #999999;
    color: #999999;

    cursor: pointer;

    transition: 0.2s all;
}
.residence-filter-form-surface-select select.has-value:focus,
.residence-filter-form-surface-select select.has-value:hover,
.residence-filter-form-surface-select select.has-value {
    border-color: #3992ec;
    color: #3992ec;
}
.residence-filter-form-surface-select i {
    position: absolute;

    top: 31px;
    right: 7px;
    font-size: 28px;
    color: #3992ec;

    opacity: 0;
    pointer-events: none;

    transition: 0.2s all;

    z-index: 2;

    cursor: pointer;
}
.residence-filter-form-surface-select select.has-value + i {
    opacity: 1;
    pointer-events: all;
}
.residence-filter-form-surface-select i:hover {
    color: #000000;
}

.residence-filter-form-city-search {
    position: relative;
    display: flex;
    width: 500px;
    flex-wrap: nowrap;
    gap: 0px;
    border-radius: 6px;
    background: #ffffff;
    border-color: #999999;
    font-size: 18px;
    height: 43.33px;
    transition: 0.2s all;
    cursor: text;
    align-items: center;
    padding-left: 8px;
    padding-right: 2px;
}
.residence-filter-form-city-search.focus {
    border-color: #162b4c;
}
.residence-filter-form-city-search .form-col-auto {
    position: relative;
    flex: 0 0 auto;
}
.residence-filter-form-city-search .form-col {
    position: relative;
    flex: 1 1 auto;
}
.residence-filter-form-city-search i.search-icon {
    font-size: 20px;
    color: #162b4c;
    padding-right: 8px;
    vertical-align: -2px;
}
.residence-filter-form-city-search .selected {
    position: relative;
    display: block;
    padding-right: 8px;
}
.residence-filter-form-city-search .selected > span {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 14px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #162b4c;
    color: #162b4c;
    background: #e2edff;
    cursor: pointer;
    margin-right: 2px;
}
.residence-filter-form-city-search .selected > span .delete-icon {
    position: relative;
    display: inline-block;
    color: #ff0000;
}
.residence-filter-form-city-search input {
    position: relative;
    display: block;
    width: 100%;

    background: none;
    border: none;
    font-size: 16px;
    line-height: 16px;
    padding: 10px 0px;
    font-weight: 300;
}

.residence-filter-form-city-dropdown-wrap {
    position: absolute;
    top: 100%;
    left: 0px;
    right: 0px;
    width: 100%;

    overflow: hidden;

    max-height: 0px;
    z-index: 3;
}
.residence-filter-form-city-dropdown {
    position: relative;
    display: block;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #eeeeee;
    -webkit-box-shadow: 0px 7px 5px -3px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 7px 5px -3px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 7px 5px -3px rgba(0, 0, 0, 0.15);
    padding: 10px 15px;
    margin-bottom: 8px;
}
.residence-filter-form-city-dropdown .selected {
    position: relative;
    display: block;
    max-width: 470px;
}

.residence-filter-form-city-dropdown .selected > span {
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #162b4c;
    color: #162b4c;
    background: #e2edff;
    cursor: pointer;
    margin-bottom: 4px;
    margin-right: 2px;
}
.residence-filter-form-city-dropdown .selected > span .delete-icon {
    position: relative;
    display: inline-block;
    color: #ff0000;
}

.residence-filter-form-city-dropdown-list-title {
    position: relative;
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-top: 5px;
}

.residence-filter-form-city-dropdown-list {
    position: relative;
    display: block;
    max-height: 300px;
    overflow-y: auto;
}
.residence-filter-form-city-dropdown-list::-webkit-scrollbar {
    width: 4px;
}
.residence-filter-form-city-dropdown-list::-webkit-scrollbar-track {
    background: #162b4c;
    border-radius: 2px;
}
.residence-filter-form-city-dropdown-list::-webkit-scrollbar-thumb {
    background: #3992ec;
    border-radius: 2px;
}
.residence-filter-form-city-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #ff0040;
}

.residence-filter-form-city-dropdown-row {
    position: relative;
    display: flex;
    width: 100%;
    margin-top: 4px;

    border: none;
    background: #ffffff;
    border-radius: 8px;
    padding: 5px 15px;
    flex-wrap: nowrap;
    gap: 5px;
    align-items: center;
    text-align: left;
}
.residence-filter-form-city-dropdown-row.disabled {
    pointer-events: none;
    filter: grayscale(1);
}
.residence-filter-form-city-dropdown-row img {
    display: block;
    flex: 0 0 auto;
    height: 32px;
}
.residence-filter-form-city-dropdown-row .title {
    display: block;
    flex: 1 1 auto;
}
.residence-filter-form-city-dropdown-row .title .top {
    position: relative;
    display: block;
    font-size: 16px;
    color: #000000;
    font-weight: 500;

    transition: 0.2s color;
}
.residence-filter-form-city-dropdown-row .title .bottom {
    position: relative;
    display: block;
    font-size: 13px;
    line-height: 13px;
    color: #3992ec;
}

.residence-filter-form-city-dropdown-row .add-btn {
    position: relative;
    display: block;
    flex: 0 0 auto;
}
.residence-filter-form-city-dropdown-row .add-btn i {
    font-size: 16px;
    line-height: 16px;
    padding: 6px;
    border-radius: 100%;
    width: 27px;
    height: 27px;
    color: #ffffff;
    background: #3992ec;
    transition: 0.2s all;
}
.residence-filter-form-city-dropdown-row.disabled .bottom,
.residence-filter-form-city-dropdown-row.disabled .add-btn {
    display: none;
}
.residence-filter-form-city-dropdown-row:hover .add-btn i {
    background: #ff0040;
}
.residence-filter-form-city-dropdown-row:hover .title .top {
    color: #ff0040;
}

.residence-filter-form-city-zones-modal-buttons {
    position: relative;
    display: block;

    padding-top: 15px;
    text-align: center;
}

.residence-filter-form-city-zones-modal-buttons .btn.btn-default {
    border-radius: 6px;
    border: 1px solid #cccccc;
    background: #ffffff;
    color: #000000;
}
.residence-filter-form-city-zones-modal-buttons .btn.btn-default:hover {
    border-color: #3992ec;
    color: #3992ec;
}
.residence-filter-form-city-zones-modal-buttons .btn.btn-primary {
    border-radius: 6px;
    border: 1px solid #162b4c;
    background: #162b4c;
    color: #ffffff;
}
.residence-filter-form-city-zones-modal-buttons .btn.btn-primary:hover {
    border-color: #3992ec;
    background: #3992ec;
}

.residence-filter-form-locality-wrap {
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
}
.residence-filter-form-locality-backdrop {
    position: absolute;
    display: block;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}
.residence-filter-form-locality {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    min-width: 500px;
}

.input-group.residence-filter-form-locality-input .input-group-text {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    background: #ffffff;
    border-right: none;
}
.input-group.residence-filter-form-locality-input .form-control {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    background: #ffffff;
    border-left: none;
}

.input-group.residence-filter-form-locality-input {
    margin-bottom: 10px;
}

.residence-filter-form-locality-button {
    position: relative;
    display: block;
    margin-top: 10px;
}

.residence-filter-form-locality-button .btn.btn-success {
    border: 1px solid #ff0040;
    background: #ff0040;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    border-radius: 6px;
    padding-left: 50px;
    padding-right: 50px;
}

.residence-loading {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    animation: imagePlaceholder 1s infinite linear;
}
.residence-loading:after {
    content: "Se incarca mai multe proprietati...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 600;
    color: #162a4c;
    text-align: center;
}

.btn.btn-map-mobile-btn {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
    height: 44px;
}

.residence-filter-title-loading {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    width: 50px;
    height: 24px;
    animation: imagePlaceholder 1s infinite linear;
    vertical-align: -3px;
    border-radius: 4px;
}

.whole-map-wrap {
    animation: imagePlaceholder 1s infinite linear;
    min-height: 100%;
}

.residence-filter-form-main-wrap {
    position: relative;
    display: block;
}

.residence-filter-form-main-wrap.fixed .residence-filter-form-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.residence-filter-form-custom-city {
    position: relative;
    display: flex;
    padding: 8px 10px;
    gap: 2px;
    flex-wrap: nowrap;
    border: 1px solid #000000;
    font-size: 16px;
    line-height: 16px;
    border-radius: 6px;
    align-items: center;
    min-width: 300px;
}
.residence-filter-form-custom-city > * {
    flex: 0 0 auto;
    background: none;
}
.residence-filter-form-custom-city input[type="text"] {
    flex: 1 1 auto;
    border: none;
}
.residence-filter-form-custom-city button {
    background: none;
    border: none;
    color: red;
}
.residence-filter-form-custom-city svg {
    height: 24px;
}

.residence-filter-form-custom-city.has-value {
    background: #eeeeee;
}

.residence-filter-form-custom-city-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    border: 1px solid #000000;
    border-top: none;
    background: #ffffff;
    z-index: 2;

    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;

    overflow: hidden;
    min-height: 6px;
    max-height: 6px;

    transform: translateY(-5px);
    transition: 0.5s all;
}
.residence-filter-form-custom-city-dropdown.z4{
    z-index: 4;
}
.residence-filter-form-custom-city.has-value .residence-filter-form-custom-city-dropdown {
    display: none;
}

.residence-filter-form-custom-city-dropdown-inner {
    position: relative;
    display: block;
    opacity: 0;
    transition: 0.2s all;
}
.residence-filter-form-custom-city:has(input:focus) .residence-filter-form-custom-city-dropdown {
    max-height: 300px;
}
.residence-filter-form-custom-city:has(input:focus) .residence-filter-form-custom-city-dropdown-inner {
    opacity: 1;
    transition-delay: 0.3s;
}
.residence-filter-form-custom-city.x5 .residence-filter-form-custom-city-dropdown {
    max-height: 300px;
}
.residence-filter-form-custom-city.x5 .residence-filter-form-custom-city-dropdown-inner {
    opacity: 1;
    transition-delay: 0.3s;
}
.residence-filter-form-custom-city-dropdown-empty, .residence-filter-form-custom-city-dropdown-empty-mobile {
    position: relative;
    display: block;
    font-size: 12px;
    color: #666666;
    text-align: center;
    white-space: nowrap;
    padding: 5px 15px;
}

.residence-filter-form-custom-city-dropdown-item {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 5px 15px;
    font-size: 14px;
    gap: 15px;
    text-align: left;

    transition: 0.2s all;
    background: #ffffff;
}
.residence-filter-form-custom-city-dropdown-item:hover {
    background: #eeeeee;
}
.residence-filter-form-custom-city-dropdown-item span {
    flex: 1 1 auto;
    color: #000000;
}
.residence-filter-form-custom-city-dropdown-item svg {
    height: 20px;
    color: #3892ec;
}
.residence-filter-form-custom-city-dropdown-item
    + .residence-filter-form-custom-city-dropdown-item {
    border-top: 1px solid #eeeeee;
}

.residence-filter-mega-form-wrap {
    display: none;
}
.residence-sort-mega-form-wrap {
    display: none;
}
.btn.btn-default.btn-red-border {
    border-color: #ff0000;
}

.residence-mobile-filter-row {
    flex-wrap: nowrap;
    gap: 4px;
}
.residence-mobile-filter-row > * {
    position: relative;
    flex: 1 1 auto;
}
.residence-mobile-filter-cell {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    font-size: 14px;
    white-space: nowrap;

    border: 1px solid #cccccc;
    background: #ffffff;
    color: #000000;
    stroke: #000000;

    border-radius: 8px;
    padding: 2px 5px;
}
.residence-mobile-filter-row > div > button {
    width: 100%;
}
.residence-mobile-filter-cell.red {
    border-color: #ff0000;
}
.residence-mobile-filter-cell svg {
    height: 16px;
}

.residence-mobile-filter-cell-dropdown {
    position: absolute;

    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
    transition: 0.2s all;

    top: 100%;
    right: 0;
    width: 150%;
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    border-radius: 8px;
    padding: 10px;
    margin-top: 4px;
}
.active + .residence-mobile-filter-cell-dropdown {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
}

.residence-mobile-filter-cell-dropdown button {
    width: 100%;
    border-radius: 12px;
    background: #162a4c;
    border-color: #162a4c;
    color: #ffffff;
    margin-top: 10px;
}

.residence-filter-form-main .btn.btn-default.disabled {
    border-color: #ff0000;
    color: #ff0000;
}

.residence-filter-title .thinner {
    font-weight: 300;
    font-size: 90%;
}
.residence-filter-title .thinner + #title-project-total {
    font-size: 90%;
}

/* nouislider */
.residence-filter-mega-form-box input[type="text"] {
    width: 80px;
    text-align: center;
    border: 1px solid #CCC;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    display: initial;
}

.noUi-handle {
    border: 1px solid #1d1d1d !important;
    background: #494949 !important;
}
.slider-styled,
.slider-styled .noUi-handle {
    box-shadow: none;
}

/* Hide markers on slider handles */
.slider-styled .noUi-handle::before,
.slider-styled .noUi-handle::after {
    display: none;
}

.slider-styled .noUi-handle .noUi-touch-area {
    border: 1px solid transparent;
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    width: auto;
    height: auto;
}

/* Show a border when hovering the area the handle responds to */
/* .slider-styled .noUi-handle:hover .noUi-touch-area {
    border: 1px dashed #7f7f7f;
} */

#slider-round {
    height: 10px;
}

#slider-round .noUi-connect {
    background: #c0392b;
}

#slider-round .noUi-handle {
    height: 18px;
    width: 18px;
    top: -5px;
    right: -9px; /* half the width */
    border-radius: 9px;
}
/* nouislider */


.residence-filter-mega-form-wrap {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;
    pointer-events: none;
}
.residence-filter-mega-form-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);

    opacity: 0;
    transition: 0.5s all;
}
.residence-filter-mega-form {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    top: 50px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: stretch;
    align-items: stretch;

    transform: translateY(100%);
    transition: 0.5s transform;
}

.residence-filter-mega-form-wrap.active {
    pointer-events: auto;
}
.residence-filter-mega-form-wrap.active .residence-filter-mega-form-backdrop {
    opacity: 1;
}
.residence-filter-mega-form-wrap.active .residence-filter-mega-form {
    transform: translateY(0);
}

.residence-filter-mega-form-header {
    display: flex;
    padding: 20px 20px;
    align-items: center;
}
.residence-filter-mega-form-header-title {
    font-size: 20px;
    font-weight: 600;
    flex: 1 1 auto;
}
.residence-filter-mega-form-header-close {
    background: none;
    border: none;
    padding: 0;
}
.residence-filter-mega-form-header-close svg {
    height: 32px;
    stroke: #000000;
}
.residence-filter-mega-form-content-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
}
.residence-filter-mega-form-content {
    padding: 20px 30px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.residence-filter-mega-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.residence-filter-mega-form-label {
    font-size: 16px;
    font-weight: 600;
}
.residence-filter-mega-form-input-group {
    display: flex;
    border: 1px solid #333333;
    padding: 10px;
    border-radius: 8px;
    align-items: center;
    gap: 15px;
}
.residence-filter-mega-form-input-group input {
    border: none;
    flex: 1 1 auto;
}
.residence-filter-mega-form-input-group svg {
    height: 24px;
}
.residence-filter-mega-form-boxes {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
}
.residence-filter-mega-form-box {
    flex: 0 0 auto;
}
.residence-filter-mega-form-box input {
    display: none;
}
.residence-filter-mega-form-box input + label {
    border-radius: 6px;
    font-size: 16px;
    font-weight: 300;
    line-height: 16px;
    transition: 0.2s all;
    cursor: pointer;
}
.residence-filter-mega-form-box input:checked + label {
    font-weight: 600;
    color: #3892ec;
}

.residence-filter-mega-form-footer {
    display: flex;
    flex: nowrap;
    padding: 20px 20px;
    gap: 20px;
}
.residence-filter-mega-form-footer-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 20px;
    border-radius: 15px;
    background: #162b4c;
    color: #ffffff;
    flex: 1 1 auto;
}
.residence-filter-mega-form-footer-submit svg {
    height: 24px;
    stroke: #3892ec;
}

.residence-filter-mega-form-footer-reset {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid #3892ec;
    background: #ffffff;
    color: #3892ec;
    flex: 0 0 auto;
}
.residence-filter-mega-form-footer-reset svg {
    height: 24px;
    stroke: #3892ec;
}


.residence-filter-mega-form-wrap.activeDesktop {
    pointer-events: auto;
}
.residence-filter-mega-form-wrap.activeDesktop .residence-filter-mega-form {
    transform: translateY(0) !important;
    width: 100%;
    max-width: 900px;
    margin: 0px auto;
}
.residence-filter-mega-form-wrap.activeDesktop .residence-filter-mega-form-backdrop {
    opacity: 1;
}
.residence-filter-mega-form-wrap.activeDesktop .residence-filter-mega-form-boxes {
    flex-wrap: wrap;
    overflow-x: hidden;
    gap: 10px;
}

/* property search */
.residence-filter-form-custom-property {
    position: relative;
    display: flex;
    padding: 8px 10px;
    gap: 2px;
    flex-wrap: nowrap;
    border: 1px solid #000000;
    font-size: 16px;
    line-height: 16px;
    border-radius: 6px;
    align-items: center;
    min-width: 300px;
}
.residence-filter-form-custom-property > * {
    flex: 0 0 auto;
    background: none;
}
.residence-filter-form-custom-property input[type="text"] {
    flex: 1 1 auto;
    border: none;
}
.residence-filter-form-custom-property button {
    background: none;
    border: none;
    color: red;
}
.residence-filter-form-custom-property svg {
    height: 24px;
}

.residence-filter-form-custom-property.has-value {
    background: #eeeeee;
}

.residence-filter-form-custom-property-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    border: 1px solid #000000;
    border-top: none;
    background: #ffffff;
    z-index: 2;

    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;

    overflow: hidden;
    min-height: 6px;
    max-height: 6px;

    transform: translateY(-5px);
    transition: 0.5s all;
}
.residence-filter-form-custom-property.has-value
    .residence-filter-form-custom-property-dropdown {
    display: none;
}

.residence-filter-form-custom-property-dropdown-inner {
    position: relative;
    display: block;
    opacity: 0;
    transition: 0.2s all;
}
.residence-filter-form-custom-property:has(input:focus)
    .residence-filter-form-custom-property-dropdown {
    max-height: 300px;
}
.residence-filter-form-custom-property:has(input:focus)
    .residence-filter-form-custom-property-dropdown-inner {
    opacity: 1;
    transition-delay: 0.3s;
}
.residence-filter-form-custom-property-dropdown-empty {
    position: relative;
    display: block;
    font-size: 12px;
    color: #666666;
    text-align: center;
    white-space: nowrap;
    padding: 5px 15px;
}

.residence-filter-form-custom-property-dropdown-item {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 5px 15px;
    font-size: 14px;
    gap: 15px;
    text-align: left;

    transition: 0.2s all;
    background: #ffffff;
}
.residence-filter-form-custom-property-dropdown-item:hover {
    background: #eeeeee;
}
.residence-filter-form-custom-property-dropdown-item span {
    flex: 1 1 auto;
    color: #000000;
}
.residence-filter-form-custom-property-dropdown-item svg {
    height: 20px;
    color: #3892ec;
}
.residence-filter-form-custom-property-dropdown-item
    + .residence-filter-form-custom-property-dropdown-item {
    border-top: 1px solid #eeeeee;
}
.grupareX2{
    display: grid;
    grid-template-columns: auto 70px;
    gap: 10px;
}