.mfp-wrap.map-popup {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: #fff;
}

.map-popup .mfp-container {
    position: absolute;
    inset: 0;
}

.map-popup .mfp-content {
    position: relative;
    height: 100%;
}

#nearby-map-popup.mfp-hide {
    display: none;
}

#nearby-map-popup,
.nearby-map {
    height: 100%;
}

.nearby-map {
    isolation: isolate;
}

.nearby-map-status {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #fff;
    border-radius: 4px;
}

.map-popup .mfp-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .25);
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.map-popup .nearby-map-card {
    width: min(370px, calc(100% - 68px));
    z-index: 1;
}

.nearby-map-card .map-left-panel__close {
    border: 0;
    padding: 0;
    background: transparent;
    color: #222;
    font-size: 26px;
    line-height: 1;
}

.nearby-map-card .baloon-wrapper h3 {
    padding-right: 24px;
}

.nearby-map-card .cc-button {
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.nearby-map-card .cc-button img {
    width: 16px;
    height: 16px;
}
