/* Make Leaflet tiles grey */
.leaflet-tile {
  filter: grayscale(100%) saturate(0%) brightness(0.95);
}

/* === GLOBAL SLIDER STYLE === */
:root {
  --slider-color: #004425; /* change this to your desired color */
}

.rc-slider-track {
  background-color: var(--slider-color) !important;
}

.rc-slider-handle {
  border: 2px solid var(--slider-color) !important;
  background-color: var(--slider-color) !important;
}

.rc-slider-handle:hover {
  box-shadow: 0 0 0 5px rgba(0, 68, 37, 0.2);
}

.rc-slider-dot-active {
  border-color: var(--slider-color) !important;
}

/* --- Legend card container --- */
.legend-card {
  border: 1px solid #004425;          /* main_color */
  border-radius: 4px;
  padding: 12px 16px;
  background-color: #ffffff;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.3;
  color: #002b16;                      /* dark green-ish text */
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Title */
.legend-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #004425;
  font-size: 15px;
}

/* One row inside the legend */
.legend-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

/* The label text */
.legend-label {
  margin-left: 8px;
}

/* Base marker style */
.legend-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid transparent;
}

/* Base line style */
.legend-line {
  width: 28px;
  height: 0;
  border-top-width: 4px;
  border-top-style: solid;
  flex-shrink: 0;
  border-radius: 2px;
}

/* --- Specific items --- */

/* Responders: blue small dots (#1D4ED8) */
.legend-responders {
  background-color: #1D4ED8;
  border-color: #1D4ED8;
}

/* Patient: red */
.legend-patient {
  background-color: red;
  border-color: red;
}

/* Accepted: light sky blue (#87CEFA), bigger bubble */
.legend-accepted {
  background-color: #87CEFA;
  border-color: #87CEFA;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

/* Declined: little cross marker (we fake it with an 'X') */
.legend-declined {
  background-color: transparent;
  border: none;
  width: 14px;
  height: 14px;
  position: relative;
}
.legend-declined::before,
.legend-declined::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 2px;
  height: 12px;
  background-color: #000000;
}
.legend-declined::before {
  transform: rotate(45deg);
}
.legend-declined::after {
  transform: rotate(-45deg);
}

/* Chosen direct: large highlighted circle (no fill in your plot, so: outline only) */
.legend-chosen-direct {
  background-color: #F59E0B;
  border-color: #F59E0B;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}


/* Chosen AED: diamond shape */
.legend-chosen-aed {
  background-color: #9333EA;
  border-color: #9333EA;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}


/* Route of first responder: amber line (#F59E0B) */
.legend-direct-route {
  border-top-color: #F59E0B;
}

/* Route via AED: purple line (#9333EA) */
.legend-aed-route {
  border-top-color: #9333EA;
}

/* AED to pick up: green */
.legend-aed-pickup {
  background-color: green;
  border-color: green;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
