/* ===========================================================
   Mapa terremoto Venezuela (M7,5) - estilos
   Clon de la plantilla del Mundial (marca elDiario.es) + leyenda MMI
   =========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.terremoto-wrapper {
    width: 100%;
    position: relative;
    font-family: "Encode Sans", sans-serif;
}

.terremoto-title {
    font-family: "Encode Sans", sans-serif;
    text-align: left;
    color: #000;
    font-size: 22px;
    font-weight: 700;
    line-height: 25px;
    max-width: 643px;
    margin: 0 0 10px;
}

.terremoto-subtitle {
    font-family: "Encode Sans", sans-serif;
    text-align: left;
    color: #181818;
    font-size: 14px;
    line-height: 20px;
    max-width: 643px;
    margin: 0 0 15px;
}

.terremoto-source {
    color: #4a4a4a;
    text-align: left;
    font-family: "Encode Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    margin: 12px 0 30px 0;
}

/* ─── Doble mapa (dos eventos en paralelo) ─── */
.terremoto-duo {
    display: flex;
    gap: 14px;
    width: 100%;
}
.terremoto-col {
    flex: 1 1 0;
    min-width: 0;
}
.terremoto-col-head {
    display: flex;
    flex-direction: column;
    margin: 0 0 6px;
}
.terremoto-col-mag {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 18px;
}
.terremoto-col-hora {
    font-size: 12px;
    color: #4a4a4a;
    line-height: 15px;
}
.terremoto-map {
    position: relative;
    width: 100%;
    height: 460px;
    background-color: white;
    border-radius: 5px;
    z-index: 1;
}

/* En móvil: uno encima del otro */
@media (max-width: 600px) {
    .terremoto-duo {
        flex-direction: column;
        gap: 18px;
    }
    .terremoto-map {
        height: 380px;
    }
}

/* ─── Leyenda escala MMI (barra compacta, arriba) ─── */
.terremoto-legend {
    max-width: 240px;
    margin: 0 auto 14px;
}
.terremoto-legend-title {
    font-size: 10px;
    font-weight: 600;
    color: #181818;
    margin: 0 0 3px;
    text-align: center;
}
.terremoto-legend-bar {
    display: flex;
}
.terremoto-legend-bar span {
    flex: 1 1 0;
    height: 8px;
}
.terremoto-legend-scale {
    display: flex;
    margin-top: 2px;
}
.terremoto-legend-scale span {
    flex: 1 1 0;
    text-align: center;
    font-size: 9px;
    font-weight: 700;
    color: #000;
}
.terremoto-legend-ends {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #4a4a4a;
    margin-top: 1px;
}

/* ─── Tooltip (mismo estilo que la plantilla) ─── */
#tooltip-terremoto {
    position: absolute;
    z-index: 10;
    visibility: hidden;
    color: #000;
    padding: 8px;
    background-color: #fff;
    border-radius: 0;
    font-size: 12px;
    pointer-events: none;
    font-family: 'Encode Sans', sans-serif;
    box-shadow: 0 2px 2px 0 #ccc;
    border: 1px solid #ccc;
    line-height: 1.5;
    max-width: 250px;
}
#tooltip-terremoto .tt-title {
    display: block;
    text-align: left;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #c5c5c5;
    padding-bottom: 3px;
}
#tooltip-terremoto .tt-meta {
    font-size: 12px;
    color: #4a4a4a;
}
