/**
 * Las Casas Marketplace — Reviews v4.0
 */

:root {
    --lc-gold:     #E2C48E;
    --lc-gold-h:   #F8D189;
    --lc-dark:     #0B1014;
    --lc-surface:  #1a1f24;
    --lc-secondary:#505050;
    --lc-text:     #C2C2C2;
    --lc-border:   rgba(226,196,142,.25);
    --lc-success:  #4CAF50;
    --lc-danger:   #dc3545;
    --lc-radius:   12px;
    --lc-radius-lg:16px;
}

/* ══════════════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════════════ */
.lc-reviews-container {
    background: var(--lc-secondary);
    border-radius: var(--lc-radius-lg);
    padding: 28px;
    border: 1px solid var(--lc-gold);
    margin-top: 40px;
    margin-bottom: 24px;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.lc-reviews-header h3 {
    color: var(--lc-gold);
    margin: 0 0 20px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
}

/* ══════════════════════════════════════════════════
   OVERVIEW: SCORE + DISTRIBUTION + SUB-AVERAGES
══════════════════════════════════════════════════ */
.lc-reviews-overview {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
    background: var(--lc-dark);
    border-radius: var(--lc-radius);
    padding: 20px;
    margin-bottom: 16px;
}

/* Score circle */
.lc-score-circle {
    text-align: center;
    min-width: 100px;
}
.lc-score-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--lc-gold);
    line-height: 1;
}
.lc-score-stars-row {
    color: var(--lc-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin: 4px 0;
}
.lc-score-count {
    color: var(--lc-text);
    font-size: 0.8rem;
}

/* Distribution bars */
.lc-rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lc-dist-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lc-dist-label {
    color: var(--lc-text);
    font-size: 0.8rem;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}
.lc-dist-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 4px;
    overflow: hidden;
}
.lc-dist-bar {
    height: 100%;
    background: var(--lc-gold);
    border-radius: 4px;
    transition: width .6s ease;
}
.lc-dist-count {
    color: var(--lc-text);
    font-size: 0.75rem;
    width: 24px;
    flex-shrink: 0;
}

/* Sub-averages */
.lc-sub-ratings-overview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}
.lc-sub-avg-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lc-sub-avg-label {
    color: var(--lc-text);
    font-size: 0.75rem;
    width: 86px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-sub-avg-bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    overflow: hidden;
}
.lc-sub-avg-fill {
    height: 100%;
    background: var(--lc-gold);
    border-radius: 3px;
    transition: width .6s ease;
}
.lc-sub-avg-score {
    color: var(--lc-gold);
    font-size: 0.75rem;
    font-weight: 700;
    width: 24px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   SORT CONTROL
══════════════════════════════════════════════════ */
.lc-reviews-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.lc-reviews-sort {
    /* FALLBACKS + appearance:none — sin esto el <select> nativo salía blanco/OS en
       contextos donde las variables del tema no llegan. */
    background: var(--lc-dark, #0B1014);
    border: 1px solid var(--lc-gold, #E2C48E);
    color: var(--lc-text, #C2C2C2);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E2C48E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding: 9px 34px 9px 14px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}
.lc-reviews-sort:focus {
    border-color: var(--lc-gold, #E2C48E);
}

/* ══════════════════════════════════════════════════
   LC_REVIEW_TOPICS_V1 — chips «Elige los temas» (estilo Booking)
══════════════════════════════════════════════════ */
.lc-reviews-topics {
    margin: 4px 0 20px;
}
.lc-reviews-topics-title {
    font-weight: 700;
    color: var(--lc-text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.lc-reviews-topics-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.lc-review-topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    /* FALLBACKS 2026-07-19: sin valor de reserva, un <button> con var(--x) sin resolver
       cae al UA default (fondo blanco, texto negro) → los chips salían «sin estilo».
       Con fallback quedan oro/tinta aunque las variables del tema no lleguen a este contexto. */
    background: var(--lc-dark, #0B1014);
    border: 1px solid var(--lc-border, rgba(226,196,142,.35));
    color: var(--lc-text, #C2C2C2);
    -webkit-appearance: none;
    appearance: none;
    padding: 8px 15px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.lc-review-topic-chip:hover {
    border-color: var(--lc-gold, #E2C48E);
    color: var(--lc-gold, #E2C48E);
}
.lc-review-topic-chip.is-active {
    background: linear-gradient(135deg, #E2C48E, #F8D189);
    border-color: #E2C48E;
    color: #0B1014;
}
.lc-review-topic-count {
    font-weight: 800;
    font-size: 0.78rem;
    opacity: .75;
    color: inherit;
}
.lc-review-topic-chip.is-active .lc-review-topic-count {
    opacity: .9;
}
/* REFUERZO DEFINITIVO 2026-07-19b: los chips son <button> y un reset de `button` del TEMA
   (con !important o muy específico) los seguía pintando BLANCOS pese al scope. Aquí se usa
   `!important` y NO se depende del contenedor (por si el widget no lleva .lc-reviews-container
   en algún contexto). El <select> de orden ya salía bien porque no es <button>. */
button.lc-review-topic-chip,
.lc-review-topic-chip {
    background: #0B1014 !important;
    color: #E7E7E7 !important;
    border: 1px solid rgba(226,196,142,.40) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
button.lc-review-topic-chip:hover,
.lc-review-topic-chip:hover {
    background: #0B1014 !important;
    border-color: #E2C48E !important;
    color: #E2C48E !important;
}
button.lc-review-topic-chip.is-active,
.lc-review-topic-chip.is-active {
    background: linear-gradient(135deg, #E2C48E, #F8D189) !important;
    border-color: #E2C48E !important;
    color: #0B1014 !important;
}

/* ══════════════════════════════════════════════════
   REVIEW LIST
══════════════════════════════════════════════════ */
.lc-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════════
   REVIEW CARD
══════════════════════════════════════════════════ */
.lc-review-item {
    background: var(--lc-dark);
    border-radius: var(--lc-radius);
    padding: 20px;
    border-left: 4px solid var(--lc-gold);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lc-review-item:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 12px rgba(226,196,142,.12);
}

/* Header row */
.lc-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

/* Reviewer info */
.lc-reviewer {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lc-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.lc-reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.lc-reviewer-name {
    color: var(--lc-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Traveler badge */
.lc-traveler-badge {
    display: inline-block;
    background: rgba(226,196,142,.12);
    color: var(--lc-gold);
    border: 1px solid var(--lc-border);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
}

/* Score block */
.lc-review-score-wrap {
    text-align: right;
    flex-shrink: 0;
}
.lc-review-score {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--lc-gold);
    line-height: 1;
}
.lc-review-stars {
    color: var(--lc-gold);
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.lc-review-date {
    display: block;
    color: var(--lc-text);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Title + content */
.lc-review-title {
    color: var(--lc-gold);
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.lc-review-content p {
    color: var(--lc-text);
    margin: 0;
    line-height: 1.65;
    font-size: 0.9rem;
}

/* Sub-ratings per card */
.lc-review-sub-ratings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.lc-review-sub-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lc-review-sub-name {
    color: var(--lc-text);
    font-size: 0.72rem;
    width: 72px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-review-sub-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    overflow: hidden;
}
.lc-review-sub-fill {
    height: 100%;
    background: var(--lc-gold);
    border-radius: 2px;
}
.lc-review-sub-score {
    color: var(--lc-gold);
    font-size: 0.72rem;
    font-weight: 700;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
}

/* Host reply */
.lc-host-reply {
    margin-top: 14px;
    padding: 14px;
    background: rgba(226,196,142,.07);
    border-radius: 8px;
    border-left: 3px solid var(--lc-gold);
}
.lc-host-reply-header {
    margin-bottom: 6px;
}
.lc-host-reply-badge {
    background: var(--lc-gold);
    color: var(--lc-dark);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lc-host-reply-text {
    color: var(--lc-text);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Reply toggle button */
.lc-reply-toggle-btn {
    background: transparent;
    border: 1px solid var(--lc-border);
    color: var(--lc-gold);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 10px;
    transition: all .2s;
}
.lc-reply-toggle-btn:hover {
    background: rgba(226,196,142,.1);
}

/* Reply form */
.lc-reply-form-wrap {
    margin-top: 10px;
    padding: 14px;
    background: rgba(255,255,255,.04);
    border-radius: 8px;
}
.lc-reply-textarea {
    width: 100%;
    background: var(--lc-surface);
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    color: var(--lc-text);
    padding: 10px 12px;
    font-size: 0.875rem;
    resize: vertical;
    box-sizing: border-box;
}
.lc-reply-textarea:focus {
    outline: none;
    border-color: var(--lc-gold);
}
.lc-reply-form-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.lc-btn-reply-submit {
    background: var(--lc-gold);
    color: var(--lc-dark);
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.lc-btn-reply-cancel {
    background: transparent;
    border: 1px solid var(--lc-border);
    color: var(--lc-text);
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Review footer + helpful voting */
.lc-review-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.lc-review-helpful {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lc-helpful-label {
    color: var(--lc-text);
    font-size: 0.78rem;
    opacity: .7;
}
.lc-helpful-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--lc-text);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.lc-helpful-btn:hover {
    background: rgba(226,196,142,.12);
    border-color: var(--lc-border);
    color: var(--lc-gold);
}
.lc-helpful-btn.lc-voted {
    background: rgba(226,196,142,.2);
    border-color: var(--lc-gold);
    color: var(--lc-gold);
}
.lc-helpful-btn.lc-helpful-no:hover,
.lc-helpful-btn.lc-helpful-no.lc-voted {
    background: rgba(220,53,69,.15);
    border-color: rgba(220,53,69,.5);
    color: #f88;
}

/* ══════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════ */
.lc-reviews-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.lc-pagination-btn {
    /* FALLBACKS: sin valor de reserva salían como botones blancos del navegador. */
    background: var(--lc-dark, #0B1014);
    border: 1px solid var(--lc-gold, #E2C48E);
    color: var(--lc-text, #C2C2C2);
    -webkit-appearance: none;
    appearance: none;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    min-width: 40px;
    font-size: 0.875rem;
    font-weight: 600;
}
.lc-pagination-btn:hover:not(:disabled) {
    background: var(--lc-gold, #E2C48E);
    color: var(--lc-dark, #0B1014);
}
.lc-pagination-btn.active {
    background: var(--lc-gold, #E2C48E);
    color: var(--lc-dark, #0B1014);
    font-weight: 700;
}
.lc-pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.lc-pagination-dots { color: var(--lc-text, #C2C2C2); padding: 0 4px; line-height: 36px; }
/* REFUERZO DEFINITIVO (mismo motivo que los chips: son <button>, el reset del tema los
   dejaba blancos). !important + sin dependencia del contenedor. */
button.lc-pagination-btn,
.lc-pagination-btn {
    background: #0B1014 !important;
    color: #E7E7E7 !important;
    border: 1px solid #E2C48E !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
button.lc-pagination-btn:hover:not(:disabled),
.lc-pagination-btn:hover:not(:disabled),
button.lc-pagination-btn.active,
.lc-pagination-btn.active {
    background: #E2C48E !important;
    color: #0B1014 !important;
}

/* ══════════════════════════════════════════════════
   REVIEW FORM
══════════════════════════════════════════════════ */
.lc-add-review {
    margin-top: 32px;
    background: var(--lc-dark);
    padding: 28px;
    border-radius: var(--lc-radius);
    border-top: 3px solid var(--lc-gold);
}
.lc-add-review h4 {
    color: var(--lc-gold);
    margin: 0 0 24px;
    font-size: 1.2rem;
    font-family: 'DM Serif Display', serif;
}
.lc-optional {
    color: var(--lc-text);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Traveler type selector */
.lc-traveler-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.lc-traveler-btn {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--lc-text);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all .2s;
}
.lc-traveler-btn:hover {
    border-color: var(--lc-gold);
    color: var(--lc-gold);
}
.lc-traveler-btn.selected {
    background: rgba(226,196,142,.15);
    border-color: var(--lc-gold);
    color: var(--lc-gold);
    font-weight: 600;
}

/* Main star rating */
.lc-rating-select {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.lc-star {
    font-size: 2rem;
    color: var(--lc-gold);
    cursor: pointer;
    transition: all .15s;
    opacity: .5;
    line-height: 1;
}
.lc-star:hover, .lc-star.active { opacity: 1; transform: scale(1.15); }
.lc-star.active { text-shadow: 0 0 8px rgba(226,196,142,.5); }
.lc-rating-text {
    color: var(--lc-text);
    font-size: 0.85rem;
    margin-left: 8px;
    font-style: italic;
}

/* Sub-rating grid in form */
.lc-sub-ratings-form {
    background: rgba(255,255,255,.03);
    border-radius: 8px;
    padding: 14px 16px;
}
.lc-sub-rating-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.lc-sub-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lc-sub-rating-label {
    color: var(--lc-text);
    font-size: 0.82rem;
    width: 150px;
    flex-shrink: 0;
}
.lc-sub-stars {
    display: flex;
    gap: 3px;
}
.lc-sub-star {
    font-size: 1.2rem;
    color: var(--lc-gold);
    cursor: pointer;
    opacity: .45;
    transition: all .15s;
    line-height: 1;
}
.lc-sub-star:hover, .lc-sub-star.active { opacity: 1; }

/* Form fields */
.lc-form-group { margin-bottom: 18px; }
.lc-add-review label {
    display: block;
    color: var(--lc-gold);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
}
.lc-add-review input[type="text"],
.lc-add-review textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--lc-secondary);
    border: 1px solid var(--lc-border);
    border-radius: 8px;
    color: var(--lc-text);
    font-size: 0.9rem;
    transition: border-color .2s;
    box-sizing: border-box;
}
.lc-add-review input[type="text"]:focus,
.lc-add-review textarea:focus {
    outline: none;
    border-color: var(--lc-gold);
    box-shadow: 0 0 0 2px rgba(226,196,142,.15);
}
.lc-char-counter {
    text-align: right;
    color: var(--lc-text);
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: .6;
}

/* Submit button */
.lc-add-review .lc-button,
.lc-button {
    background: var(--lc-gold);
    color: var(--lc-dark);
    border: none;
    border-radius: 30px;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all .2s;
}
.lc-button:hover { background: var(--lc-gold-h); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(226,196,142,.25); }
.lc-button:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════
   MESSAGES
══════════════════════════════════════════════════ */
#lc-review-message { margin-top: 14px; }
#lc-review-message .success,
.lc-review-message .success {
    color: var(--lc-success);
    background: rgba(76,175,80,.1);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid var(--lc-success);
    font-size: 0.9rem;
}
#lc-review-message .error,
.lc-review-message .error {
    color: var(--lc-danger);
    background: rgba(220,53,69,.1);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 4px solid var(--lc-danger);
    font-size: 0.9rem;
}

.lc-review-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--lc-dark);
    border-radius: 10px;
    border: 1px solid var(--lc-border);
}
.lc-review-message--login a { color: var(--lc-gold); font-weight: 600; }
.lc-msg-icon { font-size: 1.3rem; flex-shrink: 0; }
.lc-review-message p { color: var(--lc-text); margin: 0; font-size: 0.9rem; }

/* ══════════════════════════════════════════════════
   STATE: loading, error, empty
══════════════════════════════════════════════════ */
.lc-loading {
    text-align: center;
    padding: 40px;
    color: var(--lc-text);
    background: var(--lc-dark);
    border-radius: var(--lc-radius);
    font-size: 0.9rem;
    opacity: .7;
}
.lc-error {
    color: var(--lc-danger);
    background: rgba(220,53,69,.1);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--lc-danger);
    text-align: center;
    font-size: 0.875rem;
}
.lc-no-reviews {
    background: var(--lc-dark);
    padding: 40px;
    text-align: center;
    border-radius: var(--lc-radius);
}
.lc-no-reviews p { color: var(--lc-text); margin: 0; font-size: 0.95rem; }

/* ══════════════════════════════════════════════════
   HOST DASHBOARD
══════════════════════════════════════════════════ */
.lc-reviews-container--host-dashboard .lc-average-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--lc-dark);
    padding: 14px 18px;
    border-radius: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.lc-reviews-container--host-dashboard .rating-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--lc-gold);
    line-height: 1;
}
.lc-reviews-container--host-dashboard .rating-stars { color: var(--lc-gold); font-size: 1.1rem; }
.lc-reviews-container--host-dashboard .rating-count { color: var(--lc-text); font-size: 0.85rem; }

.lc-review-item--dashboard { border-left-color: transparent; border-bottom: 1px solid rgba(255,255,255,.06); border-left: none; border-radius: 0; padding: 20px 0; }
.lc-review-item--dashboard:first-child { padding-top: 0; }
.lc-review-item--dashboard[data-review-status="pending"] { opacity: .8; }

.lc-reviewer-dashboard {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.lc-review-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.lc-review-meta {
    color: var(--lc-text);
    font-size: 0.8rem;
    margin-top: 2px;
}
.lc-review-meta strong { color: var(--lc-gold); }
.lc-review-comment {
    color: var(--lc-text);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Approve button in dashboard */
.lc-approve-review-btn {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════
   LEGACY AVERAGE RATING (property shortcode header)
══════════════════════════════════════════════════ */
.lc-average-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--lc-dark);
    padding: 14px;
    border-radius: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.rating-value { font-size: 2rem; font-weight: 800; color: var(--lc-gold); line-height: 1; }
.rating-stars  { color: var(--lc-gold); font-size: 1.15rem; letter-spacing: 2px; }
.rating-count  { color: var(--lc-text); font-size: 0.875rem; }
.lc-stars      { color: var(--lc-gold); letter-spacing: 2px; }

/* ══════════════════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .lc-reviews-overview {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lc-score-circle {
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: left;
    }
    .lc-sub-ratings-overview { min-width: 0; }
    .lc-review-header { flex-direction: column; align-items: flex-start; }
    .lc-review-score-wrap { text-align: left; }
    .lc-review-sub-ratings { grid-template-columns: 1fr 1fr; }
    .lc-add-review { padding: 20px; }
    .lc-sub-rating-label { width: 110px; font-size: 0.78rem; }
    .lc-reviews-overview { padding: 16px; }
    .lc-star { font-size: 1.8rem; }
    .lc-button { width: 100%; }

    /* MÓVIL 2026-07-19: chips de temas + sort + paginación tap-friendly y que envuelvan.
       (Antes salían como botones blancos del navegador — ver fallbacks arriba.) */
    .lc-reviews-controls { justify-content: stretch; }
    .lc-reviews-sort { width: 100%; }
    .lc-reviews-topics-chips { gap: 8px; }
    .lc-review-topic-chip {
        padding: 9px 14px;
        font-size: 0.9rem;
    }
    .lc-reviews-pagination { gap: 6px; }
    .lc-pagination-btn { min-width: 42px; min-height: 40px; padding: 8px 12px; }
}

@media (max-width: 480px) {
    .lc-reviews-container { padding: 16px; }
    .lc-reviews-header h3 { font-size: 1.25rem; }
    .lc-score-big { font-size: 2.5rem; }
    .lc-review-item { padding: 14px; }
    .lc-star { font-size: 1.6rem; }
    .lc-traveler-types { gap: 6px; }
    .lc-traveler-btn { font-size: 0.78rem; padding: 5px 10px; }
    .lc-sub-rating-row { flex-wrap: wrap; }
    .lc-sub-rating-label { width: 100%; margin-bottom: 2px; }
    .lc-review-sub-ratings { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   MOBILE BOOKING REVIEWS MODAL
══════════════════════════════════════════════════ */
.lc-booking-mobile-reviews-modal { display: none; }
body.lc-booking-mobile-reviews-open .lc-booking-mobile-reviews-modal { display: block; }

@media (max-width: 768px) {
    .lc-booking-mobile-reviews-modal {
        position: fixed; inset: 0; z-index: 4000;
    }
    .lc-booking-mobile-reviews-overlay {
        position: absolute; inset: 0;
        background: rgba(0,0,0,.58);
        backdrop-filter: blur(2px);
        z-index: 4001;
    }
    .lc-booking-mobile-reviews-dialog {
        position: absolute; left: 12px; right: 12px; bottom: 12px;
        max-height: 78vh; overflow: hidden;
        border-radius: 20px;
        background: var(--lc-surface);
        border: 1px solid var(--lc-border);
        box-shadow: 0 -12px 32px rgba(0,0,0,.36);
        display: flex; flex-direction: column;
        z-index: 4002;
    }
    .lc-booking-mobile-reviews-head {
        position: relative; padding: 16px 18px 10px;
        border-bottom: 1px solid var(--lc-border);
    }
    .lc-booking-mobile-reviews-head h4 { margin: 0 0 4px; color: var(--lc-gold); font-size: 18px; }
    .lc-booking-mobile-reviews-head p  { margin: 0; color: #cfcfcf; font-size: 12px; }
    .lc-booking-mobile-reviews-body    { padding: 14px 16px 16px; overflow-y: auto; }
    .lc-booking-mobile-reviews-close {
        position: absolute; top: 10px; right: 10px;
        width: 36px; height: 36px;
        border: none; border-radius: 50%;
        background: rgba(255,255,255,.08);
        color: var(--lc-gold); font-size: 24px; line-height: 1;
        cursor: pointer; display: flex; align-items: center; justify-content: center;
        z-index: 4003; pointer-events: auto;
    }
    body.lc-booking-mobile-reviews-open { overflow: hidden; }
}

/* ══════════════════════════════════════════════════════════════════════
   PREMIUM MEDIA — photo upload, social cards, verified badge, lightbox
   Mobile-first, large touch targets.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Form: photo uploader ───────────────────────────────────────────── */
.lc-review-media-group .lc-media-hint,
.lc-review-social-group .lc-media-hint {
    font-size: 12px; color: #8a8a8a; margin: 6px 0 0;
}
.lc-photo-uploader {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.lc-photo-previews { display: contents; }
.lc-photo-cell {
    position: relative; width: 84px; height: 84px; border-radius: 12px;
    overflow: hidden; background: #f0f0f1; flex: 0 0 auto;
}
.lc-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-photo-cell.is-loading img { filter: brightness(.6); }
.lc-photo-spin {
    position: absolute; inset: 0; margin: auto; width: 24px; height: 24px;
    border: 3px solid rgba(255,255,255,.5); border-top-color: #fff;
    border-radius: 50%; animation: lc-spin .8s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }
.lc-photo-del {
    position: absolute; top: 3px; right: 3px; width: 24px; height: 24px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff;
    font-size: 18px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
}
.lc-photo-add {
    width: 84px; height: 84px; border-radius: 12px; border: 2px dashed #c9b27a;
    background: rgba(226,196,142,.08); display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px; cursor: pointer;
    color: #8a7a52; flex: 0 0 auto; transition: background .15s;
}
.lc-photo-add:active { background: rgba(226,196,142,.2); }
.lc-photo-add-icon { font-size: 24px; line-height: 1; }
.lc-photo-add-text { font-size: 11px; font-weight: 600; }

/* ── Form: social adder ─────────────────────────────────────────────── */
.lc-social-adder { display: flex; gap: 8px; margin-top: 8px; }
.lc-social-adder input[type="url"] {
    flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px;
    border: 1px solid #d8d8d8; border-radius: 10px; font-size: 15px;
}
.lc-button--ghost {
    background: transparent; border: 1px solid #c9b27a; color: #8a7a52;
    border-radius: 10px; padding: 0 16px; height: 44px; font-weight: 600;
    cursor: pointer; flex: 0 0 auto;
}
.lc-social-previews { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

/* ── Social chip (form + display) ───────────────────────────────────── */
.lc-social-chip {
    display: flex; align-items: center; gap: 10px; padding: 8px;
    border: 1px solid #e6e6e6; border-radius: 12px; background: #fafafa;
    position: relative;
}
.lc-social-thumb {
    width: 52px; height: 52px; border-radius: 8px; flex: 0 0 auto;
    background-size: cover; background-position: center; background-color: #eee;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.lc-social-thumb--icon { background: #f0e9d8; }
.lc-social-body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.lc-social-plat { font-size: 11px; font-weight: 700; color: #8a7a52; letter-spacing: .03em; }
.lc-social-title {
    font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.lc-social-del {
    position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
    border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
    font-size: 16px; cursor: pointer; line-height: 1;
}
.lc-social-link { text-decoration: none; display: block; }
.lc-review-social { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }

/* ── Display: verified badge ────────────────────────────────────────── */
.lc-review-verified {
    display: flex; align-items: center; gap: 8px; margin: 8px 0 4px;
    font-size: 13px; color: #3ddc84; font-weight: 600;
}
.lc-verified-check {
    flex: 0 0 auto; width: 18px; height: 18px; border-radius: 4px;
    background: #22c55e; color: #fff; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ── Display: photos grid ───────────────────────────────────────────── */
.lc-review-photos {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px; margin: 10px 0;
}
.lc-review-photo {
    display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
    background-size: cover; background-position: center; background-color: #eee;
    cursor: zoom-in;
}

/* ── Lightbox ───────────────────────────────────────────────────────── */
body.lc-lb-open { overflow: hidden; }
.lc-rev-lightbox {
    position: fixed; inset: 0; z-index: 100000; display: none;
    align-items: center; justify-content: center; background: rgba(0,0,0,.92);
}
.lc-rev-lightbox.is-open { display: flex; }
.lc-rev-lightbox .lc-lb-img {
    max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 6px;
}
.lc-lb-close {
    position: absolute; top: 14px; right: 16px; width: 44px; height: 44px;
    border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 28px;
    border-radius: 50%; cursor: pointer; line-height: 1;
}
.lc-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
    border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 30px;
    border-radius: 50%; cursor: pointer; line-height: 1;
}
.lc-lb-prev { left: 12px; }
.lc-lb-next { right: 12px; }

@media (min-width: 768px) {
    .lc-photo-cell, .lc-photo-add { width: 96px; height: 96px; }
}

/* ── Club de Viajeros: perfil del autor bajo la reseña ──────────────── */
.lc-traveler-profile {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px;
}
.lc-tp-chip {
    font-size: 12px; line-height: 1.4; color: #e7decb;
    background: rgba(226,196,142,.14); border: 1px solid rgba(226,196,142,.25);
    border-radius: 20px; padding: 2px 10px; white-space: nowrap;
}

/* Plantillas rápidas de respuesta del anfitrión (1 clic) */
.lc-reply-templates {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px;
}
.lc-reply-tpl-hint { font-size: 12px; color: #9a9280; margin-right: 2px; }
.lc-reply-tpl {
    background: rgba(226,196,142,.12); border: 1px solid rgba(226,196,142,.3);
    color: #e7decb; border-radius: 999px; padding: 5px 12px; font-size: 12px;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.lc-reply-tpl:hover { background: rgba(226,196,142,.24); border-color: rgba(226,196,142,.55); }
