/**
 * vibe-bubble-map.css
 * Estilos do mapa público de carreiras: grafo D3, painel lateral, CTA fixo, mobile.
 */

/* ── Design tokens Mabu RH ─────────────────────────────────────────────────── */
:root {
    --mabu-primary:    #0A1F44;
    --mabu-navy:       #1A4570;
    --mabu-blue:       #439CDA;
    --mabu-cta:        #439CDA;
    --mabu-cta-hover:  #2d84bd;
    --mabu-peach:      #FCCF8E;
    --mabu-white:      #FFFFFF;
    --mabu-text:       #7A7A7A;
    --mabu-gradient:   linear-gradient(136deg, #0A1F44 0%, #1A4570 100%);
    --mabu-font:       'Gotham Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset mínimo ──────────────────────────────────────────────────────────── */
#vibe-app *,
#vibe-app *::before,
#vibe-app *::after {
    box-sizing: border-box;
}

.site-main.post-288 .page-header, .page-id-288 footer{
    display: none !important;
}
/* ── Layout principal ──────────────────────────────────────────────────────── */
#vibe-app {
    position: relative;
    width: 100vw;
    height: 85vh;
    overflow: hidden;
    background: #f8f9fa;
    font-family: var(--mabu-font);
    z-index: 999;
}

    .page-header .entry-title, .site-footer .footer-inner, .site-footer:not(.dynamic-footer), .site-header .header-inner, .site-header:not(.dynamic-header), body:not([class*=elementor-page-]) .site-main 
    {
    max-width: 100vw !important;
}

#vibe-mapa-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: opacity 0.25s ease;
}

/* ── Nós do grafo ──────────────────────────────────────────────────────────── */
.vibe-no {
    cursor: pointer;
}

.vibe-no circle {
    transition: r 0.2s, filter 0.2s;
}

.vibe-no:hover circle,
.vibe-no:focus circle {
    filter: brightness(1.2);
    outline: none;
}

.vibe-no:focus {
    outline: 2px solid var(--mabu-cta);
    outline-offset: 2px;
    border-radius: 50%;
}

/* ── Seleção e highlight ───────────────────────────────────────────────────── */
.vibe-no--dimmed {
    opacity: 0.18;
    transition: opacity 0.25s;
}

.vibe-no--selecionado circle {
    filter: drop-shadow( 0 0 12px rgba(255, 255, 255, 0.9) );
    stroke: #fff;
    stroke-width: 3px;
}

.vibe-no--destino-vertical circle {
    stroke: #3b82f6;
    stroke-width: 2.5px;
    filter: drop-shadow( 0 0 8px rgba(59, 130, 246, 0.7) );
}

.vibe-no--destino-horizontal circle {
    stroke: #10b981;
    stroke-width: 2.5px;
    filter: drop-shadow( 0 0 8px rgba(16, 185, 129, 0.7) );
}

/* Linhas de highlight de seleção */
.vibe-hl-link {
    fill: none;
    pointer-events: none;
    stroke-width: 2px;
    opacity: 0.85;
}

.vibe-hl-link--vertical {
    stroke: #3b82f6;
    stroke-dasharray: 6, 3;
}

.vibe-hl-link--horizontal {
    stroke: #10b981;
}

/* Pre-bubbles dos links */
.vibe-hl-label {
    filter: drop-shadow( 0 2px 8px rgba(0, 0, 0, 0.25) );
    transition: filter 0.15s;
}

.vibe-hl-label:hover {
    filter: drop-shadow( 0 4px 14px rgba(0, 0, 0, 0.35) );
}

.vibe-hl-label-bg {
    /* fill e stroke definidos inline pelo D3 com a cor do bubble destino */
    stroke-width: 0;
}

.vibe-hl-label-nome {
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
}

.vibe-hl-label-ver {
    font-size: 10px;
    font-weight: 600;
}

.vibe-no--central circle {
    stroke: var(--mabu-primary);
    stroke-width: 3px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35));
}

.vibe-no-label {
    font-size: 11px;
    fill: #333;
    pointer-events: none;
    font-weight: 500;
}

.vibe-badge-chegada {
    font-size: 10px;
    fill: #FCD34D;
    text-anchor: middle;
    pointer-events: none;
    font-weight: 700;
}

.vibe-tipo-mov {
    font-size: 9px;
    fill: white;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.vibe-central-nivel-hint {
    font-size: 9px;
    fill: #94a3b8;
    text-anchor: middle;
    pointer-events: none;
}

/* ── Links entre nós ───────────────────────────────────────────────────────── */
.vibe-link {
    stroke: #ccc;
    stroke-width: 1.5px;
    fill: none;
    pointer-events: none;
}

.vibe-link--vertical {
    stroke: #3b82f6;
    stroke-dasharray: 5, 3;
}

.vibe-link--horizontal {
    stroke: #10b981;
}

/* ── Seletor de modo ───────────────────────────────────────────────────────── */
#vibe-mode-selector {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 800;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: white;
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    max-width: calc(100% - 32px);
    transition: border-radius 0.2s ease;
    justify-content: center;
}

#vibe-mode-selector.has-unidades {
    border-radius: 16px;
}

/* ── Nuvem de unidades ─────────────────────────────────────────────────────── */
#vibe-unidades-filter {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(10, 31, 68, 0.08);
}

#vibe-unidades-filter[hidden] {
    display: none;
}

/* Toggle "Filtrar por unidade ▼" */
#vibe-unidades-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    font-family: var(--mabu-font) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    color: var(--mabu-text) !important;
    transition: color 0.15s !important;
    user-select: none !important;
    justify-content: center;
}

#vibe-unidades-toggle:hover {
    color: var(--mabu-cta) !important;
}

.vibe-unidades-chevron {
    font-size: 8px !important;
    display: inline-block !important;
    transition: transform 0.2s ease !important;
    line-height: 1 !important;
}

#vibe-unidades-toggle.open .vibe-unidades-chevron {
    transform: rotate(180deg) !important;
}

/* Painel de chips (colapsável) */
#vibe-unidades-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding-top: 7px !important;
    justify-content: center;
}

#vibe-unidades-chips[hidden] {
    display: none !important;
}

.vibe-unidade-chip {
    background: rgba(67, 156, 218, 0.07) !important;
    border: 1px solid rgba(67, 156, 218, 0.22) !important;
    border-radius: 20px !important;
    padding: 2px 8px !important;
    font-family: var(--mabu-font) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    color: var(--mabu-navy) !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    white-space: nowrap !important;
}

.vibe-unidade-chip:hover {
    background: rgba(67, 156, 218, 0.16) !important;
    border-color: var(--mabu-cta) !important;
    color: var(--mabu-primary) !important;
}

.vibe-unidade-chip.active {
    background: var(--mabu-cta) !important;
    border-color: var(--mabu-cta) !important;
    color: var(--mabu-white) !important;
}

#vibe-btn-visitante {
    background: none;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

#vibe-btn-visitante.active,
#vibe-btn-visitante:hover {
    background: var(--mabu-cta);
    border-color: var(--mabu-cta);
    color: white;
}

#vibe-busca-colaborador {
    position: relative;
}

#vibe-busca-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    width: 240px;
    outline: none;
    transition: border-color 0.15s;
}

#vibe-busca-input:focus {
    border-color: var(--mabu-cta);
    box-shadow: 0 0 0 2px rgba(67, 156, 218, 0.2);
}

#vibe-busca-resultados {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 900;
}

#vibe-busca-resultados li {
    padding: 0;
}

#vibe-busca-resultados li button {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#vibe-busca-resultados li button:hover,
#vibe-busca-resultados li button:focus {
    background: #f3f4f6;
    outline: none;
}

#vibe-busca-resultados li button small {
    color: #9ca3af;
    font-size: 11px;
}

/* ── Loading overlay ───────────────────────────────────────────────────────── */
#vibe-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 500;
    background: rgba(248, 249, 250, 0.9);
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#vibe-loading p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.vibe-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--mabu-cta);
    border-radius: 50%;
    animation: vibe-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes vibe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Erro ──────────────────────────────────────────────────────────────────── */
#vibe-erro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 500;
    background: white;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    max-width: 380px;
    width: 90%;
}

#vibe-erro-msg {
    margin: 0 0 16px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

#vibe-btn-retry {
    background: var(--mabu-cta);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s;
}

#vibe-btn-retry:hover {
    background: var(--mabu-cta-hover);
}

/* ── Mapa hint (cargo sem movimentações) ───────────────────────────────────── */
.vibe-mapa-hint {
    position: absolute;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 37, 64, 0.92);
    color: #e2e8f0;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    max-width: 420px;
    width: 90%;
    pointer-events: none;
    z-index: 600;
}

.vibe-mapa-hint p {
    margin: 0;
}

/* ── Painel lateral de detalhes ────────────────────────────────────────────── */
#vibe-painel {
    position: absolute;
    top: 0;
    right: 0;
    width: 380px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 99999;
    padding: 24px;
    padding-bottom: 100px; /* espaço para o CTA interno */
}

#vibe-painel.aberto {
    transform: translateX(0);
}

#vibe-painel-fechar {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

#vibe-painel-fechar:hover {
    color: #374151;
}

/* ── Conteúdo do painel ────────────────────────────────────────────────────── */
.vibe-cargo-nome {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #111827;
    padding-right: 32px; /* espaço para o botão fechar */
}

.vibe-cargo-detalhes {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 16px 0;
}

.vibe-cargo-detalhes dt {
    font-weight: 600;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: start;
    padding-top: 2px;
}

.vibe-cargo-detalhes dd {
    margin: 0;
    font-size: 14px;
    color: #374151;
}

.vibe-unidades-dd {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.vibe-badge-mov {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.vibe-badge-mov--vertical {
    background: #dbeafe;
    color: #1d4ed8;
}

.vibe-badge-mov--horizontal {
    background: #d1fae5;
    color: #065f46;
}

.vibe-rich-text {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 16px;
}

.vibe-rich-text p:last-child {
    margin-bottom: 0;
}

.vibe-rich-text ul {
    padding-left: 20px;
    margin: 6px 0;
}

.vibe-rich-text ul li {
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 4px;
}

.vibe-rich-text ul li::marker {
    color: var(--mabu-blue);
}

/* ── Seções do painel (Informações, Pré-Requisitos, Responsabilidades, Benefícios) */
.vibe-section {
    margin-bottom: 28px;
}

.vibe-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vibe-section-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--mabu-blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.vibe-section p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.7;
    margin: 4px 0;
}

.vibe-section p strong {
    color: #1f2937;
    font-weight: 600;
}

#vibe-painel h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.vibe-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.vibe-tag-beneficio {
    display: inline-block;
    background: #d1fae5;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #059669;
}

.vibe-tag {
    display: inline-block;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    color: #374151;
}

.vibe-tag--unidade {
    background: #dde9f5;
    color: var(--mabu-primary);
}

/* CTA no painel (secundário) */
#vibe-cta-painel {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--mabu-cta);
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-top: 24px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}

#vibe-cta-painel:hover {
    background: var(--mabu-cta-hover);
    color: white;
}

.vibe-btn-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--mabu-cta);
    color: white;
    padding: 14px;
    border-radius: 8px;
    margin-top: 24px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.15s;
}

.vibe-btn-cta:hover {
    background: var(--mabu-cta-hover);
    color: white;
}

/* ── Movimentações no painel ───────────────────────────────────────────────── */
.vibe-panel-movs {
    margin-top: 4px;
    border-top: 1px solid #f3f4f6;
    padding-top: 24px;
}

.vibe-panel-movs .vibe-section:last-child {
    margin-bottom: 0;
}

.vibe-panel-movs-lista {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vibe-panel-mov-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 13px;
}

.vibe-panel-mov--vertical {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.vibe-panel-mov--horizontal {
    background: #f0fdf4;
    border-left: 3px solid #10b981;
}

.vibe-panel-mov-icon {
    font-size: 11px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #6b7280;
}

.vibe-panel-mov-nome {
    font-weight: 600;
    color: #111827;
    flex: 0 0 60%;
    width: 60%;
    line-height: 1.4;
}

.vibe-panel-mov-meta {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.3;
    flex-basis: 100%;
    width: 100%;
}

.vibe-panel-movs-loading {
    font-size: 13px;
    color: #9ca3af;
    padding: 12px 0 4px;
    margin: 0;
}

.vibe-panel-movs-vazio {
    font-size: 13px;
    color: #9ca3af;
    padding: 8px 0;
    margin: 0;
}

.vibe-panel-movs-erro {
    font-size: 13px;
    color: #ef4444;
    padding: 8px 0;
    margin: 0;
}

/* ── CTA FIXO — sempre visível — position: fixed ───────────────────────────── */
.vibe-cta-fixo {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    background: var(--mabu-cta);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(67, 156, 218, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, background 0.15s;
    white-space: nowrap;
}

.vibe-cta-fixo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(67, 156, 218, 0.5);
    color: white;
    background: var(--mabu-cta-hover);
}

.vibe-cta-fixo:focus {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
}

/* ── Botão compartilhar ────────────────────────────────────────────────────── */
#vibe-btn-share {
    position: fixed;
    bottom: 84px;
    right: 24px;
    z-index: 1000;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.15s, background 0.15s;
    color: #374151;
}

#vibe-btn-share:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f9fafb;
}

#vibe-btn-share:focus {
    outline: 2px solid var(--mabu-cta);
    outline-offset: 2px;
}

/* ── Banner de desempenho ──────────────────────────────────────────────────── */
.vibe-banner-desempenho {
    position: absolute;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 37, 64, 0.85);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 700;
    pointer-events: none;
    white-space: nowrap;
}

/* ── Painel de áreas (lado direito, sempre visível) ───────────────────────── */
#vibe-areas-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 800;
    background: white;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
    transition: right 0.3s ease;
}

#vibe-areas-panel[hidden] {
    display: none;
}

/* Quando o painel lateral de detalhes está aberto, deslocar o painel de áreas */
#vibe-painel.aberto ~ #vibe-areas-panel,
.vibe-areas-deslocado {
    right: 396px;
}

.vibe-areas-panel-titulo {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mabu-text);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(10, 31, 68, 0.08);
}

#vibe-areas-panel #vibe-unidades-chips {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

#vibe-areas-panel .vibe-unidade-chip {
    background: rgba(67, 156, 218, 0.07) !important;
    border: 1px solid rgba(67, 156, 218, 0.22) !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    font-family: var(--mabu-font) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    color: var(--mabu-navy) !important;
    text-align: left !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

#vibe-areas-panel .vibe-unidade-chip:hover {
    background: rgba(67, 156, 218, 0.16) !important;
    border-color: var(--mabu-cta) !important;
    color: var(--mabu-primary) !important;
}

#vibe-areas-panel .vibe-unidade-chip.active {
    background: var(--mabu-cta) !important;
    border-color: var(--mabu-cta) !important;
    color: var(--mabu-white) !important;
}

/* ── Barra "Mais informações da vaga" (mobile) ──────────────────────────────── */
.vibe-mobile-info-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    background: var(--mabu-white) !important;
    border-top: 1px solid rgba(10, 31, 68, 0.1) !important;
    padding: 10px 16px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.11) !important;
    transform: translateY(100%) !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
}

.vibe-mobile-info-bar.visivel {
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.vibe-mobile-info-cargo {
    flex: 1 !important;
    min-width: 0 !important;
    font-family: var(--mabu-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--mabu-navy) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.vibe-mobile-info-btn {
    flex-shrink: 0 !important;
    background: var(--mabu-cta) !important;
    color: var(--mabu-white) !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 10px 18px !important;
    font-family: var(--mabu-font) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(67, 156, 218, 0.35) !important;
    transition: background 0.15s, transform 0.1s !important;
}

.vibe-mobile-info-btn:hover {
    background: var(--mabu-cta-hover) !important;
}

.vibe-mobile-info-btn:active {
    transform: scale(0.97) !important;
}

/* ── Selo PCD ──────────────────────────────────────────────────────────────── */
.vibe-pcd-badge {
    display: block;
    height: 28px;
    width: auto;
    margin-top: 6px;
}

/* Nos resultados de busca (inline) */
#vibe-busca-resultados .vibe-pcd-badge {
    display: inline-block;
    height: 18px;
    width: auto;
    vertical-align: middle;
    margin-left: 4px;
    margin-top: 0;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Painel: fixed no mobile (sai do overflow:hidden do #vibe-app) — tela cheia */
    #vibe-painel {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important; /* desconta barra do browser em mobile */
        transform: translateY(100%) !important;
        border-radius: 0 !important;
        z-index: 1200 !important; /* acima: info-bar(1050) · cta(1000) · areas(800) */
    }

    #vibe-painel.aberto {
        transform: translateY(0) !important;
    }

    /* Botão fechar: área de toque maior no mobile */
    #vibe-painel-fechar {
        top: 16px !important;
        right: 16px !important;
        font-size: 28px !important;
        padding: 8px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* CTA fixo: full-width na parte inferior */
    .vibe-cta-fixo {
        bottom: 0;
        right: 0;
        left: 0;
        border-radius: 0;
        text-align: center;
        padding: 16px 20px;
        font-size: 15px;
    }

    /* Botão share acima do CTA mobile */
    #vibe-btn-share {
        bottom: 68px;
        right: 16px;
    }

    /* Seletor de modo: full-width, empilhado */
    #vibe-mode-selector {
        left: 16px;
        right: 16px;
        transform: none;
        flex-direction: column;
        border-radius: 12px;
        gap: 8px;
        padding: 12px;
    }

    #vibe-btn-visitante {
        width: 100%;
        text-align: center;
    }

    #vibe-busca-input {
        width: 100%;
    }

    #vibe-busca-colaborador {
        width: 100%;
    }

    /* Painel de áreas: floating action button centralizado no mobile */
    #vibe-areas-panel {
        top: auto !important;
        bottom: 80px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: none !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        gap: 8px !important;
        align-items: center !important;
        flex-direction: column-reverse !important; /* chips ficam acima do botão */
    }

    /* Título oculto no mobile (substituído pelo toggle) */
    #vibe-areas-panel .vibe-areas-panel-titulo {
        display: none !important;
    }

    /* Botão toggle flutuante */
    .vibe-areas-fab-toggle {
        background: var(--mabu-white) !important;
        border: 1.5px solid rgba(67, 156, 218, 0.35) !important;
        border-radius: 24px !important;
        padding: 9px 16px !important;
        font-family: var(--mabu-font) !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: var(--mabu-navy) !important;
        cursor: pointer !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.13) !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        transition: background 0.15s, color 0.15s, border-color 0.15s !important;
    }

    .vibe-areas-fab-toggle[aria-expanded="true"] {
        background: var(--mabu-cta) !important;
        color: var(--mabu-white) !important;
        border-color: var(--mabu-cta) !important;
    }

    /* Dropdown de chips acima do botão — centralizado */
    #vibe-areas-panel #vibe-unidades-chips {
        background: var(--mabu-white) !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14) !important;
        padding: 10px 12px !important;
        min-width: 180px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        text-align: center !important;
    }

    #vibe-areas-panel #vibe-unidades-chips .vibe-unidade-chip {
        text-align: center !important;
        justify-content: center !important;
    }

    #vibe-areas-panel #vibe-unidades-chips[hidden] {
        display: none !important;
    }

    /* Mapa hint mais compacto no mobile */
    .vibe-mapa-hint {
        bottom: 76px;
        width: calc(100% - 32px);
        max-width: none;
    }
}
