/*
 * C212 Meteo custom overrides.
 * This file is loaded after c212-meteo.css.
 * Keep your manual design edits here to avoid touching core plugin CSS.
 */

.c212-meteo .matin-meteo .map-con {
    max-width: 100%;
}

@media (max-width: 768px) {
    .c212-meteo .matin-meteo .map-content {
        overflow: visible;
        margin-bottom: 24px;
    }

    .c212-meteo .matin-meteo .map-con {
        min-width: 0;
        padding: 18px 22px 28px 14px;
        border-radius: 24px;
        background: linear-gradient(120deg, #1d70a8 0 43%, #f6ebc9 43% 100%);
        box-shadow: 0 16px 30px rgba(15, 49, 75, 0.14);
    }

    .c212-meteo .matin-meteo .map-image {
        position: relative;
        z-index: 1;
    }

    .c212-meteo .matin-meteo .map-image img {
        border-radius: 20px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    }

    .c212-meteo .matin-meteo .ville-map {
        top: 18px;
        right: 22px;
        bottom: 28px;
        left: 14px;
        width: auto;
        height: auto;
        z-index: 2;
    }

    .c212-meteo .matin-meteo .ville-btn a {
        display: grid;
        grid-template-columns: 18px auto;
        grid-template-areas:
            "icon name"
            "icon temp";
        align-items: center;
        column-gap: 4px;
        row-gap: 1px;
        padding: 4px 7px 4px 5px;
        border: 1px solid rgba(10, 143, 90, 0.18);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 20px rgba(11, 45, 67, 0.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .c212-meteo .matin-meteo .ville-btn .image-cloud {
        grid-area: icon;
        width: 18px;
        height: 18px;
        margin: 0;
    }

    .c212-meteo .matin-meteo .ville-btn strong {
        grid-area: name;
        margin: 0;
        font-size: 10px;
        line-height: 1;
        white-space: nowrap;
    }

    .c212-meteo .matin-meteo .ville-btn span {
        grid-area: temp;
        font-size: 9px;
        line-height: 1;
        white-space: nowrap;
    }

    .c212-meteo .matin-meteo .casablanca { top: 23%; left: 37%; }
    .c212-meteo .matin-meteo .rabat { top: 16%; left: 46%; }
    .c212-meteo .matin-meteo .tanger { top: 4%; left: 55%; }
    .c212-meteo .matin-meteo .agadir { top: 41%; left: 31%; }
    .c212-meteo .matin-meteo .marrakech { top: 33%; left: 49%; }
    .c212-meteo .matin-meteo .fes { top: 15%; left: 61%; }
    .c212-meteo .matin-meteo .nador { top: 4%; left: 68%; }
    .c212-meteo .matin-meteo .oujda { top: 10%; left: 74%; }
    .c212-meteo .matin-meteo .laayoune { top: 60%; left: 17%; }
    .c212-meteo .matin-meteo .dakhla { top: 80%; left: 8%; }
}

@media (max-width: 480px) {
    .c212-meteo .matin-meteo .map-con {
        padding: 16px 16px 22px 10px;
        border-radius: 20px;
    }

    .c212-meteo .matin-meteo .ville-map {
        top: 16px;
        right: 16px;
        bottom: 22px;
        left: 10px;
    }

    .c212-meteo .matin-meteo .ville-btn a {
        grid-template-columns: 16px auto;
        padding: 3px 6px 3px 5px;
    }

    .c212-meteo .matin-meteo .ville-btn .image-cloud {
        width: 16px;
        height: 16px;
    }

    .c212-meteo .matin-meteo .ville-btn strong {
        font-size: 9px;
    }

    .c212-meteo .matin-meteo .ville-btn span {
        font-size: 8px;
    }
}

@media (max-width: 360px) {
    .c212-meteo .matin-meteo .ville-btn span {
        display: none;
    }

    .c212-meteo .matin-meteo .ville-btn a {
        grid-template-areas: "icon name";
        align-items: center;
    }
}
