.catalog-control {
    display: flex;
    justify-content: space-between;
    margin-bottom: 46px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    height: 100%;
    max-width: 1440px;
    padding-left: 1.875rem;
    padding-right: 1.875rem;
}

.catalog-control .toggle-button .tab-button {
    min-width: 150px;
    height: 50px;
}

@media screen and (max-width: 768px) {
    .catalog-control {
        margin-bottom: 50px;
        padding-right: 0;
        padding-left: 1rem;
    }

    .catalog-control .filter::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }

    .catalog-control .toggle-button {
        display: none;
    }
}

.catalog_section {
    padding-top: 160px;
    position: relative;
}
.catalog_section .head-text {
    white-space: initial;;
}

.catalog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    box-sizing: border-box;
    margin-bottom: 143px;
}

.catalog-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.catalog-list .blur-description__text {
    margin-top: 7px;
}

.catalog-list .blur-description {
    position: absolute;
    bottom: 13px;
    left: 13px;
    width: calc(100% - 26px) !important;
    z-index: 5;
    padding: 14px 11px 13px;
}


/* Большие карточки: 1, 6, 7, 12, 13, 18, ... */
.catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(1),
.catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(6n),
.catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(6n+1) {
    flex: 0 0 588px;
    height: 601px;
}

/* Маленькие карточки */
.catalog-list:not(.catalog-list-cards) .catalog-card:not(:nth-of-type(1)):not(:nth-of-type(6n)):not(:nth-of-type(6n+1)) {
    flex: 0 0 calc((100% - 588px - 50px) / 2);
    height: 379px;
}

/* Маленькие карточки */
.catalog-list:not(.catalog-list-cards) .catalog-card:not(:nth-of-type(1)):not(:nth-of-type(6n)):not(:nth-of-type(6n+1)) .blur-description {
    bottom: 9px;
    left: 9px;
    width: calc(100% - 18px) !important;
    padding: 10px 11px;
}

/* Маленькие карточки */
.catalog-list:not(.catalog-list-cards) .catalog-card:not(:nth-of-type(1)):not(:nth-of-type(6n)):not(:nth-of-type(6n+1)) .blur-description__title {
    font-size: 1rem;
    line-height: 22.11px;
}

/* Маленькие карточки */
.catalog-list:not(.catalog-list-cards) .catalog-card:not(:nth-of-type(1)):not(:nth-of-type(6n)):not(:nth-of-type(6n+1)) .blur-description__text {
    font-size: 12px;
    line-height: 16.58px;
}

.catalog-list-cards .catalog-card {
    height: auto !important;
    aspect-ratio: 1;
    flex: 0 0 calc((100% - 50px) / 3);
}
.catalog-list-cards .blur-description__title {
    font-size: 16px;
}
.catalog-list-cards .blur-description__text {
    font-size: 12px;
}

@media screen and (max-width: 1400px) {
    /* Большие карточки: 1, 6, 7, 12, 13, 18, ... */
    .catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(1),
    .catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(6n),
    .catalog-list:not(.catalog-list-cards) .catalog-card:nth-of-type(6n+1) {
        flex: 0 0 400px;
        height: 500px;
    }

    /* Маленькие карточки */
    .catalog-list:not(.catalog-list-cards) .catalog-card:not(:nth-of-type(1)):not(:nth-of-type(6n)):not(:nth-of-type(6n+1)) {
        flex: 0 0 calc((100% - 400px - 50px) / 2);
        height: 379px;
    }
}

/* Медиазапросы для экранов меньше 1200px */
@media screen and (max-width: 1199px) {
    .catalog-list:not(.catalog-list-cards) .catalog-card {
        flex: 0 0 calc(33.33% - 16.67px) !important; /* 3 карточки в ряд */
        height: 260px !important;
    }

    /* Маленькие карточки */
    .catalog-list .blur-description {
        bottom: 9px;
        left: 9px;
        width: calc(100% - 18px) !important;
        padding: 10px 11px;
    }

    /* Маленькие карточки */
    .catalog-list .blur-description__title {
        font-size: 1rem;
        line-height: 22.11px;
    }

    /* Маленькие карточки */
    .catalog-list .blur-description__text {
        font-size: 12px;
        line-height: 16.58px;
    }
}
@media screen and (max-width: 991px) {
    .catalog_section .head-text {
        font-size: 2.3rem;
    }
    .catalog-list-cards .catalog-card {
        flex: 0 0 calc(50% - 12.5px) !important;
    }
}

/* Медиазапросы для экранов меньше 768px */
@media screen and (max-width: 960px) {
    .catalog-list {
        margin-bottom: 120px;
    }

    .catalog-list:not(.catalog-list-cards) .catalog-card {
        flex: 0 0 calc(50% - 12.5px) !important; /* 2 карточки в ряд */
        height: 379px !important;
    }
}

/* Медиазапросы для экранов меньше 620px */
@media screen and (max-width: 619px) {
    .catalog-list:not(.catalog-list-cards) .catalog-card {
        flex: 0 0 100% !important; /* 1 карточка в ряд */
        height: 379px !important;
    }
    .catalog-list-cards .catalog-card {
        flex: 0 0 100% !important;
        height: 379px !important;
    }
}

.catalog-map {
    width: 100%;
    height: 901px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.toggle-button-wrapper {
    position: sticky;
    bottom: 0;
    pointer-events: none !important;
    display: none;
    justify-content: center;
    z-index: 500;

}

.toggle-button-wrapper .tab-button {
    width: 150px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .catalog-map {
        height: 571px;
        margin-bottom: 100px;
    }

    .toggle-button-wrapper {
        display: flex;
    }
}

.point {
    position: relative;
    top: -111px;
    left: -48px;
    width: 114px;

    transform-origin: bottom center;
}

.point a {
    pointer-events: none;
}

.point-hover:hover {
    transition: 0.5s;
    transform: scale(1.4);
}

.point__image {
    position: absolute;
    top: 0;
    width: 112px;
    height: 110px;
    border-radius: 20px;
    border: 4px solid #ffff;
}

.point_active a {
    pointer-events: auto !important;
}

.point_active {
    width: 262px;
    height: 268px;
    /*transform: scale(1.4);*/
    transform: translate(-75px, -79px);
}

.point_active .point__image{
    /*transform: scale(1.4);*/
    width: 262px;
    height: 268px;

    border: none;
}

.point .close-btn {
    position: absolute;
    top: -50px;
    left: 111px;
    background-color: rgba(57, 57, 57, 0.8);
    border-radius: 100%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 24px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    border: none;
}

.point .close-btn img {
    width: 20px;
    height: 20px;
}

.point .close-btn:hover {
    opacity: 80%;
}

.point .close-btn:active {
    opacity: 60%;
}

.point_active .close-btn {
    display: flex;
}

.catalog-map_bg {
    position: absolute;
    width: 10000vw;
    height: 10000vh;
    background: #000;
    z-index: -1;
    opacity: 50%;
    top: -1000vh;
    left: -1000vw;
    display: none;
}

.point_active .catalog-map_bg {
    display: block !important;
}

.point .blur-description {
    display: none;
    width: 242px;
}

.point_active .blur-description {
    display: flex;
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 6px 9px 4px;
}

.point_active .blur-description .blur-description__title{
    font-size: 14px;
    line-height: 19.35px;
}

.point_active .blur-description .blur-description__text{
    font-size: 10px;
    line-height: 13.82px;
    margin-top: 5px;
}
