@charset "UTF-8";

.map-section {
    padding: 20px 20px 20px 20px;
    background: rgba(230, 208, 5, 0.781);
}

.map-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: center;
}

/* ANIMAÇÃO DE ENTRADA */
.animate-map {
    opacity: 0;
    transform: translateY(40px);
    animation: mapFade 0.9s ease forwards;
}

@keyframes mapFade {
    to { opacity: 1; transform: translateY(0); }
}

/* INFO */
.map-info h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #1e3a5f;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ÍCONE ANIMADO */
.map-icon {
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.map-info p {
    color: #444;
    line-height: 1.6;
    margin-bottom: 18px;
}

.map-open-btn {
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #1e4fa1, #2f6fe0);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(47,111,224,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-open-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(47,111,224,0.5);
}

.map-open-btn:active {
    transform: scale(0.94);
}

/* PREVIEW */
.map-preview {
    position: relative;
    height: 240px;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.map-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.map-preview-text {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-preview:hover .map-preview-text {
    opacity: 1;
}

/* MODAL */
.map-modal {
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.map-modal.active {
    display: flex;
}

.map-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    animation: modalZoom 0.4s ease;
}

@keyframes modalZoom {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.map-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* FECHAR */
.map-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: #fff;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}

.map-close:hover {
    transform: scale(1.15);
}

@media (max-width: 900px) {
    .map-container {
        grid-template-columns: 1fr;
    }
}
