/* ── Page Comments / Reviews ── */

.th-comments *,
.th-comments *::before,
.th-comments *::after { box-sizing: border-box; }

.th-comments {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--th-ink);
}

/* ── Form card ── */

.th-comments__form-wrap {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 28px 32px;
    margin-bottom: 2rem;
}

.th-comments__heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--th-ink);
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Two-column row */
.th-comments__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.th-comments__field {
    margin-bottom: 16px;
}

.th-comments__row .th-comments__field {
    margin-bottom: 0;
}

.th-comments__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--th-ink);
    margin-bottom: 6px;
}

.th-comments__field input,
.th-comments__field textarea {
    width: 100%;
    padding: 10px 14px !important;
    border: 1px solid var(--th-rule) !important;
    border-radius: var(--th-radius) !important;
    font-size: 14px;
    color: var(--th-ink);
    background: var(--th-bg) !important;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.th-comments__field input:focus,
.th-comments__field textarea:focus {
    border-color: var(--th-gold);
    box-shadow: 0 0 0 2px rgba(241,165,2,.15);
    outline: none;
}

.th-comments__field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.th-comments__field input::placeholder,
.th-comments__field textarea::placeholder {
    color: var(--th-ink-light);
    opacity: 1;
}

/* ── Star rating ── */

.th-comments__rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.th-comments__rating-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--th-ink);
}

.th-comments__stars {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.th-comments__star {
    width: 24px;
    height: 24px;
    fill: var(--th-rule);
    transition: fill .15s ease;
}

.th-comments__star--active,
.th-comments__star--hover {
    fill: var(--th-gold);
}

/* ── Form footer ── */

.th-comments__form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.th-comments__moderation {
    font-size: 12.5px;
    color: var(--th-ink-light);
    line-height: 1.5;
    margin: 0 !important;
    max-width: 460px;
}

.th-comments__submit {
    background: var(--th-gold);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--th-radius);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease, transform .15s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.th-comments__submit:hover {
    background: var(--th-gold-dim);
    transform: translateY(-1px);
}

.th-comments__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

/* ── Feedback message ── */

.th-comments__feedback {
    padding: 12px 16px;
    border-radius: var(--th-radius);
    font-size: 13.5px;
    margin-top: 16px;
    line-height: 1.5;
}

.th-comments__feedback--success {
    background: var(--th-teal-soft);
    color: var(--th-teal);
    border: 1px solid rgba(13,115,119,.2);
}

.th-comments__feedback--error {
    background: var(--th-red-soft);
    color: var(--th-red);
    border: 1px solid rgba(217,64,64,.15);
}

/* ── Comment cards ── */

.th-comments__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.th-comments__card {
    background: var(--th-white);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius-lg);
    padding: 22px 26px;
}

.th-comments__card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.th-comments__card-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.th-comments__card-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--th-ink);
    line-height: 1.2;
}

.th-comments__card-hotel {
    font-size: 13px;
    color: var(--th-ink-light);
    font-weight: 600;
}

.th-comments__card-date {
    font-size: 12px;
    color: var(--th-ink-light);
    line-height: 1.2;
    font-weight: 600;
}

.th-comments__card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

/* Stars in cards */
.th-comments__card-stars {
    display: flex;
    gap: 2px;
}

.th-comments__star-icon {
    width: 18px;
    height: 18px;
    fill: var(--th-rule);
}

.th-comments__star-icon--sm {
    width: 16px;
    height: 16px;
}

.th-comments__star-icon--filled {
    fill: var(--th-gold);
}

/* Type badge */
.th-comments__card-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .04em;
}

.th-comments__card-badge--review {
    background: var(--th-teal-soft);
    color: var(--th-teal);
}

.th-comments__card-badge--question {
    background: var(--th-gold-soft);
    color: var(--th-gold-dim);
    border: 1px solid var(--th-gold-mid);
}

/* Comment body */
.th-comments__card-body {
    font-size: 14.5px;
    color: var(--th-ink-mid);
    line-height: 1.75;
}

.th-comments__card-body p {
    margin: 0 0 8px !important;
}

.th-comments__card-body p:last-child {
    margin-bottom: 0 !important;
}

/* ── Admin reply ── */

.th-comments__admin-reply {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--th-bg);
    border-left: 3px solid var(--th-gold);
    border-radius: 0 var(--th-radius) var(--th-radius) 0;
}

.th-comments__admin-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--th-gold-dim);
    margin-bottom: 6px;
}

.th-comments__admin-text {
    font-size: 13.5px;
    color: var(--th-ink-mid);
    line-height: 1.7;
}

.th-comments__admin-text p {
    margin: 0 0 8px !important;
}

.th-comments__admin-text p:last-child {
    margin-bottom: 0 !important;
}

/* ── Load more ── */

.th-comments__load-more-wrap {
    margin-top: 4px;
}

.th-comments__load-more {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--th-bg);
    border: 1px solid var(--th-rule);
    border-radius: var(--th-radius);
    font-size: 14px;
    font-weight: 600;
    color: var(--th-ink);
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: border-color .15s ease, color .15s ease;
}

.th-comments__load-more:hover {
    border-color: var(--th-gold);
    color: var(--th-gold-dim);
}

.th-comments__load-more:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Responsive ── */

@media (max-width: 767px) {
    .th-comments__form-wrap {
        padding: 20px 16px;
    }
    .th-comments__row {
        grid-template-columns: 1fr;
    }
    .th-comments__form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .th-comments__moderation {
        max-width: none;
    }
    .th-comments__submit {
        width: 100%;
        text-align: center;
    }
    .th-comments__card {
        padding: 18px 16px;
    }
    .th-comments__card-header {
        flex-direction: column;
        gap: 8px;
    }
    .th-comments__card-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}
