.ddr-map__container {
    position: relative;
    width: 100%;
    height: 600px;
}

.ddr-map__viewer {
    width: 100%;
    height: 100%;
}

/* ── Маркеры точек ──────────────────────────────────────── */
.ddr-map__marker {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.ddr-map__marker-dot {
    display: block;
    width: 14px;
    height: 14px;
    background: #e53e3e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ddr-map__marker-popup {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s ease, visibility .15s ease;
    transition-delay: .1s;
}

.ddr-map__marker-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, .8);
}

/* Hover / Click — показ через JS-класс is-active */
.ddr-map__marker.is-active .ddr-map__marker-popup {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.ddr-map__marker-link {
    pointer-events: auto;
}

/* ── Позиции тултипа (модификаторы) ──────────────────────── */

/* top-start */
.ddr-map__marker-popup--top-start {
    left: 0;
    transform: none;
}
.ddr-map__marker-popup--top-start::after {
    left: 12px;
    transform: none;
}

/* top-end */
.ddr-map__marker-popup--top-end {
    left: auto;
    right: 0;
    transform: none;
}
.ddr-map__marker-popup--top-end::after {
    left: auto;
    right: 12px;
    transform: none;
}

/* bottom */
.ddr-map__marker-popup--bottom {
    bottom: auto;
    top: calc(100% + 10px);
}
.ddr-map__marker-popup--bottom::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, .8);
}

/* bottom-start */
.ddr-map__marker-popup--bottom-start {
    bottom: auto;
    top: calc(100% + 10px);
    left: 0;
    transform: none;
}
.ddr-map__marker-popup--bottom-start::after {
    top: auto;
    bottom: 100%;
    left: 12px;
    transform: none;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, .8);
}

/* bottom-end */
.ddr-map__marker-popup--bottom-end {
    bottom: auto;
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    transform: none;
}
.ddr-map__marker-popup--bottom-end::after {
    top: auto;
    bottom: 100%;
    left: auto;
    right: 12px;
    transform: none;
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, .8);
}

/* left */
.ddr-map__marker-popup--left {
    bottom: auto;
    top: 50%;
    left: auto;
    right: calc(100% + 10px);
    transform: translateY(-50%);
}
.ddr-map__marker-popup--left::after {
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-left-color: rgba(0, 0, 0, .8);
}

/* left-start */
.ddr-map__marker-popup--left-start {
    bottom: auto;
    top: 0;
    left: auto;
    right: calc(100% + 10px);
    transform: none;
}
.ddr-map__marker-popup--left-start::after {
    top: 12px;
    left: 100%;
    transform: none;
    border-top-color: transparent;
    border-left-color: rgba(0, 0, 0, .8);
}

/* left-end */
.ddr-map__marker-popup--left-end {
    top: auto;
    bottom: 0;
    left: auto;
    right: calc(100% + 10px);
    transform: none;
}
.ddr-map__marker-popup--left-end::after {
    top: auto;
    bottom: 12px;
    left: 100%;
    transform: none;
    border-top-color: transparent;
    border-left-color: rgba(0, 0, 0, .8);
}

/* right */
.ddr-map__marker-popup--right {
    bottom: auto;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
}
.ddr-map__marker-popup--right::after {
    top: 50%;
    left: auto;
    right: 100%;
    transform: translateY(-50%);
    border-top-color: transparent;
    border-right-color: rgba(0, 0, 0, .8);
}

/* right-start */
.ddr-map__marker-popup--right-start {
    bottom: auto;
    top: 0;
    left: calc(100% + 10px);
    transform: none;
}
.ddr-map__marker-popup--right-start::after {
    top: 12px;
    left: auto;
    right: 100%;
    transform: none;
    border-top-color: transparent;
    border-right-color: rgba(0, 0, 0, .8);
}

/* right-end */
.ddr-map__marker-popup--right-end {
    top: auto;
    bottom: 0;
    left: calc(100% + 10px);
    transform: none;
}
.ddr-map__marker-popup--right-end::after {
    top: auto;
    bottom: 12px;
    left: auto;
    right: 100%;
    transform: none;
    border-top-color: transparent;
    border-right-color: rgba(0, 0, 0, .8);
}

