/* Event Location Tracker - Public Styles */

.elt-public-map-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#elt-public-map {
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Map Info Panel */
.elt-map-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px 20px;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

#elt-location-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.elt-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9e9e9e;
    display: inline-block;
    position: relative;
}

.elt-status-indicator.active {
    background: #4caf50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

#elt-last-updated {
    color: #666;
    font-size: 14px;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.5;
}

/* Breadcrumb markers */
.elt-breadcrumb-marker {
    background: transparent;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .elt-map-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #elt-public-map {
        height: 400px !important;
    }
}

/* Loading State */
.elt-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.elt-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

