/**
* Block Name: map
*/

section.map {
  max-height: 750px;
  border-top: 1px solid #818081;
  z-index: 999;
  overflow: hidden;
}

section.map .container-fluid,
section.map .container-fluid .row {
  max-height: 750px;
}

section.map .acf-map {
  width: 100%;
  height: 100%;
  border: none;
  margin: 0;
}

/* Fixes potential theme css conflict. */
section.map .acf-map img {
  max-width: inherit !important;
}

section.map .referenz_map {
  display: flex;
  width: 100%;
  height: 750px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  flex: 2 0 0%;
}

section.map .referenz_info {
  display: flex;
  transition: width 200ms ease-in-out;
  width: 0; /* Start with zero width */
  overflow: hidden; /* Prevents content from spilling out */
  padding: 0;
  flex-direction: column;
  border-right: 1px solid #818081;
  border-left: 1px solid #818081;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

section.map .referenz_info:before {
  content: "";
  background: url("../../../img/static.png") center center repeat, #323232;
  background-blend-mode: overlay;
  background-size: contain;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
  opacity: 0.08;
}

section.map .referenz_info .image_wrapper {
  border-radius: 10px;
  border: 1px solid rgba(129, 177, 177, 0.38);
  box-shadow: 0px 64px 44px 0px rgba(0, 0, 0, 0.25);
  max-height: 188px;
  width: 100%;
  overflow: hidden;
}

section.map .referenz_info .image_frame {
  position: relative;
  top: 0;
  left: 0;
  overflow: hidden;
  right: 0;
  bottom: 0;
}

section.map .referenz_info p {
  border-top: 1px solid var(--petrol);
  padding: 15px 0;
  margin-bottom: 0;
  opacity: 0.5;
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

section.map .referenz_info p span:nth-of-type(2) {
  text-align: right;
}

section.map .referenz_info .close {
  cursor: pointer;
  margin-top: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 999;
}

@media (max-width: 767px) {
  section.map .referenz_info .close {
    margin: 20px 0;
  }
  section.map .referenz_info p {
    flex-direction: column;
    gap: 15px;
  }

  section.map .referenz_info p span:nth-of-type(2) {
    text-align: left;
  }
}
