@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");
body {
  margin: 0;
  display: flex;
  flex-direction: row;
  background: #f5f5f5;
  height: 100svh;
  align-items: center;
  margin-inline: 2svh;
  font-family: "Figtree";
}

#map {
  height: 95svh;
  flex: 1;
  background: #e7efeb;
  border-radius: 10px;
  border: 1px solid #d7d7d7;
  z-index: 2;
}

.leaflet-control-zoom {
  display: none;
}

.leaflet-control-attribution {
  display: none;
}

/* Popup */
.leaflet-popup-tip-container {
  display: none;
}
.leaflet-popup-close-button {
  display: none;
}
.leaflet-popup-content-wrapper {
  margin: 0;
  background: #ffffffe3;
  border-radius: 5px;
}
.leaflet-popup-content {
  margin: 5px 10px;
  text-align: center;
}

#infoContainer {
  height: 100svh;
  overflow-y: scroll;
  width: 100%;
  flex: 2;
  margin-left: 20px;
  z-index: 2;
}

#infoContainer > div:first-child {
  padding-top: 80px;
}

.hikeContainer {
  display: flex;
  flex-direction: row;
}

.sideDotLine {
  display: flex;
  flex-direction: column;
}
.line {
  margin-left: 9.5px;
  border-left: 1px solid #a9a9a9;
  height: 100%;
}
.lineShort {
  margin-left: 9.5px;
  border-left: 1px solid #a9a9a9;
  height: 10px;
}
.lineShortHidden {
  margin-left: 9.5px;
  height: 10px;
}

.hikeHeader > h1 {
  line-height: 0;
  font-weight: 600;
  font-size: 1.6rem;
  color: #2d2d2d;
}
.hikeHeader > h3 {
  line-height: 0;
  font-weight: 200;
  margin-bottom: 40px;
  font-size: 1.2rem;
}
.hikeInfo {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
  gap: 10px;
}
.hikeImageContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 80px;
  max-width: 80vw;
}
.hikeImageContainer > img {
  height: 150px;
  border-radius: 6px;
  cursor: pointer;
  max-width: 100%;
}

#imageViewer {
  position: absolute;
  background: #ffffff96;
  width: 98%;
  height: 100svh;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.hidden {
  opacity: 0;
  z-index: 1;
}
.shown {
  opacity: 1;
  z-index: 1000;
}

#imageViewerImage {
  max-width: 90svw;
  max-height: 85svh;
  z-index: 10;
  transition: all 0.3s;
  border-radius: 4px;
}
.hidden > #imageViewerImage {
  opacity: 0;
}
.shown > #imageViewerImage {
  opacity: 1;
}

#closeImageHint {
  position: fixed;
  top: 91svh;
  pointer-events: none;
  color: #515151;
  font-weight: 500;
}

#loadingSpinner {
  width: 3rem;
  position: absolute;
  z-index: 5;
}
@media screen and (max-width: 800px) {
  body {
    flex-direction: column;
  }
  #map {
    width: 100%;
    min-height: 40svh;
    margin-top: 2svh;
  }
  .hikeHeader > h1 {
    font-size: 1.3rem;
  }
  .hikeHeader > h3 {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  #infoContainer {
    margin-left: 0px;
  }
  #infoContainer > div:first-child {
    padding-top: 40px;
  }
}
