/*
 * OroseiMeteo
 * Mare locale Marina di Orosei + popup Spot mobile
 */


/* ==========================================================
   MARE ADESSO · MARINA DI OROSEI
   ========================================================== */

.mare-local-sea-now{
    margin-bottom:18px;
    overflow:hidden;
    border:1px solid #d6e3e9;
    border-radius:7px;
    background:#fff;
}

.mare-local-sea-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:19px 22px;
    border-bottom:1px solid #e0e9ed;
}

.mare-local-sea-head h3{
    margin:5px 0 0;
    color:#153b4d;
    font-size:26px;
    line-height:1.1;
}

.mare-local-sea-state{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    min-height:42px;
    padding:8px 14px;
    border-radius:6px;
    color:#fff;
    font-size:13px;
    font-weight:800;
    line-height:1.1;
    text-transform:uppercase;
    white-space:nowrap;
}

.mare-local-sea-content{
    display:grid;
    grid-template-columns:minmax(220px,.72fr) minmax(0,1.28fr);
}

.mare-local-sea-wave{
    padding:24px 22px 25px;
    border-right:1px solid #e1e9ed;
}

.mare-local-sea-wave > span{
    display:block;
    color:#70858e;
    font-size:12px;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.mare-local-sea-wave > strong{
    display:block;
    margin-top:6px;
    color:#123b4c;
    font-size:50px;
    line-height:1;
}

.mare-local-sea-wave > small{
    display:block;
    margin-top:10px;
    color:#5e7580;
    font-size:15px;
    line-height:1.4;
}

.mare-local-sea-metrics{
    display:grid;
    grid-template-columns:1fr 1fr;
}

.mare-local-sea-metrics > div{
    padding:18px 20px;
    border-right:1px solid #e5ecef;
    border-bottom:1px solid #e5ecef;
}

.mare-local-sea-metrics > div:nth-child(even){
    border-right:0;
}

.mare-local-sea-metrics > div:nth-last-child(-n+2){
    border-bottom:0;
}

.mare-local-sea-metrics span{
    display:block;
    color:#778b94;
    font-size:12px;
}

.mare-local-sea-metrics strong{
    display:block;
    margin-top:5px;
    color:#23434f;
    font-size:17px;
    line-height:1.3;
}

.mare-local-sea-loading{
    color:#78909a;
}


/* ==========================================================
   POPUP SPOT SARDEGNA
   ========================================================== */

.mare-spot-modal-area{
    margin-top:3px;
    color:#687f89;
    font-size:14px;
}

.mare-spot-modal-forecast{
    padding:19px 20px 21px;
    border-top:1px solid #dfe8ec;
}

.mare-spot-modal-forecast-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin-bottom:13px;
}

.mare-spot-modal-forecast-head strong{
    color:#234552;
    font-size:17px;
}

.mare-spot-modal-forecast-head span{
    color:#7a8d95;
    font-size:12px;
}

.mare-spot-modal-forecast-list{
    display:flex;
    gap:9px;
    overflow-x:auto;
    padding-bottom:5px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
}

.mare-spot-modal-hour{
    flex:0 0 135px;
    padding:12px;
    border:1px solid #dce7eb;
    border-radius:6px;
    background:#f8fbfc;
    scroll-snap-align:start;
}

.mare-spot-modal-hour-time{
    color:#687d87;
    font-size:11px;
    font-weight:700;
    text-transform:capitalize;
}

.mare-spot-modal-hour-wave{
    margin-top:7px;
    color:#153d4d;
    font-size:26px;
    font-weight:800;
    line-height:1;
}

.mare-spot-modal-hour-wave small{
    font-size:12px;
}

.mare-spot-modal-hour-state{
    margin-top:7px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.mare-spot-modal-hour-meta{
    display:grid;
    gap:3px;
    margin-top:7px;
    color:#637a84;
    font-size:11px;
    line-height:1.35;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media(max-width:760px){

    .mare-local-sea-head{
        padding:18px;
    }

    .mare-local-sea-head h3{
        font-size:23px;
    }

    .mare-local-sea-state{
        min-height:40px;
        padding:8px 12px;
        font-size:12px;
    }

    .mare-local-sea-content{
        grid-template-columns:1fr;
    }

    .mare-local-sea-wave{
        padding:22px 18px 23px;
        border-right:0;
        border-bottom:1px solid #e1e9ed;
    }

    .mare-local-sea-wave > strong{
        font-size:47px;
    }

    .mare-local-sea-metrics > div{
        padding:17px 18px;
    }

    /*
     * Su smartphone il dettaglio degli spot
     * viene mostrato nel popup.
     * Il pannello classico resta per desktop/tablet.
     */
    #mareSpotPanel{
        display:none !important;
    }

    .mare-spot-modal-forecast{
        padding:17px 17px 19px;
    }

    .mare-spot-modal-hour{
        flex-basis:128px;
    }
}
