/* ============================================================
   Bohemia Design System — Testimonials
   ============================================================ */

/* Section header */
.testimonials-header {
  margin-bottom: var(--bh-sp-2);
}

/* Carousel wrapper */
.testimonials-carousel-wrap {
  position: relative;
}

/* Navigation arrows */
.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: var(--bh-radius-full);
  border: none;
  background: white;
  color: var(--bh-stone-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--bh-dur-fast) ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.testimonial-arrow:hover {
  background: var(--bh-garnet-600);
  color: white;
  box-shadow: 0 4px 16px rgba(184, 43, 74, 0.3);
}

.testimonial-arrow.prev {
  left: 12px;
}

.testimonial-arrow.next {
  right: 12px;
}

/* Card */
.testimonial-card {
  background: var(--bh-surface-card);
  border-radius: var(--bh-radius-xl);
  padding: var(--bh-sp-6);
  margin: 0 0 var(--bh-sp-16);
  transition: all var(--bh-dur-norm) var(--bh-ease-out);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
  border: none;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bh-garnet-600), var(--bh-garnet-400));
  opacity: 0;
  transition: opacity var(--bh-dur-norm) ease;
}

.testimonial-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 12px 36px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.testimonial-card:hover::before {
  opacity: 1;
}

/* Card top: score + quote */
.testimonial-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--bh-sp-4);
}

.testimonial-rating-block {
  display: flex;
  align-items: center;
  gap: var(--bh-sp-2);
}

.testimonial-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-garnet-600);
  color: white;
  font-family: var(--bh-font-mono);
  font-size: var(--bh-text-sm);
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: var(--bh-radius-lg);
  line-height: 1;
}

.testimonial-score-label {
  font-size: var(--bh-text-xs);
  font-weight: 600;
  color: var(--bh-stone-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quote icon */
.testimonial-quote-icon {
  color: var(--bh-garnet-200);
  flex-shrink: 0;
  opacity: 0.4;
}

/* Review title */
.testimonial-title {
  font-size: var(--bh-text-md);
  font-weight: 700;
  color: var(--bh-stone-800);
  margin: 0 0 var(--bh-sp-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
  line-height: 1.4;
}

/* Review text */
.testimonial-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: ellipsis;
  margin: 0 0 var(--bh-sp-5);
  font-size: var(--bh-text-base);
  line-height: 1.7;
  color: var(--bh-stone-500);
  flex: 1;
}

.testimonial-card.active .testimonial-content {
  font-size: var(--bh-text-xl);
  -webkit-line-clamp: 3;
  line-height: 1.5;
  color: var(--bh-text-primary);
  font-family: var(--bh-font-display);
  font-style: italic;
}

/* Footer */
.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bh-sp-3);
  border-top: 1px solid var(--bh-stone-100);
  padding-top: var(--bh-sp-4);
}

/* Author */
.testimonial-author-container {
  display: flex;
  align-items: center;
  gap: var(--bh-sp-3);
  min-width: 0;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--bh-radius-full);
  background: linear-gradient(135deg, var(--bh-garnet-600), var(--bh-garnet-400));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--bh-text-sm);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(184, 43, 74, 0.25);
}

.testimonial-author-container > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.author-name {
  font-weight: 700;
  color: var(--bh-stone-700);
  font-size: var(--bh-text-sm);
  line-height: 1.3;
}

.author-origin {
  font-size: var(--bh-text-xs);
  color: var(--bh-stone-400);
  line-height: 1.3;
}

/* Hotel link */
.testimonial-hotel {
  display: flex;
  align-items: center;
  gap: var(--bh-sp-1);
  font-size: var(--bh-text-xs);
  color: var(--bh-garnet-600);
  text-decoration: none;
  transition: color var(--bh-dur-fast) ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  flex-shrink: 0;
}

.testimonial-hotel:hover {
  color: var(--bh-garnet-800);
}

.testimonial-hotel svg {
  flex-shrink: 0;
}

/* Legacy */
.testimonials-section .rating {
  font-size: var(--bh-text-lg);
  color: var(--bh-gold-400);
  margin-bottom: var(--bh-sp-4);
}

.stars {
  font-size: var(--bh-text-lg);
  color: var(--bh-gold-400);
  margin-bottom: var(--bh-sp-3);
  letter-spacing: 2px;
}

.date {
  font-size: var(--bh-text-xs);
  color: var(--bh-stone-400);
}

/* ----- TESTIMONIALS PAGE ----- */
.testimonials-page .testimonial-card {
  flex: 1 0 30rem;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.testimonials-page .testimonial-content {
  overflow: unset;
  display: revert;
  -webkit-box-orient: unset;
  -webkit-line-clamp: unset;
  text-overflow: unset;
  margin-bottom: var(--bh-sp-16);
  font-size: unset;
  line-height: unset;
}

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

@media (max-width: 768px) {
  .testimonial-card {
    margin: var(--bh-sp-1) var(--bh-sp-2) var(--bh-sp-12);
    min-height: 240px;
    padding: var(--bh-sp-5);
  }

  .testimonial-card.active .testimonial-content {
    font-size: var(--bh-text-lg);
    -webkit-line-clamp: 5;
  }

  .testimonial-content {
    font-size: var(--bh-text-sm);
  }

  .testimonial-quote-icon {
    width: 32px;
    height: 32px;
  }

  .testimonial-avatar {
    width: 32px;
    height: 32px;
    font-size: var(--bh-text-xs);
  }

  .testimonial-score-badge {
    width: 34px;
    height: 34px;
    font-size: var(--bh-text-xs);
  }

  .testimonial-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-hotel {
    max-width: 100%;
  }

  .testimonial-arrow {
    width: 36px;
    height: 36px;
  }

  .testimonial-arrow.prev {
    left: 4px;
  }

  .testimonial-arrow.next {
    right: 4px;
  }

  .testimonials-page .testimonial-card {
    flex: 1 0 20rem;
  }
}

@media (max-width: 480px) {
  .testimonials-page .testimonial-card {
    flex: 1 0 12.5rem;
  }
}
