/* 2025-12-12 13:00:00 - Estilos para a seção de mapa, extraídos de _map_section.html para melhor organização e evitar blocos <style> inline. */

/* --- VARIÁVEIS LOCAIS --- */
.map-universal-wrapper {
    --map-height: 600px;
    --map-border-color: rgba(255, 255, 255, 0.2);
    --map-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    --map-radius: 24px;
}

/* --- ESTRUTURA --- */
.map-universal-wrapper {
    position: relative;
    height: var(--map-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
    /* Fundo Premium (SEM IMAGEM) — remove qualquer watermark/texto indesejado */
    background-image:
        radial-gradient(circle at 20% 30%, rgba(185, 32, 39, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(30, 41, 59, 0.14) 0%, transparent 55%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(18, 18, 18, 0.82));
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    padding: 40px 20px;
}

.map-frame {
    position: relative; 
    width: 100%; 
    max-width: 1100px; 
    height: 450px; 
    z-index: 2;
    
    /* Estilo do Card */
    border-radius: var(--map-radius);
    box-shadow: var(--map-shadow);
    border: 1px solid var(--map-border-color);
    background: #000; /* Fundo base para evitar flash branco */
    overflow: hidden;
    
    /* Transição de Hover */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.5s ease;
}

.map-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Estilo do Iframe (Cinematic Look) */
.google-map-iframe {
    width: 100%; 
    height: 100%; 
    border: 0;
    /* Filtro inicial: Levemente dessaturado e azulado para modernidade */
    filter: grayscale(20%) contrast(1.1) brightness(0.9);
    transition: all 0.8s ease;
    transform: scale(1.01); /* Evita bordas brancas no anti-aliasing */
}

.map-frame:hover .google-map-iframe {
    filter: grayscale(0%) contrast(1) brightness(1);
    transform: scale(1.05); /* Zoom in suave */
}

/* Scroll Guard */
.map-scroll-guard {
    position: absolute; inset: 0;
    background: transparent; z-index: 1;
}

/* Container Flutuante */
.map-content-container {
    pointer-events: none;
    z-index: 2;
}

/* --- BOTÃO FLUTUANTE (TRAÇAR ROTA) --- */
.map-float-action {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: var(--color-primary, #b92027);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Garantir que o botão seja clicável */
}

.map-float-action:hover {
    background: #fff;
    color: var(--color-primary, #b92027);
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    border-color: #fff;
}

.map-float-action i { font-size: 1.1rem; }

/* RESPONSIVIDADE */
@media (max-width: 991px) {
    .map-universal-wrapper { 
        height: auto; 
        padding: 60px 20px;
    }
    .map-frame { 
        height: 350px; 
        width: 100%; 
        max-width: 100%; /* Garante que não estoure a tela */
    }
}

/* ==========================================================================
   GLASS MAP VARIATION (PORTADO DA PÁGINA DE CONTATO)
   ========================================================================== 
   Estilo sofisticado com efeito de vidro fosco, agora disponível globalmente.
*/

.glass-map-wrapper {
    padding: 100px 0;
    /* Fundo escuro premium (SEM IMAGEM) — remove qualquer texto/watermark indesejado */
    background-image:
        radial-gradient(circle at 25% 20%, rgba(185, 32, 39, 0.10) 0%, transparent 55%),
        radial-gradient(circle at 75% 80%, rgba(30, 41, 59, 0.14) 0%, transparent 55%),
        linear-gradient(to bottom, rgba(12, 12, 12, 0.96), rgba(18, 18, 18, 0.88));
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
}

.glass-card {
    display: flex;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03); /* Vidro ultra-sutil */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6);
}

.glass-card .info-col {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card .content-col {
    flex: 1.5;
    min-width: 300px;
    position: relative;
    min-height: 450px;
    padding: 0;
    display: flex;
    align-items: stretch;
}

/* Garantir que o container interno do mapa tenha altura */
.glass-card .content-col > div {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Estilo específico para iframe dentro do glass-card */
.glass-card .content-col iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 450px !important;
    border: 0 !important;
    display: block !important;
    position: relative;
    z-index: 1;
}

.glass-card .info-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.glass-card .address-box h4 {
    color: var(--color-primary, #b92027);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Responsividade do Glass Card */
@media (max-width: 991px) {
    .glass-card { flex-direction: column; }
    .glass-card .info-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem;
        width: 100%; /* Ocupa largura total */
    }
    .glass-card .content-col { 
        min-height: 400px; /* Altura garantida para o mapa em mobile */
        width: 100%;
    }
    .glass-card .content-col > div {
        min-height: 400px;
    }
    .glass-card .content-col iframe {
        min-height: 400px !important;
    }
}

/* ==========================================================================
   GLASS GLARE EFFECT (BRILHO DINÂMICO)
   ========================================================================== */
.glass-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite clicar através do brilho */
    background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 80%);
    mix-blend-mode: overlay; /* Funde o brilho com o fundo para realismo */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10; /* Fica acima do conteúdo para simular reflexo no vidro */
}