/* MapTiler Map Styles */

.maptiler-map {
  width: 100%;
  height: 100%;
  touch-action: pan-x pan-y;
}

/* Route marker styles */
.route-marker {
  background: transparent !important;
  border: none !important;
}

.route-marker-content {
  background-color: #4f46e5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
  border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 1000;
}

/* POI marker styles */
.poi-marker {
  background: transparent !important;
  border: none !important;
}

.poi-marker-content {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* Cluster marker styles */
.marker-cluster-wrapper {
  background: transparent !important;
}

.marker-cluster-custom {
  background-color: rgba(79, 70, 229, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Custom popup styles */
.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  padding: 0;
}

.custom-popup .leaflet-popup-content {
  margin: 0;
  padding: 12px;
  min-width: 250px;
  max-width: 300px;
}

.map-popup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-popup-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}

.map-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #1a1a1a;
}

.map-popup-category {
  margin: 0;
  font-size: 12px;
  color: #666;
  text-transform: capitalize;
}

.map-popup-rating {
  margin: 0;
  font-size: 12px;
  color: #ffd700;
}

.map-popup-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333;
}

.map-popup-order {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.map-popup-button {
  width: 100%;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.map-popup-button-primary {
  background-color: #4f46e5;
  color: white;
}

.map-popup-button-primary:hover {
  background-color: #4338ca;
}

.map-popup-button-danger {
  background-color: #ef4444;
  color: white;
}

.map-popup-button-danger:hover {
  background-color: #dc2626;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .poi-marker-content,
  .route-marker-content {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  .map-popup-image {
    height: 120px;
  }

  .custom-popup .leaflet-popup-content {
    min-width: 200px;
  }
}

/* Leaflet attribution */
.leaflet-control-attribution {
  font-size: 10px;
  background-color: rgba(255, 255, 255, 0.8);
}
