/* =========================================================
   Home page: "What Our Travellers Say" slider
   Heading and divider reuse .luxury-heading-row and
   .provide-line / .provide-dot from styles.css.
   ========================================================= */

.testimonials-section {
  background: #fff;
  padding: clamp(60px, 10vh, 100px) 20px clamp(60px, 10vh, 100px);
  text-align: center;
  overflow: hidden;
}

.testimonials-lines {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: clamp(28px, 5vh, 44px);
}

.testimonials-slider {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
}

/* Native horizontal scrolling: follows touchpad two-finger swipes,
   touch swipes and mouse drags, then snaps to the nearest review. */
.testimonials-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  /* Stops a sideways swipe at either end from triggering the
     browser's back/forward gesture */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.testimonials-viewport::-webkit-scrollbar {
  display: none;
}

.testimonials-viewport.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.testimonials-viewport:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: -2px;
}

.testimonials-track {
  display: flex;
}

/* Three reviews side by side on desktop, two on tablets, one on phones.
   Keep the 1024px / 768px breakpoints in sync with testimonials-slider.js. */
.testimonial-slide {
  flex: 0 0 calc(100% / 3);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  /* Room for the card shadow inside the clipped viewport,
     and half of the gap between the two cards */
  padding: 10px 14px 36px;
}

@media (max-width: 1024px) {
  .testimonial-slide {
    flex-basis: 50%;
  }
}

@media (max-width: 768px) {
  .testimonial-slide {
    flex-basis: 100%;
    padding: 10px 12px 28px;
  }
}

.testimonial-card {
  height: 100%;
  padding: clamp(22px, 3vw, 30px) clamp(20px, 2.5vw, 32px) clamp(20px, 3vw, 26px);
  background: #fff;
  border-radius: 10px;
  border-top: 3px solid var(--primary-teal);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-quote-mark {
  display: block;
  font-family: "Kaisei Opti", serif;
  font-size: 54px;
  line-height: 0.6;
  height: 22px;
  color: var(--primary-teal);
  margin-bottom: 10px;
  user-select: none;
}

.testimonial-text {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: #444;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  min-height: calc(1.75em * 4);
}

.testimonial-author {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-name {
  font-family: "Kaisei Opti", serif;
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  color: #1e1e1e;
  line-height: 1.3;
}

.testimonial-date {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #777;
}

/* Controls */
.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 14px;
}

.testimonials-arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #141414;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.testimonials-arrow:hover,
.testimonials-arrow:focus-visible {
  background: #141414;
  border-color: #141414;
  color: var(--primary-teal);
}

.testimonials-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.testimonials-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50px;
  background: #cfcfcf;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.testimonials-dot[aria-current="true"] {
  width: 24px;
  background: #141414;
}

.testimonials-arrow:focus-visible,
.testimonials-dot:focus-visible,
.testimonials-link:focus-visible {
  outline: 2px solid var(--primary-teal);
  outline-offset: 3px;
}

.testimonials-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #141414;
  text-decoration: none;
  border-bottom: 1px solid var(--primary-teal);
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.testimonials-link:hover {
  color: #00796b;
}

.testimonials-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.testimonials-link:hover i {
  transform: translateX(3px);
}

@media (max-width: 600px) {
  .testimonial-text {
    -webkit-line-clamp: 5;
    line-clamp: 5;
    min-height: calc(1.75em * 5);
  }
}
