/*=============== REVIEWS ===============*/
.reviews {
    background-color: #f2f4f7; /* Improved contrast for white cards */
    scroll-margin-top: calc(var(--header-height) + 0.2rem); /* Fixed anchor offset */
}

.reviews__container {
    padding-bottom: 2rem; /* Reduced bottom gap */
}



.reviews__title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.reviews__subtitle {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-color);
    line-height: 1.6;
}

/* CU Tours Match: Platform Summary Cards Grid */
.reviews__summary-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 0;
}

.platform-rating-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 2rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Stronger shadow for better visibility */
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-rating-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.platform-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.platform-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    flex-shrink: 0;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-align: left; /* Left align requested */
}

.stars-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.rating-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-align: left; /* Left align requested */
}

.stars {
    display: flex;
    gap: 0.2rem;
}

.stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.review-count {
    font-size: 0.85rem;
    color: #888;
    text-align: left; /* Left align requested */
}

.platform-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    min-height: 120px;
    gap: 0.8rem;
    flex-shrink: 0;
}

.platform-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.platform-name-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.google-text span {
    color: #4285F4;
}

.tripadvisor-text span {
    color: #00AF87;
}

.write-review-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid;
}

.google-btn {
    background: #4285F4;
    color: white;
    border-color: #4285F4;
}

.google-btn:hover {
    background: #357ae8;
    border-color: #357ae8;
    transform: scale(1.05);
    color: white;
}

.tripadvisor-btn {
    background: #00AF87;
    color: white;
    border-color: #00AF87;
}

.tripadvisor-btn:hover {
    background: #009874;
    border-color: #009874;
    transform: scale(1.05);
    color: white;
}

@media screen and (max-width: 1200px) {
    .platform-rating-wrapper {
        padding: 1.2rem 1.5rem;
    }
    .platform-logo {
        width: 100px;
        height: 100px;
    }
    .rating-number {
        font-size: 1.8rem;
    }
    .write-review-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 1024px) {
    .platform-rating-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media screen and (max-width: 625px) {
    .platform-logo {
        width: 90px;
        height: 90px;
    }
}

@media screen and (max-width: 500px) {
    .platform-rating-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        height: auto; /* Fix overflow issue */
    }
    .platform-rating {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 1.5rem;
        margin-bottom: 1.5rem; /* Space between top and bottom rows */
    }
    .platform-logo {
        width: 80px;
        height: 80px;
    }
    .platform-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: unset;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05); /* Separator line like CUTours */
    }
    .write-review-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .rating-number {
        font-size: 1.8rem;
    }
}

.review__summary-count {
    font-size: 0.85rem;
    color: var(--text-color-light);
    margin-top: 0.25rem;
}

/* Platform specific colors */
.platform-google { color: #4285F4; }
.platform-tripadvisor { color: #00af87; }
.platform-booking { color: #003580; }
.platform-airbnb { color: #FF5A5F; }

/* Booking & Airbnb Separate Cards */
.reviews__extra-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .reviews__extra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review__extra-card {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Unified shadow */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Unified border */
    transition: var(--transition);
}

.review__extra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.05);
}

.review__extra-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review__extra-left i {
    font-size: 1.75rem;
}

.review__extra-left span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--title-color);
}

.review__extra-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--first-color);
}

.review__extra-link i {
    font-size: 1.25rem;
    transform: rotate(-45deg); /* 45 degree angle arrow */
}

/* Individual Review Cards */
.review__card {
    background: #fff;
    padding: 2rem;
    border-radius: 1.5rem;
    height: 100%; /* Important for Swiper row height matching */
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Reduced gap - was 320px */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Unified shadow */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Unified border */
    transition: var(--transition);
}

.review__card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.review__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.review__user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.review__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--title-color);
}

.review__stars {
    color: #f5a623;
    font-size: 0.85rem;
}

.review__platform-icon {
    font-size: 1.5rem;
}

.review__date {
    font-size: 0.8rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.review__text {
    font-size: 0.938rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1rem; /* Reduced gap - was 1.5rem */
    font-style: italic;
    
    /* 3 Lines clamping */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review__link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4285F4;
    text-decoration: underline;
    display: block;
    margin-top: auto; /* Push to bottom of card */
}

.swiper-pagination-bullet-active {
    background-color: var(--first-color);
}

@media screen and (max-width: 576px) {
    .reviews__extra-row {
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .review__summary-card {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    
    .review__summary-info {
        flex-direction: column;
    }
}
