/* styles.css */
/* Make the map fill the entire page */
html, body, #map {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}
/* Optional: ensure fullscreen container uses full size */
.leaflet-container {
  background: #eee;
}

#map-container {
  display: flex;
  height: 100vh;
}

#map {
  flex: 1;
}

#info-panel {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
  display: none; /* Hidden by default */
}

#info-panel.active {
  display: block; /* Shown only when active */
}

/* Ensure #map-container fills the screen when fullscreen */
.leaflet-container:fullscreen #map-container,
#map-container:fullscreen {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

/* Optional: in fullscreen, make #info-panel scroll properly */
#map-container:fullscreen #info-panel {
  overflow-y: auto;
}

#custom-fullscreen-btn {
  position: absolute;
  top: 10px;
  left: 50px;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

/* Fullscreen styles */
#map-container:fullscreen {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

#map-container:-webkit-full-screen { /* Safari */
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100vw;
}

