 html, body {
            height: 100%;
            margin: 0;
            padding: 0;
}
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 2px;
            background-color: #f5f5f5;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        
        .header {
            text-align: center;
            background: linear-gradient(135deg, #2c3e50, #3498db);
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .header h1 {
            margin: 0 0 10px 0;
            font-size: 1.8em;
        }
        
        .header h2 {
            margin: 0 0 5px 0;
            font-size: 1.3em;
            font-weight: normal;
        }
        
        .header h3 {
            margin: 0 0 10px 0;
            font-size: 1.1em;
            font-weight: normal;
        }

        h5 {
                display: block;
                font-size: 0.83em;
                margin-block-start: 1px;
                margin-block-end: 1px;
                margin-inline-start: 0px;
                margin-inline-end: 0px;
                font-weight: bold;
                unicode-bidi: isolate;
        }
        
        .form-select {
                display: block;
                margin-block-start: 0px;
                margin-block-end: 0px;
                margin-inline-start: 0px;
                margin-inline-end: 0px;
                border-bottom-width: 1px;
        }

        .controls {
            background: white;
            padding: 3px;
            border-radius: 5px;
            margin-bottom: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .controls label {
            display: block;
            margin-bottom: 2px;
            font-weight: bold;
            color: #2c3e50;
        }
        
        .select-container {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        #municipioSelect {
            flex: 1;
            min-width: 100px;
            padding: 3px;
            border: 2px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
            background: white;
            transition: border-color 0.3s ease;
        }
        
        #municipioSelect:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }
        
        #municipioSelect:disabled {
            background-color: #f8f9fa;
            color: #6c757d;
            cursor: not-allowed;
        }
        
        .btn {
            padding: 5px 6px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: all 0.3s ease;
        }
        
        .btn-reset {
            background: #e74c3c;
            color: white;
        }
        
        .btn-reset:hover {
            background: #c0392b;
            transform: translateY(-1px);
        }
        
        .btn-reset:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
            transform: none;
        }
        
        #map {
            flex: 1 1 auto;
            min-height: 300px;
            height: 100%;
            width: 100%;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            border: 2px solid #ddd;
            margin-bottom: 5px;
        }
        
        .loading {
            text-align: center;
            padding: 5px;
            color: #666;
            font-style: italic;
        }
        
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .error {
            background-color: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
            border: 1px solid #f5c6cb;
        }
        
        .success {
            background-color: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 8px;
            margin: 10px 0;
            border: 1px solid #c3e6cb;
        }
        
        .info-panel {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            padding: 5px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            max-width: 250px;
            z-index: 1000;
            display: none;
            border-left: 4px solid #3498db;
        }
        
        .info-panel h4 {
            margin: 0 0 10px 0;
            color: #2c3e50;
        }
        
        .info-panel p {
            margin: 0;
            color: #666;
            font-size: 14px;
        }
        
        .stats {
            display: flex;
            justify-content: space-between;
            margin-top: 10px;
            font-size: 14px;
            color: #666;
        }
        
        @media (max-width: 768px) {
            .select-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            #municipioSelect {
                min-width: auto;
            }
            
            .info-panel {
                position: relative;
                top: auto;
                right: auto;
                margin-bottom: 20px;
            }
        }

.popup {
    font-family: Arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    max-width: 300px;
}

.popup th {
    background-color: #f0f0f0;
    padding: 3px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
}

.popup td {
    padding: 2px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.popup img {
    border-radius: 4px;
    max-width: 80px;
    height: auto;
}

.square {
    width: 12px;
    height: 12px;
    border: 1px solid #333;
    display: inline-block;
    margin-right: 4px;
}

.square.green { background-color: #4CAF50; }
.square.white { background-color: #FFFFFF; }
.square.red { background-color: #F44336; }

.popup a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
}

.popup a:hover {
    text-decoration: underline;
}

.indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

.indicator.rosa {
    background-color: #FF69B4;
    border: 2px solid #FF1493;
}

.indicator.delta {
    background-color: #FFD700;
    border: 2px solid #FFA500;
}

.municipio-title {
    display: flex;
    align-items: center;
    justify-content: center;
}