.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background-color: #4CAF50;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
}

.marker-pin::after {
  content: '';
  width: 20px;
  height: 20px;
  margin: 5px 0 0 5px;
  background-color: #fff;
  position: absolute;
  border-radius: 50%;
}

.custom-marker {
  background: none;
  border: none;
}

.map-popup {
  padding: 5px;
}

.map-popup h3 {
  margin-bottom: 5px;
  font-size: 16px;
}

.popup-price {
  font-weight: bold;
  color: #ff6b35;
  margin-bottom: 5px;
}

.popup-distance {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
}

.popup-button {
  background-color: #2e86ab;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
}

.popup-button:hover {
  background-color: #1a6a8b;
}

.map-legend {
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.map-legend h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
}

.legend-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.legend-color {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 50%;
}

.dark-map .leaflet-tile {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.dark-map .leaflet-container {
  background: #303030;
}

.dark-map .map-legend {
  background-color: #333;
  color: #eee;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.dark-theme #loading-overlay {
  background-color: rgba(33, 37, 41, 0.9);
}

.loading-spinner {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.loading-spinner i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-out {
  opacity: 0;
}
