/* KML Map Controller - Draggable Markers Styles */

/* Container styles */
.map-container {
  position: relative;
  height: 400px;
  width: 100%;
}

/* Dragging state styles */
.marker-dragging {
  cursor: grabbing !important;
}

.marker-dragging .map-container {
  cursor: grabbing !important;
}

/* Marker styles when draggable */
.gm-style .gm-style-iw-tc::after {
  background: rgba(255, 255, 255, 0.9);
}

/* Info window styles during drag */
.marker-dragging .gm-style-iw {
  display: none !important;
}

/* Notification styles for drag feedback */
.drag-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.drag-notification.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.drag-notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.drag-notification.info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Coordinates display during drag */
.coordinates-display {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.marker-dragging .coordinates-display {
  opacity: 1;
}

/* Drag handle indicator */
.marker-draggable-indicator {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  background: #4285f4;
  border: 2px solid white;
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.marker-draggable-indicator:hover {
  background: #1a73e8;
  transform: scale(1.1);
}

/* Loading indicator during position update */
.marker-position-updating {
  position: relative;
}

.marker-position-updating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4285f4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive styles */
@media (max-width: 768px) {
  .drag-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .coordinates-display {
    font-size: 11px;
    padding: 6px 8px;
  }
}
