/* RESET & LAYOUT */
body.room-page {
  margin: 0;
  font-family: 'Playfair Display', serif;
  background:  #f1f8e9;
  padding: 30px 20px;
}

.room-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.room-title {
  font-size: 40px;
  margin-bottom: 10px;
}

/* TOMBOL KEMBALI MODEREN */
.back-link {
  position: fixed;
  top: 20px;
  right: 20px; /* ← pindah ke kanan */
  z-index: 1000;
  text-decoration: none;
  color: #2e7d32;
  font-size: 22px;
  font-weight: 600;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%; /* ← jadi bulat */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.back-link:hover {
  background: #2e7d32;
  color: white;
  transform: rotate(90deg); /* ← efek rotate saat hover */
}

/* GALLERY GRID */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

/* ITEM GAMBAR & ANIMASI MUNCUL */
.gallery-item {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease, transform 0.6s ease;
  
  /* Kondisi awal sebelum muncul */
  opacity: 0;
  transform: translateY(30px);
}

/* Class ini akan ditempelkan oleh JS */
.gallery-item.appear {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: scale(1.03) !important; /* Efek zoom saat disentuh */
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* MODAL / LIGHTBOX */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 85%;
  max-height: 85%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 10px;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: translateY(-50%) scale(0.8); opacity: 0; }
  to { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* NAVIGASI MODAL */
.close, .prev, .next {
  position: absolute;
  color: white;
  font-size: 35px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
}

.close { top: 20px; right: 35px; }
.prev { top: 50%; left: 20px; transform: translateY(-50%); }
.next { top: 50%; right: 20px; transform: translateY(-50%); }

.prev:hover, .next:hover, .close:hover { color: #2e7d32; }

/* FLOATING WHATSAPP */
.float-wa-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.float-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  border-radius: 50px;
  width: 56px;
  height: 56px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.float-wa svg {
  display: block;
  flex-shrink: 0;
  min-width: 28px;
  min-height: 28px;
}

.float-wa-label {
  display: none; /* sembunyikan dulu */
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.float-wa:hover .float-wa-label {
  opacity: 1;
}

/* POPUP */
.float-wa-popup {
  background: #fff;
  border-radius: 16px;
  width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  overflow: hidden;
  display: none;
  animation: popupFade 0.3s ease;
}

.float-wa-popup.show {
  display: block;
}

@keyframes popupFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.float-wa-popup-header {
  background: #25d366;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1da851;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-wa-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.float-wa-status {
  color: rgba(255,255,255,0.8);
  font-size: 11px;
  margin: 0;
}

.float-wa-close {
  margin-left: auto;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.float-wa-close:hover {
  opacity: 1;
}

.float-wa-body {
  padding: 16px;
  background: #f0f4f8;
}

.float-wa-body p {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: inline-block;
}

.float-wa-btn {
  display: block;
  background: #25d366;
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
}

.float-wa-btn:hover {
  background: #1da851;
}