/**
** Zimmer Single
** This file contains the styles for the single room category view
*/

.single.single-room article {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

.single.single-room #primary {
  margin-top: var(--gap-xxl) !important;
}

.single.single-room #slideshow,
.single.single-room #slideshow .slideshow {
  position: relative;
}

.single.single-room
  #slideshow
  .swiper-slide
  .single.single-room
  #slideshow
  .swiper-wrapper,
.single.single-room #slideshow .swiper-wrapper img {
  max-height: 780px;
  width: 100%;
  object-fit: cover;
  display: block;
}

.single.single-room #slideshow .swiper-slide {
  height: auto !important;
}

.single.single-room #slideshow .slideshow {
  max-width: 78.13vw;
  width: 1350px;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.single.single-room #slideshow img {
  border-radius: var(--border-radius);
  width: 100%;
  height: 100%;
}

.single.single-room #slideshow::before {
  content: "";
  display: inline-block;
  background: var(--ast-global-color-1);
  z-index: 0;
  position: absolute;
  top: -1%;
  left: 0;
  width: 100%;
  height: 82.56%;
}

.single.single-room #slideshow .btn.all-rooms {
  position: absolute;
  top: var(--gap-m);
  left: var(--gap-m);
  z-index: 9;
}

.single.single-room .room-info {
  width: 1100px;
  max-width: 84vw;
  margin-left: auto;
  margin-right: auto;
}

.single.single-room .room-info .room-info-header .room-plan {
  margin-bottom: var(--gap-m);
  width: fit-content;
}

.single.single-room .room-info .room-info-header .room-plan::before {
  content: "" !important;
  display: block !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url(/wp-content/themes/astra-impuls-child/img/icon-grundriss.svg);
  --my-size: 1.429em;
  width: var(--my-size);
  height: var(--my-size);
}

.single.single-room .room-info .room-info-header .room-name,
.single.single-room .room-info .room-info-header h1 {
  margin-bottom: var(--gap-l);
}

/** Inklusivleistungen **/
.wp-block-uagb-container.cont-inklusivleistungen {
  margin-bottom: var(--gap-xl) !important;
  width: 1100px;
  max-width: 84vw !important;
}

.wp-block-uagb-container.cont-inklusivleistungen .col-1,
.wp-block-uagb-container.cont-inklusivleistungen
  .col-2
  > .wp-block-uagb-container {
  gap: var(--gap-m);
}

.wp-block-uagb-container.cont-inklusivleistungen {
  column-gap: calc(var(--gap-l) + var(--gap-m)) !important;
}

.wp-block-uagb-container.cont-inklusivleistungen > .wp-block-uagb-container {
  gap: var(--gap-l) !important;
}

.wp-block-uagb-container.cont-inklusivleistungen
  > .wp-block-uagb-container
  > .wp-block-uagb-container {
  gap: var(--gap-s) !important;
}

.wp-block-uagb-container.cont-btns {
  width: 1100px;
  max-width: 84vw !important;
}

/**POPUP GRUDNIRSS*/

.imp-grundriss-popup {
  position: fixed;
  width: 100vw;
  height: 100%;
  display: block;
  top: 0;
  background-color: #3e383a90;
  justify-content: center;
  align-items: center;
  display: flex;
  z-index: 99999;
}

.imp-grundriss-popup[visible="false"] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
}

.imp-grundriss-popup[visible="true"] {
  opacity: 1;
  transition:
    opacity 0.5s ease-in-out,
    transform 0.5s ease-in-out;
  pointer-events: auto;
  transform: scale(1);
}

.imp-grundriss-popup .imp-grundriss-popup-content-wrapper {
  max-width: 80vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  position: relative;
}

.imp-grundriss-popup .popup-close {
  position: absolute;
  top: var(--gap-s);
  right: var(--gap-s);
}

.imp-grundriss-popup .popup-close::after {
  content: "";
  display: block;
  --my-size: 1.5rem;
  width: var(--my-size);
  height: var(--my-size);
  background-color: var(--ast-global-color-1);
  -webkit-mask-image: url("/wp-content/themes/astra-impuls-child/img/icon-close.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("/wp-content/themes/astra-impuls-child/img/icon-close.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  cursor: pointer;
}

.imp-grundriss-popup img {
  max-height: 80vh;
  width: 50vw;
  border-radius: var(--border-radius);
}

@media (max-width: 1024px) {
  .imp-grundriss-popup img {
    width: 80vw;
  }

  .single.single-room #slideshow::before {
    display: none;
  }

  .single.single-room #slideshow,
  .single.single-room #slideshow .slideshow,
  .single.single-room #slideshow .slideshow-wrapper {
    width: 100vw;
    max-width: unset;
    justify-self: center;
  }
  .single.single-room #slideshow img {
    border-radius: 0;
  }
}
@media (max-width: 990px) {
  .single.single-room #slideshow .slideshow {
    width: 100vw;
  }

  .cont-btns.cont-room-btns .uagb-buttons__wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .imp-grundriss-popup .popup-close::after {
    --my-size: 1.2rem;
  }
  .room-info .room-info-details > div:nth-child(1),
  .room-info .room-info-details > div:nth-child(2) {
    border-bottom: 2px solid var(--ast-global-color-0) !important;
  }

  .single .room-info-details > div:nth-child(2) {
    border-right: none !important;
  }

  .single.single-room .room-info {
    width: 84vw;
  }

  .room-info > .room-info-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  .room-info > .room-info-details > div {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: var(--gap-m) 0 20px 0;
  }
  body.single.single-room #primary {
    margin-top: var(--gap-xl) !important;
  }

  body.single.single-room #theme-logo,
  body.single.single-room #theme-logo img {
    max-height: 70px;
  }
}
