:root {
  --kolor-tla: rgba(255, 249, 192, 0.9); /* Jasny pastelowy żółty */
}

body {
  margin: 0; /* Aby nie było białej ramki (marginesu) wokół zawartości strony (wokół kontenera mapy). */
  font-family: Calibri, Sans-serif;
}

#kontener-mapy {
  height: 100vh; /* Kontener mapy OpenLayers MUSI mieć zadeklarowaną wysokość. */
  background: rgb(233, 236, 239); /* Bardzo jasny, chłodny szary - taki jest w OpenStreetMap. */
}

#menu-lewe {
  position: absolute;
  top: 10px;
  left: 10px;
  /* width: 160px; */
  padding: 5px;
  border: solid 1px;
  border-radius: 4px;
  background-color: var(--kolor-tla);
  text-align: left;
  font-size: small;
  anchor-name: --menuLewe;
}

#menu-lewe label:has(input[type="checkbox"]) {
  display: block;
}

#menu-lewe-przyciski {
  width: 150px;
  display: flex;
  flex-wrap: wrap;       /* Pozwala na łamanie linii */
  justify-content: center; /* Centruje ikony w każdym wierszu niezależnie */
  gap: 8px;             /* Odstępy pionowe i poziome między przyciskami */
  box-sizing: border-box;
  padding: 0px;
  align-items: center;
}

#przycisk-gpx {
  display: inline-block;
  background: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

#gpx-input,
#gpx-info {
  display: none;
}

#gpx-tytul {
  text-align: center;
  font-weight: bold;
}

#przycisk-link-kontener {
  position: relative;
  display: inline-block;
}

#przycisk-link {
  padding: 0px;
  border: none;
  background: none;
  cursor: pointer;
}

#przycisk-link-dymek {
  display: none;
  position: absolute;
  top: 120%;
  left: 50%;
  /* transform: translateX(-50%); */
  padding: 6px 10px;
  background: rgb(51, 51, 51); /* Ciemnoszary */
  color: white;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#autor {
  text-align: center;
}

#kontener-warstw {
  position: absolute;
  top: 10px;
  left: calc(anchor(--menuLewe right) + 10px);
}

#przycisk-warstw {
  padding: 0px;
  background-color: var(--kolor-tla);
  border: solid 1px;
  border-radius: 4px;
  cursor: pointer;
  anchor-name: --przyciskWarstw;
}

#menu-warstw {
  display: none;
  padding: 5px;
  background-color: var(--kolor-tla);
  border: solid 1px;
  border-radius: 4px;
  font-size: small;
}

#kontener-warstw:hover #menu-warstw {
  display: block;
}

#kontener-warstw:hover #przycisk-warstw {
  display: none;
}

#menu-warstw label {
  display: block  /* Aby układały się jeden pod drugim. */
}

.menu-warstw-podtytul {
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
}

.ol-zoom {
  right: .5em; /* Przenosi kontrolkę z lewej strony mapy na prawą. */
  left: auto !important; /* !importan konieczne, aby było pierwszeńsatwo przed deklaracją z ol.css. */
}

.ol-rotate {
  top: 3.5em !important; /* Przesuwa kontrolkę ROTATE pod ZOOM. */
}

.ol-zoom-in,
.ol-zoom-out,
.ol-rotate button { 
  cursor: pointer;
}


#kontener-lupy {
  position: absolute;
  top: 0px;
  left: 0px;
  width:100%;
  display: none;
}

#dymek {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none; /* Zapobiega miganiu, gdy mysz wejdzie na tooltip */
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
}








.animacjaSpadanie {
  animation-name: spadanie;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  animation-iteration-count: 1;
}
@keyframes spadanie {
    0% {transform: translateY(-400px); opacity: 0;}
   50% {transform: translateY(0px); opacity: 1;}
   75% {transform: translateY(-20px)}
  100% {transform: translateY(0px)}
}

gmp-place-autocomplete {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  height: 25px;
  margin-right: 5px;
  margin-top: 5px;
  width: 250px;
}
