@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;700;900&display=swap");

main {
    display: block;
    width: 100%;
    padding: 0 20px;
}

.main-wrapper {
    padding-bottom: 80px;
}

.main-wrapper .found {
    width: 100%;
    height: 53px;
    border-radius: 6px;
    background-color: #F8F8F8;
    padding: 0 20px;
}

.main-wrapper .found h3 {
    font-family: "Jost", sans-serif;
    font-size: 18px;
    line-height: 100%;
    color: #282639;
    font-weight: 400;
}

.main-wrapper .found .sort {
    width: 260px;
    gap: 30px;
}

.main-wrapper .filters {
    width: 100%;
    padding: 30px 20px;
    border-radius: 20px;
    background-color: #F8F8F8;
    height: -moz-fit-content;
    height: fit-content;
    position: relative;
}

.main-wrapper .filters .wrapper {
    height: -moz-fit-content;
    height: fit-content;
    width: 100%;
    gap: 20px;
}

.main-wrapper .filters .sort-parametr {
    height: 24px;
}

.main-wrapper .filters-h3 {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    text-transform: uppercase;
    color: #282639;
    font-weight: 500;
}

.main-wrapper .filters-price {
    max-width: 231px;
    width: 100%;
    gap: 16px;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    color: #282639;
}

.main-wrapper .filters-price-wrapper {
    width: 100%;
}

.main-wrapper .filters-days {
    gap: 10px;
}

.main-wrapper .filters-type {
    max-width: 235px;
    width: 100%;
    gap: 16px;
}

.main-wrapper .filters-type-wrapper {
    gap: 10px;
}

.main-wrapper .filters-type-wrapper span {
    font-family: "Jost", sans-serif;
    font-size: 16px;
    color: #CECBCB;
    font-style: italic;
    line-height: 100%;
}

.main-wrapper .filters-type-wrapper label {
    width: -moz-max-content;
    width: max-content;
}

.main-wrapper .filters-people {
    max-width: 231px;
    width: 100%;
    gap: 16px;
}

.main-wrapper .filters-people-wrapper {
    width: 100%;
}

.main-wrapper .filters-people-wrapper img {
    position: absolute;
    right: 10px;
}

.main-wrapper .filters-rooles {
    width: 100%;
    gap: 16px;
}

.main-wrapper .filters-rooles-title {
    width: 100%;
}

.main-wrapper .filters-rooles .help-red {
    width: 16px;
    height: 16px;
}

.main-wrapper .filters-rooles-wrapper {
    gap: 10px;
}

.main-wrapper .filters-rooles-wrapper .rool {
    width: 100%;
    font-family: "Jost", sans-serif;
    font-size: 18px;
    color: #282639;
    line-height: 100%;
}

.main-wrapper .filters-cross {
    position: absolute;
    width: 21px;
    height: 21px;
    top: -40px;
    right: -20px;
    background-image: url(../images/filters-close.svg);
    background-size: cover;
    background-repeat: no-repeat;
}

.main-wrapper .filters-cross.open {
    display: block;
}

.main-wrapper .filters button {
    align-self: center;
}

.main-wrapper .filters.open {
    display: flex;
    position: fixed;
    z-index: 4;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.main-wrapper .filters .buttons {
    gap: 20px;
}

.main-wrapper .select-filters .title {
    width: 100%;
    position: relative;
}

.main-wrapper .select-filters .title .config {
    position: absolute;
    right: 0;
}

.main-wrapper #map {
    width: 100%;
    height: 850px;
    border-radius: 20px;
    position: relative;
}

.main-wrapper #map .ymaps-2-1-79-map {
    border-radius: 20px !important;
    overflow: hidden;
}

.main-wrapper #map .cards {
    width: 285px;
    height: 95%;
    position: absolute;
    z-index: 1;
    right: 10px;
    gap: 5px;
    overflow-y: scroll;
}

.main-wrapper #map .cards * {
    flex-shrink: 0;
}

.main-wrapper #map .cards::-webkit-scrollbar {
    width: 8px;
    border-radius: 4px;
}

.main-wrapper #map .cards::-webkit-scrollbar-track {
    width: 8px;
    background-color: #FFFFFF;
    border-radius: 4px;
}

.main-wrapper #map .cards::-webkit-scrollbar-thumb {
    width: 10px;
    background-color: #329423;
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.main-wrapper #map .cards .card-apartment {
    max-width: 270px;
    grid-template-columns: 270px;
    grid-template-rows: 150px 100px 190px;
}

.main-wrapper #map .cards .card-apartment-image {
    width: 100%;
    max-width: none;
    border-radius: 20px;
    cursor: pointer;
}

.main-wrapper #map .cards .card-apartment-information {
    padding: 5px;
    max-width: none;
}

.main-wrapper #map .cards .card-apartment-information-title {
    width: 100%;
    align-items: center;
}

.main-wrapper #map .cards .card-apartment-information-title h3 {
    font-size: 18px;
    text-align: center;
}

.main-wrapper #map .cards .card-apartment-information-title-status {
    display: none;
}

.main-wrapper #map .cards .card-apartment-information-title-about {
    font-size: 16px;
    align-items: start;
    width: 100%;
    height: 50px;
}

.main-wrapper #map .cards .card-apartment-information-title-about div {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 1fr 1fr 1fr;
    position: absolute;
    row-gap: 0;
}

.main-wrapper #map .cards .card-apartment-information-title-about div .metr {
    order: 1;
    grid-row: 1/1;
    grid-column: 3/3;
}

.main-wrapper #map .cards .card-apartment-information-title-about div .people {
    order: 2;
    grid-row: 2/2;
    grid-column: 1/1;
}

.main-wrapper #map .cards .card-apartment-information-title-about div .bed {
    order: 3;
    grid-row: 2/2;
    grid-column: 2/2;
}

.main-wrapper #map .cards .card-apartment-information-title-about div .bedroom {
    order: 4;
    grid-row: 2/2;
    grid-column: 3/3;
}

.main-wrapper #map .cards .card-apartment-information-address {
    display: none;
}

.main-wrapper #map .cards .card-apartment-booking {
    flex-direction: column;
    max-width: none;
    justify-content: unset;
    margin-top: 20px;
    position: relative;
}

.main-wrapper #map .cards .card-apartment-booking-line {
    width: 93%;
    height: 1px;
    position: absolute;
    top: 0;
}

.main-wrapper #map .cards .card-apartment-booking-main {
    padding: 0 10px;
    margin-top: 5px;
}

.main-wrapper #map .cards .card-apartment-booking-main-price {
    margin-top: 0;
    position: absolute;
}

.main-wrapper #map .cards .card-apartment-booking-main a {
    display: none;
}

.main-wrapper #map .cards .card-apartment-booking-main-information {
    margin-top: 13px;
    gap: 2px;
}

.map-buttons a {
    display: inline-block;
    width: 100%;
    margin: 8px 0;
    text-decoration: none;
    line-height: 42px;
    text-align: center;
}
.selectetMapAp{
    background: #ffffef;
}

@media (max-width: 1023px) {
    .main-wrapper #map .cards .card-apartment-booking{
        margin-top: 0;
    }
    .main-wrapper {
        padding-bottom: 350px
    }

    .main-wrapper .found {
        justify-content: center;
        flex-direction: column;
        height: -moz-fit-content;
        height: fit-content;
        align-items: start;
        gap: 20px;
        padding: 18px 20px
    }

    .main-wrapper .found .sort {
        width: 100%;
        max-width: 260px;
        gap: 0
    }

    .main-wrapper .filters {
        max-width: 270px;
        display: none
    }

    .main-wrapper .filters .wrapper {
        height: 100%;
        overflow-y: scroll
    }

    .main-wrapper .filters .wrapper::-webkit-scrollbar {
        display: none
    }

    .main-wrapper .filters .buttons .btn-list {
        display: none
    }

    .main-wrapper .select-filters .title .config {
        display: block !important
    }

    .main-wrapper #map .cards {
        top: 66%;
        left: 50%;
        transform: translateX(-50%);
        overflow: hidden;
        height: 680px;
        width: 60%;
        background-color: transparent;
        border-radius: 20px;
        box-shadow: 3px 3px 16px rgba(0, 0, 0, .2)
    }

    .main-wrapper #map .cards .card-apartment {
        max-width: none;
        grid-template-columns: auto;
        grid-template-rows: 270px 220px 170px;
        gap: 10px
    }

    .main-wrapper #map .cards .card-apartment-information-title-about {
        height: -moz-fit-content;
        height: fit-content;
        flex-direction: column
    }

    .main-wrapper #map .cards .card-apartment-information-title-about div {
        position: static;
        display: flex;
        gap: 5px
    }

    .main-wrapper #map .cards .card-apartment-information-title-about div .people {
        order: 1
    }

    .main-wrapper #map .cards .card-apartment-information-title-about div .bed {
        order: 2
    }

    .main-wrapper #map .cards .card-apartment-information-title-about div .bedroom {
        order: 3
    }

    .main-wrapper #map .cards .card-apartment-information-title-about div .metr {
        order: 4
    }

    .main-wrapper #map .cards .card-apartment-information-title-status {
        display: flex
    }

    .main-wrapper #map .cards .card-apartment-information-address {
        display: block
    }

    .main-wrapper #map .cards .card-apartment-booking {
        padding: 0
    }

    .main-wrapper #map .cards .card-apartment-booking-main-information {
        flex-direction: column;
        align-items: center
    }

    .main-wrapper #map .cards .card-apartment-booking-main .btn-booking {
        margin-top: 50px;
        max-width: 178px
    }
    .main-wrapper #map{
        height: 1050px;
    }
}

@media (max-width: 600px) {
    .main-wrapper #map .cards {
        width: 90%
    }
}

@media (max-width: 400px) {
    .main-wrapper #map .cards {
        height: 740px
    }

    .main-wrapper #map .cards .card-apartment {
        grid-template-rows: 270px 280px 170px
    }
}
