#room-listing-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.room-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.room-card>img {
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  cursor: pointer;
}

.room-card p {
  margin: 0;
}

.room-card .highlights {
  font-size: 15px;
  line-height: 24px;
  padding: 0 15px;
  color: var(--primary-color);
}


.room-card .room-title {
  padding: 0 15px;
  color: var(--title-black);
}

.room-card .room-title .title-font:nth-child(1) {
  font-size: 36px;
  line-height: 43px;
}

.room-card .room-title .title-font:nth-child(2) {
  font-size: 24px;
  line-height: 45px;
}

.room-card .room-excerpt {
  font-size: 18px;
  line-height: 26px;
  padding: 0 15px;
  color: var(--para-black);
}

.room-card .room-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 15px;
  column-gap: 15px;
  padding: 0;
  margin: 0;
  color: var(--para-black);
}


.room-card .room-meta>div {
  display: flex;
  gap: 7px;
  font-size: 14px;
  line-height: 28px;
  align-items: center;
}

.room-card .room-meta .icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  height: 25px;
  width: 25px;
}

.room-card .room-meta .size {
  background-image: url(../images/size_icon.svg);

}

.room-card .room-meta .guests {
  background-image: url(../images/guests.svg);
}

.room-card .room-meta .bed {
  background-image: url(../images/bed.svg);
}

.room-card .room-meta .bath {
  background-image: url(../images/bathroom.svg);
}



.room-card .book-btn {
  font-size: 16px;
  font-family: var(--title-font) !important;
  color: var(--title-black) !important;
  width: fit-content;
  align-self: center;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  display: flex;
  gap: 7px;
}

.room-card .book-btn .right-arrow {
  background-image: url(../images/chevron-right.svg);
  width: 18px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.room-card .book-btn:hover {
  text-decoration: none;
  color: var(--title-black);
}

.room-card .book-btn::after {
  content: '';
  position: absolute;
  height: 2px;
  width: 100%;
  left: 0;
  bottom: -1px;
  background: var(--primary-color);
}

.rla-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 40px;
}

.rla-page-btn {
  margin: 0 4px;
  padding: 6px 12px;
  cursor: pointer;
  background: none;
  border: 0;
}

.rla-page-btn.active {
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
}

.rla-page-arrow {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 6px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
  padding: 0;
}

.rla-page-arrow:disabled {
  cursor: not-allowed;
}

.arrow-img {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.left-arrow {
  background-image: url(../images/chevron-right.svg);
  transform: rotate(180deg);
}

.right-arrow {
  background-image: url(../images/chevron-right.svg);
}




/* Loader Overlay */
#room-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#room-loader .loader-spinner {
  border: 8px solid #e3eefd;
  border-top: 8px solid var(--primary-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Lightbox overlay */
.gallery-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Container (Owl) inside overlay */
.room-gallery-lightbox {
  width: 90vw;
  max-width: 1200px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.room-gallery-lightbox.owl-loaded {
  opacity: 1;
}

/* Slides */
.room-gallery-lightbox .gallery-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.gallery-large {
  max-height: 500px;
  min-height: 300px;
  object-fit: cover;
}

/* Close button */
.gallery-lightbox-close {
  position: absolute;
  top: 24px;
  right: 20px;
  background: #fff;
  color: #222;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 100000;
}

/* Owl nav buttons inside overlay */
.room-gallery-lightbox .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.room-gallery-lightbox .owl-nav button.owl-prev,
.room-gallery-lightbox .owl-nav button.owl-next {
  pointer-events: auto;
  background: #fff !important;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.room-gallery-lightbox .owl-nav button span,
.room-gallery-lightbox .owl-nav button .owl-nav-prev,
.room-gallery-lightbox .owl-nav button .owl-nav-next {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Optional: use same chevron for both, rotate for prev */
.room-gallery-lightbox .owl-nav button.owl-next span,
.room-gallery-lightbox .owl-nav button.owl-next .owl-nav-next {
  background-image: url('../images/chevron-right.svg');
}

.room-gallery-lightbox .owl-nav button.owl-prev span,
.room-gallery-lightbox .owl-nav button.owl-prev .owl-nav-prev {
  background-image: url('../images/chevron-right.svg');
  transform: rotate(180deg);
}

/* Owl dots */
.room-gallery-lightbox .owl-dots {
  position: absolute;
  bottom: -32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.room-gallery-lightbox .owl-dot span {
  width: 8px;
  height: 8px;
  background: #d0d0d0;
  border-radius: 50%;
  display: block;
}

.room-gallery-lightbox .owl-dot.active span {
  background: #fff;
}

/* Ensure single, horizontal slide layout inside overlay */
.room-gallery-lightbox .owl-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 0;
}

.room-gallery-lightbox .owl-stage-outer {
  overflow: hidden;
}

/* Owl Thumbs inside overlay */
.gallery-lightbox-overlay .owl-thumbs {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  margin: 16px auto 0;
  overflow-x: auto;
}

.gallery-lightbox-overlay .owl-thumb-item {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.gallery-lightbox-overlay .owl-thumb-item img,
.gallery-lightbox-overlay .owl-thumb-item span {
  display: block;
  height: 100%;
  max-height: 100px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* Active/current slide highlight */
.gallery-lightbox-overlay .owl-thumb-item.active {
  opacity: 0.7;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Disable background scroll when overlay is open */
body.gallery-lock-scroll {
  overflow: hidden;
}

@media(max-width: 1023px) {
  #room-listing-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 767px) {
  #room-listing-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }

  .gallery-lightbox-overlay .owl-thumbs {
    display: none !important;
  }

  .room-gallery-lightbox .owl-stage {
    align-items: start;
  }
}

/* Landscape phones */
@media only screen and (max-height: 500px) and (orientation: landscape) {
  .gallery-lightbox-overlay .owl-thumbs {
    display: none !important;
  }

  .room-gallery-lightbox .owl-stage {
    align-items: start;
  }
}