/* Base Styles */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#map {
  height: 100vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  flex-grow: 1;
  transition: width 0.3s ease;
  touch-action: manipulation;
}

.maplibregl-canvas text {
  transition: none !important;
}

#zoom-display {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 4px;
  z-index: 1;
}

/* MapLibre Overrides */
.maplibregl-popup-close-button {
  width: 32px !important;
  height: 32px !important;
  font-size: 24px !important;
  color: #6b7280 !important;
  right: 12px !important;
  top: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.maplibregl-popup-close-button:hover {
  color: #111827 !important;
  background-color: #f3f4f6 !important;
  border-radius: 50% !important;
}



.icon {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
  #map {
    transition: height 0.3s ease;
  }

  /* MapLibre Mobile Overrides */
  .maplibregl-popup-close-button {
    width: 40px !important;
    height: 40px !important;
    font-size: 28px !important;
    right: 8px !important;
    top: 8px !important;
  }
}

.svg-marker {
  width: 32px;
  height: 48px;
  cursor: grab;
  transform: translate(-50%, -100%);
  /* so tip points to exact location */
}

.marker-check {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  animation: fadeInOut 1s ease-out;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}