/* ==========================================
 * PÁGINA CONSULTORES - MAPA + FILIAIS
 * ========================================== */

.consultores-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Hero da Página */
.hero-page {
  background: linear-gradient(90deg, #ff9a3c 0%, #ff5500 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: white;
  margin-bottom: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-badge i {
  font-size: 1rem;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  margin-top: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
}

/* Filtros */

.filtros-section {
  padding: 2rem 1rem;
  background: white;
  border-bottom: 2px solid #ecf0f1;
  position: sticky;
  top: 80px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filtros-wrapper {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: #f8f9fa;
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filtro-btn:hover {
  background: #ecf0f1;
  transform: translateY(-2px);
}

.filtro-btn.active {
  background: #ff5500;
  color: white;
  border-color: #ff5500;
  box-shadow: 0 4px 12px rgba(255, 85, 0, 0.3);
}

.filtro-btn i {
  font-size: 1rem;
}

/* Mapa */

.mapa-section {
  padding: 3rem 1rem 2rem;
  background: white;
}

.mapa-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #2c3e50;
  margin-bottom: 0.75rem;
  font-family: 'Montserrat', sans-serif;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #5a6c7d;
}

.mapa-container {
  width: 100%;
  height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 3px solid #0d5940;
}

/* Popups */

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.popup-consultor {
  padding: 1rem;
  min-width: 260px;
}

.popup-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d5940;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.popup-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #5a6c7d;
}

.popup-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.popup-info i {
  color: #0d5940;
  width: 16px;
}

/* Marcador de filial - apenas logo PNG */

.marker-filial {
  width: 50px !important;
  height: 50px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

.marker-filial img {
  width: 50px !important;
  height: 50px !important;
  display: block !important;
  object-fit: contain !important;
}

/* Filiais */

.filiais-section {
  padding: 3rem 1rem 4rem;
  background: #f8f9fa;
}

.filiais-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.filiais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.filial-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #ff5500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filial-nome {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  font-family: 'Montserrat', sans-serif;
}

.filial-fantasia {
  font-size: 0.9rem;
  color: #7f8c8d;
}

.filial-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.filial-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #5a6c7d;
}

.filial-info .info-item i {
  width: 18px;
  color: #ff5500;
}

/* Estatísticas */

.stats-section {
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #0d5940 0%, #083d2c 100%);
  color: white;
}

.stats-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.stat-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffb66e;
}

.stat-numero {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* CTA */

.cta-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
}

.cta-section .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffb66e;
}

.cta-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Montserrat', sans-serif;
}

.cta-text {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #25D366;
  color: white;
}

.btn-primary:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* BOTÃO WHATSAPP FLUTUANTE */

.whatsapp-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 6px;
}

.whatsapp-floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-size: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-floating-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  background-color: #1ebe5b;
}

.whatsapp-floating-message {
  position: relative;
  max-width: 220px;
  background: linear-gradient(135deg, #f3e8ff 0%, #e0d4ff 100%);
  color: #1f2933;
  border-radius: 18px;
  padding: 8px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  border: 1px solid rgba(0, 0, 0, 0.03);
  text-align: left;
  word-break: break-word;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.whatsapp-floating-message span {
  display: block;
}

.whatsapp-floating-message.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* RESPONSIVO */

@media (max-width: 768px) {
  .hero-page {
    padding: 3.5rem 1rem 3rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }

  .filtros-section {
    top: 60px;
  }

  .mapa-container {
    height: 400px;
    border-width: 2px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-numero {
    font-size: 2.5rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-page {
    padding: 3rem 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .mapa-container {
    height: 350px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-floating-message {
    max-width: 190px;
    font-size: 12px;
  }
}