/**
** 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 #slideshow,
.single.single-room #slideshow .slideshow {
  position: relative;
}

.single.single-room #slideshow .swiper-wrapper,
.single.single-room #slideshow .swiper-wrapper img {
  max-height: 780px;
  object-fit: cover;
}

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

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

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

.single.single-room #slideshow::after {
  transform: translateX(0);
  left: 0;
  top: 6.66vw;
}

.single.single-room #slideshow .btn.all-rooms {
  position: absolute;
  top: var(--gap-m);
  left: var(--gap-m);
  z-index: 9;
  background: linear-gradient(
    89deg,
    var(--ast-global-color-2) var(--stop1),
    var(--ast-global-color-1) calc(var(--stop1) + 40%),
    #94836f var(--stop2)
  );
}

.single.single-room .btn.all-rooms::before {
  --my-size: 0.9em !important;
}

.single.single-room .room-info {
  max-width: 1200px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

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

/** Easy Booking **/
.wp-block-uagb-container.zimmer-buchungs-daten {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100vw;
  margin-bottom: 0 !important;
  padding-top: var(--gap-xl) !important;
}

.wp-block-uagb-container.zimmer-buchungs-daten
  > .uagb-container-inner-blocks-wrap {
  row-gap: 0 !important;
}

.wp-block-uagb-container.zimmer-buchungs-daten
  .eb-availability-month-headings
  h2 {
  font-size: 1rem !important;
}

.wp-block-uagb-container.zimmer-buchungs-daten div#verfuegbarkeit {
  padding-top: calc(var(--cont-gap) - var(--gap-xl));
}
.wp-block-uagb-container.zimmer-buchungs-daten div#preise {
  padding-top: var(--gap-xl);
}

/**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-m);
  right: var(--gap-m);
}

/* .imp-grundriss-popup .popup-close::after {
  content: "";
  display: block;
  --my-size: 1.5rem;
  width: var(--my-size);
  height: var(--my-size);
  background-image: url("/wp-content/themes/astra-impuls-child/img/icon-close.svg");
  background-position: center;
  background-size: contain;
}
 */

.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;
}

@media (max-width: 678px) {
  .imp-grundriss-popup .popup-close::after {
    --my-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  /*   .single .room-info-details > div:not(:last-child) {
    border-right: unset;
  }
 */
  .room-info .room-info-details > div:nth-child(1),
  .room-info .room-info-details > div:nth-child(2) {
    border-bottom: 1px solid var(--color-beige-hell) !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;
  }
}

@media (max-width: 990px) {
  .single.single-room #slideshow .slideshow {
    width: 100vw;
  }

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