/* Traveller reviews section */

.soa-reviews {
  --soa-reviews-forest: var(--brand-primary, #2c4028);
  --soa-reviews-card: #526a3d;
  --soa-reviews-gold: var(--brand-secondary, #c79b3d);
  --soa-reviews-text: #f8f7ee;
  --soa-reviews-muted: #d4d9cb;

  position: relative;
  overflow: hidden;
  padding: 72px 5vw 56px;
  background: var(--soa-reviews-forest);
  color: var(--soa-reviews-text);
}

.soa-reviews-header {
  margin: 0 auto 42px;
  max-width: 1440px;
  text-align: center;
}

.soa-reviews-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.soa-reviews-header p {
  margin: 8px 0 0;
  color: var(--soa-reviews-gold);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 700;
}

.soa-reviews-carousel {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.soa-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soa-review-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--soa-reviews-card);
}

.soa-reviews-grid .soa-review-card[hidden] {
  display: none;
}

.soa-review-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.soa-review-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  object-fit: cover;
}

.soa-review-avatar--placeholder {
  display: grid;
  place-items: center;
  background: #758560;
  font-weight: 700;
}

.soa-review-identity {
  min-width: 0;
}

.soa-review-author {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.soa-review-date {
  display: block;
  margin-top: 3px;
  color: var(--soa-reviews-muted);
  font-size: 0.85rem;
}

.soa-review-stars {
  display: flex;
  gap: 2px;
  margin: 12px 0;
  color: var(--soa-reviews-gold);
  font-size: 1.35rem;
  line-height: 1;
}

.soa-review-star {
  color: rgba(248, 247, 238, 0.35);
}

.soa-review-star.is-filled {
  color: var(--soa-reviews-gold);
}

.soa-review-text {
  margin: 0 0 10px;
  line-height: 1.65;
}

.soa-review-more {
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.soa-review-source {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 0 0;
  font-size: 0.82rem;
}

.soa-review-source a {
  color: inherit;
}

.soa-review-source-mark {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  background: #00bc73;
  color: #fff;
  font-weight: 800;
}

.soa-review-source-mark--google {
  background: #fff;
  color: #4285f4;
}

.soa-review-source-mark--direct {
  background: var(--soa-reviews-gold);
  color: #40582f;
}

.soa-reviews-next {
  position: absolute;
  top: 42%;
  right: calc(-1 * min(52px, 5vw));
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f8f2df;
  color: var(--brand-primary, #cf4e31);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.soa-reviews.is-enhanced .soa-reviews-next {
  display: grid;
}

.soa-reviews-next:hover,
.soa-reviews-next:focus-visible {
  background: #fff;
}

.soa-reviews-pagination {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.soa-reviews.is-enhanced .soa-reviews-pagination {
  display: flex;
}

.soa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

.soa-reviews-dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eee8d5;
  cursor: pointer;
}

.soa-reviews-dot.is-active,
.soa-reviews-dot:hover {
  background: var(--brand-secondary, #d94d31);
}

@media (max-width: 1000px) {
  .soa-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .soa-reviews {
    padding: 48px 20px;
  }

  .soa-reviews-grid {
    grid-template-columns: 1fr;
  }

  .soa-review-card {
    min-height: 0;
  }

  .soa-reviews-next {
    top: auto;
    right: 0;
    bottom: -4px;
    width: 40px;
    height: 40px;
  }

  .soa-reviews-pagination {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .soa-reviews *,
  .soa-reviews *::before,
  .soa-reviews *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
