/* ============================================================
   Webmax — Estilos das páginas de Cobertura por Bairro
   (hub /cobertura, páginas de cidade e páginas de bairro)
   ============================================================ */

body { font-family: 'Montserrat', sans-serif; padding-top: 76px; }
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; }

/* --- Hero --- */
.cobertura-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 70px 0 100px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}
.cobertura-hero::before,
.cobertura-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
}
.cobertura-hero::before { width: 320px; height: 320px; top: -120px; right: -60px; background: rgba(255,255,255,.14); }
.cobertura-hero::after { width: 260px; height: 260px; bottom: -100px; left: -60px; background: rgba(255,215,0,.14); }

.cobertura-breadcrumb { font-size: .85rem; }
.cobertura-breadcrumb a { color: rgba(255,255,255,.78); text-decoration: none; }
.cobertura-breadcrumb a:hover { color: #fff; text-decoration: underline; }
.cobertura-breadcrumb .sep { margin: 0 6px; opacity: .55; }
.cobertura-breadcrumb .current { color: #fff; font-weight: 600; }

.cobertura-hero .hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; margin-bottom: 16px;
    border-radius: var(--radius-pill); background: rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25); font-weight: 600; font-size: .82rem;
}
.cobertura-hero h1 { font-size: clamp(2rem, 4vw + .5rem, 3.1rem); margin-bottom: 14px; text-shadow: 0 6px 30px rgba(0,0,0,.18); }
.cobertura-hero .lead { font-size: 1.1rem; color: #EDE4FB; max-width: 760px; }
.cobertura-hero .stat-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: .85rem; font-weight: 600;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cobertura-hero .stat-pill i { color: var(--accent-gold); }

/* --- Cartão "flutuante" que sobrepõe o hero --- */
.cobertura-card-float {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    margin-top: -70px;
    position: relative;
    z-index: 3;
}

/* --- Grid de bairros/cidades --- */
.bairro-card, .cidade-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 26px;
    height: 100%;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid #ECE6F5;
    box-shadow: var(--shadow-soft);
    transition: all .3s var(--ease-out-soft);
    position: relative;
    overflow: hidden;
}
.bairro-card:hover, .cidade-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-purple);
    color: var(--text-dark);
}
.bairro-card .icon-box, .cidade-card .icon-box {
    width: 54px; height: 54px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(106,13,173,.14), rgba(142,45,226,.10));
    color: var(--primary-purple); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 16px;
}
.bairro-card h3, .cidade-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.bairro-card p, .cidade-card p { color: var(--text-light); font-size: .88rem; margin-bottom: 0; }
.bairro-card .go-arrow, .cidade-card .go-arrow {
    position: absolute; top: 22px; right: 22px; color: #D8CCEA; transition: all .3s var(--ease-out-soft);
}
.bairro-card:hover .go-arrow, .cidade-card:hover .go-arrow { color: var(--primary-purple); transform: translateX(4px); }

/* --- Mapa --- */
.mapa-bairro-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #ECE6F5;
    position: relative;
}
#mapaBairro, #mapaCidade, #mapaCobertura, #mapaEmpresas, #mapaParceiros {
    width: 100%; height: 420px; background: #EFE9F7;
}
.mapa-legenda {
    display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .82rem; color: var(--text-light);
}
.mapa-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.mapa-legenda .dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot-cliente { background: var(--primary-purple); }
.dot-empresa { background: var(--accent-gold); border: 1px solid #caa400; }
.dot-parceiro { background: #2fbf71; }
.dot-hotspot { background: #2196f3; }

.leaflet-div-icon.icone-casa-webmax {
    background: transparent; border: none;
}
.icone-casa-webmax i {
    color: var(--primary-purple);
    font-size: 20px;
    text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.35);
}
.icone-empresa-webmax i {
    color: #C9971C;
    font-size: 20px;
    text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.35);
}
.icone-parceiro-webmax i { color: #1f9d5c; font-size: 22px; text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9); }
.icone-hotspot-webmax i { color: #1976d2; font-size: 22px; text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.9); }

/* --- Marcador "você está aqui" --- */
.leaflet-div-icon.icone-usuario-webmax { background: transparent; border: none; position: relative; }
.icone-usuario-webmax i { color: #d92b2b; font-size: 24px; text-shadow: 0 0 3px #fff, 0 0 6px rgba(255,255,255,.95); }
.icone-usuario-webmax .pulso {
    position: absolute; top: 2px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: rgba(217,43,43,.35); animation: pulso-usuario 1.6s ease-out infinite;
}
@keyframes pulso-usuario {
    0% { transform: scale(.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* --- Botao e badge de localizacao (parceiros/hotspots) --- */
.btn-localizacao {
    border: 2px solid var(--primary-purple); color: var(--primary-purple); background: #fff;
    border-radius: var(--radius-pill); padding: 7px 16px; font-size: .82rem; font-weight: 700;
    cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-localizacao:hover, .btn-localizacao.ativo { background: var(--primary-purple); color: #fff; }
.btn-localizacao:disabled { opacity: .6; cursor: wait; }

.badge-distancia {
    display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700;
    color: var(--primary-purple); background: rgba(106,13,173,.08); border-radius: var(--radius-pill);
    padding: 3px 10px; margin-bottom: 8px;
}
.ponto-card.mais-proximo { border-color: var(--accent-gold); box-shadow: 0 0 0 2px rgba(255,215,0,.35), var(--shadow-elevated); }
.ponto-card .badge-mais-proximo {
    display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 800;
    color: #9a7300; background: rgba(255,215,0,.18); border-radius: var(--radius-pill);
    padding: 3px 10px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .3px;
}
.localizacao-aviso { font-size: .8rem; color: var(--text-light); text-align: center; margin-top: 8px; }
.localizacao-aviso.erro { color: #c0392b; }

/* --- Aviso de privacidade do mapa --- */
.aviso-privacidade {
    font-size: .78rem; color: var(--text-light); background: #F7F3FC; border: 1px dashed #D8CCEA;
    border-radius: var(--radius-sm); padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start;
}
.aviso-privacidade i { color: var(--primary-purple); margin-top: 2px; }

/* --- Caixa de destaque: plano mais assinado / cliente mais antigo --- */
.planos-destaque-box {
    background: linear-gradient(135deg, rgba(106,13,173,.05), rgba(255,215,0,.07));
    border: 1px solid #ECE6F5; border-radius: var(--radius-sm);
    padding: 16px 18px; font-size: .88rem; color: var(--text-dark);
}
.planos-destaque-box strong { color: var(--primary-purple); }

/* --- Planos disponiveis (pagina de bairro) --- */
.plano-card-bairro {
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-md);
    padding: 26px 22px; height: 100%; text-align: center; position: relative;
    box-shadow: var(--shadow-soft); transition: all .25s var(--ease-out-soft);
}
.plano-card-bairro:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }
.plano-card-bairro .plano-tag {
    display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
    color: var(--primary-purple); background: rgba(106,13,173,.08); border-radius: var(--radius-pill);
    padding: 3px 12px; margin-bottom: 10px;
}
.plano-card-bairro .plano-preco { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 2rem; color: var(--text-dark); margin-bottom: 14px; }
.plano-card-bairro .plano-preco span { font-size: .95rem; font-weight: 500; color: var(--text-light); }
.plano-card-bairro.plano-destaque { border: 2px solid var(--accent-gold); box-shadow: 0 0 0 3px rgba(255,215,0,.18), var(--shadow-elevated); }
.plano-card-bairro.plano-destaque::before {
    content: 'Mais assinado aqui'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--accent-gold); color: #6a4e00; font-size: .68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .3px; padding: 4px 14px; border-radius: var(--radius-pill); white-space: nowrap;
}

/* --- Beneficios da fibra (pagina de bairro) --- */
.beneficio-card {
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-md);
    padding: 22px 16px; height: 100%; text-align: center; box-shadow: var(--shadow-soft);
}
.beneficio-card i { font-size: 1.6rem; color: var(--primary-purple); }

/* --- Depoimentos do Google --- */
.depoimento-card {
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-md);
    padding: 20px; height: 100%; box-shadow: var(--shadow-soft);
}
.depoimento-card .estrelas { color: var(--accent-gold); font-size: .85rem; margin-bottom: 8px; }
.depoimento-card p { font-size: .88rem; color: var(--text-dark); line-height: 1.6; margin-bottom: 12px; }
.depoimento-card .autor { display: flex; align-items: center; gap: 10px; }
.depoimento-card .autor img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.depoimento-card .autor-fallback {
    width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple-light), var(--primary-purple)); color: #fff;
    font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.depoimento-card .autor-nome { font-size: .82rem; font-weight: 700; color: var(--text-dark); }
.depoimento-card .autor-data { font-size: .72rem; color: var(--text-light); }

/* --- Empresas parceiras (cards) --- */
.empresa-card {
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-md);
    padding: 18px; height: 100%; display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-soft); transition: all .25s var(--ease-out-soft);
}
.empresa-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); border-color: var(--primary-purple); }
.empresa-logo {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; object-fit: contain;
    background: #F7F3FC; padding: 6px; border: 1px solid #ECE6F5;
}
.empresa-logo-fallback {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple-light), var(--primary-purple));
    color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.empresa-info h4 { font-size: .92rem; margin: 0 0 3px; font-weight: 700; color: var(--text-dark); line-height: 1.25; }
.empresa-info span { font-size: .78rem; color: var(--text-light); }

/* --- Veja também --- */
.veja-tambem-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-sm);
    padding: 16px 18px; text-decoration: none; color: var(--text-dark);
    box-shadow: var(--shadow-soft); transition: all .25s var(--ease-out-soft); height: 100%;
}
.veja-tambem-card:hover { border-color: var(--primary-purple); color: var(--primary-purple); transform: translateX(4px); }
.veja-tambem-card strong { font-size: .95rem; }
.veja-tambem-card small { display: block; color: var(--text-light); font-size: .78rem; }

/* --- Artigo relacionado (aleatório) --- */
.artigo-aleatorio-card {
    background: linear-gradient(135deg, rgba(106,13,173,.06), rgba(255,215,0,.06));
    border: 1px solid #ECE6F5; border-radius: var(--radius-md); padding: 22px;
    display: flex; align-items: center; gap: 18px;
}
.artigo-aleatorio-card i.dice { font-size: 1.6rem; color: var(--primary-purple); }

/* --- Chip de busca (parceiros/hotspot) --- */
.chip-filtro {
    border: 1px solid #D8CCEA; background: #fff; color: var(--text-dark);
    border-radius: var(--radius-pill); padding: 7px 16px; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.chip-filtro.active, .chip-filtro:hover { background: var(--primary-purple); color: #fff; border-color: var(--primary-purple); }

.ponto-card {
    background: var(--white); border: 1px solid #ECE6F5; border-radius: var(--radius-md);
    padding: 20px; height: 100%; box-shadow: var(--shadow-soft);
}
.ponto-card .badge-tipo { font-size: .7rem; padding: 5px 12px; border-radius: var(--radius-pill); font-weight: 700; }
.badge-tipo.parceiro { background: rgba(47,191,113,.12); color: #1f9d5c; }
.badge-tipo.hotspot { background: rgba(33,150,243,.12); color: #1976d2; }

@media (max-width: 768px) {
    .cobertura-card-float { margin-top: -40px; }
    #mapaBairro, #mapaCidade, #mapaCobertura, #mapaEmpresas, #mapaParceiros { height: 320px; }
}
