/* static/css/map.css - Map Container & Related Styles */

/* Full-Screen Map Container */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #e0e0e0;
}

/* Map Container (old structure compatibility) */
#map-container {
  position: relative;
  flex-grow: 1;
  margin: 1rem auto;
  max-width: 900px;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  background-color: #e0e0e0;
}

/* Initial loading message */
#map .loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
}

#map .loading p {
  margin: 0.5rem 0;
}

#map .loading small {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Map Overlay for Loading/Errors */
#map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  color: #f2f2f2;
  font-size: 1.1rem;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 1rem;
}

#map-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Info Window Styling (Google Maps) */
.info-window {
  max-width: 280px;
  font-size: 0.9rem;
  line-height: 1.3;
}

.info-window h4 {
  margin: 0 0 8px 0;
  color: #1976d2;
  font-size: 1rem;
}

.info-window p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #333;
}