/* ================================
   Layout geral
================================ */
.mbi-wrap{
  display: grid;
  grid-template-columns: minmax(280px, 720px) minmax(300px, 1fr);
  gap: 20px;
  align-items: flex-start;
}

@media (max-width: 900px){
  .mbi-wrap{
    grid-template-columns: 1fr;
  }
}

/* ================================
   Mapa SVG
================================ */
.mbi-mapa svg{
  width: 100%;
  height: auto;
  display: block;
}

.mbi-estado{
  cursor: pointer;
  transition: opacity .15s ease, transform .12s ease, fill .15s ease;
  opacity: 0.95;
  stroke: rgba(255,255,255,.65);
  stroke-width: 1;
  fill: #6f92b3;
}

.mbi-estado:hover{
  opacity: 1;
  transform: translateY(-1px);
  fill: #5f88ad;
}

.mbi-estado.is-active{
  opacity: 1;
  stroke: rgba(0,0,0,.25);
  stroke-width: 1.2;
  fill: #4f7fa8;
}

/* ================================
   Painel lateral
================================ */
.mbi-painel{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  position: sticky;
  top: 120px; /* ajuste conforme altura do header */
}

.mbi-painel-header{
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.mbi-painel-uf{
  font-weight: 800;
  font-size: 18px;
  color: #9ca3af;
}

.mbi-painel-titulo{
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

/* ================================
   Área rolável das filiais
================================ */
.mbi-filiais-view{
  margin-top: 12px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Scrollbar custom (Webkit) */
.mbi-filiais-view::-webkit-scrollbar{
  width: 8px;
}

.mbi-filiais-view::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,.18);
  border-radius: 10px;
}

.mbi-filiais-view::-webkit-scrollbar-track{
  background: rgba(0,0,0,.05);
}

/* ================================
   Estados vazios
================================ */
.mbi-empty{
  color: #6b7280;
  font-size: 14px;
}

/* ================================
   Cards das filiais
================================ */
.mbi-filial-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.mbi-filial-nome{
  font-weight: 800;
  font-size: 15px;
  color: #111827;
  margin-bottom: 8px;
}

.mbi-filial-linha{
  margin-top: 6px;
  font-size: 14px;
  color: #111827;
}

/* ================================
   CTA WhatsApp
================================ */
.mbi-filial-cta{
  margin-top: 12px;
}

/* Botão WhatsApp */
.mbi-btn{
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  background-color: #3AA349;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: none;
  transition: background-color .2s ease, transform .15s ease, box-shadow .15s ease;
}

/* Hover */
.mbi-btn:hover{
  background-color: #2f8f3f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Active */
.mbi-btn:active{
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* ================================
   Siglas sobre o mapa
================================ */
.mbi-uf-label{
  font-size: 12px;
  font-weight: 500;         /* mais fina */
  fill: rgba(255,255,255,.95);
  pointer-events: none;
  user-select: none;
  paint-order: stroke;
  stroke: rgba(0,0,0,.20);
  stroke-width: 2px;
}

/* ================================
   Telefone (link tel:)
   Força aparecer mesmo com CSS do tema/Elementor
================================ */
.mbi-filial-linha .mbi-tel-link{
  color: #111827 !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  display: inline !important;
}

.mbi-filial-linha .mbi-tel-link:hover{
  text-decoration: underline !important;
}
