/* ==========================================================================
   CAR WebGIS - Estilos Customizados para Leaflet 1.9.4
   Adequacao ao Tema Dark Institucional e WCAG AAA
   ========================================================================== */

/* Controles de Zoom */
.leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: #0F291E !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: background-color 0.2s ease;
}

.leaflet-bar a:hover {
  background-color: #16382B !important;
  color: #FFFFFF !important;
}

.leaflet-bar a:focus-visible {
  outline: 2px solid #FFFFFF !important;
  outline-offset: -2px;
}

/* Controle de Escala Grafica */
.leaflet-control-scale-line {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 2px solid #94A3B8 !important;
  border-top: none !important;
  color: #F8FAFC !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Atribuicao Cartografica */
.leaflet-container .leaflet-control-attribution {
  background-color: rgba(15, 23, 42, 0.85) !important;
  color: #CBD5E1 !important;
  font-size: 10px !important;
  padding: 2px 8px !important;
}

.leaflet-container .leaflet-control-attribution a {
  color: #38BDF8 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 4px;
}

.leaflet-container .leaflet-control-attribution a:hover {
  text-decoration: underline;
}

/* Balao Popup Customizado Dark */
.leaflet-popup-content-wrapper {
  background-color: #0F291E !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  color: #F1F5F9 !important;
  padding: 4px !important;
}

.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
}

.leaflet-popup-content h4 {
  color: #FFFFFF !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 4px;
}

.leaflet-popup-content p {
  color: #F1F5F9 !important;
  font-size: 12px !important;
  margin: 3px 0 !important;
}

.leaflet-popup-content .popup-highlight {
  color: #4ADE80 !important;
  font-weight: 700;
}

.leaflet-popup-tip {
  background-color: #0F291E !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.leaflet-popup-close-button {
  color: #FFFFFF !important;
  padding: 6px !important;
}

.leaflet-popup-close-button:hover {
  color: #EF4444 !important;
}
