/* ROOM MODULE CAROUSEL */

/* unset default Avada button styles */
.room-module .rm-button,
.room-module .rm-button-hollow {
  all: unset;
  display: inline-block;
  font: inherit;
  color: inherit;
  text-decoration: none;
  box-shadow: none;
  outline: none;
  appearance: none;
  cursor: pointer;
  border-radius: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

/* unset default Avada copy styles */

.room-module * {
  all: unset;
  display: revert;
  box-sizing: border-box;
}

/* Optional: keep default list behaviors */
.room-module ul,
.room-module ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Optional: reset form elements only if used */
.room-module input,
.room-module select,
.room-module textarea,
.room-module button {
  all: unset;
  box-sizing: border-box;
}

.room-module {
  margin-top: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.swap-columns {
  flex-direction: row-reverse;
}

.rm-left-column {
  width: 700px;
  margin-right: -60px;
}

.rm-left-column.swap-columns {
  margin-right: 0;
}

.rm-buttons-div {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Buttons */

.room-module .rm-button {
  padding: 5px 20px;
  background-color: #b3897b;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  transition: background-color 0.3s;
}

.room-module .rm-button:hover {
  background-color: #8c6b5f;
}

.room-module .rm-button-hollow {
  padding: 5px 20px;
  background-color: transparent;
  color: #b3897b;
  border: 1px solid #b3897b;
  border-radius: 50px;
  text-align: center;
  transition: background-color 0.3s, color 0.3s;
}

.room-module .rm-button-hollow:hover {
  background-color: #b3897b;
  color: #fff;
}

/* Carousel */
.room-carousel-preview {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.room-carousel-images img {
  width: 100%;
  display: none; /* Hide all images by default */
}

.room-carousel-images img:first-child {
  display: block; /* Show only the first image */
}

/* Fullscreen Gallery Modal */
.gallery-modal {
  display: flex; /* Use flexbox for centering */
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  position: fixed;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.gallery-modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 80%;
  max-width: 1200px;
}

.gallery-modal.visible {
  visibility: visible;
  opacity: 1;
}

.gallery-modal-content .gallery-image {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.gallery-modal-content .gallery-image.fade-out {
  opacity: 0;
}

/* Custom size for the floor plan modal */
#floorPlanModal .gallery-modal-content {
  max-width: 40%;
}

.close-gallery {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-gallery:hover,
.close-gallery:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* Gallery Navigation */
.gallery-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; /* Controls background size */
  height: 50px; /* Controls background size */
  background-color: rgb(47, 47, 47);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s;
}

.gallery-nav:hover {
  background-color: rgb(27, 27, 27);
}

.gallery-nav.prev {
  left: 30px;
}

.gallery-nav.next {
  right: 30px;
}

.gallery-nav img {
  width: 15px; /* Controls icon size */
  height: 15px; /* Controls icon size */
}

.rm-right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  border-style: solid;
  border-color: #b3897b;
  border-width: 1px 1px 0 1px;
  width: 500px;
  margin-top: -125px;
  padding: 80px 60px 0 80px;
  border-top-left-radius: 240px;
  border-top-right-radius: 240px;
}

.rm-right-column.swap-columns {
  padding: 80px 80px 0 60px;
  margin-right: -60px;
}

.room-module .rm-title {
  font-size: 2rem;
  border-bottom: 1px solid #b3897b;
  padding-bottom: 20px;
  font-weight: 300;
  text-align: center;
  line-height: 1.1 !important;
}

.room-module .rm-subtitle {
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  font-size: 1rem;
  margin-top: 0.1em;
  line-height: 1.1;
  color: #b3897b;
}

.room-module .room-feature-list {
  border-bottom: 1px solid #b3897b;
  margin-bottom: 20px;
}

.rm-feature-list-ul {
  display: flex;
  flex-direction: row;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.room-module .room-feature-list ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.room-module .rm-feature {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 300;
}

.floor-plan-trigger {
  cursor: pointer;
}

.room-module .rm-feature::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  background-color: transparent; /* Use the color from the SVG */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.room-module .rm-feature:nth-child(1)::before {
  width: 27px;
  height: 27px;
  background-image: url(https://demo.azuraresorts.com/wp-content/uploads/azuzra-bed.svg);
}

.room-module .rm-feature:nth-child(2)::before {
  background-image: url(https://demo.azuraresorts.com/wp-content/uploads/azura-view.svg);
}

.room-module .rm-feature:nth-child(3)::before {
  background-image: url(https://demo.azuraresorts.com/wp-content/uploads/floorplan-1.svg);
}

.room-module .rm-feature:nth-child(4)::before {
  background-image: url(https://demo.azuraresorts.com/wp-content/uploads/measurements.svg);
}

.room-module .rm-description {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0px 0px 20px 0px;
  font-weight: 300;
}

.bottom-margin-50px {
  margin-bottom: 50px;
}

.bottom-margin-80px {
  margin-bottom: 80px;
}

@media (max-width: 1024px) {
  .room-module {
    flex-direction: column;
  }
  .rm-left-column {
    margin-right: 0;
  }
  .rm-right-column {
    margin-top: 0;
    padding: 0;
    border: none;
    width: 80%;
    height: auto;
  }
  .rm-right-column-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .rm-title {
    width: 100%;
    text-align: center;
  }
  .rm-feature-list-ul {
    align-items: center;
    justify-content: center;
  }
  .rm-right-column.swap-columns {
    padding: 0;
    margin-right: 0;
  }
  #floorPlanModal .gallery-modal-content {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .rm-left-column {
    width: 90%;
  }
}
