/*--------------------------------------------------------------
# Mapa do Brasil com as oficinas (#mapa)
--------------------------------------------------------------*/
.mapa {
    position: relative;
    z-index: 1;
    margin-top: -48px;
    padding: 136px 0 140px;
    background: linear-gradient(180deg, #875DE3 0%, #9673E8 100%);
    color: #fff;
}

/* Brilho suave no topo da seção, para a passagem do banner ficar macia */
.mapa::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 260px;
    background: radial-gradient(60% 100% at 30% 0%, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.mapa .mapa__inner {
    position: relative;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 56px;
    align-items: center;
}

.mapa .mapa__eyebrow {
    margin: 0 0 12px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #E6F5A6;
}

.mapa .mapa__title {
    margin: 0 0 32px 0;
    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #fff;
}

.mapa .mapa__title em {
    font-style: normal;
    color: #2B0645;
    background-image: linear-gradient(transparent 62%, #BBDF32 62%);
}

/* Números: oficinas, costureiras, cidades e estados */
.mapa .mapa__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    max-width: 440px;
    margin: 0 0 32px 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.mapa .mapa__stats[hidden],
.mapa .mapa__stats li[hidden] {
    display: none;
}

.mapa .mapa__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 16px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.mapa .mapa__stats li:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.mapa .mapa__stats strong {
    font-family: var(--heading-font);
    font-size: clamp(1.7rem, 2.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.mapa .mapa__stats span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.mapa .mapa__cta {
    display: flex;
    width: fit-content;
    align-items: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background-color: #2B0645;
    color: #fff;
    font-family: var(--nav-font);
    font-size: 17px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mapa .mapa__cta:hover,
.mapa .mapa__cta:focus-visible {
    background-color: #BBDF32;
    color: #2B0645;
}

.mapa .mapa__cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ---------- Mapa ---------- */
.mapa .mapa__canvas {
    position: relative;
    max-width: 600px;
    margin-left: auto;
    width: 100%;
}

.mapa .mapa__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.mapa .mapa__land {
    fill: url(#mapa-terra);
    filter: drop-shadow(0 24px 40px rgba(34, 4, 58, 0.45));
}

.mapa .mapa__borders {
    fill: none;
    stroke: #fff;
    stroke-opacity: 0.12;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.mapa .mapa__canvas.is-loading .mapa__land {
    animation: mapa-respira 1.6s ease-in-out infinite;
}

@keyframes mapa-respira {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Pontos brilhando */
.mapa .mapa__glow {
    transform-box: fill-box;
    transform-origin: center;
    animation: mapa-pisca var(--ritmo, 3s) ease-in-out var(--atraso, 0s) infinite;
    pointer-events: none;
}

.mapa .mapa__core {
    fill: #E6F5A6;
    stroke: #BBDF32;
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.15s ease, fill 0.15s ease;
    pointer-events: none;
}

.mapa .mapa__dots {
    pointer-events: none;
}

.mapa .mapa__dot.is-active .mapa__core {
    fill: #fff;
    transform: scale(1.45);
}

.mapa .mapa__dot.is-active .mapa__glow {
    animation: none;
    opacity: 1;
    transform: scale(1.3);
}

@keyframes mapa-pisca {
    0%, 100% { opacity: 0.35; transform: scale(0.75); }
    50% { opacity: 0.95; transform: scale(1.15); }
}

/* Etiqueta "Ao vivo" */
.mapa .mapa__live {
    position: absolute;
    left: 2%;
    bottom: 16%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background-color: #fff;
    color: #2B0645;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(34, 4, 58, 0.22);
}

.mapa .mapa__live[hidden] {
    display: none;
}

.mapa .mapa__live-dot {
    position: relative;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #D61F69;
}

.mapa .mapa__live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #D61F69;
    animation: mapa-ao-vivo 1.6s ease-out infinite;
}

@keyframes mapa-ao-vivo {
    from { transform: scale(1); opacity: 0.7; }
    to { transform: scale(2.8); opacity: 0; }
}

/* Balão */
.mapa .mapa__tip {
    position: absolute;
    z-index: 2;
    transform: translate(-50%, calc(-100% - 12px));
    padding: 8px 14px;
    border-radius: 999px;
    background-color: #fff;
    color: #2B0645;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(43, 6, 69, 0.22);
    pointer-events: none;
}

.mapa .mapa__tip strong {
    color: #59058B;
}

.mapa .mapa__tip.is-list {
    min-width: 220px;
    padding: 12px 16px;
    border-radius: 16px;
    white-space: normal;
}

.mapa .mapa__tip ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mapa .mapa__tip li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    white-space: nowrap;
}

.mapa .mapa__tip li + li {
    border-top: 1px dashed rgba(89, 5, 139, 0.18);
}

.mapa .mapa__tip p {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #6B5E78;
}

.mapa .mapa__tip.is-below {
    transform: translate(-50%, 12px);
}

.mapa .mapa__tip[hidden] {
    display: none;
}

/* Carregando / sem dados */
.mapa .mapa__status {
    position: absolute;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    width: max-content;
    max-width: 82%;
    margin: 0;
    padding: 12px 20px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.94);
    color: #2B0645;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 8px 24px rgba(43, 6, 69, 0.18);
}

.mapa .mapa__status[hidden] {
    display: none;
}

.mapa .mapa__status a {
    color: #59058B;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Tablet e celular ---------- */
@media (max-width: 991px) {
    .mapa {
        margin-top: -36px;
        padding: 100px 0 96px;
    }

    .mapa .mapa__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .mapa .mapa__canvas {
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .mapa {
        margin-top: -28px;
        padding: 76px 0 84px;
    }

    .mapa .mapa__stats li {
        padding: 14px 12px 14px 0;
    }

    .mapa .mapa__stats li:nth-child(even) {
        padding-left: 16px;
    }

    .mapa .mapa__tip {
        font-size: 13px;
    }

    .mapa .mapa__live {
        font-size: 11px;
        padding: 5px 11px 5px 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mapa .mapa__glow,
    .mapa .mapa__live-dot::after,
    .mapa .mapa__canvas.is-loading .mapa__land {
        animation: none;
    }

    .mapa .mapa__glow {
        opacity: 0.7;
    }

    .mapa .mapa__core {
        transition: none;
    }
}
