* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.container {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Conteúdo das abas */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block !important;
}

/* Container de busca - modificado para ficar acima da navegação, na parte inferior */
.search-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  padding-top: 10px;
  transition: all 0.3s ease;
}

.search-container.hidden {
  transform: translate(-50%, 100%);
}

.search-header {
  padding: 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

#search {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-actions {
  display: flex;
  margin-left: 10px;
}

.search-button, .filter-toggle {
  padding: 9px 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 7px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.search-button:hover, .filter-toggle:hover {
  background-color: #3d9c40;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

.search-button:active, .filter-toggle:active {
  background-color: #36893a;
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Filtros */
.filters-box {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: none;
}

.filters-box.active {
  display: block;
}

.filters-box select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.filters-box select:focus {
  border-color: #4CAF50;
  box-shadow: inset 0 1px 3px rgba(76,175,80,0.2);
  outline: none;
}

/* Estilos para a legenda dentro do painel de busca */
.map-legend {
  padding: 8px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  width: 100%;
  position: relative;
  z-index: 10;
  display: flex !important;
}

/* Garantir que a legenda seja visível quando o container de busca estiver visível */
.search-container:not(.hidden) .map-legend {
  display: flex;
}

/* Esconder a legenda quando o container de busca estiver oculto */
.search-container.hidden .map-legend {
  display: none;
}

.legend-item {
  display: flex;
  align-items: center;
  margin: 0 6px;
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
  display: inline-block;
}

.legend-dot.disponivel {
  background-color: #4CAF50;
}

.legend-dot.em-uso {
  background-color: #2196F3;
}

.legend-dot.carregando {
  background-color: #FFC107;
}

.legend-dot.manutencao {
  background-color: #F44336;
}

/* Botão para minimizar/expandir a aba - sempre verde com seta para baixo */
.minimize-tab {
  position: absolute;
  right: 10px;
  top: -15px;
  width: 36px;
  height: 18px;
  background-color: #4CAF50;
  border: none;
  border-radius: 15px 15px 0 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.15);
  z-index: 10;
  pointer-events: auto !important;
  transition: all 0.3s ease;
}

/* Seta para baixo no botão de minimizar */
.minimize-tab:after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s ease;
}

.minimize-tab:hover {
  background-color: #45a049;
}

.search-container.minimized {
  transform: translate(-50%, calc(100% - 15px));
}

.search-container.minimized .minimize-tab:after {
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: rotate(135deg) translateY(-2px);
  background-color: transparent;
}

/* Container de Rota - modificado para ficar acima da navegação */
.route-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9;
  overflow: hidden;
  padding: 10px 8px 0 8px;
  transition: transform 0.3s ease;
}

.route-container.minimized {
  transform: translate(-50%, calc(100% - 15px)) !important;
}

.route-container .minimize-tab {
  top: -15px;
}

.route-header {
  margin-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
}

.route-inputs, .vehicle-inputs {
  margin-bottom: 20px;
}

.route-field, .vehicle-field {
  margin-bottom: 10px;
}

.route-field label, .vehicle-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.route-field input, .vehicle-field input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.vehicle-inputs h4 {
  margin-bottom: 10px;
  color: #555;
}

.calc-route-button {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

/* Mensagem */
.mensagem {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 80%;
  z-index: 10;
  text-align: center;
}

/* Mapa */
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Estilos aprimorados para a janela de informações */
.info-window {
  padding: 15px;
  max-width: 300px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info-window h3 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 8px;
}

.info-content {
  margin-bottom: 15px;
}

.info-window p {
  margin: 8px 0;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
  font-size: 12px;
  font-weight: 500;
}

.status-disponível {
  background-color: #4CAF50;
}

.status-preparando {
  background-color: #2196F3;
}

.status-carregando {
  background-color: #FFC107;
  color: #333;
}

.status-manutenção {
  background-color: #F44336;
}

/* Navegação com botões aprimorados */
.navegacao-botoes {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.nav-btn {
  flex: 1;
  padding: 10px 5px;
  margin: 0 5px;
  background-color: #fff;
  color: #333;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.nav-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 5px;
}

/* Estilos para os logotipos de aplicativos de navegação */
.logo-container {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.nav-logo {
  width: 100%;
  height: 100%;
}

/* Estilos específicos para cada botão */
.waze-btn {
  box-shadow: 0 2px 8px rgba(51, 204, 255, 0.2);
  border: 1px solid rgba(51, 204, 255, 0.3);
}

.waze-btn:hover {
  background-color: rgba(51, 204, 255, 0.08);
  box-shadow: 0 4px 12px rgba(51, 204, 255, 0.3);
  transform: translateY(-3px);
}

.google-btn {
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.google-btn:hover {
  background-color: rgba(66, 133, 244, 0.08);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
  transform: translateY(-3px);
}

.apple-btn {
  box-shadow: 0 2px 8px rgba(85, 85, 85, 0.2);
  border: 1px solid rgba(85, 85, 85, 0.2);
}

.apple-btn:hover {
  background-color: rgba(85, 85, 85, 0.08);
  box-shadow: 0 4px 12px rgba(85, 85, 85, 0.25);
  transform: translateY(-3px);
}

/* Botão de toggle global para expandir/recolher abas */
.toggle-tabs-btn {
  position: fixed;
  bottom: 47px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: white;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 11;
  transition: transform 0.3s ease;
}

.toggle-tabs-btn.active {
  transform: rotate(180deg);
}

.toggle-tabs-btn svg {
  width: 24px;
  height: 24px;
}

/* Media query para telas menores */
@media (max-width: 600px) {
  .tab-navigation, 
  .search-container,
  .route-container {
      max-width: 100%;
  }
  
  .search-header, 
  .route-header {
      padding: 10px;
  }
  
  .tab-button {
      padding: 8px 10px;
      font-size: 14px;
  }
  
  .mensagem {
      bottom: 120px;
  }
}

/* Estilo para o seletor de veículos */
#vehicle-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  margin-bottom: 12px;
}

/* Estilo para destacar o veículo selecionado */
.vehicle-info {
  background-color: #f5f5f5;
  border-left: 3px solid #4CAF50;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 0 4px 4px 0;
}

.vehicle-info img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 4px;
}

/* Estilos para o modal de informações do veículo */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
}

.veiculo-modal {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 80%;
  max-height: 80%;
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.veiculo-modal h3 {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.veiculo-specs {
  margin-bottom: 15px;
}

.veiculo-modal img {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 4px;
}

.veiculo-modal button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

/* Quando o tab-content está ativo, garantir que o container também está visível */
.tab-content.active .route-container {
  transform: translateX(-50%);
}

/* Painel de análise de rota */
.route-analysis-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 900;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.route-analysis-panel.collapsed {
  transform: translateX(100%);
}

.route-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #4CAF50;
  color: white;
}

.toggle-route-panel {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.toggle-route-panel:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.route-analysis-panel.collapsed .toggle-route-panel svg {
  transform: rotate(180deg);
}

.route-panel-content {
  padding: 15px;
  overflow-y: auto;
  flex-grow: 1;
}

.route-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.battery-status {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.battery-container {
  width: 60px;
  height: 30px;
  border: 2px solid #333;
  border-radius: 4px;
  position: relative;
  margin-right: 10px;
}

.battery-container:after {
  content: '';
  position: absolute;
  top: 8px;
  right: -6px;
  width: 4px;
  height: 14px;
  background-color: #333;
  border-radius: 0 2px 2px 0;
}

.battery-level {
  height: 100%;
  background-color: #4CAF50;
  width: 100%;
  transition: width 0.5s ease, background-color 0.5s ease;
}

.battery-level.warning {
  background-color: #FFC107;
}

.battery-level.danger {
  background-color: #F44336;
}

.route-segments {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.route-segment {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.route-segment:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.route-segment:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 2px;
  height: 20px;
  background-color: #4CAF50;
  z-index: 1;
}

.route-segment:not(:last-child)::before {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 19px;
  width: 4px;
  height: 4px;
  background-color: #4CAF50;
  border-radius: 50%;
  z-index: 2;
}

.route-segment.charging-station {
  border-width: 4px;
  border-left-color: #2196F3;
  background-color: #e3f2fd;
}

.route-segment.destination {
  border-width: 4px;
  border-left-color: #FF5722;
  background-color: #FBE9E7;
}

.route-segment.low-battery {
  border-left-color: #FFC107;
}

.route-segment.critical-battery {
  border-left-color: #F44336;
}

.segment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.segment-title {
  font-weight: bold;
}

.segment-battery {
  font-weight: bold;
}

.segment-details {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.segment-detail {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.03);
  padding: 8px;
  border-radius: 4px;
  text-align: center;
}

#map.route-panel-active {
  width: 50% !important;
}

@media (max-width: 768px) {
  .route-analysis-panel {
      width: 100%;
  }
  
  #map.route-panel-active {
      width: 0 !important;
  }
}

.route-segment.recharge {
  border-left-color: #8E24AA;
  background-color: #F3E5F5;
  padding: 10px 15px;
}

.route-segment.recharge .segment-title {
  color: #6A1B9A;
}

.route-marker-label {
  color: white;
  background-color: #4CAF50;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: bold;
}

.expand-route-panel {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 800;
  transition: background-color 0.3s;
}

.expand-route-panel:hover {
  background-color: #45a049;
}

.expand-route-panel svg {
  margin-right: 5px;
}

@media (max-width: 768px) {
  .route-analysis-panel {
      width: 85%;
      font-size: 14px;
  }
  
  .route-panel-header h3 {
      font-size: 16px;
  }
  
  .route-summary p, .battery-status p {
      font-size: 13px;
      margin: 5px 0;
  }
  
  .route-segments {
      gap: 10px;
  }
  
  .route-segment {
      padding: 10px;
  }
  
  .segment-details {
      flex-direction: column;
      gap: 5px;
  }
  
  .segment-detail {
      padding: 5px;
      font-size: 12px;
  }
  
  #map.route-panel-active {
      width: 15% !important;
  }
  
  .expand-route-panel {
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      padding: 6px 12px;
      font-size: 12px;
  }
  
  .expand-route-panel svg {
      width: 18px;
      height: 18px;
  }
}

@media (max-width: 480px) {
  .route-analysis-panel {
      width: 100%;
      height: 80%;
      bottom: 0;
      top: auto;
      border-radius: 20px 20px 0 0;
  }
  
  .route-analysis-panel.collapsed {
      transform: translateY(100%);
  }
  
  #map.route-panel-active {
      width: 100% !important;
      height: 20% !important;
      top: 0;
  }
  
  .route-panel-header {
      border-radius: 20px 20px 0 0;
  }
  
  .expand-route-panel {
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      border-radius: 30px;
      padding: 8px 20px;
  }
  
  .route-panel-content {
      padding: 10px;
  }
  
  h4 {
      font-size: 14px;
      margin: 10px 0 5px;
  }
}

.battery-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 5px;
  color: white;
}

.battery-status-badge.good {
  background-color: #4CAF50;
}

.battery-status-badge.warning {
  background-color: #FFC107;
}

.battery-status-badge.danger {
  background-color: #F44336;
}

.station-marker {
  display: inline-block;
  background-color: #2196F3;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.station-info {
  padding: 10px;
  max-width: 250px;
}

.station-info h3 {
  margin-top: 0;
  color: #2196F3;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.station-info p {
  margin: 5px 0;
  font-size: 13px;
}

.station-info button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 6px 10px;
  margin-top: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
}

.station-info button:hover {
  background-color: #45a049;
}

.segment-details {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

.segment-detail {
  background-color: #f5f5f5;
  padding: 8px;
  border-radius: 4px;
  text-align: center;
  flex: 1;
}

.segment-detail.charging {
  background-color: #e3f2fd;
}

.detail-value {
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

.detail-label {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
}

.segment-address {
  font-size: 13px;
  color: #555;
  margin: 5px 0;
}

.battery-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 5px;
  color: white;
}

.route-segment.charging-station,
.route-segment.recharge {
  animation: none;
}

.route-segment {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.route-segment:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.route-segment:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 2px;
  height: 20px;
  background-color: #4CAF50;
  z-index: 1;
}

.route-segment:not(:last-child)::before {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 19px;
  width: 4px;
  height: 4px;
  background-color: #4CAF50;
  border-radius: 50%;
  z-index: 2;
}

.route-segment.recharge:not(:last-child)::after {
  background-color: #2196F3;
}

.route-segment.recharge:not(:last-child)::before {
  background-color: #2196F3;
}

/* Botão de instalação do PWA */
.install-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  cursor: pointer;
  display: none; /* Inicialmente oculto */
}

.install-button:hover {
  background-color: #45a049;
}

@media (max-width: 768px) {
  .install-button {
      bottom: 130px;
      top: auto;
      right: 20px;
      font-size: 14px;
      padding: 8px 16px;
  }
}

/* Estilo para os botões de navegação externa */
.navegacao-botoes {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.navegacao-botoes button {
  flex: 1;
  padding: 6px 8px;
  margin: 0 3px;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.navegacao-botoes button:hover {
  background-color: #f0f0f0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

/* Específico para cada botão */
.navegacao-botoes button:nth-child(1) {
  border-color: #33ccff;
}

.navegacao-botoes button:nth-child(2) {
  border-color: #4285F4;
}

.navegacao-botoes button:nth-child(3) {
  border-color: #999;
}

/* Botão flutuante para controlar a visibilidade da aba de busca */
.toggle-search-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #4CAF50;
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 12;
  transition: all 0.3s ease; /* Mudado de transform para all para animar todas as propriedades */
}

/* Quando o botão estiver ativo (aba de busca expandida), move para a direita e para cima */
.toggle-search-btn.active {
  transform: rotate(180deg) scale(1.05);
  left: auto; /* Remove a definição left */
  right: 20px; /* Move para o lado direito */
  bottom: calc(100% - 20px); /* Move para acima do painel de busca */
}

@media (max-width: 600px) {
  .toggle-search-btn {
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
  }
  
  .toggle-search-btn.active {
    right: 15px;
    left: auto;
    bottom: calc(100% - 15px);
  }
}

/* Ajuste responsivo */
@media (max-width: 480px) {
  .map-legend {
    padding: 6px 10px;
  }
  
  .legend-item {
    margin: 3px 5px;
    font-size: 10px;
  }
  
  .legend-dot {
    width: 8px;
    height: 8px;
  }
  
  .filters-box select {
    padding: 12px 10px;
    margin-bottom: 12px;
    font-size: 16px; /* Tamanho maior para facilitar a leitura */
    height: auto; /* Mais espaço para tocar */
  }
  
  .search-button, .filter-toggle {
    padding: 10px 12px;
  }
  
  .filter-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  #search {
    padding: 12px 10px;
    font-size: 16px;
  }
  
  .search-header {
    padding: 12px 10px;
  }
  
  .filters-box {
    padding: 12px 10px;
  }
} 