/* ============================================
   Review Tabs Widget
   Styled to match existing TripAdvisor widget
   /wp-content/themes/traveltour-child/review-tabs.css
   ============================================ */

/* ── Tab bar ── */
.review-tabs-wrapper {
  width: 100%;
  font-family: "Trustindex Poppins", sans-serif;
}

.review-tab-bar {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 24px !important;
  margin: 0 auto !important;
  background: #fff !important;
  border-bottom: 1px solid #ebebeb !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  flex-wrap: wrap !important;
}

.review-tab-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 16px 20px !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #888 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: color 0.2s, border-color 0.2s !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  outline: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  margin-bottom: -1px !important;
}

.review-tab-btn:hover {
  border-color: #bbb !important;
  background: #fafafa !important;
  box-shadow: none !important;
}

.review-tab-btn.active-ta  {
  background: #fff !important;
  border-color: #00aa6c !important;
  color: #00aa6c !important;
  box-shadow: 0 2px 10px rgba(0,170,108,0.13) !important;
}
.review-tab-btn.active-g   {
  background: #fff !important;
  border-color: #4285F4 !important;
  color: #4285F4 !important;
  box-shadow: 0 2px 10px rgba(66,133,244,0.13) !important;
}
.review-tab-btn.active-gyg {
  background: #fff !important;
  border-color: #ff5533 !important;
  color: #ff5533 !important;
  box-shadow: 0 2px 10px rgba(255,85,51,0.13) !important;
}

/* Count badge */
.review-tab-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50px !important;
  padding: 0 6px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  background: #ececec !important;
  color: #888 !important;
  opacity: 1 !important;
}

.review-tab-btn.active-ta  .review-tab-count { background: #e6f7f1 !important; color: #00aa6c !important; }
.review-tab-btn.active-g   .review-tab-count { background: #e8f0fe !important; color: #4285F4 !important; }
.review-tab-btn.active-gyg .review-tab-count { background: #ffe8e3 !important; color: #ff5533 !important; }

/* ── Panels ── */
.ta-review-panel  { display: block; }
.g-review-panel   { display: none;  }
.gyg-review-panel { display: none;  }

/* ── Manual reviews — matches TripAdvisor widget layout ── */
.manual-reviews-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 24px 0 8px;
}

/* Left summary col — matches "EXCELLENT / stars / Based on X" */
.manual-summary-col {
  min-width: 200px;
  max-width: 200px;
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 54px;
  box-sizing: border-box;
}

.manual-summary-excellent {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #222;
  font-family: inherit;
}

.manual-summary-stars { display: flex; gap: 3px; }

.manual-summary-count { font-size: 14px; color: #555; }
.manual-summary-count strong { color: #222; font-weight: 700; }

.manual-logo {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

/* ── Slider ── */
.manual-slider-outer    { flex: 1; min-width: 0; position: relative; }
.manual-slider-viewport { overflow: hidden; }
.manual-slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  width: 100%;
}

/* ── Cards — matches TripAdvisor gray cards ── */
.manual-card {
  background: #f4f4f4;
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
  border: none;
}

.manual-card:hover     { box-shadow: 0 4px 18px rgba(0,0,0,0.10); }
.manual-card.is-linked { cursor: pointer; }

.manual-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.manual-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.manual-name          { font-weight: 600; font-size: 15px; color: #000000; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.manual-date          { font-size: 13px; color: #000000; opacity: 0.5; margin-top: 1px; }
.manual-platform-icon { margin-left: auto; flex-shrink: 0; }

.manual-stars-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

/* Bubble stars — matches TripAdvisor green bubbles */
.star-bubbles { display: flex; gap: 2px; }

.star-bubble {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verified-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.manual-title { font-weight: 600; font-size: 15px; color: #000000; margin-bottom: 6px; }
.manual-text {
  font-size: 15px;
  line-height: 21.75px;
  height: 87px;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
}

/* Read more — matches TripAdvisor "Read more" link style */
.manual-reviews-wrap .read-more-btn {
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 8px !important;
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #000000 !important;
  opacity: 0.5 !important;
  cursor: pointer !important;
  display: block !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  min-width: 0 !important;
  width: auto !important;
}

.manual-reviews-wrap .read-more-btn:hover {
  background: none !important;
  color: #222 !important;
  text-decoration: none !important;
}

/* ── Arrows — full theme reset ── */
.manual-reviews-wrap .manual-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
  transition: box-shadow 0.2s !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #555 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

.manual-reviews-wrap .manual-arrow:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.15) !important;
  background: #ffffff !important;
  background-image: none !important;
}

.manual-reviews-wrap .manual-arrow.prev { left: -17px !important; right: auto !important; }
.manual-reviews-wrap .manual-arrow.next { right: -17px !important; left: auto !important; }
.manual-reviews-wrap .manual-arrow svg  { display: block !important; flex-shrink: 0 !important; }

/* ── Empty state ── */
.review-empty-state             { text-align: center; padding: 60px 20px; color: #aaa; font-size: 15px; }
.review-empty-state .empty-icon { font-size: 36px; margin-bottom: 10px; }

/* ── Centering ── */
.review-tabs-wrapper {
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* Center the manual reviews wrap but keep inner content left-aligned */
.g-review-panel,
.gyg-review-panel {
  text-align: left;
}

.manual-reviews-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 5px 0 30px !important;
}

/* Match Trustindex widget spacing exactly */
.g-review-panel,
.gyg-review-panel {
  padding: 0 !important;
  margin: 0 !important;
}

/* Verified by row — matches ti .ti-verified-by-row margin: 12px 28px */
.manual-verified-row {
  display: block;
  text-align: right;
  font-size: 12px;
  margin: 12px 28px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .manual-summary-col { display: none; }
  .manual-card        { min-width: 240px !important; max-width: 240px !important; }
  .review-tab-btn     { padding: 8px 12px !important; font-size: 13px !important; }
}