.vhgc-widget,
.vhgc-widget * {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    
 }

.vhgc-widget.map-container {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.vhgc-widget #mapViewer {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Botones flotantes izquierda */
.vhgc-widget .floating-buttons {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Top-right controls */
.vhgc-widget .top-right-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vhgc-widget .button-group {
    position: relative;
    display: flex;
}

.vhgc-widget .control-btn {
    padding: 10px 15px;
    background: #ffffff;
    color: #000000;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
    text-align: start;
}

.vhgc-widget .control-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vhgc-widget .control-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Esconder botón de control cuando el panel asociado está abierto */
.vhgc-widget .button-group:has(.tool-panel.active) .control-btn {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Transición de aparición cuando el panel se cierra */
.vhgc-widget .control-btn {
    transition: all 0.3s ease;
}

/* Paneles de herramientas - OCULTOS POR DEFECTO */
.vhgc-widget .tool-panel {
    display: none;
    position: absolute;
    /* left: 100%; */
    top: 0;
    /* margin-left: 10px; */
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    padding: 0;
    min-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

.vhgc-widget .tool-panel.active {
    display: block;
}

/* Encabezado del panel con X de cerrar */
.vhgc-widget .panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F2;
    border-radius: 16px 16px 0 0;
}

.vhgc-widget .panel-header h4 {
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.vhgc-widget .close-panel-x {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.vhgc-widget .close-panel-x:hover {
    color: #dc3545;
    background-color: #fff;
}

.vhgc-widget .close-panel-x:focus,
.vhgc-widget .close-panel-x:active {
    color: #000;
    background-color: #fff;
}

/* Contenido del panel */
.vhgc-widget .panel-content {
    padding: 15px;
}

.vhgc-widget .panel-content p {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 13px;
}

/* Estilos para los filtros de territorio */
.vhgc-widget .filter-group {
    margin-bottom: 15px;
    border-radius: 4px;
}

.vhgc-widget .filter-group label {
    display: block;
    font-weight: 500;
    color: #333;
    font-size: 13px;
    margin-bottom: 5px;
}

.vhgc-widget .filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.vhgc-widget .filter-select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

/* Botones de acción de filtros */
.vhgc-widget .filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vhgc-widget .filter-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vhgc-widget .search-btn {
    background: #007cba;
    color: white;
}

.vhgc-widget .search-btn:hover {
    background: #005a87;
}

.vhgc-widget .clear-btn {
    background: #6c757d;
    color: white;
}

.vhgc-widget .clear-btn:hover {
    background: #545b62;
}

/* Controles mapa derecha */
.vhgc-widget .map-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vhgc-widget .map-controls button {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* asegurar centrado exacto */
}

.vhgc-widget .map-controls button:hover {
    background: #f8f9fa;
}

.vhgc-widget .map-controls button svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Sidebar - OCULTO POR DEFECTO */
.vhgc-widget .right-sidebar {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    max-height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 1002;
    border-left: 1px solid #ddd;
    flex-direction: column;
}

.vhgc-widget .right-sidebar.active {
    display: flex;
}

.vhgc-widget .sidebar-resize-handle {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: transparent;
    cursor: col-resize;
    transition: background-color 0.2s ease;
}

.vhgc-widget .sidebar-resize-handle:hover {
    background-color: #007cba;
    box-shadow: inset 0 0 10px rgba(0, 124, 186, 0.3);
}

.vhgc-widget .sidebar-header {
    padding: 8px 16px;
    border-bottom: 1px solid #CCCCCC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F2;
    flex-shrink: 0;
}

.vhgc-widget .sidebar-header h4 {
    margin: 0;
    margin-left: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.vhgc-widget .close-sidebar {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.vhgc-widget .close-sidebar:hover {
    background-color: #e5e5e5;
    color: #333;
}

.vhgc-widget .sidebar-content {
    padding: 16px;
    color: #333;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Asegurar que el mapa esté detrás de los controles */
.vhgc-widget .maplibre-gl-canvas {
    z-index: 1;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vhgc-widget .color-indicator {
    margin-top: 8px;
    border: 1px solid #ddd;
}


/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 480px) {
    .vhgc-widget .chip-horizontal-group {
        gap: 6px;
    }
    
    .vhgc-widget .chip-horizontal-label {
        padding: 5px 8px;
        height: 44px;
        min-width: 60px;
        font-size: 10px;
    }
    
    .vhgc-widget .chip-horizontal-icon {
        font-size: 12px;
        width: 16px;
        height: 16px;
    }
    
    .vhgc-widget .chip-horizontal-text {
        font-size: 9px;
    }
}

.vhgc-widget .vvm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(3px);
}

.vhgc-widget .vvm-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vhgc-widget .vvm-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.15);
}

.vhgc-widget .vvm-loading-spinner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #007cba 0%,
        #00a8ff 25%,
        #3288bd 50%,
        #66c2a5 75%,
        #007cba 100%
    );
    animation: vvm-spin-rotate 1.2s linear infinite;
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    padding: 3px;
}

.vhgc-widget .vvm-loading-spinner::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Animación de giro fluido */
@keyframes vvm-spin-rotate {
    0% { 
        transform: rotate(0deg);
        filter: hue-rotate(0deg) saturate(1);
    }
    100% { 
        transform: rotate(360deg);
        filter: hue-rotate(360deg) saturate(1.2);
    }
}

/* Efecto de pulso para el spinner */
@keyframes vvm-spin-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 124, 186, 0.15);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0, 124, 186, 0.25);
    }
}

/* Aplicar ambas animaciones */
.vhgc-widget .vvm-loading-spinner {
    animation: vvm-spin-pulse 2s ease-in-out infinite;
}

.vhgc-widget .vvm-loading-text {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: vvm-pulse 1.5s ease-in-out infinite;
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

.vhgc-widget .vvm-loading-subtext {
    color: #666;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 400;
    opacity: 0.8;
}

@keyframes vvm-spin {
    0% { 
        transform: rotate(0deg) scale(0.95);
        border-top-color: #007cba;
    }
    50% { 
        transform: rotate(180deg) scale(1.05);
        border-top-color: #00a8ff;
    }
    100% { 
        transform: rotate(360deg) scale(0.95);
        border-top-color: #007cba;
    }
}

@keyframes vvm-pulse {
    0%, 100% { 
        opacity: 1;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.7;
        transform: translateY(-2px);
    }
}

@keyframes vvm-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vvm-fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
}

/* Efecto de partículas sutil */
.vhgc-widget .vvm-loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.vhgc-widget .vvm-loading-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 124, 186, 0.3);
    border-radius: 50%;
    animation: vvm-particle-float 3s ease-in-out infinite;
}

@keyframes vvm-particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(var(--tx, 20px), var(--ty, -20px)) scale(1.5);
        opacity: 0.5;
    }
}


/* Legend Panel - Floating Window */
.vhgc-widget .vhgc-legend-panel {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 300px;
    height: 150px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Legend Header */
.vhgc-legend-panel .legend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    border-bottom: 1px solid #CCCCCC;
    background-color: #F2F2F2;
    flex-shrink: 0;
}

.vhgc-legend-panel .legend-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.vhgc-legend-panel .legend-toggle-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.vhgc-legend-panel .legend-toggle-btn:hover {
    background-color: #e5e5e5;
    color: #333;
}

/* Legend Body */
.vhgc-legend-panel .legend-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.vhgc-legend-panel .legend-body::-webkit-scrollbar {
    width: 6px;
}

.vhgc-legend-panel .legend-body::-webkit-scrollbar-track {
    background: transparent;
}

.vhgc-legend-panel .legend-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.vhgc-legend-panel .legend-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Legend Items */
.vhgc-legend-panel .legend-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vhgc-legend-panel .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vhgc-legend-panel .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Color Definitions */
.vhgc-legend-panel .high-probability {
    background-color: #d33;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.vhgc-legend-panel .medium-probability {
    background-color: #f1c40f;
    background: linear-gradient(135deg, #f9db49 0%, #f8c601 100%);
}
.vhgc-legend-panel .low-probability {
    background-color: #6FAD47;
    background: linear-gradient(135deg, #6FAD47 0%, #4CAF50 100%);
}
.vhgc-legend-panel .no-data {
    background-color: #979797;
    background: linear-gradient(135deg, #a0a3a3 0%, #95a5a6 100%);
}

.vhgc-legend-panel .legend-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.vhgc-legend-panel .probability-label {
    font-size: 12px;
    font-weight: 500;
    color: #666666;
    line-height: 1.2;
}

.vhgc-legend-panel .probability-description {
    font-size: 11px;
    color: #666;
    font-weight: 400;
    line-height: 1.2;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .vhgc-legend-panel {
        width: 280px;
        height: 140px;
        bottom: 10px;
        left: 10px;
    }

    .vhgc-legend-panel .legend-title {
        font-size: 13px;
    }

    .vhgc-legend-panel .probability-label {
        font-size: 11px;
    }

    .vhgc-legend-panel .probability-description {
        font-size: 10px;
    }

    .vhgc-legend-panel .legend-color {
        width: 18px;
        height: 18px;
    }
}

/* Small Screens */
@media (max-width: 480px) {
    .vhgc-legend-panel {
        width: 250px;
        height: 130px;
    }

    .vhgc-legend-panel .legend-header {
        padding: 8px 10px;
    }

    .vhgc-legend-panel .legend-body {
        padding: 8px 10px;
    }
}

/* Minimized State */
.vhgc-legend-panel.minimized {
    height: auto;
    max-height: 50px;
}

.vhgc-legend-panel.minimized .legend-body {
    display: none;
}

/* Print Styles */
@media print {
    .vhgc-legend-panel {
        position: static;
        width: auto;
        height: auto;
        box-shadow: none;
        border: 1px solid #999;
        margin-bottom: 20px;
    }

    .vhgc-legend-panel .legend-toggle-btn {
        display: none;
    }
}

/* Station Tooltip Styles */
.vhgc-widget .vhgc-station-tooltip {
    max-width: 300px;
}

.vhgc-widget .vhgc-station-tooltip.maplibregl-popup {
    z-index: 1010;
}

.vhgc-widget .vhgc-station-tooltip .maplibregl-popup-content {
    padding: 6px 10px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vhgc-widget .vhgc-station-tooltip .maplibregl-popup-tip {
    border-top-color: #1a1a1a;
    filter: drop-shadow(0 -1px 2px rgba(0, 0, 0, 0.2));
}

.vhgc-widget .vhgc-tooltip-content {
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

/* Station Popup Styles */
.vhgc-widget .vhgc-station-popup {
    max-width: 350px;
}

.vhgc-widget .vhgc-station-popup.maplibregl-popup {
    z-index: 1005;
}

.vhgc-widget .vhgc-station-popup .maplibregl-popup-content {
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #e0e0e0;
    background: #ffffff;
}

.vhgc-widget .vhgc-popup-container {
    padding: 0;
    margin: 0;
}

.vhgc-widget .popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.vhgc-widget .popup-titulo {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.vhgc-widget .popup-content {
    padding: 12px 16px;
}

.vhgc-widget .popup-historial {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.vhgc-widget .popup-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.vhgc-widget .popup-fecha {
    color: #555;
    font-weight: 500;
}

.vhgc-widget .popup-valor {
    color: #007cba;
    font-weight: 600;
}

.vhgc-widget .popup-pronóstico {
    background: #f0f4f8;
    padding: 10px 10px;
    border-radius: 4px;
    border-left: 4px solid #007cba;
    transition: border-left-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vhgc-widget .popup-pronostico-text {
    flex: 1;
}

.vhgc-widget .popup-pronostico-text p {
    margin: 0;
}

.vhgc-widget .popup-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    mask-image: url('/wp-content/plugins/visor-heladas-golpes-de-calor/assets/img/thermometer-sun.svg');
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.vhgc-widget .popup-icon.pronóstico-alta {
    background-color: #d33;
}

.vhgc-widget .popup-icon.pronóstico-media {
    background-color: #f1c40f;
}

.vhgc-widget .popup-icon.pronóstico-baja {
    background-color: #6FAD47;
}

.vhgc-widget .popup-icon.pronóstico-sin-datos {
    background-color: #979797;
}

/* Estilos dinámicos del pronóstico según nivel de alerta */
.vhgc-widget .popup-pronóstico.pronóstico-alta {
    border-left-color: #d33;
    background: rgba(211, 51, 51, 0.08);
}

.vhgc-widget .popup-pronóstico.pronóstico-media {
    border-left-color: #f1c40f;
    background: rgba(241, 196, 15, 0.08);
}

.vhgc-widget .popup-pronóstico.pronóstico-baja {
    border-left-color: #6FAD47;
    background: rgba(111, 173, 71, 0.08);
}

.vhgc-widget .popup-pronóstico.pronóstico-sin-datos {
    border-left-color: #979797;
    background: rgba(151, 151, 151, 0.05);
}

.vhgc-widget .pronóstico-fecha {
    margin: 0 0 3px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.vhgc-widget .pronóstico-texto {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.vhgc-widget .pronóstico-nivel {
    margin: 5px 0 0 0;
    font-size: 14px;
    font-weight: 600;
}

.vhgc-widget .vhgc-station-popup .maplibregl-popup-tip {
    border-top-color: #ffffff;
}

/* Stations Table in Sidebar */
.vhgc-widget #stations-table-container {
    overflow: auto;
    height: 100%;
}

.vhgc-widget .stations-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #ffffff;
}

.vhgc-widget .stations-table thead {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
}

.vhgc-widget .stations-table thead th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.vhgc-widget .stations-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

.vhgc-widget .stations-table tbody tr:hover {
    background-color: #f5f5f5;
}

.vhgc-widget .stations-table td {
    padding: 10px 8px;
    vertical-align: middle;
    color: #333;
}

.vhgc-widget .stations-table td:first-child {
    font-weight: 500;
    color: #0066cc;
    max-width: 150px;
    word-break: break-word;
}

.vhgc-widget .station-name {
    display: block;
    margin-bottom: 2px;
}

.vhgc-widget .station-commune {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.vhgc-widget .station-institution {
    display: block;
    font-size: 10px;
    color: #999;
}

.vhgc-widget .station-institution .pdf-badge {
    background: #e8ecf1;
    color: #d33;
    padding: 1px 4px;
    border-radius: 2px;
    font-weight: 600;
    text-decoration: none;
    font-size: 9px;
}

.vhgc-widget .temperature-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vhgc-widget .temperature-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.vhgc-widget .temp-date {
    color: #666;
    font-size: 10px;
    min-width: 100px;
}

.vhgc-widget .temp-value {
    color: #007cba;
    font-weight: 600;
}

.vhgc-widget .forecasting-cell {
    text-align: center;
}

.vhgc-widget .forecast-box {
    padding: 8px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    min-width: 80px;
    white-space: nowrap;
}

.vhgc-widget .forecast-alta {
    background: rgba(211, 51, 51, 0.15);
    color: #d33;
    border-left: 3px solid #d33;
}

.vhgc-widget .forecast-media {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border-left: 3px solid #f1c40f;
}

.vhgc-widget .forecast-baja {
    background: rgba(111, 173, 71, 0.15);
    color: #6FAD47;
    border-left: 3px solid #6FAD47;
}

.vhgc-widget .forecast-sin-datos {
    background: rgba(151, 151, 151, 0.1);
    color: #979797;
    border-left: 3px solid #979797;
}

.vhgc-widget .forecast-date {
    display: block;
    font-size: 10px;
    color: #999;
    margin-bottom: 4px;
    font-weight: 400;
}

/* Fila de encabezado dinámico para la tabla de estaciones */
.vhgc-widget .table-section-header {
    background: #f8f9fa !important;
}

.vhgc-widget .table-section-header:hover {
    background-color: #f8f9fa !important;
}

.vhgc-widget .table-section-header td {
    font-weight: 600;
    padding: 12px !important;
    border-bottom: 2px solid #e0e0e0 !important;
    color: #333 !important;
    font-size: 13px !important;
    text-align: center !important;
}

/* Highlight para fila seleccionada en la tabla */
.vhgc-widget .station-row-highlight {
    background-color: #e3f2fd !important;
    box-shadow: inset -3px 0 0 #007cba;
}

.vhgc-widget .station-row-highlight:hover {
    background-color: #bbdefb !important;
}

