/* =========================================== */
/* TESTIMONIALS SECTION STYLESHEET */
/* Luxury testimonials slider matching agafaymarrakech.com */
/* =========================================== */

/* ========================================= */
/* TESTIMONIALS SECTION WRAPPER */
/* ========================================= */
.testimonials-section {
  padding: 80px 0;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.testimonials-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================= */
/* SECTION TITLE */
/* ========================================= */
.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-subtitle {
  color: #eece9d;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  position: relative;
}

.testimonials-subtitle::before,
.testimonials-subtitle::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: #eece9d;
}

.testimonials-subtitle::before {
  left: -80px;
}

.testimonials-subtitle::after {
  right: -80px;
}

.testimonials-title {
  font-family: 'EB Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  line-height: 1.2;
}

.testimonials-description {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================= */
/* SWIPER SLIDER CONFIGURATION */
/* ========================================= */
.testimonials-swiper {
  position: relative;
  padding: 40px 0 60px;
  overflow: visible;
}

.testimonials-swiper .swiper-wrapper {
  align-items: stretch;
}

/* ========================================= */
/* TESTIMONIAL CARD DESIGN */
/* ========================================= */
.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 32px;
  margin: 0 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.3s ease;
  height: auto;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* Quote Icon */
.testimonial-quote {
  position: absolute;
  top: -20px;
  left: 32px;
  width: 40px;
  height: 40px;
  background: #eece9d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Client Profile Image */
.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #eece9d;
  margin: 0 auto 20px;
  display: block;
}

/* Review Text */
.testimonial-review {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 25px;
  font-style: italic;
  flex-grow: 1;
}

/* Star Rating */
.testimonial-rating {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: #eece9d;
}

/* Client Information */
.testimonial-client {
  text-align: center;
}

.testimonial-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
}

.testimonial-location {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
}

/* ========================================= */
/* SOCIAL PROOF ELEMENTS */
/* ========================================= */

/* Background Quote Icon */
.testimonial-quote-bg {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 120px;
  color: #eece9d;
  opacity: 0.08;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

/* Rating Row with Source */
.testimonial-rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Verified Source Badge */
.testimonial-source {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #888;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 12px;
}

.testimonial-source .source-icon {
  width: 14px;
  height: 14px;
}

/* Verified Booking Badge */
.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #bc6c25;
  background: rgba(188, 108, 37, 0.08);
  padding: 5px 12px;
  border-radius: 15px;
  margin-top: 10px;
}

.testimonial-verified .verified-icon {
  width: 14px;
  height: 14px;
  color: #28a745;
}

/* Date Display */
.testimonial-date {
  position: absolute;
  bottom: 15px;
  right: 20px;
  font-size: 0.7rem;
  color: #aaa;
  font-style: italic;
}

/* ========================================= */
/* NAVIGATION ARROWS */
/* ========================================= */
.testimonials-navigation {
  position: relative;
}

.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #2c3e50;
  font-size: 18px;
  transition: all 0.3s ease;
  top: 50%;
  margin-top: -25px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #eece9d;
  color: white;
  transform: scale(1.1);
}

.swiper-button-prev {
  left: -25px;
}

.swiper-button-next {
  right: -25px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 16px;
  font-weight: bold;
}

/* ========================================= */
/* PAGINATION DOTS */
/* ========================================= */
.swiper-pagination {
  position: relative;
  margin-top: 40px;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #eece9d;
  transform: scale(1.2);
}

/* ========================================= */
/* RESPONSIVE DESIGN */
/* ========================================= */

/* Tablet */
@media (max-width: 1024px) {
  .testimonials-title {
    font-size: 2.2rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }

  .testimonial-card {
    margin: 0 10px;
    padding: 32px 24px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-title {
    font-size: 1.8rem;
  }

  .testimonials-subtitle::before,
  .testimonials-subtitle::after {
    width: 40px;
  }

  .testimonials-subtitle::before {
    left: -60px;
  }

  .testimonials-subtitle::after {
    right: -60px;
  }

  .testimonial-card {
    margin: 0 5px;
    padding: 24px 20px;
    min-height: 300px;
  }

  .testimonial-review {
    font-size: 1.1rem;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .testimonials-container {
    padding: 0 15px;
  }

  .testimonials-title {
    font-size: 1.6rem;
  }

  .testimonials-subtitle::before,
  .testimonials-subtitle::after {
    display: none;
  }

  .testimonial-card {
    margin: 0;
    padding: 20px 16px;
  }

  .testimonial-review {
    font-size: 1rem;
  }
}

/* ========================================= */
/* ACCESSIBILITY ENHANCEMENTS */
/* ========================================= */
.testimonials-swiper:focus-within {
  outline: 2px solid #eece9d;
  outline-offset: 4px;
}

.swiper-button-prev:focus,
.swiper-button-next:focus {
  outline: 2px solid #eece9d;
  outline-offset: 2px;
}

.swiper-pagination-bullet:focus {
  outline: 2px solid #eece9d;
  outline-offset: 2px;
}

/* ========================================= */
/* LOADING STATE */
/* ========================================= */
.testimonials-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.testimonials-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #eece9d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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