
    html, body, #map { margin: 0; height: 100%; width: 100%; }

    .topbar {
      background: white;
      height: 60px;
      display: flex;
      align-items: center;
      padding: 0 20px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1001;
    }

    .topbar img {
      height: 35px;
    }
    .suporte-flutuante {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #0a417560;
  color: white;
  font-size: 22px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: background-color 0.3s, transform 0.3s;
}
.suporte-flutuante:hover {
  background-color: #194769;
  transform: scale(1.1);
}


 #filtros {
  position: absolute;
  top: 70px;
  left: 10px;
  z-index: 1000;
  font-family: sans-serif;
  z-index: 99999;
  width: 70%;
    pointer-events: none;
}
#filtros * {
  pointer-events: auto; /* os filhos (checkboxes, botões) continuam interativos */
}

.filtro-group {
  display: inline-block;
  vertical-align: top;
  margin: 0 8px 10px 0;
  background: #194769;
  color: white;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
}
    .filtro-group h4 {
      margin: 0;
      font-size: 14px;
      cursor: pointer;
      position: relative;
    }

    .filtro-content {
      display: none;
      margin-top: 10px;
    }

    .filtro-item {
      display: flex;
      align-items: center;
      margin: 4px 0;
      color: black;
      font-size: 13px;
      font-weight: bold;
      background: white;
      padding: 4px 6px;
      border-radius: 5px;
    }

    .filtro-color {
      width: 14px;
      height: 14px;
      margin-right: 8px;
      border-radius: 3px;
    }

    .filtro-group.active .filtro-content {
      display: block;
    }

   /* Sidebar branca fixa à direita */
#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: #f3f4f6;
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
  font-family: 'Segoe UI', sans-serif;
}

#sidebar h3{
    text-align: center;
    color: #0a4275;
}

.sidebar-card {
  background: white;
  padding: 15px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.sidebar-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 16px;
  color: #0a4275;
  font-weight: bold;
  text-align: center;
}

.sidebar-card label {
  display: block;
  margin: 6px 0;
  font-size: 14px;
  color: #333;
}

.sidebar-card select {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.logo-mobile {
  display: none;
  width: 120px;
  margin: 10px auto 20px;
  display: block;
}

/* Botão hambúrguer fixo no canto superior direito */
#toggleSidebar {
  display: none;
  position: fixed;
  top: 6px;
  right: 15px; /* <-- mudou para a direita */
  z-index: 3000;
  font-size: 24px;
  background: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
#map-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1001;
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  width: 230px;
  font-family: sans-serif;
}

#map-controls h4 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  color: #003366;
  font-weight: bold;
}

.map-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.map-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}


.map-button {
  flex: 1 0 45%;
  padding: 12px 6px;
  font-size: 13px;
  font-weight: bold;
  background: #0a4275;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
  text-align: center;
}

.map-button i {
  font-size: 16px;
  margin-bottom: 4px;
  display: block;
}

.map-button:hover {
  background: #145ca3;
}

.map-button.active {
  background: #e0ecff;
  color: #0a4275;
  border: 2px solid #0a4275;
}
.map-button.active i {
  color: #0a4275;
}
.leaflet-control-zoom{
    display: none;
}

.leaflet-control-attribution{
    display: none;
}

.loading.full-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.33);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
}

.loading-logo {
  width: 140px;
  margin-bottom: 20px;
}

.leaflet-popup-content-wrapper{
 background-color: #ffffffb3;
}

.dots-loader span {
  width: 12px;
  height: 12px;
  margin: 4px;
  background: #0a4275;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1s infinite ease-in-out;
}

.dots-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.box-checkbox-mobile{
    display: none;
    position: fixed;
  top: 80px;
  left: 10px;
  z-index: 9999;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  max-width: 270px;
  overflow-y: auto;
  max-height: 80vh;
}

.box-checkbox {
display: none;

  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9999;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  max-width: 270px;
  overflow-y: auto;
  max-height: 80vh;
}

.box-checkbox h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #0a4275;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.box-checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #333;
  font-size: 13px;
  font-weight: 500;
}

.box-checkbox label span {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}


/* Mobile: sidebar escondida à direita */
@media (max-width: 767px) {


  #sidebar {
    background: #ffffff77;
    transform: translateX(100%);
    margin-top: 60px;
    width: 40%;
    padding: 5px;
  }
  .box-sidebar{
    background-color: rgba(255, 255, 255, 0.76);
    padding: 10px;
    margin-bottom: 70px;
  }

  .sidebar-card{
    background: rgba(255, 255, 255, 0);
  padding: 0px;
  margin-bottom: 5px;
  border-radius: 12px;
  box-shadow: none;
  }

  #sidebar.active {
    transform: translateX(0);
  }
 #toggleSidebar {
    display: block;
  }
 
  .logo-mobile {
    display: block;
  }
   #filtros:not(#sidebar #filtros) {
    display: none;
  }

  #sidebar #filtros {
    display: block;
  }


}
/* Em telas maiores, esconda */
@media (min-width: 768px) {

  .logo-mobile {
    display: none;
  }
  .box-filter{
    display: block;
  }
   #filtros {
    display: none;
 
   }
     #sidebar {
      margin-top: 60px;
      background: #ffffff77;
    transform: translateX(100%);
  }
  .sidebar-card{
       
    background-color: rgba(255, 255, 255, 0.836);
  }

  #sidebar.active {
    transform: translateX(0);
  }
 #toggleSidebar {
    display: block;
  }

  /* 1024px - Tablets grandes/pequenos laptops */
@media (min-width: 1024px) {
  #portosAndroid{
   display: none;
  }
  .box-filter{
    display: none;
  }
    #filtros {
    display: block;
     
   }
      #sidebar {
        background-color: rgb(255, 255, 255);
    transform: translateX(0%);
  }

.sidebar-card{
    background-color: rgb(255, 255, 255);
  }

#toggleSidebar {
    display: none;
  }
}
  
}
  