/* ==========================================================================
   TRIPADVISOR & REVIEWS THIRD PARTY STYLES
   ========================================================================== */

/* Modal Dialog */
.ta-review-modal {
  border: none;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.ta-modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #666;
  display: flex;
  padding: 0;
}

.ta-user-info-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ta-avatar {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.ta-avatar .material-symbols-outlined {
  font-size: 2rem;
}

.ta-username {
  font-family: var(--font-body);
  font-weight: 600;
  color: #000;
  font-size: 1.1rem;
  border: 1px solid #000;
  padding: 0 4px;
  display: inline-block;
}

.ta-rating-stars-wrapper {
  display: flex;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.ta-star {
  width: 18px;
  height: 18px;
  background-color: #00AA6C;
  border-radius: 50%;
}

.ta-review-title {
  font-size: 1.25rem;
  font-family: var(--font-body);
  margin-bottom: 1rem;
  color: #000;
}

.ta-review-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.ta-meta-info {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.ta-meta-info strong {
  color: #333;
}

.ta-written-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 2rem;
}

/* Widget Card (Item 5 in Carousel) */
.ta-widget-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ta-widget-label {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.ta-widget-container {
  margin: 0 auto;
}

/* Carousel Nav Buttons */
.ta-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: #333;
}

.ta-carousel-btn--prev {
  left: 0;
}

.ta-carousel-btn--next {
  right: 0;
}

/* ==========================================================================
   REVIEWS CAROUSEL (NATIVE)
   ========================================================================== */

/* Carousel Wrapper */
.reviews-carousel-wrapper {
  position: relative;
  max-width: 100%;
}

.reviews-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-carousel::-webkit-scrollbar {
  display: none;
}

/* Review Card */
.review-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid var(--color-gray-200, #eaeaea);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

/* Review Card Header */
.review-reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-star {
  width: 14px;
  height: 14px;
  background-color: #00AA6C;
  border-radius: 50%;
}

.review-reviewer-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.review-reviewer-date {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 0.8rem;
}

/* Review Text */
.review-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin: 0;
  position: relative;
  /* Truncamiento moderno de 3 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Fade */
.review-read-more-fade {
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, transparent, var(--color-white) 30%);
  padding-left: 2rem;
}

.review-btn-read-more {
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
  color: var(--color-text);
  text-decoration: none;
  padding: 0;
}
