.m3d-9cadbae8-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #0a0a1a;
}

.m3d-9cadbae8-map {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.m3d-9cadbae8-map:active {
    cursor: grabbing;
}

.m3d-9cadbae8-map canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Popup */
.m3d-9cadbae8-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.m3d-9cadbae8-popup-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.m3d-9cadbae8-popup-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.m3d-9cadbae8-popup-close:hover {
    color: #333;
}

.m3d-9cadbae8-popup-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.m3d-9cadbae8-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.m3d-9cadbae8-popup-desc {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Controls */
.m3d-9cadbae8-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.m3d-9cadbae8-ctrl-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
    padding: 0;
}

.m3d-9cadbae8-ctrl-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Legend */
.m3d-9cadbae8-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

.m3d-9cadbae8-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    transition: opacity 0.2s;
}

.m3d-9cadbae8-legend-item:hover {
    opacity: 0.7;
}

.m3d-9cadbae8-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.m3d-9cadbae8-legend-label {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* Marker on canvas overlay */
.m3d-9cadbae8-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 5;
    pointer-events: auto;
}

.m3d-9cadbae8-marker:hover {
    transform: translate(-50%, -100%) scale(1.2);
}

.m3d-9cadbae8-marker-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m3d-9cadbae8-marker-pin {
    width: 40px;
    height: 40px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.m3d-9cadbae8-marker-emoji {
    transform: rotate(45deg);
    font-size: 18px;
    line-height: 1;
}

.m3d-9cadbae8-marker-pulse {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    opacity: 0.4;
}

@keyframes m3d9cadbae8Pulse {
    0% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    100% { transform: translateX(-50%) scale(2.5); opacity: 0; }
}

.m3d-9cadbae8-marker-pulse.m3d-9cadbae8-animate {
    animation: m3d9cadbae8Pulse 1.5s ease-out infinite;
}

/* Loading */
.m3d-9cadbae8-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0a0a1a;
    z-index: 20;
    color: #fff;
    gap: 16px;
    transition: opacity 0.5s;
}

.m3d-9cadbae8-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #4fc3f7;
    border-radius: 50%;
    animation: m3d9cadbae8Spin 0.8s linear infinite;
}

@keyframes m3d9cadbae8Spin {
    to { transform: rotate(360deg); }
}

.m3d-9cadbae8-loading-text {
    font-size: 14px;
    opacity: 0.7;
}
