.localizacao {
    padding: 80px 5%;
    background-color: var(--bg-creme);
}

.localizacao .section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.localizacao .section-header p {
    margin: 12px auto 0;
}

.mapa-container {
    position: relative;
    max-width: 1000px;
    margin: 40px auto;
    height: 500px;
    border-radius: 30px;
    overflow: visible; /* Para o balão poder sair um pouco da borda se necessário */
}

.mapa-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* O Balão de Fala Flutuante */
.info-bubble {
    position: absolute;
    top: -20px;
    left: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 20px;
    width: 280px;
    z-index: 20;
    box-shadow: 0 15px 35px rgba(198, 155, 134, 0.3);
    animation: float 4s ease-in-out infinite;
}

/* Triângulo do balão */
.info-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--primary-color);
}

.info-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.info-item:last-child { margin-bottom: 0; }

.info-item i { width: 20px; opacity: 0.9; }

.info-item p { font-size: 0.85rem; line-height: 1.4; }

/* Botão Flutuante no Mapa */
.btn-map-float {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: transform 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-map-float:hover { transform: scale(1.05); }

/* Animação Sutil */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Simulação da Linha Bege (Caminho) */
.map-path-line {
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
}

.map-path-svg {
    width: 100%;
    height: 100%;
}

.path-stroke {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 10 12;
    opacity: 0.7;
    animation: pathDash 7s linear infinite;
}

.path-dot {
    fill: var(--primary-color);
    filter: drop-shadow(0 0 8px rgba(212, 163, 137, 0.95));
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pathDash {
    to {
        stroke-dashoffset: -220;
    }
}

@keyframes pulseDot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.7;
    }
}

@media (max-width: 900px) {
    .mapa-container {
        height: 460px;
    }

    .info-bubble {
        width: 250px;
        left: 24px;
        top: -12px;
        padding: 18px;
    }

    .btn-map-float {
        right: 16px;
        bottom: 16px;
        padding: 13px 18px;
        font-size: 0.92rem;
    }
}

@media (max-width: 680px) {
    .localizacao {
        padding: 64px 4%;
    }

    .mapa-container {
        height: auto;
        margin: 30px auto;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .info-bubble {
        position: static;
        width: 100%;
        border-radius: 16px;
        margin-bottom: 0;
        animation: none;
    }

    .info-bubble::after {
        display: none;
    }

    .mapa-wrapper {
        height: 340px;
        border-radius: 22px;
    }

    .btn-map-float {
        position: static;
        width: 100%;
        transform: none;
        justify-content: center;
        border-radius: 12px;
        padding: 14px 18px;
        text-align: center;
    }

    .btn-map-float:hover {
        transform: scale(1.02);
    }

    .path-stroke {
        stroke-width: 3;
        opacity: 0.55;
    }
}

@media (max-width: 560px) {
    .localizacao .section-header {
        max-width: 95%;
    }

    .mapa-wrapper {
        height: 300px;
    }

    .info-bubble {
        padding: 14px;
    }

    .info-item {
        gap: 10px;
        align-items: flex-start;
    }

    .info-item i {
        width: 18px;
        margin-top: 2px;
    }

    .info-item p {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .btn-map-float {
        font-size: 0.9rem;
        gap: 8px;
    }

    .map-path-line {
        display: none;
    }
}

@media (max-width: 400px) {
    .localizacao {
        padding: 56px 4%;
    }

    .mapa-wrapper {
        height: 270px;
    }

    .info-bubble {
        border-radius: 14px;
    }

    .btn-map-float {
        font-size: 0.85rem;
        padding: 12px 14px;
    }
}