.map-hero {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background: radial-gradient(ellipse at center, #0b1220 0%, #05070d 70%);
    padding: 0.75rem 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#peta-indonesia-map {
    display: block;
    width: 100%;
    height: auto;
    max-width: 1100px;
    max-height: 68vh;
    margin: 0 auto;
}

#peta-indonesia-map path {
    fill: var(--province-glow, #101a2e);
    stroke: #22314f;
    stroke-width: 0.4;
    transition: fill 0.6s ease;
}

#peta-indonesia-map path:hover {
    fill: #16233d;
}

.deployment-dot .dot-core {
    fill: var(--color-red);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.deployment-dot .dot-halo {
    fill: var(--color-red);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.deployment-dot.lit .dot-core {
    opacity: 1;
}

.deployment-dot.lit .dot-halo {
    animation: dot-pulse 2.6s ease-out infinite;
}

.deployment-dot.highlight .dot-core {
    fill: #ffffff;
}

@keyframes dot-pulse {
    0% {
        opacity: 0.55;
        transform: scale(0.4);
    }
    70% {
        opacity: 0;
        transform: scale(2.6);
    }
    100% {
        opacity: 0;
        transform: scale(2.6);
    }
}

.map-tagline {
    text-align: center;
    color: #f2f2f4;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 0.5rem 0 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.map-tagline.visible {
    opacity: 1;
}

/* Toast "implementasi baru" ala dashboard operasi nasional — nempel di titik dot kota */
.map-notification {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 26, 46, 0.95);
    border: 1px solid #2c3f61;
    border-left: 3px solid var(--color-red);
    border-radius: 6px;
    padding: 0.4rem 0.75rem;
    color: #f2f2f4;
    font-size: 0.78rem;
    max-width: min(70vw, 260px);
    width: max-content;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px)) scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 3;
}

.map-notification::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 10px;
    height: 10px;
    background: inherit;
    border-right: 1px solid #2c3f61;
    border-bottom: 1px solid #2c3f61;
    transform: translateX(-50%) rotate(45deg);
}

.map-notification.below {
    transform: translate(-50%, 14px) scale(0.92);
}

.map-notification.below::after {
    top: -6px;
    bottom: auto;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #2c3f61;
    border-top: 1px solid #2c3f61;
}

.map-notification.visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 14px)) scale(1);
}

.map-notification.visible.below {
    transform: translate(-50%, 14px) scale(1);
}

.map-notification .icon {
    width: 14px;
    height: 14px;
    color: var(--color-red);
    flex-shrink: 0;
}

.map-notification-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .deployment-dot .dot-core {
        transition: none;
    }
    .deployment-dot.lit .dot-halo {
        animation: none;
        opacity: 0.4;
    }
    .map-notification {
        transition: none;
    }
}
