/* BreachSpot Map Styles */

.breachspot-map-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.breachspot-map-controls {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breachspot-map-controls label {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.breachspot-map-period-select {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.breachspot-map-period-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.breachspot-map {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
    transition: opacity 0.3s ease;
}

.breachspot-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.breachspot-map-loading p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Leaflet marker label styles */
.breachspot-marker-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 1;
}

/* Leaflet popup styles */
.breachspot-marker-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.breachspot-marker-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 300px;
}

.breachspot-popup-content {
    padding: 15px;
}

.breachspot-popup-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 8px;
}

.breachspot-popup-count {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.breachspot-popup-count strong {
    color: #dc3545;
    font-size: 16px;
}

.breachspot-popup-targets {
    max-height: 400px;
    overflow-y: auto;
}

.breachspot-popup-target {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.breachspot-popup-target:last-child {
    margin-bottom: 0;
}

.breachspot-popup-target h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.breachspot-popup-details {
    margin: 0;
    padding: 0;
    list-style: none;
}

.breachspot-popup-details li {
    margin: 5px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.breachspot-popup-details li strong {
    color: #333;
    margin-right: 5px;
}

.breachspot-popup-more {
    margin: 10px 0 0 0;
    font-size: 12px;
    color: #999;
    font-style: italic;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .breachspot-map-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .breachspot-marker-popup .leaflet-popup-content {
        min-width: 250px;
    }
    
    .breachspot-popup-content {
        padding: 12px;
    }
    
    .breachspot-popup-title {
        font-size: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .breachspot-map-controls {
        background-color: #2c2c2c;
        color: #e0e0e0;
    }
    
    .breachspot-map-controls label {
        color: #e0e0e0;
    }
    
    .breachspot-map-period-select {
        background-color: #3c3c3c;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .breachspot-map {
        background-color: #2c2c2c;
        border-color: #555;
    }
    
    .breachspot-popup-content {
        background-color: #2c2c2c;
        color: #e0e0e0;
    }
    
    .breachspot-popup-title {
        color: #e0e0e0;
        border-bottom-color: #dc3545;
    }
    
    .breachspot-popup-target {
        background-color: #3c3c3c;
    }
    
    .breachspot-popup-target h4 {
        color: #e0e0e0;
    }
    
    .breachspot-popup-details li {
        color: #b0b0b0;
    }
    
    .breachspot-popup-details li strong {
        color: #e0e0e0;
    }
}

