/* Map specific styles */
.membox-marker {
  width: 32px;
  height: 32px;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.3s ease;
}

.membox-marker:hover {
  transform: scale(1.1);
}

.mapboxgl-popup {
  max-width: 260px;
}

/* Mapbox specific styles */
.mapboxgl-popup-content {
  padding: 14px;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(229, 231, 235, 1);
}

.mapboxgl-popup-close-button {
  font-size: 16px;
  color: #6b7280;
  padding: 5px;
  border-radius: 50%;
  margin: 2px;
}

.mapboxgl-popup-close-button:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.mapboxgl-ctrl-group {
  border: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  border-radius: 0.375rem !important;
}

.mapboxgl-ctrl-group button {
  border-radius: 0.25rem !important;
  margin: 0.25rem !important;
}

/* User location marker styles */
.user-location-marker {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.user-location-marker-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.user-location-marker-pulse {
  background: rgba(65, 145, 255, 0.2);
  border-radius: 50%;
  height: 32px;
  width: 32px;
  position: absolute;
  animation: pulse 2s infinite;
  z-index: 1;
}

.user-location-marker-icon {
  background: #4191ff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  border: 2px solid white;
  box-shadow: 0 0 0 2px rgba(65, 145, 255, 0.5);
}

.user-location-marker-icon svg {
  width: 12px;
  height: 12px;
  color: white;
}

/* Map notification */
.map-notification {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 80%;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.map-error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: #6b7280;
}

.map-error-icon {
  color: #ef4444;
  margin-bottom: 0.5rem;
}

.map-error-message {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
