  .fire-card:hover {
    background-color: #fee2e2; /* hover efekti */
    cursor: pointer;
  }
  .fire-card.selected {
    border-color: #b91c1c;
    background-color: #fecaca;
  }
  .vertical-toolbar {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 60px;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: top 0.4s ease-in-out;
}

body.notification-banner-visible .vertical-toolbar {
    top: calc(40px + 10px + 80px + 10px); /* logo H + banner top + approx banner H + spacing */
    /* Adjust 80px based on actual banner height */
}
#historicalFiresPanel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(43, 43, 43, 0.9);
  padding: 10px 15px;
  border-radius: 8px;
  display: none;
  width: auto;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 0.9em;
}

#historicalFiresPanel .year-input-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

#historicalFiresPanel .year-input-container label {
  color: white;
  margin-right: 8px;
  margin-bottom: 0;
  font-size: 1em;
  white-space: nowrap;
}

#historicalFiresPanel input[type="number"] {
  flex-grow: 1;
  width: 100px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #555;
  background-color: #1F1F1F;
  color: #FFFFFF;
  font-size: 1em;
}

#historicalFiresPanel .checkbox-container {
  margin-top: 0;
  display: flex;
  align-items: center;
}
#historicalFiresPanel .checkbox-container input[type="checkbox"] {
  margin-right: 8px;
  width: 15px;
  height: 15px;
  accent-color: #FF6347;
  flex-shrink: 0;
}
#historicalFiresPanel .checkbox-container label {
  margin-bottom: 0;
  font-size: 1em;
  color: #f0f0f0;
}

.vertical-toolbar .toolbar-btn {
  background-color: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 15px;
  margin: 10px 0;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}

.vertical-toolbar .toolbar-btn:hover,
.vertical-toolbar .toolbar-btn:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FF6347;
  outline: none;
}

.vertical-toolbar .toolbar-btn:active {
  background-color: rgba(255, 255, 255, 0.2);
}

.vertical-toolbar .toolbar-btn#historicalFiresBtn.active {
  background-color: rgba(255, 99, 71, 0.3);
  color: #FF6347;
}


.vertical-toolbar .toolbar-btn[title]::after {
  content: attr(title);
  position: absolute;
  left: -210px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out 0.3s, visibility 0s linear 0.5s;
}

.vertical-toolbar .toolbar-btn:hover::after,
.vertical-toolbar .toolbar-btn:focus::after {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.3s, 0.3s;
}

.vertical-toolbar .toolbar-btn#historicalFiresBtn.active:hover::after,
.vertical-toolbar .toolbar-btn#historicalFiresBtn.active:focus::after {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition-delay: 0s !important;
}


.layer-list-panel {
  position: absolute;
  top: 60px;
  right: 90px;
  width: 250px;
  max-height: 400px;
  background-color: #2B2B2B;
  border: 1px solid #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  padding: 10px;
  z-index: 1002;
  display: none;
  overflow-y: auto;
  border-radius: 5px;
  font-family: 'Nunito', sans-serif;
  transition: top 0.4s ease-in-out; /* Smooth transition for top */
}

.layer-list-panel.active {
  display: block;
}

.layer-list-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.layer-list-panel .panel-header h3 {
  margin: 0;
  font-size: 1.2em;
  font-family: 'Nunito', sans-serif;
  color: #FFFFFF;
}

.layer-list-panel .close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #FFFFFF;
}
.layer-list-panel .close-btn:hover {
    color: #FF6347;
}


.layer-list-panel .layer-item {
  margin-bottom: 8px;
}

.layer-list-panel .layer-item label { /* General label for checkbox */
  margin-left: 5px;
  font-size: 14px;
  color: #FFFFFF;
  vertical-align: middle;
}

.layer-list-panel .layer-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FF6347;
  vertical-align: middle;
}

.layer-list-panel .layer-item input[type="checkbox"]:focus {
  outline: 2px solid #FF6347;
}

/* Styles for smoke layer item with opacity slider */
.layer-list-panel .smoke-layer-item {
  display: flex;
  flex-direction: column; /* Stack checkbox/label and slider */
  align-items: flex-start; /* Align items to the start */
}

.layer-list-panel .smoke-layer-item .layer-item-main-controls {
  display: flex; /* For checkbox and its label */
  align-items: center;
  margin-bottom: 5px; /* Space between checkbox/label and slider */
}

.layer-list-panel .opacity-slider-container {
  display: flex;
  align-items: center;
  width: 100%; /* Make slider container take full width of item */
  padding-left: 21px; /* Indent to align with text of checkbox label (16px checkbox + 5px margin) */
}

.layer-list-panel .opacity-slider-label {
  font-size: 12px;
  color: #CCCCCC;
  margin-right: 5px;
  white-space: nowrap;
}

.layer-list-panel .opacity-slider {
  flex-grow: 1; /* Slider takes remaining space */
  height: 6px; /* Reduced height */
  -webkit-appearance: none;
  appearance: none;
  background: #444; /* Slider track color */
  border-radius: 3px; /* Adjusted radius */
  cursor: pointer;
}

.layer-list-panel .opacity-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px; /* Reduced thumb size */
  height: 12px; /* Reduced thumb size */
  background: #FF6347; /* Slider thumb color */
  border-radius: 50%;
  border: 1px solid #FFFFFF;
}

.layer-list-panel .opacity-slider::-moz-range-thumb {
  width: 12px; /* Reduced thumb size */
  height: 12px; /* Reduced thumb size */
  background: #FF6347;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  cursor: pointer;
}

.layer-list-panel .opacity-value-display {
  font-size: 12px;
  color: #CCCCCC;
  margin-left: 8px;
  min-width: 30px; /* Ensure space for "100%" */
  text-align: right;
}

.glow-marker {
  border-radius: 50%;
  background: radial-gradient(circle, red 40%, orange 60%, yellow 90%);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
  opacity: 0.85;
}
.glow-xs { width: 2px; height: 2px; }
.glow-sm { width: 8px; height: 8px; }
.glow-md { width: 14px; height: 14px; }
.glow-lg { width: 20px; height: 20px; }
.glow-xl { width: 26px; height: 26px; }


.legend-panel {
  position: fixed;
  bottom: 30px;
  left: 330px;
  width: 280px;
  max-height: calc(100vh - 95px - 20px);
  background-color: #2B2B2B;
  border: 1px solid #555;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  padding: 10px;
  z-index: 1002;
  display: none;
  overflow-y: auto; /* This can clip absolutely positioned children if they extend outside */
  border-radius: 5px;
  font-family: 'Nunito', sans-serif;
  color: #FFFFFF;
}

.legend-panel.active {
  display: block;
}

.legend-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.legend-panel .panel-header h3 {
  margin: 0;
  font-size: 1.1em;
  font-family: 'Nunito', sans-serif;
  color: #FFFFFF;
}

.legend-panel .close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #FFFFFF;
}
.legend-panel .close-btn:hover {
    color: #FF6347;
}


.legend-panel .panel-content h4 {
  font-size: 1em;
  margin-top: 12px;
  margin-bottom: 8px;
  color: #FF6347;
  padding-bottom: 3px;
  border-bottom: 1px solid #444;
}
.legend-panel .panel-content h4:first-child {
  margin-top: 0;
}

.legend-panel .legend-group {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.legend-panel .legend-group li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  color: #E0E0E0;
}

.legend-panel .legend-color {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  display: inline-block;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 3px;
  vertical-align: middle;
}
.legend-panel .legend-group li > span[style*="background-color: rgba"],
.legend-panel .legend-group li > span[style*="background-color: #ff0000"],
.legend-panel .legend-group li > span[style*="background-color: #ff4500"],
.legend-panel .legend-group li > span[style*="background-color: #ff7f50"],
.legend-panel .legend-group li > span[style*="background-color: #696969"] {
  border-radius: 50%; /* Make specific fire status colors circular */
}

/* Gradient icon for smoke legend item */
.legend-panel .legend-group li#smokeLegendTrigger .smoke-gradient-icon {
  /* Representative gradient of the 13-step ramp */
  background-image: linear-gradient(to right, #81d4fa 0%, #a5d6a7 25%, #ffee58 50%, #ff9800 70%, #d81b60 85%, #4a148c 100%);
  border: 1px solid #444; /* Add a subtle border to the gradient box */
}


.legend-panel .legend-icon-img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
}

.legend-panel::-webkit-scrollbar { width: 6px; }
.legend-panel::-webkit-scrollbar-track { background: #1F1F1F; border-radius: 3px; }
.legend-panel::-webkit-scrollbar-thumb { background-color: #555; border-radius: 3px; }

.fire-svg-icon {
  font-size: 24px;
  text-align: center;
  line-height: 24px;
}
/* .fire-area-icon div {
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
} */

.leaflet-popup-content-wrapper {
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 12px 16px;
}

.leaflet-popup-content {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.leaflet-popup-tip {
  background: #fff;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #999;
  font-weight: bold;
  font-size: 18px;
  padding: 2px 6px;
}


.fire-svg-icon:hover img {
  transform: scale(1.2);
  filter: drop-shadow(0 0 6px orange);
  transition: all 0.2s ease-in-out;
}