/* Basic styles for the map app */
html, body, #map {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

#map { position: absolute; top: 0; left: 0; right: 0; bottom: 0; }

#controls {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1400;
  background: rgba(255,255,255,0.95);
  padding: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  gap: 8px;
  align-items: center;
}

#controls button, #controls input {
  font-size: 14px;
}

#info-panel {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1500;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transform-origin: top right;
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
  transform: translateY(-8px) scale(.98);
  pointer-events: none;
}

#info-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#info-panel img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 8px 0;
}

#info-close {
  position: absolute;
  right: 8px;
  top: 8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

#info-title { margin: 6px 0 0 0; font-size: 18px; color: #2b7a78; }
#info-desc { margin: 8px 0; color: #333; font-size: 14px; }
#info-distance { display: block; margin-top: 8px; color: #666; font-size: 13px; }
