.unidades-container {
    background-color: #fff;
    position: relative;
    padding-bottom: 40px;
}
.apartmentBoxBorder {
    height: 2px;
    margin-left: 30px;
    margin-right: 30px;
    background: #CBCBCB;
}

.areaTop2,
.areaTop3,
.areaTop4,
.areaTop5 {
    position: relative;
}
.topSpan {
    font-size: 20px;
    font-family: 'Fakt Pro SemiBold';
    flex-grow: 1;
    color: #4B5257;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: 0px;
    font-style: normal;
}
.apartment_contact_info_top2,
.apartment_contact_info_top3,
.apartment_contact_info_top4,
.apartment_contact_info_top5 {
    position: absolute;
    width: 244px;
    top: -161px;
    height: 191px;
    z-index: 1;
    right: 15px;
    cursor: auto;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
}
.apartment_contact_info_top2 > img,
.apartment_contact_info_top3 > img,
.apartment_contact_info_top4 > img,
.apartment_contact_info_top5 > img {
    position: absolute;
    bottom: -15px;
    z-index: 1;
    right: 50%;
    transform: translate(50%, 0);
}
.rectangle {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #efefee;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 2px 4px rgb(0 0 0 / 50%);
}
.unitsInfoTitle {
    font-weight: 900;
    font-size: 20px;
    line-height: 28px;
    margin: 0;
    color: #4B5257;
}
.unitsInfoContact {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.unitsInfoButton {
    width: 70%;
    height: 35px;
    color: #9A6545;
    background: none;
    border: none;
    transition: 0.6s;
}
.unitsInfoButton:hover {
    color: #9A6545;
}
.contactButtonTop {
    display: flex;
    width: 123px;
    height: 40px;
    background: none;
    color: #9A6545;
    border: none;
    transition: 0.6s;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 50px;
    align-items: center;
}
.contactButtonTop:hover {
    color: #9A6545;
}
.contactButton {
    width: 100%;
    height: 42px;
    background: none;
    color: #9A6545;
    border: none;
    transition: 0.6s;
    padding: 1px 6px;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 50px;
}
.custom-scrollbar-css {
    max-height: 400px;
    margin-right: 9%;
    margin-left: 7%;
    margin-bottom: 30px;
    overflow-y: auto;
    height: calc(100% - 20px);
}
/* scrollbar width */
.custom-scrollbar-css::-webkit-scrollbar {
    width: 5px;
}
/* scrollbar track */
.custom-scrollbar-css::-webkit-scrollbar-track {
    background: #4B5257;
}
/* scrollbar handle */
.custom-scrollbar-css::-webkit-scrollbar-thumb {
    background-color: #9A6545;
    height: 20px;
}
.apartment-info {
    position: relative;
}
.loader {
    margin-left: 5px;
    display: flex;
    align-items: center;
}
.loaderP {
    margin-right: 1rem;
    margin-bottom: 0;
    font-size: 1rem;
}
.spinnerApartments {
    width: 1.5rem !important;
    height: 1.5rem !important;
}
.apartment-desktop-info {
    display: none;
}
.apartment_contact_info {
    position: absolute;
    width: 244px;
    top: -75px;
    height: 191px;
    z-index: 1;
    right: 105%;
}
.unit_info_x {
    position: absolute;
    top: 25px;
    right: 32px;
    cursor: pointer;
}
.unit_info_x_top {
    position: absolute;
    top: 25px;
    right: 32px;
    cursor: pointer;
}
.apartment_contact_info_first {
    top: 2px;
}
.apartment_contact_info_second {
    top: -53px;
}
.apartment_contact_info_secondLast {
    top: unset;
    bottom: -51px;
}
.apartment_contact_info_last {
    top: unset;
    bottom: 4px;
}
.apartment_contact_info > .unit_info_arrow {
    position: absolute;
    right: -30px;
    transform: rotate(-90deg) translate(47%, 0);
    top: 50%;
}
.apartment_contact_info_first > .unit_info_arrow {
    top: 18px;
}
.apartment_contact_info_second > .unit_info_arrow {
    top: 73px;
}
.apartment_contact_info_secondLast > .unit_info_arrow {
    top: 125px;
}
.apartment_contact_info_last > .unit_info_arrow {
    top: 179px;
}
.contactSelected {
    color: #fff !important;
    background-color: #000 !important;
}
.unitsInfoPrice {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
}
.unitsInfoPrice > p {
    margin: 0;
}
.unitsInfoPrice > p:first-child {
    color: #9A6545;
    margin-right: 1rem;
}
.apartmentAvailable {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.apartmentAvailable:last-of-type {
    padding-bottom: 0;
}
.noApartments {
    font-family: 'Fakt Pro';
    color: #4B5257;
    margin-top: 10px;
}
.apartmentInfo {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 8% 0 5px;
}
.apartment_number {
    padding-right: 5px;
    color:  #4B5257;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 50px;
}
.apartment_number,
.piso_number,
.apartment_size,
.apartment_map {
    padding-right: 10px;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 50px;
    letter-spacing: 0px;
}
.apartment_price {
    padding: 0 5px;
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 50px;
}
.apartment_contact {
    flex-grow: 1;
    max-width: 123px;
    position: relative;
}
.apartment_map a{
    text-decoration: underline;
}
.apartment_map a:hover {
    color: #000;
}

.countRoomContainer {
    width: 100%;
}
.countRooms {
    font-family: 'Fakt Pro';
    font-size: 20px;
    font-weight: 350;
    line-height: 20px;
    text-align: left;
    color: #979797;
    margin-top: 4px;
}

@media only screen and (max-width: 365px) {
    .apartmentInfo{
        width: 83%;
    }
}

@media only screen and (max-width: 424px) {
    .apartment_contact_info {
        width: 180px;
    }
    .apartment_number,
    .apartment_price,
    .piso_number,
    .apartment_size,
    .apartment_map {
    font-size: 14px;
    }
    .apartmentInfo{
        padding: 0;
        height: 30px;
        width: 85%;
    }
    .contactButton{
        height: 55px;
    }
}

@media only screen and (max-width: 479px) {
    .firstApartmentBorder {
        display: none;
    }
    .topSpan{
        font-size: 16px;
        font-weight: 350;
        line-height: 50px;
    }
    .contactButtonTop{
        font-size: 16px;
        font-weight: 350;
        padding-left: 55px;
    }
    .unidades-container{
        padding-bottom: 40px;
    }
    .custom-scrollbar-css{
        max-height: 200px;
        overflow-y: visible;
    }
    .apartment_map{
        padding-right: 0;
    }
    .apartment_number{
        color: #9A6545;
    }
    .noApartments {
        padding: 0 9px;
    }
    .countRooms {
        font-size: 16px;
        font-weight: 350;
        line-height: 16px;
    }
}

@media only screen and (min-width: 751px) {
    .desktopUnitImages {
        display: block;
    }
    .apartment-desktop-info {
        display: block;
        color: #4B5257;
        font-family: 'Fakt Pro';
        font-size: 20px;
        font-weight: 350;
        line-height: 50px;
    }
    .apartmentBoxBorder {
        margin-left: 7%;
        margin-right: 7%;
    }
    .apartment_contact_info_top2,
    .apartment_contact_info_top3,
    .apartment_contact_info_top4,
    .apartment_contact_info_top5 {
        right: 40px;
    }
}

@media only screen and (min-width: 900px) {
    .apartmentAvailability {
        width: 55%;
        margin: 0 auto;
    }
    .apartmentBoxBorder {
        margin-left: 0;
        margin-right: 0;
    }
    .custom-scrollbar-css {
        margin-right: 8px;
        margin-left: 0;
    }
    .apartment_contact_info_top2,
    .apartment_contact_info_top3,
    .apartment_contact_info_top4,
    .apartment_contact_info_top5 {
        right: -20px;
    }
}

@media (min-width: 1440) {
    .apartmentInfo{
        padding: 0 5% 0 5px;
    }
}
