/* =====================================================
   PREMIUM RESORT REVIEWS PAGE
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Calibri;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: auto;
}

section {
  padding: 30px 0;
}

.guestbook-section {
  padding: 30px 10px;
  margin-top: 60px;
}

.section-heading {
  text-align: center;
  margin-bottom: 39px 0px;
}
.section-heading h1{
      font-size: clamp(2.5rem, 6vw, 3.2rem);
      padding: 60px 0px 0px 0px;
      font-weight: 400;
      font-style: italic;
      color: #008d77;
}
.section-heading p {
  font-size: 18px;
}

.section-heading span {
  color: #b68d40;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.section-heading h2 {
  font-family: Calibri;
  font-size: 3rem;
  margin: 15px 0;
  color: #222;
}

.section-heading p {
  max-width: 980px;
  margin: auto;
  color: darkgrey;
  padding: 0px 0px 36px;
  letter-spacing: 0.01em;
  font-size: 24px;
  font-weight: 600;
}

/* GUESTBOOK / TESTIMONIAL SLIDER WRAPPERS */

.guestbook-slider,
.testimonial-slider {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  z-index: 20;
  transition: 0.3s;
}

.slider-btn:hover {
  background: var(--teal);
  color: #fff;
}

.prev,
.review-prev {
  left: -20px;
}

.next,
.review-next {
  right: -20px;
}

@media (max-width: 992px) {
  .slider-btn {
    display: none;
  }
}

/* ─────────────── COVERFLOW CAROUSEL (shared engine) ─────────────── */

.coverflow-track {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.coverflow-item {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s ease;
  will-change: transform, opacity;
}

.coverflow-item.is-active {
  cursor: default;
}

/* Guestbook note cards inside coverflow */

      .note-card {
         background: #fff; 
           height: 430px;
        width: 320px;
        overflow: hidden;
        box-shadow:  0 10px 30px rgba(0, 0, 0, 0.06);
      }

.note-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* Testimonial cards inside coverflow */

.testimonial-card {
  width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  /* box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); */
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: justify;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  transition: opacity 0.3s ease;
}

.review-top h3 {
  margin-bottom: 5px;
}

.review-top span {
  color: #888;
  font-size: 0.9rem;
}

.stars {
  color: #e7b600;
  margin-bottom: 5px;
}

.testimonial-card p {
  color: #555;
  transition: opacity 0.3s ease;
  max-height: 220px;
  overflow-y: auto;
}

.coverflow-item:not(.is-active) .review-top,
.coverflow-item:not(.is-active) .testimonial-card p {
  opacity: 0;
  pointer-events: none;
}

/* ANIMATION */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  /* .coverflow-track {
    height: 380px;
  } */

  .note-card {
    /* width: 220px; */
    width: 321px;
    /* height: 320px; */
  }
  /* .note-card img {
    height: 320px;
  } */

  .testimonial-card {
    width: 280px;
    padding: 22px;
  }
}

@media (max-width: 480px) {
  /* .coverflow-track {
    height: 320px;
  } */
  .note-card {
    /* width: 180px; */
    width: 295px;
    /* height: 260px; */
  }
  /* .note-card img {
    height: 260px;
  } */
  .testimonial-card {
    width: 313px;
    padding: 18px;
  }
}

/* ─────────────── Lightbox1 (guestbook full-image view) ─────────────── */

.lightbox1 {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: zoom-in;
  overflow: auto;
}
.lightbox1.open {
  display: flex;
}

.lightbox1 img {
  width: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.35s ease;
  cursor: zoom-in;
}
.lightbox1 img.zoomed {
  max-width: none;
  max-height: none;
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox1-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1000;
}

.testimonial-lightbox1 {
  cursor: default;
}
.testi-lightbox1-card {
  background: #fff;
  border-radius: 20px;
  padding: 50px;
  max-width: 600px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.85);
  opacity: 0;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}
.testimonial-lightbox1.open .testi-lightbox1-card {
  transform: scale(1);
  opacity: 1;
}
.testi-lightbox1-card h3 {
  font-size: 1.7rem;
  margin-bottom: 4px;
}
.testi-lightbox1-card h4 {
  font-weight: 400;
  color: #777;
  margin-bottom: 8px;
}
.testi-lightbox1-card .stars {
  font-size: 1.2rem;
}
.testi-lightbox1-card p {
  font-size: 1.15rem;
  color: #444;
  margin-top: 22px;
  max-height: none; /* undo the clamp used on the small card */
  overflow: visible;
  opacity: 1 !important;
  text-align: justify;
}
.testi-lightbox1-card .review-top {
  opacity: 1 !important;
}

.note-card img {
  cursor: zoom-in;
}

.lightbox1-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.25s;
}
.lightbox1-nav:hover {
  background: var(--teal);
}
.lightbox1-prev {
  left: 24px;
}
.lightbox1-next {
  right: 24px;
}

@media (max-width: 640px) {
  .lightbox1-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox1-prev {
    left: 10px;
  }
  .lightbox1-next {
    right: 10px;
  }
}
