/* WhistlerStays Property Reviews Component Styles */

.ws-reviews-section {
  padding: 80px 5vw;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.ws-reviews-section.bg-light {
  background: #f7faf9;
  color: #2c4442;
}

.ws-reviews-section.bg-dark {
  background: #172423;
  color: #e8f0ee;
}

.ws-reviews-section.bg-emerald {
  background: linear-gradient(135deg, #243937 0%, #1a2a29 100%);
  color: #ffffff;
}

.ws-reviews-container {
  max-width: 1280px;
  margin: 0 auto;
}

.ws-reviews-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.ws-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(61, 113, 108, 0.12);
  border: 1px solid rgba(61, 113, 108, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3d716c;
  margin-bottom: 1.25rem;
}

.ws-reviews-section.bg-dark .ws-trust-pill,
.ws-reviews-section.bg-emerald .ws-trust-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #c9e4e1;
}

.ws-pill-stars {
  color: #d4a047;
  letter-spacing: 2px;
}

.ws-reviews-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: inherit;
}

.ws-reviews-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.85;
  margin: 0;
}

/* Track and layout */
.ws-reviews-track-wrapper {
  position: relative;
  width: 100%;
}

.ws-reviews-track.layout-carousel {
  display: flex;
  gap: 1.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0.5rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: #3d716c transparent;
  -webkit-overflow-scrolling: touch;
}

.ws-reviews-track.layout-carousel::-webkit-scrollbar {
  height: 6px;
}

.ws-reviews-track.layout-carousel::-webkit-scrollbar-thumb {
  background: #3d716c;
  border-radius: 4px;
}

.ws-reviews-track.layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  padding: 1rem 0;
}

/* Individual Review Card */
.ws-review-card {
  flex: 0 0 min(360px, 85vw);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #d9e4e2;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(44, 68, 66, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #2c4442;
}

.ws-reviews-section.bg-dark .ws-review-card,
.ws-reviews-section.bg-emerald .ws-review-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f0f7f6;
  backdrop-filter: blur(10px);
}

.ws-review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(44, 68, 66, 0.12);
}

.ws-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ws-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ws-stars {
  color: #d4a047;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

.ws-source-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef5f4;
  color: #2c4442;
}

.ws-source-badge.airbnb {
  background: #ffebe9;
  color: #ff385c;
}

.ws-property-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3d716c;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-reviews-section.bg-dark .ws-property-tag,
.ws-reviews-section.bg-emerald .ws-property-tag {
  color: #a4dbd5;
}

.ws-review-headline {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.85rem;
  color: inherit;
}

.ws-review-text {
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0 0 1.5rem;
  flex-grow: 1;
}

.ws-author-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44, 68, 66, 0.08);
  margin-top: auto;
}

.ws-reviews-section.bg-dark .ws-author-meta,
.ws-reviews-section.bg-emerald .ws-author-meta {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.ws-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ws-author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3d716c;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.ws-author-details {
  display: flex;
  flex-direction: column;
}

.ws-author-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.ws-stay-date {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Nav arrows */
.ws-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.ws-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #3d716c;
  background: #ffffff;
  color: #3d716c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.ws-nav-btn:hover {
  background: #3d716c;
  color: #ffffff;
  transform: scale(1.05);
}
