/* =========================================================
 * LEYSAM REVIEWS
 *
 * Handles:
 * - Customer review form
 * - Review submission messages
 * - Public review cards
 * - Single Trip reviews
 * - Homepage Featured Reviews
 * ========================================================= */


/* =========================================================
 * REVIEW FORM
 * ========================================================= */

.leysam-review-form-wrap {
    width: calc(100% - 40px);
    max-width: 760px;
    margin: 40px auto;
    padding: 36px;
    box-sizing: border-box;
    background: #fff8f1;
    border-radius: 18px;
}

.leysam-review-form-header {
    margin-bottom: 30px;
}

.leysam-review-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #e87519;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.leysam-review-form-header h2 {
    margin: 0 0 12px;
    color: #241c17;
}

.leysam-review-form-header p {
    margin: 0;
}

.leysam-review-field,
.leysam-review-rating {
    margin: 0 0 26px;
}

.leysam-review-field label,
.leysam-review-rating legend {
    display: block;
    margin-bottom: 9px;
    color: #241c17;
    font-weight: 700;
}

.leysam-review-field input,
.leysam-review-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d8d1ca;
    border-radius: 8px;
    background: #ffffff;
    font: inherit;
}

.leysam-review-field input:focus,
.leysam-review-field textarea:focus {
    border-color: #e87519;
    outline: none;
}

.leysam-review-field textarea {
    resize: vertical;
}

.leysam-review-help,
.leysam-review-character-count {
    margin: 6px 0 0;
    font-size: 13px;
}

.leysam-review-character-count {
    text-align: right;
}


/* =========================================================
 * REVIEW FORM STARS
 * ========================================================= */

.leysam-review-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.leysam-review-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.leysam-review-stars label {
    cursor: pointer;
    color: #c8c2bd;
    font-size: 38px;
    line-height: 1;
}

.leysam-review-stars label:hover,
.leysam-review-stars label:hover ~ label,
.leysam-review-stars input:checked ~ label {
    color: #e87519;
}

.leysam-review-stars input:focus-visible + label {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* =========================================================
 * REVIEW FORM CONSENT + SUBMIT
 * ========================================================= */

.leysam-review-consent {
    margin-bottom: 26px;
}

.leysam-review-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.leysam-review-consent input {
    margin-top: 4px;
}

.leysam-review-submit {
    padding: 13px 24px;
    border: 0;
    border-radius: 8px;
    background: #e87519;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.leysam-review-submit:hover {
    opacity: 0.9;
}

.leysam-review-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* =========================================================
 * REVIEW MESSAGES
 * ========================================================= */

.leysam-review-message {
    max-width: 760px;
    margin: 40px auto;
    padding: 20px;
    border-radius: 10px;
}

.leysam-review-message-success {
    background: #f0f7f0;
}

.leysam-review-message-error {
    background: #fff1f0;
}


/* =========================================================
 * REVIEW RESULT
 * ========================================================= */

.leysam-review-result {
    max-width: 760px;
    margin: 40px auto;
    padding: 40px 32px;
    text-align: center;
    border-radius: 18px;
}

.leysam-review-result h2 {
    margin: 0 0 12px;
    color: #241c17;
}

.leysam-review-result p {
    margin: 0;
}

.leysam-review-result-success {
    background: #f3f8f1;
}

.leysam-review-result-error {
    background: #fff1ee;
}

.leysam-review-result-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #e87519;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.leysam-review-home-link {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #e87519;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.leysam-review-home-link:hover {
    color: #ffffff;
    opacity: 0.9;
}

.leysam-review-inline-message {
    margin-bottom: 26px;
    padding: 16px 18px;
    border-radius: 8px;
}

.leysam-review-inline-message strong {
    display: block;
    margin-bottom: 4px;
}

.leysam-review-inline-message p {
    margin: 0;
}

.leysam-review-inline-message-error {
    background: #fff1ee;
}


/* =========================================================
 * PUBLIC REVIEWS
 * ========================================================= */

.leysam-public-reviews {
    width: 100%;
}

.leysam-public-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
 * PUBLIC REVIEW CARD
 * ========================================================= */

.leysam-review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    min-height: 300px;
    padding: 30px;

    background: #fff8f1;
    border: 1px solid rgba(36, 28, 23, 0.08);
    border-radius: 18px;

    overflow: hidden;
}

.leysam-review-card::after {
    content: "“";
    position: absolute;
    top: 2px;
    right: 22px;

    color: rgba(232, 117, 25, 0.10);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 100px;
    line-height: 1;

    pointer-events: none;
}


/* =========================================================
 * FEATURED BADGE
 * ========================================================= */

.leysam-review-featured-badge {
    position: relative;
    z-index: 1;

    display: inline-block;
    align-self: flex-start;

    margin-bottom: 20px;
    padding: 7px 12px;

    border-radius: 999px;

    background: #e87519;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    line-height: 1.2;
    text-transform: uppercase;
}


/* =========================================================
 * CARD STARS
 * ========================================================= */

.leysam-review-card-stars {
    position: relative;
    z-index: 1;

    display: flex;
    gap: 4px;

    margin-bottom: 20px;

    font-size: 20px;
    line-height: 1;
}

.leysam-review-star-active {
    color: #e87519;
}

.leysam-review-star-empty {
    color: #d8d1ca;
}


/* =========================================================
 * CARD REVIEW TEXT
 * ========================================================= */

.leysam-review-card-text {
    position: relative;
    z-index: 1;

    flex: 1;

    margin: 0 0 26px;
    padding: 0;

    border: 0;
}

.leysam-review-card-text p {
    margin: 0;

    color: #3f3732;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
 * CARD FOOTER
 * ========================================================= */

.leysam-review-card-footer {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    gap: 4px;

    padding-top: 19px;

    border-top: 1px solid rgba(36, 28, 23, 0.10);
}

.leysam-review-card-name {
    color: #241c17;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.leysam-review-card-trip {
    color: #e87519;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.leysam-review-card-date {
    margin-top: 2px;

    color: #756c66;

    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
 * SINGLE TRIP REVIEWS
 * ========================================================= */

.leysam-trip-reviews {
    width: 100%;
    margin: 0;
    padding: 80px 24px;

    box-sizing: border-box;

    background: #ffffff;
}

.leysam-trip-reviews > .leysam-trip-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.leysam-trip-reviews-inner {
    width: 100%;
}

.leysam-trip-reviews-heading {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.leysam-trip-reviews-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: #e87519;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.leysam-trip-reviews-heading h2 {
    margin: 0 0 14px;

    color: #241c17;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.leysam-trip-reviews-heading p {
    max-width: 600px;
    margin: 0 auto;

    color: #6d625c;

    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
 * HOMEPAGE FEATURED REVIEWS
 * ========================================================= */

.leysam-home-reviews {
    width: 100%;
    box-sizing: border-box;

    padding: 90px 24px;

    background: #fff8f1;
}

.leysam-home-reviews > .wp-block-group__inner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.leysam-home-reviews-heading {
    max-width: 760px;
    margin: 0 auto 48px;

    text-align: center;
}

.leysam-home-reviews-heading p:first-child {
    margin: 0 0 12px;

    color: #e87519;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.leysam-home-reviews-heading h2 {
    margin: 0 0 16px;

    color: #241c17;

    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.leysam-home-reviews-heading h2 + p {
    max-width: 620px;
    margin: 0 auto;

    color: #6d625c;

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
 * HOMEPAGE REVIEW AREA
 * ========================================================= */

.leysam-home-reviews .leysam-public-reviews {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.leysam-home-reviews .leysam-public-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* =========================================================
 * HOMEPAGE PREMIUM REVIEW CARD
 * ========================================================= */

.leysam-home-reviews .leysam-review-card {
    min-height: 340px;
    padding: 34px 32px 30px;

    background: #ffffff;

    border: 1px solid rgba(36, 28, 23, 0.08);
    border-radius: 22px;

    box-shadow:
        0 12px 35px rgba(36, 28, 23, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.leysam-home-reviews .leysam-review-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 48px rgba(36, 28, 23, 0.12);
}

.leysam-home-reviews .leysam-review-card::after {
    top: 0;
    right: 24px;

    color: rgba(232, 117, 25, 0.10);

    font-size: 115px;
}


/* =========================================================
 * HOMEPAGE FEATURED BADGE
 * ========================================================= */

.leysam-home-reviews .leysam-review-featured-badge {
    margin-bottom: 22px;

    padding: 7px 13px;

    background: #fff0e3;
    color: #c75e0b;
}


/* =========================================================
 * HOMEPAGE STARS
 * ========================================================= */

.leysam-home-reviews .leysam-review-card-stars {
    margin-bottom: 22px;

    font-size: 21px;
}


/* =========================================================
 * HOMEPAGE REVIEW TEXT
 * ========================================================= */

.leysam-home-reviews .leysam-review-card-text {
    margin-bottom: 30px;
}

.leysam-home-reviews .leysam-review-card-text p {
    color: #3f3732;

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
 * HOMEPAGE REVIEWER INFORMATION
 * ========================================================= */

.leysam-home-reviews .leysam-review-card-footer {
    gap: 5px;
    padding-top: 21px;
}

.leysam-home-reviews .leysam-review-card-name {
    font-size: 17px;
}

.leysam-home-reviews .leysam-review-card-trip {
    font-size: 14px;
}

.leysam-home-reviews .leysam-review-card-date {
    font-size: 13px;
}


/* =========================================================
 * HOMEPAGE — SINGLE FEATURED REVIEW
 *
 * Prevent one review from stretching across the entire
 * desktop screen.
 * ========================================================= */

.leysam-home-reviews
.leysam-public-reviews-grid:has(
    > .leysam-review-card:only-child
) {
    display: block;
}

.leysam-home-reviews
.leysam-public-reviews-grid
> .leysam-review-card:only-child {
    width: 100%;
    max-width: 720px;
    min-height: 320px;

    margin: 0 auto;
}


/* =========================================================
 * TABLET
 * ========================================================= */

@media (max-width: 1024px) {

    .leysam-home-reviews {
        padding: 72px 22px;
    }

    .leysam-home-reviews .leysam-public-reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .leysam-trip-reviews {
        padding: 70px 22px;
    }
}


/* =========================================================
 * MOBILE
 * ========================================================= */

@media (max-width: 767px) {

    .leysam-review-form-wrap {
        width: calc(100% - 32px);
        margin: 20px auto;
        padding: 24px 18px;
        border-radius: 14px;
    }

    .leysam-review-stars label {
        font-size: 34px;
    }

    .leysam-review-result {
        margin: 20px 16px;
        padding: 30px 20px;
    }


    /* PUBLIC CARDS */

    .leysam-public-reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .leysam-review-card {
        min-height: 0;
        padding: 25px 22px;
    }

    .leysam-review-card::after {
        right: 15px;
        font-size: 80px;
    }

    .leysam-review-card-text p {
        font-size: 16px;
    }


    /* SINGLE TRIP */

    .leysam-trip-reviews {
        padding: 55px 18px;
    }

    .leysam-trip-reviews-heading {
        margin-bottom: 30px;
        text-align: left;
    }

    .leysam-trip-reviews-heading h2 {
        font-size: 32px;
    }

    .leysam-trip-reviews-heading p {
        margin: 0;
    }


    /* HOMEPAGE */

    .leysam-home-reviews {
        padding: 58px 18px;
    }

    .leysam-home-reviews-heading {
        margin-bottom: 34px;
    }

    .leysam-home-reviews-heading h2 {
        font-size: 32px;
    }

    .leysam-home-reviews-heading h2 + p {
        font-size: 16px;
    }

    .leysam-home-reviews .leysam-public-reviews-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .leysam-home-reviews
    .leysam-public-reviews-grid
    > .leysam-review-card:only-child {
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
    }

    .leysam-home-reviews .leysam-review-card {
        min-height: 0;
        padding: 28px 23px 25px;
    }

    .leysam-home-reviews .leysam-review-card::after {
        right: 15px;
        font-size: 85px;
    }

    .leysam-home-reviews .leysam-review-card-text p {
        font-size: 16px;
        line-height: 1.7;
    }
}