/* body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  font-size: 100%;
  line-height: 1.5;
} */

.map img {
  max-width: 100%;
  height: auto;
}

.map-h5{max-width: 1100px; margin: auto;}

.map-image-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.map {
  position: relative;
  max-width: 1100px;
  margin: auto;
  background-color: #ccc;
  overflow: hidden;
}
.map img {
  display: block;
  width: 100%;
}

.map-popup {
  position: absolute;
  top: 50%;
  left: 58px;
  width: 130px;
  max-width: 90vw;
  padding: 6px;
  background-color: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.22);
  z-index: 99;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  border-radius: 5px;
  text-align: center;
  /* transition: all 300ms ease-in; */
}

.map-popup > *:first-child {
  margin-top: 0;
}
.map-popup > *:last-child {
  margin-bottom: 0;
}

.map-popup.open {
  opacity: 1;
  visibility: visible;
}

.marker {
  position: absolute;
  z-index: 1;
  display: inline-block;
  width: 28px;
  height: 28px;
  color: #fff;
  line-height: 26px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 300ms;
  animation: button-pulse 3s ease-in-out infinite;
  opacity: 0.7;
  border: solid 1px rgba(185, 255, 239, 0.8);
}

/* .marker1 {
  top: 30%;
  left: 20%;
}
.marker2 {
  top: 50%;
  left: 64%;
} */

.btn-map-gallery {
  font-size: 13px;
  font-weight: 500;
  background-color: var(--lp-primary-color);
  padding: 10px;
  border-radius: 4px;
  color: white;
  margin-top: 14px;
  display: flex;
  max-width: max-content;
  margin: 2px auto;
}

.map-item {
  position: absolute;
  width: 36px;
  height: 36px;
}
.map-item .marker {
  top: auto;
  left: auto;
}

.map-item h3 {
  font-size: 14px;
  line-height: 15px;
}

/* .map-item1 {
    top: 30%;
    left: 20%;
  }
  .map-item2 {
    top: 50%;
    left: 64%;
  } */

.map-popup {
  position: absolute;
  left: 38px;
  width: 130px;
  transform: translateY(-50%);
  max-width: max-content;
  max-width: 130px;
}

.map-popup:before {
  content: "";
  position: absolute;
  top: 40%;
  left: -16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 16px 16px 0;
  border-color: transparent #fff transparent transparent;
}

.map-popup.edge-left {
  left: auto;
  right: calc(100% + 17px);
  transform: translateY(-50%);
}

.map-popup.edge-left:before {
  left: auto;
  right: -16px;
  border-width: 16px 0 16px 16px;
  border-color: transparent transparent transparent #fff;
}

.map-popup.edge-right {
  left: auto;
  right: calc(100% + 17px);
  top: calc(30% + 20px);
}

.map-popup.edge-right:before {
  left: auto;
  right: -16px;
  border-width: 16px 0 16px 16px;
  border-color: transparent transparent transparent #fff;
}

/* Ovo se odnosi samo na galeriju koja ce se prikazivati ispod vizuala */
.gallery-from-folder {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gallery-from-folder a {
  display: block;
  overflow: hidden;
  margin: auto;
}
.gallery-from-folder img {

  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.pswp-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  z-index: 1000;
}



.pswp__bg, .pswp__img {
  cursor: pointer !important;
}



@media screen and (min-width: 100px) and (max-width: 420px) {
  .marker {
    width: 16px;
    height: 16px;
    line-height: 14px;
  }
}

@media screen and (min-width: 421px) and (max-width: 890px) {
  .marker {
    width: 25px;
    height: 25px;
    line-height: 22px;
  }
}


@keyframes button-pulse {
  0% {
    transform: scale(1, 1);
    opacity: 1;
  }
  40% {
    transform: scale(1.2, 1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 1;
  }
}
