/* ── Reviews Page ─────────────────────────────────────────────────────────── */

.tiq-rv-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.tiq-rv-header {
    margin-bottom: 2rem;
}

.tiq-rv-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.25rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-rv-header p {
    font-size: 0.9rem;
    color: var(--tiq-text-3);
    margin: 0;
}

/* ── Loading ──────────────────────────────────────────────────────────────── */

.tiq-rv-loading-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--tiq-shadow);
}

.tiq-rv-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--tiq-border);
    border-top-color: #00B27A;
    border-radius: 50%;
    animation: tiq-rv-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes tiq-rv-spin {
    to { transform: rotate(360deg); }
}

.tiq-rv-loading-card p {
    font-size: 0.875rem;
    color: var(--tiq-text-3);
    margin: 0;
}

/* ── Match card ───────────────────────────────────────────────────────────── */

.tiq-rv-match-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--tiq-shadow);
    margin-bottom: 1.25rem;
}

.tiq-rv-match-source {
    margin-bottom: 0.875rem;
}

.tiq-rv-match-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--tiq-surface-2);
    border: 1px solid var(--tiq-border);
    border-radius: 6px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    color: var(--tiq-text-3);
}

.tiq-rv-match-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.2rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-rv-match-address {
    font-size: 0.8rem;
    color: var(--tiq-text-3);
    margin: 0 0 1rem;
}

.tiq-rv-rating-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tiq-rv-rating-big {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--tiq-text);
    line-height: 1;
}

.tiq-rv-stars-big {
    font-size: 1.2rem;
    color: #f59e0b;
    letter-spacing: 0.04em;
    line-height: 1;
}

.tiq-rv-rating-count {
    font-size: 0.8rem;
    color: var(--tiq-text-3);
}

.tiq-rv-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.tiq-rv-maps-link {
    font-size: 0.8rem;
    color: #00B27A;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tiq-rv-maps-link:hover {
    text-decoration: underline;
}

.tiq-rv-divider {
    color: var(--tiq-text-4);
    font-size: 0.8rem;
    user-select: none;
}

.tiq-rv-wrong-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--tiq-text-4);
    cursor: pointer;
    text-decoration: underline;
}

.tiq-rv-wrong-btn:hover {
    color: var(--tiq-text-3);
}

.tiq-rv-refresh-btn {
    background: none;
    border: 1px solid var(--tiq-border);
    border-radius: 6px;
    padding: 0.275rem 0.65rem;
    font-size: 0.75rem;
    color: var(--tiq-text-3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s;
}

.tiq-rv-refresh-btn:hover:not(:disabled) {
    background: var(--tiq-surface-2);
}

.tiq-rv-refresh-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tiq-rv-last-fetched {
    font-size: 0.75rem;
    color: var(--tiq-text-4);
    margin-left: auto;
}

/* ── Reviews list ─────────────────────────────────────────────────────────── */

.tiq-rv-reviews-section {
    margin-top: 0.25rem;
}

.tiq-rv-reviews-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tiq-text-3);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 0.75rem;
}

.tiq-rv-review-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: var(--tiq-shadow);
    margin-bottom: 0.75rem;
}

.tiq-rv-review-top {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.625rem;
}

.tiq-rv-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.tiq-rv-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tiq-rv-author-info {
    flex: 1;
    min-width: 0;
}

.tiq-rv-author-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tiq-text);
    margin: 0 0 0.2rem;
}

.tiq-rv-review-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tiq-rv-stars {
    font-size: 0.8rem;
    color: #f59e0b;
    letter-spacing: 0.03em;
    line-height: 1;
}

.tiq-rv-time {
    font-size: 0.75rem;
    color: var(--tiq-text-4);
}

.tiq-rv-review-text {
    font-size: 0.85rem;
    color: var(--tiq-text-3);
    line-height: 1.65;
    margin: 0;
}

.tiq-rv-empty-reviews {
    font-size: 0.875rem;
    color: var(--tiq-text-3);
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    box-shadow: var(--tiq-shadow);
}

/* ── Search / wrong listing card ──────────────────────────────────────────── */

.tiq-rv-search-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--tiq-shadow);
    margin-bottom: 1.25rem;
}

.tiq-rv-search-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.35rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-rv-search-card p {
    font-size: 0.875rem;
    color: var(--tiq-text-3);
    margin: 0 0 1rem;
}

.tiq-rv-search-row {
    display: flex;
    gap: 0.625rem;
}

.tiq-rv-search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tiq-border);
    border-radius: 6px;
    background: var(--tiq-surface-2);
    color: var(--tiq-text);
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.tiq-rv-search-input:focus {
    border-color: #00B27A;
    box-shadow: 0 0 0 3px rgba(0, 178, 122, 0.15);
}

.tiq-rv-search-btn {
    padding: 0.5rem 1.1rem;
    background: #00B27A;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

.tiq-rv-search-btn:hover:not(:disabled) {
    background: #009e6d;
}

.tiq-rv-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tiq-rv-search-cancel {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    color: var(--tiq-text-4);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 0.75rem;
    display: block;
}

.tiq-rv-search-cancel:hover {
    color: var(--tiq-text-3);
}

.tiq-rv-search-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin: 0.625rem 0 0;
}

/* ── Setup / no-key card ──────────────────────────────────────────────────── */

.tiq-rv-setup-card {
    background: var(--tiq-surface);
    border: 1px solid var(--tiq-border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--tiq-shadow);
}

.tiq-rv-setup-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tiq-text);
    margin: 0 0 0.5rem;
    font-family: 'Geist', 'Inter', system-ui, sans-serif;
}

.tiq-rv-setup-card p {
    font-size: 0.875rem;
    color: var(--tiq-text-3);
    margin: 0 0 0.5rem;
}

.tiq-rv-setup-card code {
    font-size: 0.8rem;
    background: var(--tiq-surface-2);
    border: 1px solid var(--tiq-border);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.tiq-rv-no-business {
    font-size: 0.875rem;
    color: var(--tiq-text-3);
    margin: 0 0 1rem;
}

.tiq-rv-setup-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #00B27A;
    color: #fff;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.tiq-rv-setup-link:hover {
    background: #009e6d;
    color: #fff;
}
