/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

/* 🔧 Container geral dos filtros */
#filtros {
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #ccc;
}

/* 🔧 Header dos filtros com logo + botão (visível só no mobile) */
.filtros-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 🔧 Logo */
.logo {
  height: 50px;
}

/* 🔘 Botão hamburguer (só no mobile) */
#toggle-filtros {
  display: none;
  background: #000;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 🧩 Opções de filtros */
#filtros-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#filtros-opcoes select,
#filtros-opcoes button {
  padding: 6px 12px;
  font-size: 14px;
  max-width: 200px;
}

#filtros-opcoes button {
  background: #000;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

/* ✅ RESPONSIVIDADE */
@media (max-width: 768px) {
  #toggle-filtros {
    display: block;
  }

  #filtros-opcoes {
    display: none;
    flex-direction: column;
    margin-top: 10px;
  }

  #filtros-opcoes.mostrar {
    display: flex;
  }
}

/* Logo */
.logo {
  height: 50px;
}

/* Botão de abrir filtros */
#toggle-filtros {
  background-color: #000;
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

#toggle-filtros:hover {
  background-color: #333;
}

/* Filtros escondidos em telas pequenas */
#filtros-opcoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

#filtros-opcoes select,
#filtros-opcoes button {
  padding: 6px 12px;
  font-size: 14px;
  max-width: 200px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Botão de atualizar */
#filtros-opcoes button {
  background-color: #000;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

#filtros-opcoes button:hover {
  background-color: #222;
}

/* Mapa */
#mapa {
  flex: 1;
  height: 100%;
  width: 100%;
}

/* Estilo dos popups */
.leaflet-popup-content {
  font-size: 14px;
  line-height: 1.4;
}

.popup-link {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 6px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;
  border-radius: 4px;
}

.popup-link:hover {
  background-color: #333;
}

.leaflet-popup-content .popup-link {
  color: #fff !important;
}

/* Loading */
#loading {
  font-size: 16px;
  font-weight: 500;
}

/* Responsivo */
@media (max-width: 768px) {
  #filtros-opcoes {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  #filtros-opcoes.mostrar {
    display: flex;
  }

  #filtros-opcoes select,
  #filtros-opcoes button {
    width: 100%;
    max-width: none;
  }

  .logo {
    height: 40px;
  }
}
