
/* SKARLOS TRANSPORT - MAPA */

.mapa-europa {
    max-width: 1600px;
    margin: 60px auto;
    padding: 20px 3%;
    color: white;
}

.mapa-panel {
    display: block;
    padding: 0;
    overflow: hidden;
    background: #080808;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 15px 40px #00000080;
}

.mapa-grafika {
    position: relative;
    width: 100%;
    container-type: inline-size;
}

.mapa-grafika > img {
    display: block;
    width: 100%;
    height: auto;
}

/* TEKST NA MAPIE */

.mapa-tresc {
    position: absolute;
    top: 16%;
    left: 5%;
    width: 37%;
    font-family: Arial, sans-serif;
}

.mapa-etykieta {
    display: flex;
    align-items: center;
    gap: 1cqw;
    font-size: 1.35cqw;
    font-weight: bold;
    color: #eeeeee;
}

.mapa-etykieta::before {
    content: "";
    width: 3.3cqw;
    height: 2px;
    background: #ff2222;
}

#mapa-tytul {
    margin: 1.6cqw 0 1cqw;
    color: white;
    font-size: 3.5cqw;
    font-weight: 900;
    font-style: italic;
    line-height: 1.15;
}

#mapa-tytul span {
    color: #ff1725;
}

#mapa-opis {
    color: #eeeeee;
    font-size: 1.45cqw;
    line-height: 1.5;
    margin: 0 0 2cqw;
}

/* KRAJE I FLAGI */

.mapa-kraje {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7cqw 1.4cqw;
    width: 80%;
    padding: 0;
}

.mapa-kraj {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1cqw;
    padding: 0.7cqw 1cqw;
    min-width: 0;
    background: #080808b0;
    border: 1px solid #555;
    border-radius: 7px;
    color: white;
    font-size: 1.35cqw;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.mapa-kraj:hover,
.mapa-kraj.wybrany {
    background: #b50912;
    border-color: #ff3333;
    box-shadow: 0 0 15px #ff222250;
}

.mapa-flaga {
    width: 2.8cqw;
    height: 1.9cqw;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.mapa-flaga svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* PUNKTY NA MAPIE */

.mapa-punkt {
    position: absolute;
    width: 1.1cqw;
    height: 1.1cqw;
    padding: 0;
    background: white;
    border: 2px solid #ff3333;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    animation: pulsMapy 2s infinite;
}

.mapa-punkt:hover,
.mapa-punkt.wybrany {
    background: #ff2222;
    border-color: white;
    transform: translate(-50%, -50%) scale(1.4);
}

@keyframes pulsMapy {
    0%, 100% {
        box-shadow: 0 0 0 0 #ff222280;
    }

    50% {
        box-shadow: 0 0 0 0.7cqw #ff222210;
    }
}

/* NAZWY KRAJÓW NA GRAFICE */

.mapa-napis {
    position: absolute;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 1.4cqw;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 6px black, 0 0 8px black;
    pointer-events: none;
}

/* INFORMACJE POD MAPĄ */

.mapa-informacje {
    padding: 25px;
    margin: 0;
    text-align: center;
    background: linear-gradient(
        145deg,
        #191919,
        #080808
    );
    border-top: 1px solid #333;
}

#mapa-nazwa {
    color: #ff3333;
    font-size: 27px;
    margin: 0 0 10px;
}

#mapa-tekst {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.mapa-zamow {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(
        145deg,
        #e52222,
        #9c080e
    );
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.mapa-zamow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px #ff222250;
}

.mapa-europa button:focus-visible,
.mapa-europa a:focus-visible {
    outline: 3px solid white;
    outline-offset: 3px;
}

/* TELEFONY */

@media (max-width: 700px) {

    .mapa-europa {
        margin: 30px auto;
        padding: 10px 3%;
    }

    .mapa-tresc {
        position: static;
        width: auto;
        padding: 22px;
        background: #101010;
    }

    .mapa-etykieta {
        font-size: 12px;
    }

    #mapa-tytul {
        font-size: 29px;
        margin: 15px 0;
    }

    #mapa-opis {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .mapa-kraje {
        width: 100%;
        gap: 10px;
    }

    .mapa-kraj {
        font-size: 13px;
        padding: 12px 8px;
        gap: 8px;
    }

    .mapa-flaga {
        width: 26px;
        height: 18px;
    }

    .mapa-punkt {
        width: 9px;
        height: 9px;
    }

    .mapa-napis {
        font-size: 2cqw;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mapa-europa * {
        animation: none !important;
        transition: none !important;
    }
}

/* Poprawienie położenia tekstu na mapie */

@media (min-width: 701px) {

    .mapa-tresc {
        left: 3% !important;
        width: 32% !important;
    }

    #mapa-opis {
        max-width: 95%;
        font-size: 1.35cqw;
        line-height: 1.5;
    }

    #mapa-tytul {
        font-size: 3.2cqw;
    }

    .mapa-kraje {
        width: 90%;
    }

}
