/* YourTourKey — WooCommerce ürün yorumları ve Tripadvisor yorum kartları.
 * ytk-product.css içinden taşınmıştır. Masaüstü ve mobil kurallar birlikte tutulur.
 */

.ytk-reviews-section h2::after {
    content: ".";
    color: #024f4d;
}

.ytk-reviews-section {
    background: transparent;
    border: 0;
}

.ytk-reviews-section {
    margin-top: 30px;
    padding: 34px 0;
    border-radius: 0;
}

.ytk-reviews-section h2 {
    max-width: 980px;
    margin: 0 0 30px;
    color: var(--ytk-ink);
    font-size: clamp(28px, 2.25vw, 36px);
    line-height: 1.08;
    letter-spacing: -1.25px;
    font-weight: 850;
}

/* REVIEWS */

.ytk-reviews-wrap #comments,
.ytk-reviews-wrap #review_form_wrapper {
    margin: 0;
}

.ytk-reviews-wrap .woocommerce-Reviews-title {
    margin: 0 0 18px !important;
    color: var(--ytk-ink) !important;
    font-size: 21px !important;
    font-weight: 850 !important;
    letter-spacing: -0.4px !important;
}

.ytk-reviews-wrap .commentlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid !important;
    gap: 14px !important;
}

.ytk-reviews-wrap li.review {
    margin: 0 !important;
}

.ytk-reviews-wrap .comment_container {
    padding: 20px !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    border: 1px solid rgba(var(--ytk-ink-rgb),0.08) !important;
    box-shadow: 0 10px 24px rgba(var(--ytk-ink-rgb),0.035) !important;
}

.ytk-reviews-wrap img.avatar {
    display: none !important;
}

.ytk-reviews-wrap .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.ytk-reviews-wrap .star-rating {
    float: none !important;
    margin: 0 0 8px !important;
    color: var(--ytk-star-color) !important;
}

.ytk-reviews-wrap .meta {
    margin: 0 0 8px !important;
    color: rgba(var(--ytk-ink-rgb),0.56) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.ytk-reviews-wrap .description p {
    margin: 0 !important;
    color: var(--ytk-body-copy) !important;
    font-size: var(--ytk-product-compact-copy-size) !important;
    line-height: 1.68 !important;
    font-weight: var(--ytk-product-copy-weight) !important;
}

@media (max-width: 760px) {
    .ytk-reviews-section {
        margin-top: 18px;
            padding: 18px 0;
            border: 0;
            border-radius: 0;
            background: #ffffff;
            overflow: visible;
    }

    .ytk-reviews-section h2 {
        font-size: 29px;
            letter-spacing: -1.1px;
            margin-bottom: 18px;
    }
}

.ytk-reviews-wrap .woocommerce-Reviews-title {
    display: none !important;
}

.ytk-reviews-section > h2 {
    margin-bottom: 18px;
}

@media (max-width: 760px) {
    .ytk-reviews-section > h2 {
            margin-bottom: 12px;
        }
}

/* REVIEW INITIAL AVATARS AND COMPACT ITINERARY */
.woocommerce-Reviews .commentlist {
    gap: 20px;
}

.woocommerce-Reviews .comment_container {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce-Reviews .comment_container > img.avatar {
    display: none;
}

.woocommerce-Reviews .comment-text {
    width: 100%;
}

.woocommerce-Reviews .comment-text .meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0 0 12px;
}

.ytk-review-initial-avatar {
    display: inline-flex;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin-right: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 17px;
    line-height: 1;
    font-weight: 750;
    text-transform: uppercase;
}

.woocommerce-Reviews .woocommerce-review__author {
    color: #1a2b49;
}

@media (max-width: 760px) {
    .ytk-review-initial-avatar {
            flex-basis: 36px;
            width: 36px;
            height: 36px;
            font-size: 16px;
        }
}

.woocommerce-Reviews .commentlist .comment_container {
    padding: 20px !important;
    border: 1px solid rgba(26, 43, 73, 0.12) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}

@media (max-width: 760px) {
    .woocommerce-Reviews .commentlist .comment_container {
            padding: 16px !important;
        }
}

@media (min-width: 761px) {
    .ytk-reviews-section {
        margin-top: 18px;
            padding-top: 24px;
            padding-bottom: 24px;
    }
}

/* PRODUCT SIGNATURE, REVIEWS AND MOBILE DETAIL REFINEMENTS */
.woocommerce-Reviews .woocommerce-verification-required {
    display: none !important;
}

/* Tripadvisor reviews: same visual language as the homepage, white cards */
.single-product .ytk-product-tripadvisor-reviews {
    width: 100%;
    margin: 24px 0 30px;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.single-product .ytk-product-tripadvisor-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}

.single-product .ytk-product-tripadvisor-review {
    min-width: 0;
    padding: 18px 18px 17px;
    border: 1px solid #e1e6eb !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: none !important;
}

.single-product .ytk-product-tripadvisor-review > header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

.single-product .ytk-product-tripadvisor-review > header > img {
    flex: 0 0 42px;
    display: block;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 2px solid #00aa6c !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.single-product .ytk-product-tripadvisor-review > header > div {
    min-width: 0;
}

.single-product .ytk-product-tripadvisor-review > header strong {
    display: block;
    margin: 0;
    color: #1a2b49;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
}

.single-product .ytk-product-tripadvisor-review > header small {
    display: block;
    margin-top: 2px;
    color: #718097;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
}

.single-product .ytk-product-tripadvisor-review__rating {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.single-product .ytk-product-tripadvisor-review__rating > span {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.single-product .ytk-product-tripadvisor-review__rating i {
    flex: 0 0 12px;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #00aa6c !important;
}

.single-product .ytk-product-tripadvisor-review__rating > img {
    display: block;
    width: auto !important;
    max-width: 86px !important;
    height: 15px !important;
    margin: 0 !important;
    object-fit: contain;
}

.single-product .ytk-product-tripadvisor-review h3 {
    margin: 0 0 7px !important;
    color: #1a2b49;
    font-size: 19px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
}

.single-product .ytk-product-tripadvisor-review p {
    margin: 0 0 13px !important;
    color: #1a2b49;
    font-size: 14px;
    line-height: 1.5;
}

.single-product .ytk-product-tripadvisor-review > a {
    color: var(--ytk-ink);
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 980px) {
    .single-product .ytk-product-tripadvisor-reviews {
            margin: 20px 0 24px;
        }

    .single-product .ytk-product-tripadvisor-reviews__grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }

    .single-product .ytk-product-tripadvisor-review {
            padding: 16px;
            border-radius: 11px;
        }
}

/* Tripadvisor section heading + mobile product-card carousel */
.single-product .ytk-product-tripadvisor-reviews > h2 {
    margin: 0 0 18px !important;
}

.single-product .ytk-product-tripadvisor-reviews__grid {
    background: transparent !important;
}

@media (max-width: 760px) {
    /* Reviews behave like horizontally scrollable product cards */
        .single-product .ytk-product-tripadvisor-reviews {
            margin-top: 22px;
            overflow: visible;
        }

    .single-product .ytk-product-tripadvisor-reviews > h2 {
            margin-bottom: 13px !important;
        }

    .single-product .ytk-product-tripadvisor-reviews__grid {
            display: flex !important;
            grid-template-columns: none !important;
            gap: 10px !important;
            width: auto;
            margin-right: -16px;
            padding: 0 44px 6px 0;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scroll-snap-type: x mandatory;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

    .single-product .ytk-product-tripadvisor-reviews__grid::-webkit-scrollbar {
            display: none;
        }

    .single-product .ytk-product-tripadvisor-review {
            flex: 0 0 84%;
            max-width: 315px;
            scroll-snap-align: start;
        }
}

.single-product .ytk-product-tripadvisor-reviews > h2::after {
    content: ".";
    color: #024f4d;
}

.single-product .ytk-product-tripadvisor-reviews > h2 {
    max-width: 980px;
    color: var(--ytk-ink) !important;
    font-size: clamp(26px,2.3vw,34px) !important;
    line-height: 1.08 !important;
    letter-spacing: -1.25px !important;
    font-weight: 900 !important;
}
