/* reviews.css — jim-corbett-reviews.php only. */

.csi-rv-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

/* Same fixed-header clearance as the resort pages. */
body.page-jim-corbett-reviews .csi-breadcrumb-wrap {
    padding-top: 92px;
}

.csi-rv-hero {
    position: relative;
    isolation: isolate;
    padding: 3.5rem 0 3rem;
    color: #f6efe4;
    background: #0a1a14;
    overflow: hidden;
}

.csi-rv-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.csi-rv-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csi-rv-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 21, 16, 0.86) 0%, rgba(7, 21, 16, 0.6) 50%, rgba(7, 21, 16, 0.9) 100%);
}

.csi-rv-hero h1 {
    margin: 0.9rem 0 0.8rem;
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    line-height: 1.14;
    color: #fff;
}

.csi-rv-hero p {
    max-width: 62ch;
    line-height: 1.75;
    color: rgba(246, 239, 228, 0.9);
}

.csi-rv-eyebrow {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e1b48f;
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.csi-rv-section {
    padding: 3.25rem 0;
}

.csi-rv-section--cream {
    background: #f3efe6;
}

.csi-rv-section h2 {
    color: var(--primary, #1d4d3d);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.24;
}

.csi-rv-intro {
    max-width: 70ch;
    margin: 0 auto 1.6rem;
    text-align: center;
}

.csi-rv-intro .csi-rv-eyebrow {
    color: var(--accent, #c57e4b);
}

.csi-rv-intro p {
    margin-top: 0.65rem;
    color: rgba(21, 49, 39, 0.8);
    line-height: 1.78;
}

/* ── Stars ────────────────────────────────────────────────────────────── */

.csi-rv-stars {
    display: inline-flex;
    gap: 0.1rem;
    line-height: 1;
}

.csi-rv-star {
    color: rgba(21, 49, 39, 0.22);
    font-size: 1.05rem;
}

.csi-rv-star--on {
    color: #d99235;
}

/* ── Summary ──────────────────────────────────────────────────────────── */

.csi-rv-summary {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.8rem;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(23, 49, 39, 0.09);
    box-shadow: 0 20px 48px rgba(11, 29, 24, 0.07);
}

.csi-rv-score {
    text-align: center;
}

.csi-rv-score strong {
    display: block;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
    color: var(--primary, #1d4d3d);
}

.csi-rv-score .csi-rv-stars {
    margin: 0.55rem 0 0.35rem;
}

.csi-rv-score span {
    display: block;
    font-size: 0.88rem;
    color: rgba(21, 49, 39, 0.72);
}

.csi-rv-bars {
    display: grid;
    gap: 0.45rem;
}

.csi-rv-bar {
    display: grid;
    grid-template-columns: 3.1rem 1fr 2.4rem;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.86rem;
    color: rgba(21, 49, 39, 0.76);
}

.csi-rv-bar__track {
    height: 9px;
    border-radius: 999px;
    background: rgba(29, 77, 61, 0.1);
    overflow: hidden;
}

.csi-rv-bar__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f7b5d, #c57e4b);
}

/* ── Review cards ─────────────────────────────────────────────────────── */

.csi-rv-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.6rem;
}

.csi-rv-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(23, 49, 39, 0.09);
    box-shadow: 0 18px 42px rgba(11, 29, 24, 0.06);
}

.csi-rv-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.csi-rv-tag {
    display: inline-block;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(29, 77, 61, 0.08);
    color: var(--primary, #1d4d3d);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.csi-rv-card h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    color: var(--primary, #1d4d3d);
}

.csi-rv-card blockquote {
    margin: 0;
    color: rgba(21, 49, 39, 0.82);
    line-height: 1.78;
    white-space: pre-line;
}

.csi-rv-card footer {
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(23, 49, 39, 0.08);
    font-size: 0.86rem;
    color: rgba(21, 49, 39, 0.7);
}

.csi-rv-card footer strong {
    color: var(--primary, #1d4d3d);
}

/* ── Empty state ──────────────────────────────────────────────────────── */

.csi-rv-empty {
    padding: 2.2rem;
    border-radius: 26px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(29, 77, 61, 0.28);
}

.csi-rv-empty h3 {
    color: var(--primary, #1d4d3d);
}

.csi-rv-empty p {
    max-width: 60ch;
    margin: 0.7rem auto 0;
    color: rgba(21, 49, 39, 0.78);
    line-height: 1.78;
}

/* ── Form ─────────────────────────────────────────────────────────────── */

.csi-rv-form-wrap {
    padding: 1.8rem;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(23, 49, 39, 0.09);
    box-shadow: 0 20px 48px rgba(11, 29, 24, 0.07);
}

.csi-rv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.csi-rv-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.csi-rv-field--full {
    grid-column: 1 / -1;
}

.csi-rv-field label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary, #1d4d3d);
}

.csi-rv-field input,
.csi-rv-field select,
.csi-rv-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(23, 49, 39, 0.18);
    background: #fcfbf7;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text-dark, #1b342e);
}

.csi-rv-field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.7;
}

.csi-rv-field input:focus,
.csi-rv-field select:focus,
.csi-rv-field textarea:focus {
    outline: 2px solid var(--accent, #c57e4b);
    outline-offset: 1px;
}

.csi-rv-field [aria-invalid="true"] {
    border-color: #b3401f;
}

.csi-rv-hint {
    font-size: 0.79rem;
    color: rgba(21, 49, 39, 0.62);
}

.csi-rv-counter {
    align-self: flex-end;
    font-size: 0.78rem;
    color: rgba(21, 49, 39, 0.55);
}

.csi-rv-error {
    font-size: 0.82rem;
    color: #b3401f;
}

/* Star radio group */
.csi-rv-rating {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border: 0;
    padding: 0;
    margin: 0;
}

.csi-rv-rating legend {
    padding: 0;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary, #1d4d3d);
}

.csi-rv-rating__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

.csi-rv-rating input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.csi-rv-rating label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(29, 77, 61, 0.2);
    background: #fcfbf7;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(21, 49, 39, 0.8);
}

.csi-rv-rating input:checked + label {
    border-color: var(--accent, #c57e4b);
    background: rgba(197, 126, 75, 0.12);
    color: var(--primary, #1d4d3d);
}

.csi-rv-rating input:focus-visible + label {
    outline: 2px solid var(--accent, #c57e4b);
    outline-offset: 2px;
}

.csi-rv-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.csi-rv-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 1.2rem;
    padding: 0.85rem 1.7rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #eea560 0%, #d78849 100%);
    color: #17251e;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.csi-rv-submit:disabled {
    opacity: 0.65;
    cursor: progress;
}

.csi-rv-status {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.6;
}

.csi-rv-status--success {
    background: rgba(47, 123, 93, 0.12);
    border: 1px solid rgba(47, 123, 93, 0.35);
    color: #1d4d3d;
}

.csi-rv-status--error {
    background: rgba(179, 64, 31, 0.1);
    border: 1px solid rgba(179, 64, 31, 0.32);
    color: #8d3218;
}

.csi-rv-policy {
    margin-top: 1.2rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(21, 49, 39, 0.7);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 860px) {
    .csi-rv-summary,
    .csi-rv-list,
    .csi-rv-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    body.page-jim-corbett-reviews .csi-breadcrumb-wrap {
        padding-top: 82px;
    }
}

@media (max-width: 720px) {
    .csi-rv-hero {
        padding: 2.5rem 0 2.4rem;
    }

    .csi-rv-section {
        padding: 2.4rem 0;
    }

    .csi-rv-summary,
    .csi-rv-card,
    .csi-rv-form-wrap,
    .csi-rv-empty {
        padding: 1.25rem;
        border-radius: 20px;
    }

    .csi-rv-submit {
        width: 100%;
    }
}
