/* Sterren + reviews (gedeeld door agentprofiel, woningpagina en agentenlijst) */
.rv-stars {
    --rv: 0%;
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
}

.rv-stars::before {
    content: '★★★★★';
    color: #d5dae1;
}

.rv-stars::after {
    content: '★★★★★';
    position: absolute;
    left: 0;
    top: 0;
    width: var(--rv);
    overflow: hidden;
    color: var(--tx-f59e0b, #f59e0b);
}

.rv-rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
}

.rv-rating-line .rv-value { font-weight: 700; color: var(--tx-111827, #111827); }
.rv-rating-line .rv-count { color: var(--tx-6b7280, #6b7280); }
.rv-rating-line .rv-none { color: var(--tx-6b7280, #6b7280); }


/* ======================================
   Verificatie-labels, reactie van de agent en melden
====================================== */
.rv-verified,
.rv-pending {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.rv-verified {
    background: var(--bg-eef5fc, #eef5fc);
    color: var(--tx-005eb8, #005eb8);
}

.rv-verified-deal {
    background: var(--bg-ecfdf3, #ecfdf3);
    color: var(--tx-15803d, #15803d);
}

.rv-pending {
    background: var(--bg-fff7ed, #fff7ed);
    color: var(--tx-c2410c, #c2410c);
}

.rv-reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--bd-cbd5e1, #cbd5e1);
    border-radius: 0 12px 12px 0;
    background: var(--bg-f8fafc, #f8fafc);
}

.rv-reply strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: var(--tx-0f172a, #0f172a);
}

.rv-reply p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--tx-334155, #334155);
}

.rv-item-actions {
    margin-top: 10px;
}

.rv-item-actions details summary {
    display: inline-block;
    cursor: pointer;
    font-size: 13px;
    color: var(--tx-64748b, #64748b);
    list-style: none;
}

.rv-item-actions details summary::-webkit-details-marker {
    display: none;
}

.rv-item-actions details summary:hover {
    color: var(--tx-0f172a, #0f172a);
    text-decoration: underline;
}

.rv-reply-box[open] summary,
.rv-report-box[open] summary {
    margin-bottom: 8px;
    color: var(--tx-0f172a, #0f172a);
}

.rv-reply-box form,
.rv-report-box form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 480px;
}

.rv-reply-box textarea,
.rv-report-box textarea,
.rv-report-box select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--bd-d5d7dc, #d5d7dc);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
}

.rv-reply-box .agent-contact-btn,
.rv-report-box .rv-delete {
    align-self: flex-start;
}

/* Sterren kiezen (ook gebruikt op de uitnodigingspagina review_deal.php) */
.rv-star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.rv-star-input label { font-size: 30px; line-height: 1; color: #d5dae1; cursor: pointer; transition: color 0.12s ease; }
.rv-star-input label:hover,
.rv-star-input label:hover ~ label,
.rv-star-input input:checked ~ label { color: var(--tx-f59e0b, #f59e0b); }
.rv-star-input input:focus-visible + label { outline: 2px solid #2b7dfa; outline-offset: 2px; border-radius: 3px; }
