.overmap{
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2000;
  padding: 5px;
  background-color: rgba(255,255,255,0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  max-width: 300px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  transition: max-width 0.3s ease, padding 0.3s ease;
}

.overmap.expanded{
  right: 0px;
  top: 0px;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh);
}

.overmap .prev{
  max-height: 50px;
  padding: 2px;
}

.overmap .prev-container{
  display: inline-block;
  position: relative;
}

.prev-container .delete-button{
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 2px 5px;
  font-size: 0.5em;
  border-radius: 3px;
  font-weight: bold;
  text-decoration: none;
}

i.fa-solid{
  cursor: pointer;
}

.fancybox__container{
  z-index: 3000 !important;
}
@media(max-width: 800px){
  .overmap{
    right: 0px;
    top: 0px;
    padding: 3px;
    border-radius: 5px;
    max-height: calc(100%);
  }
}

#map {
    height: 100%;
    width: 100%;   /* Ширина карты */
}
html, body {
  height: 100%;
  margin: 0;
}

div.login{

}

div.sideButtons{
  float: right;
  padding-left: 10px;
}

div.sideButtons>i{
  padding-left: 10px;
}

h4,h5,h6{margin-bottom: 0; margin-top: 10px;}

.spotDescription{
  font-size: 1em;
  font-style: italic;
}

.comment{
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin: 5px 0px;
  padding: 0px 5px;
  position: relative;
}
.commentText{
  font-size: 0.8em;
  font-style: italic;
}
.comment .delete-button{
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: rgba(255, 0, 0, 0.7);
  color: white;
  padding: 2px 5px;
  font-size: 0.5em;
  border-radius: 3px;
  font-weight: bold;
  text-decoration: none;
}
