/* ==========================================================================
   Rainbow Guest House - Rooms Page Stylesheet (rooms.css)
   ========================================================================== */

:root {
  --rooms-primary-purple: #8E43F0;
  --rooms-primary-hover: #731ee0;
  --rooms-heading-dark: #150E1F;
  --rooms-body-muted: #584D66;
  --rooms-bg-light-purple: #F3F1F6;
  --rooms-bg-white: #FFFFFF;
  --rooms-border-light: #EAE6F0;
  
  --rooms-font-heading: 'Poppins', sans-serif;
  --rooms-font-body: 'Lato', sans-serif;
  --rooms-font-btn: 'Open Sans', sans-serif;

  --rooms-container-width: 1200px;
  --rooms-transition-fast: 0.25s ease;
  --rooms-transition-normal: 0.35s ease;
}

/* Page body scoped defaults */
.page-rooms {
  background-color: var(--rooms-bg-white);
  color: var(--rooms-body-muted);
  font-family: var(--rooms-font-body);
}

/* --------------------------------------------------------------------------
   Hero Section & Background Carousel
   -------------------------------------------------------------------------- */
.rooms-hero-section {
  position: relative;
  min-height: 540px;
  background-color: #261633; /* Dark plum fallback */
  display: flex;
  align-items: center;
  padding: 160px 0 100px 0;
  overflow: hidden;
}

/* Background Carousel Slides */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 1.2s ease-in-out, transform 6s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s ease-in-out;
  pointer-events: none;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Hero Carousel Navigation Dots */
.hero-carousel-dots {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0;
  transition: all 0.35s ease;
  outline: none;
}

.hero-carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.85);
  transform: scale(1.15);
}

.hero-carousel-dot.is-active {
  width: 32px;
  border-radius: 6px;
  background-color: var(--rooms-primary-purple);
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(142, 67, 240, 0.7);
}

.rooms-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 18, 24, 0.62) 0%, rgba(20, 10, 25, 0.58) 100%);
  z-index: 1;
}

.rooms-hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--rooms-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.rooms-hero-content {
  max-width: 580px;
}

.rooms-hero-title {
  font-family: var(--rooms-font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.rooms-hero-description {
  font-family: var(--rooms-font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Rooms Section & 2 Featured Room Cards
   -------------------------------------------------------------------------- */
.rooms-section {
  background-color: var(--rooms-bg-light-purple);
  padding: 85px 0 95px 0;
}

.rooms-container {
  width: 100%;
  max-width: var(--rooms-container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}

.section-header-row .header-text-col {
  max-width: 600px;
}

.section-title {
  font-family: var(--rooms-font-heading);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--rooms-heading-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-family: var(--rooms-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rooms-body-muted);
  margin: 0;
}

.btn-purple {
  display: inline-block;
  background-color: var(--rooms-primary-purple);
  color: #ffffff;
  font-family: var(--rooms-font-btn);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(142, 67, 240, 0.35);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--rooms-transition-fast);
  white-space: nowrap;
}

.btn-purple:hover {
  background-color: var(--rooms-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(142, 67, 240, 0.45);
}

.room-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 70px;
}

.room-card {
  display: flex;
  flex-direction: column;
}

.room-image-wrap {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  background-color: #E6E1EE;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(21, 14, 31, 0.05);
  transition: transform var(--rooms-transition-normal), box-shadow var(--rooms-transition-normal);
}

.room-card:hover .room-image-wrap {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21, 14, 31, 0.12);
}

.room-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.room-card:hover .room-image-wrap img {
  transform: scale(1.04);
}

.room-details {
  padding-top: 22px;
}

.room-name {
  font-family: var(--rooms-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rooms-heading-dark);
  margin-bottom: 10px;
}

.room-description {
  font-family: var(--rooms-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--rooms-body-muted);
  margin-bottom: 16px;
}

.room-readmore-link {
  font-family: var(--rooms-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rooms-primary-purple);
  border-bottom: 2px solid var(--rooms-primary-purple);
  padding-bottom: 2px;
  display: inline-block;
  text-decoration: none;
  transition: color var(--rooms-transition-fast), border-color var(--rooms-transition-fast);
}

.room-readmore-link:hover {
  color: var(--rooms-primary-hover);
  border-color: var(--rooms-primary-hover);
}

/* --------------------------------------------------------------------------
   Image Placeholder Generic Styles
   -------------------------------------------------------------------------- */
.image-placeholder,
.room-image-placeholder,
.gallery-image-placeholder {
  width: 100%;
  height: 100%;
  background-color: #EDE9F3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border: 1.5px dashed #C3B8D4;
  border-radius: 4px;
  transition: background-color var(--rooms-transition-fast), border-color var(--rooms-transition-fast);
}

.room-card:hover .room-image-placeholder {
  background-color: #E4DDF0;
  border-color: var(--rooms-primary-purple);
}

.gallery-photo-item:hover .gallery-image-placeholder {
  background-color: #E4DDF0;
  border-color: var(--rooms-primary-purple);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.placeholder-icon {
  color: var(--rooms-primary-purple);
  opacity: 0.75;
}

.placeholder-label {
  font-family: var(--rooms-font-btn);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #584D66;
  line-height: 1.4;
  max-width: 220px;
}

/* --------------------------------------------------------------------------
   Gallery Category Headings & Grids
   -------------------------------------------------------------------------- */
.gallery-category-heading-wrap {
  text-align: center;
  margin: 65px 0 35px 0;
}

.gallery-category-title {
  font-family: var(--rooms-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rooms-heading-dark);
}

/* 3-Column Grid for Rooms (21 Images) */
.gallery-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 3-Column Grid for Washroom (5 Images) */
.gallery-grid-washroom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* 2-Column Grid for Reception & Outdoor Attractions (4 Images Each) */
.gallery-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.gallery-photo-item {
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform var(--rooms-transition-fast), box-shadow var(--rooms-transition-fast);
}

.gallery-photo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  overflow: hidden;
  background-color: #EDE9F3;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-photo-item:hover .photo-frame img {
  transform: scale(1.06);
}

.photo-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(142, 67, 240, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  opacity: 0;
  transition: opacity var(--rooms-transition-fast);
  z-index: 2;
}

.gallery-photo-item:hover .photo-hover-overlay {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   CTA Banner Section
   -------------------------------------------------------------------------- */
.cta-banner-section {
  position: relative;
  background-color: #1a1224; /* Dark plum banner background */
  padding: 100px 24px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.cta-placeholder-layer {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 3;
  pointer-events: none;
}

.cta-placeholder-label {
  display: inline-block;
  font-family: var(--rooms-font-btn);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  border: 1px dashed rgba(255, 255, 255, 0.45);
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(15, 10, 22, 0.45);
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(22, 17, 30, 0.75);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--rooms-font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-subtitle {
  font-family: var(--rooms-font-body);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta-badge {
  display: inline-block;
  font-family: var(--rooms-font-btn);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-phone-wrap {
  margin-top: 6px;
}

.cta-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #ffffff;
  font-family: var(--rooms-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: color var(--rooms-transition-fast), transform var(--rooms-transition-fast);
}

.cta-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-phone-link:hover {
  color: #d1b5ff;
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Floating Quick Action Buttons
   -------------------------------------------------------------------------- */
.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform var(--rooms-transition-fast), box-shadow var(--rooms-transition-fast);
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: #ffffff;
}

.floating-whatsapp {
  background-color: #25D366;
}

.floating-phone {
  background-color: var(--rooms-primary-purple);
}

/* --------------------------------------------------------------------------
   Interactive Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 10, 22, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-placeholder-box {
  width: 600px;
  max-width: 88vw;
  aspect-ratio: 1.35 / 1;
  background-color: #261B33;
  border: 2px dashed #8E43F0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-placeholder-text {
  font-family: var(--rooms-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.4;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 42px;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 2010;
  transition: transform 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: var(--rooms-primary-purple);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2010;
  transition: background var(--rooms-transition-fast), transform var(--rooms-transition-fast);
}

.lightbox-arrow:hover {
  background: var(--rooms-primary-purple);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .rooms-hero-title {
    font-size: 3.25rem;
  }
}

@media (max-width: 768px) {
  .rooms-hero-section {
    padding: 130px 0 80px 0;
    min-height: 480px;
  }

  .rooms-hero-title {
    font-size: 2.6rem;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .room-cards-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-grid-3col,
  .gallery-grid-washroom {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid-2col {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 2.1rem;
  }

  .cta-phone-link {
    font-size: 1.85rem;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (max-width: 576px) {
  .rooms-hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .gallery-category-title {
    font-size: 1.85rem;
  }

  .gallery-grid-3col,
  .gallery-grid-washroom {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 1.7rem;
  }

  .cta-phone-link {
    font-size: 1.45rem;
  }
}
