/* ==========================================================================
   Rainbow Guest House - What Our Guests Say (Guest Reviews) Styles
   ========================================================================== */

:root {
  --reviews-heading-color: #191323;   /* Very dark purple-black */
  --reviews-subtitle-color: #454B69;  /* Muted blue-gray */
  --reviews-card-bg: #FFFFFF;
  --reviews-card-radius: 12px;
  --reviews-card-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --reviews-star-filled: #F9B900;     /* Rich gold-yellow */
  --reviews-star-empty: #D1D5DB;      /* Soft neutral gray */
}

/* --------------------------------------------------------------------------
   Section Wrapper & Vertical Background Gradient
   -------------------------------------------------------------------------- */
.guest-reviews-section {
  position: relative;
  width: 100%;
  /* Smooth vertical gradient matching reference: #F5F2F8 down to #858585 */
  background: linear-gradient(180deg, #F5F2F8 0%, #E6E3EB 35%, #C2BECA 68%, #858585 100%);
  padding-top: 80px;
  padding-bottom: 135px;
  overflow: hidden;
}

.guest-reviews-container {
  width: 100%;
  max-width: 1270px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   Header: Centered Heading & Subtitle
   -------------------------------------------------------------------------- */
.guest-reviews-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 85px; /* Ample space for overlapping card avatars */
}

.guest-reviews-heading {
  color: var(--reviews-heading-color);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin: 0;
}

.guest-reviews-subtitle {
  color: var(--reviews-subtitle-color);
  font-size: 16.5px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.1px;
  margin-top: 26px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Review Carousel Wrapper & Navigation Controls
   -------------------------------------------------------------------------- */
.guest-reviews-carousel-wrapper {
  position: relative;
  width: 100%;
}

.guest-reviews-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;    /* Clips sliding cards cleanly */
  padding-top: 42px;    /* Space for avatars overlapping card top */
  padding-bottom: 22px; /* Space for card shadows */
  outline: none;
  cursor: grab;
  user-select: none;
}

.guest-reviews-carousel:active {
  cursor: grabbing;
}

.guest-reviews-track {
  display: flex;
  gap: 18px;
  width: 100%;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Review Cards
   -------------------------------------------------------------------------- */
.guest-review-card {
  position: relative;
  flex: 0 0 calc((100% - (18px * 3)) / 4);
  width: calc((100% - (18px * 3)) / 4);
  min-width: calc((100% - (18px * 3)) / 4);
  max-width: calc((100% - (18px * 3)) / 4);
  min-height: 318px;
  height: 318px;
  background-color: var(--reviews-card-bg);
  border-radius: var(--reviews-card-radius);
  box-shadow: var(--reviews-card-shadow);
  padding: 48px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  user-select: none;
}

.guest-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Reviewer Avatars (Overlapping 68px Circle)
   -------------------------------------------------------------------------- */
.guest-review-avatar-wrap {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  z-index: 2;
}

.guest-review-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  user-select: none;
}

.guest-review-avatar-text {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

/* Reviewer 1 (Dhriti Hazra) Placeholder */
.guest-review-avatar--dh {
  background: linear-gradient(135deg, #F2E8FA 0%, #DBCBF0 100%);
  color: #4A3B69;
}

/* Reviewer 2 (raj saha) Placeholder */
.guest-review-avatar--rs {
  background: linear-gradient(135deg, #E3EAF7 0%, #C3D5F2 100%);
  color: #24416B;
}

/* Reviewer 3 (Pritam Basu) - Bright Pink with white P */
.guest-review-avatar--pink {
  background-color: #E8437D;
  color: #FFFFFF;
}

/* Reviewer 4 (Supriyo Chatterjee) - Dark Green with white S */
.guest-review-avatar--green {
  background-color: #388E3C;
  color: #FFFFFF;
}

/* Small Google Multicolored Icon Badge */
.guest-review-google-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background-color: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Reviewer Details: Name, Date & Stars
   -------------------------------------------------------------------------- */
.guest-review-name {
  color: var(--reviews-heading-color);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.3;
  margin: 10px 0 2px 0;
}

.guest-review-date {
  color: #777777;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 14px;
}

/* Star Rating Row */
.guest-review-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.guest-review-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 1px;
}

.star--filled {
  color: var(--reviews-star-filled);
}

.star--empty {
  color: var(--reviews-star-empty);
}

.guest-review-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Review Body Text & Expandable Control
   -------------------------------------------------------------------------- */
.guest-review-content {
  width: 100%;
}

.guest-review-text {
  color: #333333;
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
  text-align: center;
  word-break: break-word;
}

.guest-review-read-more {
  display: inline-block;
  background: none;
  border: none;
  color: #777777;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guest-review-read-more:hover {
  color: #191323;
  text-decoration: underline;
}

.guest-review-read-more:focus-visible {
  outline: 2px solid #8B35F5;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Carousel Navigation Buttons
   -------------------------------------------------------------------------- */
.guest-reviews-nav-btn {
  position: absolute;
  top: calc(50% + 10px);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  color: #191323;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guest-reviews-nav-btn:hover {
  background-color: #F8F7FA;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.guest-reviews-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.guest-reviews-nav-btn:focus-visible {
  outline: 2px solid #8B35F5;
  outline-offset: 2px;
}

/* Right button: overlaps right edge of card */
.guest-reviews-next {
  right: -19px;
}

/* Left button: overlaps left edge of card */
.guest-reviews-prev {
  left: -19px;
}

/* --------------------------------------------------------------------------
   Google Rating Summary
   -------------------------------------------------------------------------- */
.guest-reviews-summary {
  text-align: center;
  margin-top: 28px;
}

.guest-reviews-summary-text {
  color: #191323;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

.guest-reviews-summary-text strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */

/* Large Tablets / Laptops (1024px – 1199px) */
@media (max-width: 1199px) {
  .guest-review-card {
    flex: 0 0 calc((100% - (18px * 2)) / 3);
    width: calc((100% - (18px * 2)) / 3);
    min-width: calc((100% - (18px * 2)) / 3);
    max-width: calc((100% - (18px * 2)) / 3);
  }

  .guest-reviews-next {
    right: -10px;
  }

  .guest-reviews-prev {
    left: -10px;
  }
}

/* Medium Tablets (768px – 1023px) */
@media (max-width: 1023px) {
  .guest-reviews-section {
    padding-top: 70px;
    padding-bottom: 100px;
  }

  .guest-reviews-heading {
    font-size: 38px;
  }

  .guest-reviews-subtitle {
    margin-top: 20px;
    margin-bottom: 70px;
  }

  .guest-review-card {
    flex: 0 0 calc((100% - 18px) / 2);
    width: calc((100% - 18px) / 2);
    min-width: calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    min-height: 310px;
    height: 310px;
  }

  .guest-reviews-next {
    right: 0;
  }

  .guest-reviews-prev {
    left: 0;
  }
}

/* Mobile Devices (Below 768px) */
@media (max-width: 767px) {
  .guest-reviews-section {
    padding-top: 55px;
    padding-bottom: 75px;
  }

  .guest-reviews-heading {
    font-size: 32px;
    line-height: 1.25;
  }

  .guest-reviews-subtitle {
    font-size: 15px;
    margin-top: 16px;
    margin-bottom: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .guest-reviews-carousel {
    padding-left: 12px;
    padding-right: 12px;
  }

  .guest-review-card {
    flex: 0 0 88%;
    width: 88%;
    min-width: 88%;
    max-width: 320px;
    min-height: 300px;
    height: 300px;
  }

  .guest-reviews-next {
    right: -6px;
  }

  .guest-reviews-prev {
    left: -6px;
  }

  .guest-reviews-summary {
    margin-top: 22px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Small Mobile (Below 480px) */
@media (max-width: 479px) {
  .guest-reviews-heading {
    font-size: 28px;
  }

  .guest-review-card {
    flex: 0 0 92%;
    width: 92%;
    min-width: 92%;
  }
}
