/* HARMONIE-AROME: estilos originales de la vista. */
.firstHeading {

    font-size: 14px;

    font-weight: 550;

    margin: 0 0 6px 0;

    line-height: 1.2;

}

.estacion-label {

    width: 18px;

    height: 18px;

    border-radius: 50%;

    font-size: 10px;

    font-weight: 700;

    line-height: 18px;

    text-align: center;

    box-shadow: 0 1px 3px rgba(0,0,0,0.25);

    border: 1px solid #999;

    color: #333;

    background: rgba(252, 252, 252, 0.7);

}

.estacion-label.nivel-1 {

    border: 1px solid #c9a400;

    color: #4a3b00;

    background: rgba(255,215,0,0.95);

}

.estacion-label.nivel-2 {

    border: 1px solid #cc7a00;

    color: #4a2500;

    background: rgba(255,153,0,0.95);

}

.estacion-label.nivel-3 {

    border: 1px solid #b30000;

    color: #ffffff;

    background: rgba(255,0,0,0.95);

}

.legend-dot {

    display:inline-block;

    width:10px;

    height:10px;

    border-radius:50%;

    border:1px solid #999;

    background:#fff;

}

.legend-dot.nivel-1 { background: rgba(255,215,0,0.95); }

.legend-dot.nivel-2 { background: rgba(255,153,0,0.95); }

.legend-dot.nivel-3 { background: rgba(255,0,0,0.95); }

.info-avisos-prev {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-left: 6px;

    width: 17px;

    height: 17px;

    border: 1px solid #8fa6af;

    border-radius: 50%;

    background: #607985;

    color: #fff;

    font-size: 10px;

    font-weight: 800;

    line-height: 1;

    cursor: pointer;

    vertical-align: middle;

    box-shadow: 0 1px 3px rgba(34, 67, 80, 0.14);

    transition: *background* .15s ease, border-color .15s ease, box-shadow .15s ease;

}

.info-avisos-prev:hover,

.info-avisos-prev:focus {

    background: #456875;

    border-color: #456875;

    box-shadow: 0 2px 6px rgba(34, 67, 80, 0.2);

    outline: none;

}

.info-avisos-prev-panel {

    position: absolute;

    top: calc(100% + 7px);

    right: 0;

    width: 305px;

    max-width: calc(100vw - 36px);

    padding: 0;

    overflow: hidden;

    background: rgba(255,255,255,0.97);

    border: 1px solid #dce6ea;

    border-radius: 11px;

    color: #294f60;

    z-index: 1080;

    box-shadow: 0 8px 24px rgba(34, 67, 80, 0.18);

}

.info-avisos-prev-panel::before {

    content: '';

    position: absolute;

    top: -6px;

    right: 5px;

    width: 10px;

    height: 10px;

    background: rgba(255,255,255,0.97);

    border-top: 1px solid #dce6ea;

    border-left: 1px solid #dce6ea;

    transform: rotate(45deg);

}

.info-avisos-prev-header {

    position: relative;

    padding: 10px 12px 9px;

    border-bottom: 1px solid rgba(220, 230, 234, 0.9);

    background: rgba(247, 250, 251, 0.88);

}

.info-avisos-prev-kicker {

    display: block;

    margin-bottom: 2px;

    color: #6c8792;

    font-size: 8.5px;

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: .06em;

    text-transform: uppercase;

}

.info-avisos-prev-header strong {

    display: block;

    color: #294f60;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.2;

}

.info-avisos-prev-list {

    padding: 6px 10px 8px;

}

.info-avisos-prev-item {

    display: grid;

    grid-template-columns: 10px 52px minmax(0, 1fr);

    align-items: center;

    column-gap: 7px;

    min-height: 29px;

    padding: 4px 2px;

    color: #526d78;

    font-size: 10.5px;

    line-height: 1.25;

}

.info-avisos-prev-item + .info-avisos-prev-item {

    border-top: 1px solid rgba(220, 230, 234, 0.62);

}

.info-avisos-prev-dot {

    width: 9px;

    height: 9px;

    border: 1px solid rgba(0,0,0,0.15);

    border-radius: 50%;

}

.info-avisos-prev-item.nivel-1 .info-avisos-prev-dot {

    background: rgba(255,215,0,0.95);

    border-color: #c9a400;

}

.info-avisos-prev-item.nivel-2 .info-avisos-prev-dot {

    background: rgba(255,153,0,0.95);

    border-color: #cc7a00;

}

.info-avisos-prev-item.nivel-3 .info-avisos-prev-dot {

    background: rgba(255,0,0,0.95);

    border-color: #b30000;

}

.info-avisos-prev-level {

    color: #294f60;

    font-weight: 700;

    white-space: nowrap;

}

.info-avisos-prev-value {

    min-width: 0;

    color: #526d78;

    white-space: nowrap;

}

.info-avisos-prev-value em {

    color: #8399a1;

    font-style: normal;

    font-weight: 600;

}

@media (max-width: 430px) {

    .info-avisos-prev-panel {

        right: auto;

        left: 0;

        width: min(305px, calc(100vw - 28px));

    }

    .info-avisos-prev-panel::before {

        right: auto;

        left: 161px;

    }

    .info-avisos-prev-item {

        grid-template-columns: 10px 48px minmax(0, 1fr);

        column-gap: 6px;

        font-size: 10px;

    }

    .info-avisos-prev-value {

        white-space: normal;

    }

}

/*

 * Caja derecha HARMONIE.

 *

 * El contenido permanece en flujo normal. El botón Estaciones y la

 * información de Avisos comparten una misma fila cuando hay espacio;

 * si la pantalla es demasiado estrecha, el bloque de avisos baja entero

 * a la línea siguiente sin solaparse.

 */

#vistamapa .well {

    min-height: 112px;

    height: auto;

}

/* El periodo de previsión ocupa su propia línea y puede envolver. */

#vistamapa #prevmsg24,

#vistamapa #prevmsg48 {

    position: static;

    width: 98%;

    margin: 0 0 0 0px !important;

    padding: 0 !important;

    text-align: right;

    white-space: normal;

}

#vistamapa #prevmsg24 li,

#vistamapa #prevmsg48 li,

#vistamapa #prevmsg24 li strong,

#vistamapa #prevmsg48 li strong {

    display: block;

    width: 100%;

    white-space: normal;

    overflow-wrap: anywhere;

    line-height: 1.35;

}

/* Estaciones + Avisos: una única fila flexible y estable. */

.harmonie-controles-prev {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex-wrap: wrap;

    column-gap: 18px;

    row-gap: 7px;

    width: 100%;

    clear: both;

    margin-top: 10px;

    padding: 0;

}

#vistamapa .harmonie-estaciones-row {

    position: static !important;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    flex: 0 0 auto;

    gap: 8px;

    width: auto;

    min-height: 30px;

    margin: 0 !important;

    padding: 0 !important;

    text-align: left;

}

#vistamapa .harmonie-estaciones-row #cargandoEstaciones {

    display: inline-flex;

    align-items: center;

    margin: 0;

    padding: 0;

}

/* Al ser button evitamos herencias de list-inline / li del CSS antiguo. */

#vistamapa .harmonie-estaciones-row #mostrarEstaciones {

    position: static !important;

    flex: 0 0 auto;

    min-height: 30px;

    margin: 0 !important;

}

/* Avisos actúa como segundo elemento de la misma fila. */

#vistamapa .harmonie-avisos-row {

    position: relative !important;

    float: none !important;

    clear: none !important;

    flex: 0 0 auto;

    width: auto;

    min-height: 30px;

    margin: 0 !important;

    padding: 0 !important;

    text-align: left;

    color: #456875;

    line-height: 1.5;

    white-space: nowrap;

}

#vistamapa .harmonie-avisos-row small {

    display: inline-flex;

    align-items: center;

    flex-wrap: nowrap;

    gap: 3px;

    min-height: 30px;

    white-space: nowrap;

}

@media (max-width: 991px) {

    #vistamapa .well {

        min-height: 118px;

    }

    .harmonie-controles-prev {

        column-gap: 14px;

        margin-top: 9px;

    }

}

@media (max-width: 767px) {

    #vistamapa .well {

        min-height: 0;

    }

    #vistamapa #prevmsg24,

    #vistamapa #prevmsg48 {

        margin-top: 6px !important;

    }

    .harmonie-controles-prev {

        column-gap: 12px;

        margin-top: 9px;

    }

}

/* Solo en anchos realmente pequeños permitimos que Avisos baje completo. */

@media (max-width: 430px) {

    .harmonie-controles-prev {

        align-items: flex-start;

    }

}
