/* Dark theme overrides for Leaflet maps matching museum hacker theme */

/* Tile layer - darken base map tiles */
.leaflet-tile-pane {
  /* Using CartoDB Dark Matter tiles, so no filter needed */
}

/* Map container background */
.leaflet-container {
  background: #0d1117;
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
}

/* Attribution control */
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.8) !important;
  color: #b5e853 !important;
  border: 1px solid rgba(181, 232, 83, 0.3);
}

.leaflet-control-attribution a {
  color: #b5e853 !important;
  text-decoration: none;
}

.leaflet-control-attribution a:hover {
  color: #fc0 !important;
  text-shadow: 0 0 5px rgba(181, 232, 83, 0.5);
}

/* Zoom control buttons */
.leaflet-control-zoom {
  border: 1px solid rgba(181, 232, 83, 0.3) !important;
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.leaflet-control-zoom a {
  background: rgba(0, 0, 0, 0.9) !important;
  color: #b5e853 !important;
  border-bottom: 1px solid rgba(181, 232, 83, 0.2);
}

.leaflet-control-zoom a:hover {
  background: rgba(181, 232, 83, 0.2) !important;
  color: #fc0 !important;
  text-shadow: 0 0 5px rgba(181, 232, 83, 0.5);
}

.leaflet-control-zoom a.leaflet-disabled {
  background: rgba(0, 0, 0, 0.9) !important;
  color: #555 !important;
  cursor: not-allowed;
}

/* Popup */
.leaflet-popup-content-wrapper {
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.8);
  border: 2px solid #b5e853;
  border-radius: 4px;
}

.leaflet-popup-content {
  margin: 15px;
  font-size: 14px;
  line-height: 1.5;
}

.leaflet-popup-content h3 {
  color: #b5e853;
  margin: 0 0 10px 0;
  text-shadow: 0 0 5px rgba(181, 232, 83, 0.3);
}

.leaflet-popup-content img {
  display: block;
  margin: 0 auto 10px;
  border: 1px solid rgba(181, 232, 83, 0.3);
  border-radius: 2px;
}

.leaflet-popup-content p {
  margin: 5px 0;
  color: #ccc;
}

.leaflet-popup-content strong {
  color: #b5e853;
}

/* Popup tip */
.leaflet-popup-tip {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
}

/* Popup close button */
.leaflet-popup-close-button {
  color: #b5e853 !important;
  font-size: 20px;
  font-weight: bold;
}

.leaflet-popup-close-button:hover {
  color: #fc0 !important;
  text-shadow: 0 0 5px rgba(181, 232, 83, 0.5);
}

/* Tooltip */
.leaflet-tooltip {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #b5e853;
  color: #b5e853;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  font-size: 12px;
  padding: 4px 8px;
}

.leaflet-tooltip-top:before {
  border-top-color: #b5e853;
}

.leaflet-tooltip-bottom:before {
  border-bottom-color: #b5e853;
}

.leaflet-tooltip-left:before {
  border-left-color: #b5e853;
}

.leaflet-tooltip-right:before {
  border-right-color: #b5e853;
}

/* Custom photo markers */
.photo-marker {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #b5e853;
  box-shadow: 0 0 10px rgba(181, 232, 83, 0.5), 0 2px 5px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #000;
}

.photo-marker:hover {
  transform: scale(1.15);
  border-color: #fc0;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.8), 0 0 25px rgba(181, 232, 83, 0.4);
}

.photo-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ensure Leaflet default marker shadow works in dark theme */
.leaflet-marker-shadow {
  opacity: 0.4;
}
