/* Extracted from an inline <style> in: application/views/review/components/style.php
   Edit here; every view listed links this file. */
    /* ── Review Section ── */
    .tz-sec.tz-rev-bg {
        padding: 4rem 0;
        background: #f7f7f5;
    }

    .tz-wrap {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* Header */
    .tz-dest-hd {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .tz-label {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #390303;
        display: block;
        margin-bottom: 6px;
    }

    .tz-h2 {
        font-size: 28px;
        font-weight: 600;
        color: #1a1a1a;
        line-height: 1.2;
        margin: 0;
    }


    .mi {
        font-family: 'Material Icons';
        font-size: 16px;
        vertical-align: middle;
        line-height: 1;
    }

    /* Grid */
    .tz-rev-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5em;
    }

    /* Card */
    .tz-rev-c {
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        border: .5px solid rgba(0, 0, 0, .08);
        transition: transform .25s, box-shadow .25s;
    }

    .tz-rev-c:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
    }

    /* Image wrapper */
    .tz-rev-iw {
        width: 100%;
        aspect-ratio: 1 / 1;
        /* เปลี่ยนจาก 4/3 → 1/1 */
        overflow: hidden;
    }

    .tz-rev-iw img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s ease;
        display: block;
    }

    .tz-rev-c:hover .tz-rev-iw img {
        transform: scale(1.04);
    }

    /* Body */
    .tz-rev-body {
        padding: 14px 16px 16px;
    }

    /* Profile header */
    .tz-rev-hd {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .tz-rev-av {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #f0f0f0;
        flex-shrink: 0;
    }

    .tz-rev-nm {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a1a;
        line-height: 1.3;
        margin: 0;
    }

    .tz-rev-tr {
        font-size: 11px;
        color: #888;
        line-height: 1.4;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
        margin: 0;
    }

    /* Review text */
    .tz-rev-txt {
        font-size: 13px;
        color: #555;
        line-height: 1.65;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }

    /* Hashtag */
    .tz-rev-tag {
        display: inline-block;
        font-size: 12px;
        font-weight: 500;
        color: #390303;
        text-decoration: none;
        background: #fff3ed;
        padding: 3px 10px;
        border-radius: 50px;
        margin-bottom: 10px;
        transition: all .2s;
    }

    .tz-rev-tag:hover {
        background: #390303;
        color: #fff;
    }

    /* Actions (like / comment) */
    .tz-rev-acts {
        display: flex;
        align-items: center;
        gap: 14px;
        padding-top: 10px;
        border-top: .5px solid rgba(0, 0, 0, .07);
    }

    .tz-rev-act {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        font-size: 13px;
        color: #888;
        cursor: pointer;
        transition: color .2s;
        user-select: none;
    }

    .tz-rev-act:hover {
        color: #390303;
    }

    .tz-rev-act .mi {
        font-size: 18px;
    }

    /* ── Responsive ── */
    @media (max-width: 640px) {
        .tz-rev-grid {
            grid-template-columns: 1fr;
        }

        .tz-h2 {
            font-size: 22px;
        }

        .tz-dest-hd {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    /* ── Swiper image wrapper ── */
    .tz-rev-iw {
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        position: relative;
        /* สำคัญ: ให้ arrow วาง position absolute ได้ */
    }

    .tz-rev-iw img,
    .tz-rev-iw .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

    .tz-rev-c:hover .tz-rev-iw:not(.swiper) img {
        transform: scale(1.04);
        /* zoom เฉพาะรูปเดียว */
    }

    /* Swiper pagination dots */
    .tz-rev-iw .swiper-pagination-bullet {
        background: #fff;
        opacity: .6;
    }

    .tz-rev-iw .swiper-pagination-bullet-active {
        background: #390303;
        opacity: 1;
    }

    /* Custom arrows */
    .tz-swiper-prev,
    .tz-swiper-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, .85);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s;
    }

    .tz-swiper-prev {
        left: 8px;
    }

    .tz-swiper-next {
        right: 8px;
    }

    .tz-swiper-prev:hover,
    .tz-swiper-next:hover {
        background: #390303;
        color: #fff;
    }

    .tz-swiper-prev .mi,
    .tz-swiper-next .mi {
        font-size: 20px;
        line-height: 1;
    }

    /* days badge */
    .tz-rev-days {
        margin-left: auto;
        font-size: 11px;
        font-weight: 600;
        color: #390303;
        background: #fff3ed;
        padding: 3px 8px;
        border-radius: 50px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* meta row (hashtag + date) */
    .tz-rev-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .tz-rev-date {
        font-size: 12px;
        color: #888;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .tz-rev-date .mi {
        font-size: 13px;
    }
