.map-block__flex {
    display: flex;
    overflow: hidden;
}

@media screen and (max-width: 992px) {
    .map-block__flex {
        flex-direction: column;
    }
}

.map-block__shops-block {
    width: 50%;
    max-width: 700px;
    margin-right: 30px;
    flex-shrink: 0;
}

@media screen and (max-width: 992px) {
    .map-block__shops-block {
        max-width: unset;
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 576px) {
    .map-block__shops-block {
        margin-bottom: 20px;
    }
}

.map-block__cities-block {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
}

.map-block__cities-btn {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 1px solid var(--black);
    background: #FFF;
    text-align: left;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    cursor: pointer;
    z-index: 2;
    transition: .3s;
}

.map-block__cities-btn::after {
    width: 10px;
    height: 5px;
    content: '';
    background: url(/local/components/mediamint/ya.map/templates/.default/images/arrow-cities-list.svg) no-repeat center / contain;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
}

.map-block__cities-list {
    width: 100%;
    border: 1px solid var(--black);
    border-top: none;
    background: #FFF;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    opacity: 0;
    overflow: auto;
    pointer-events: none;
    transition: .3s;
    z-index: 1;
}

.map-block__cities-list.active {
    opacity: 1;
    pointer-events: fill;
}

.map-block__cities-list::-webkit-scrollbar {
    width: 5px; 
    background-color: transparent;
}

.map-block__cities-list::-webkit-scrollbar-thumb {
    background-color: var(--black);
    border: none;
    border-radius: 5px;
}

.map-block__cities-list::-webkit-scrollbar-button {
    display: none;
}

.map-block__cities-list-item {
    width: 100%;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
    list-style-type: none;
    cursor: pointer;
    transition: .3s;
}

.map-block__cities-list-item::before {
    display: none;
}

.map-block__cities-list-item:hover {
    background-color: #F1F1EF;
}

.map-block__cities-list-item:last-of-type {
    border-bottom: none;
}

.map-shop {
    width: 100%;
    padding: 20px;
    background-color: #FFF;
    border: none;
    position: relative;
    text-align: left;
}

.map-shop:not(.contacts-modal) {
    cursor: pointer;
}

.map-shop.contacts-modal {
    border: 1px solid var(--light-gray);
}

.map-shop:not(:last-of-type) {
    border-bottom: 1px solid var(--light-gray);
}

.map-shop__name {
    margin: 0;
    color: var(--black);
    transition: .3s;
}

.map-shop__name.fira-sans-18 {
    font-weight: 600;
}

.map-shop:not(.contacts-modal):hover .map-shop__name,
.map-shop:not(.contacts-modal):focus-visible .map-shop__name {
    color: var(--yellow);
}

.map-shop__grey-text {
    margin: 5px 0 0;
    color: var(--gray);
}

a.map-shop__grey-text {
    max-width: max-content;
    display: block;
    transition: .3s;
    text-decoration: none;
}

a.map-shop__grey-text:hover,
a.map-shop__grey-text:focus-visible {
    color: var(--yellow);
}

.map-shop__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
}

.map-shop__arrow path {
    transition: .3s;
}

.map-shop:hover .map-shop__arrow path,
.map-shop:focus-visible .map-shop__arrow path {
    stroke: var(--yellow);
}

.map-block__map-block {
    flex-grow: 1;
}

#map {
    width: 100%;
    height: 450px;
    overflow: hidden;
}

#map .ymaps3x0--main-engine-container {  
    filter: grayscale(1);  
    -ms-filter: grayscale(1);  
    -webkit-filter: grayscale(1);  
    -moz-filter: grayscale(1);  
    -o-filter: grayscale(1);  
}  

.marker-block {
    position: relative;
    transform: translate(-50%, -100%);
}

.marker-block__btn {
    max-width: unset;
    max-height: unset;
    width: 40px;
    height: 58px;
}

.map-modal {
    width: 280px;
    position: absolute;
    bottom: calc(100% + 15px);
    transform: translateX(-50%);
    left: 50%;
    transition: .3s;
    opacity: 0;
    pointer-events: none;
}

.map-modal.active {
    opacity: 1;
    pointer-events: fill;
}

.map-modal__close-btn {
    max-width: unset;
    max-height: unset;
    width: 18px;
    height: 18px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.marker-block__btn,
.map-modal__close-btn  {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.map-modal__close-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--black);
    display: block;
    transition: .3s;
}

@media screen and (hover:hover) {
    .map-modal__close-btn:hover span,
    .map-modal__close-btn:focus-visible span {
        background-color: var(--yellow);
    }
}

.map-modal__close-btn span:first-of-type {
    transform: translate(0px, 7px) rotate(45deg);
}

.map-modal__close-btn span:last-of-type {
    transform: translate(0px, 5px) rotate(-45deg);
}