/* Mapbox Custom Styles - YNEX Theme */

.mapbox-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.mapbox-container-full {
    height: calc(100vh - 220px);
    min-height: 500px;
}

/* Marker styles */
.mapbox-marker-custom {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.mapbox-marker-custom:hover {
    transform: scale(1.4);
    z-index: 10;
}

/* Foco marker with pulse */
.mapbox-foco-marker {
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.6);
    cursor: pointer;
    position: relative;
    animation: foco-pulse 2s ease-in-out infinite;
}

.mapbox-foco-marker::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(220, 53, 69, 0.4);
    animation: foco-ring 2s ease-in-out infinite;
}

@keyframes foco-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes foco-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Popup styles */
.mapboxgl-popup-content {
    border-radius: 0.5rem;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.813rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mapbox-popup-content strong {
    color: #333;
    font-size: 0.875rem;
}

.mapbox-popup-content hr {
    border-color: #e9ecef;
}

.mapbox-popup-content .badge {
    font-weight: 500;
}

/* Sidebar legend */
.ace-mapa-legenda {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ace-mapa-legenda li {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 0.813rem;
}

.ace-mapa-legenda .legenda-cor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Controls positioning */
.mapboxgl-ctrl-top-right {
    top: 10px;
    right: 10px;
}

/* KPI cards */
.ace-kpi-card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ace-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ace-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.ace-kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-top: 4px;
}
