/* Interactive Map Styles */

/* Container styles */
#interactive-map-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Konva container */
#interactive-map-container > div {
    position: relative !important;
    z-index: 1;
}

/* Tooltip layer - ensure it's always on top */
.konvajs-content {
    position: relative;
}

/* Prevent pointer events issues */
canvas {
    display: block;
}

/* Loading indicator */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 10;
}

/* Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

.map-legend-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}

.map-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.map-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 8px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        font-size: 11px;
    }
    
    .map-legend-color {
        width: 16px;
        height: 16px;
    }
}
