/* Map container */
#map { height: calc(100vh - 50px); width: 100vw; }

/* Dropdowns */
#dropdown-container {
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 12px; padding: 10px; background-color: var(--surface);
}
select {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background-color: var(--bg); color: var(--text);
  margin: 0 10px; min-width: 180px;
}
label { font-weight: bold; margin: 0 10px; color: var(--text); }

/* Locate button */
#locate-btn {
  position: absolute; bottom: 20px; right: 20px; z-index: 999;
  padding: 8px 12px; font-size: 13px; background-color: var(--blue);
  color: var(--yellow); border: none; border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6); cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
#locate-btn:hover { background-color: var(--yellow); color: var(--blue); transform: scale(1.05); }

/* Leaflet popup theming */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}
.leaflet-popup-content { margin: 12px 14px; }

/* Directions button in popup */
.leaflet-popup-content .directions-btn,
.leaflet-popup-content a.directions-btn,
.leaflet-popup-content button.directions-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 12px; margin-top: 8px; font-size: 13px; font-weight: 700;
  background-color: var(--blue); color: var(--yellow) !important;
  border: none; border-radius: 50px; line-height: 1; text-decoration: none;
  cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none; background-image: none;
}
.leaflet-popup-content .directions-btn:hover,
.leaflet-popup-content .directions-btn:focus {
  background-color: var(--yellow); color: var(--blue) !important;
  transform: scale(1.05); outline: none;
}
.leaflet-popup-content .directions-btn:active { transform: none; }

/* Leaflet zoom controls */
.leaflet-control-zoom a {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Custom style for the "me" tooltip */
.leaflet-tooltip.me-tooltip {
  background: var(--surface);
  color: var(--text);   /* <-- use site-wide text color (white) */
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 600;
}


.leaflet-tooltip.me-tooltip::before {
  border-top-color: var(--surface) !important; /* dark background */
}


