.rv-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #fff;
    padding: 40px 0 64px 0;
    border-top: 1px solid #eee;
}

.rv-inner {
    margin: 0 auto;
    padding: 0 100px;
}

.rtl .rv-inner {
    direction: rtl;
}

.rv-summary {
    display: grid;
    grid-template-columns: 1.4fr 1px 1fr 1px 1fr;
    align-items: center;
    gap: 32px;
    padding-bottom: 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #eee;
}

.rv-summary-divider {
    width: 1px;
    height: 64px;
    background: #e5e5e5;
    justify-self: center;
}

/* Bars */
.rv-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rv-bar-row {
    display: grid;
    grid-template-columns: 40px 1fr 36px;
    align-items: center;
    gap: 10px;
}

.rv-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.rv-bar-label .rv-star {
    color: #f5a623;
    font-size: 12px;
}

.rv-bar-track {
    position: relative;
    height: 6px;
    border-radius: 4px;
    background: #eee;
    overflow: hidden;
}

.rv-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background: #0d1b2a;
}

.rtl .rv-bar-fill {
    left: auto;
    right: 0;
}

.rv-bar-pct {
    font-size: 12px;
    color: #888;
    text-align: right;
}

.rtl .rv-bar-pct {
    text-align: left;
}

/* Total reviews / average rating blocks */
.rv-stat {
    text-align: center;
}

.rv-stat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.rv-stat-value {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.rv-stat-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.rv-stat-rating .rv-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 1.05rem;
}

/* ---------- Header row: title + write-a-review button ---------- */

.rv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rv-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: 0.2px;
}

.rv-header .rv-write-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    flex: 0 0 auto;
    white-space: nowrap;
    background: #000;
    color: #fff;
    border: none;
    padding: 9px 22px;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.rv-header .rv-write-review-btn:hover {
    background: #333;
}

/* ---------- Feedback cards ---------- */

.rv-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

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

.rv-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.rv-author {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.rv-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.rv-stars .rv-star {
    font-size: 14px;
    color: #ddd;
}

.rv-stars .rv-star.filled {
    color: #f5a623;
}

.rv-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 16px;
    flex-grow: 1;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.rv-card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rv-time {
    font-size: 12px;
    color: #999;
}

.rv-photos {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.rv-photos img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.rv-empty {
    color: #888;
    font-size: 0.9rem;
    padding: 12px 0 24px;
}

/* ---------- Carousel (wraps the card grid) ---------- */

.rv-carousel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rv-carousel-arrow {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e2e2;
    background: #fff;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.rv-carousel-arrow:hover {
    background: #0d1b2a;
    color: #fff;
    border-color: #0d1b2a;
}

.rv-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    background: #fff;
    color: #333;
    border-color: #e2e2e2;
}

.rv-grid {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 20px;
}

.rv-grid.rv-grid-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.rv-grid.rv-grid-carousel::-webkit-scrollbar {
    display: none;
}

.rv-grid.rv-grid-carousel .rv-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    scroll-snap-align: start;
}

/* ---------- Pagination ---------- */

.rv-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.rv-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-page-btn.active {
    background: #0d1b2a;
    color: #fff;
}

.rv-page-btn.rv-arrow {
    color: #999;
}

.rv-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ---------- Write-a-review modal ---------- */

.rv-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.rv-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 28px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.rv-modal-content .rv-modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #444;
    z-index: 5;
}

.rv-modal-content .rv-modal-close:hover {
    color: #000;
}

.rv-add-review {
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 24px;
    max-width: 480px;
    margin-top: 40px;
}

.rv-modal-content .rv-add-review {
    border: none;
    padding: 0;
    margin-top: 0;
}

.rv-add-review h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.rv-rating-input {
    margin-bottom: 16px;
}

.rv-star-input {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    margin-right: 4px;
}

.rv-star-input.filled {
    color: #f5a623;
}

.rv-field {
    margin-bottom: 12px;
}

.rv-field input,
.rv-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

.rv-submit-btn {
    background: #0d1b2a;
    color: #fff;
    border: none;
    padding: 11px 28px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.rv-submit-btn:hover {
    background: #16283d;
}

.rv-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {
    .rv-inner {
        padding: 0 20px;
    }

    .rv-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 0;
        margin-bottom: 24px;
        border-bottom: none;
    }

    .rv-summary-divider,
    .rv-stat {
        display: none;
    }

    .rv-header {
        margin-bottom: 16px;
    }

    .rv-title {
        font-size: 1.1rem;
    }

    .rv-header .rv-write-review-btn {
        padding: 6px 14px;
        font-size: 11px;
        letter-spacing: 0.04em;
    }

    .rv-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rv-carousel {
        gap: 0;
    }

    .rv-carousel-arrow {
        display: none;
    }

    .rv-grid.rv-grid-carousel {
        gap: 12px;
        -webkit-overflow-scrolling: touch;
    }

    .rv-grid.rv-grid-carousel .rv-card {
        flex: 0 0 85%;
    }
}

@media (max-width: 600px) {
    .rv-bar-label {
        font-size: 12px;
    }

    .rv-stat-rating {
        font-size: 1.2rem;
    }
}