/* Reset marginesów */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Calibri, sans-serif;
  overflow-x: hidden; /* zapobiega przewijaniu w poziomie */
}

/* Kontener mapy */
#map {
  width: 100%;
  height: 100vh;
}

/* Styl suwaka i etykiety */
#yearSlider {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 200px;
  z-index: 1000;
  cursor: pointer;
}

#yearLabel {
  font-weight: bold;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  top: -28px;
  left: 0;
  font-size: 14px;
  color: #333;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* Kontener label + suwak */
#sliderContainer {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255,255,255,0.9);
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 1000;
}

.map-overlay {
  position: absolute;
  top: 10px;
  right: 10px; /* zamiast left */
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-height: 90vh;
  overflow-y: auto;
}

.ol-popup {
  position: absolute;
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: none; /* DODAJ */
  max-width: 90vw;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1001;
}

/* #popup {
  display: none;
} */


.ol-popup {
  max-width: 90vw;
  box-sizing: border-box;
}

.ol-popup img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}


#controls {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.8);
  padding: 8px;
  border-radius: 6px;
  z-index: 1000;
}

#photo-popup {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background: white;
  padding: 10px;
  border: 1px solid #ccc;
  display: none;
  max-width: 400px;
  max-height: 350px;
  overflow: auto;
  z-index: 9999;
}

#photo-popup img {
  max-width: 300px;
  max-height: 300px;
}