/**
 * Property Reviews Elementor Widget
 *
 * Every rule is scoped to the section's root, .lgap-property-reviews. The
 * accent colour comes from the widget's Accent Color control through
 * --lgap-reviews-accent; it is used for the title, fills and borders, never
 * for button or link text (it fails contrast as text on white).
 *
 * The buttons carry the theme's has-background and has-text-color classes,
 * which opt them out of Twenty Twenty-One's default button colours.
 *
 * @package avantio-properties
 */

.lgap-property-reviews {
    --lgap-reviews-accent: #FFB800;
    --lgap-reviews-ink: #141414;
    --lgap-reviews-text: #333333;
    --lgap-reviews-muted: #595959;
    --lgap-reviews-line: #E0E0E0;
    --lgap-reviews-soft: #F7F7F7;
    --lgap-reviews-display-font: "Playfair Display", serif;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: var(--lgap-reviews-text);
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    scroll-margin-top: 24px;
}

/* The theme sets its own font on paragraphs, lists and headings. */
.lgap-property-reviews * {
    font-family: inherit;
}

.lgap-property-reviews [hidden] {
    display: none !important;
}

.lgap-property-reviews .lgap-reviews-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.lgap-property-reviews p,
.lgap-property-reviews dl,
.lgap-property-reviews dt,
.lgap-property-reviews dd {
    margin: 0;
    padding: 0;
}

/* ========================================
   Section title
======================================== */
.lgap-property-reviews .lgap-reviews-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lgap-property-reviews .lgap-reviews-title {
    margin: 0;
    font-family: var(--lgap-reviews-display-font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lgap-reviews-accent);
}

.lgap-property-reviews .lgap-reviews-separator {
    width: 100%;
    max-width: none;
    height: 0;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--lgap-reviews-line);
    background: none;
}

/* ========================================
   Overview: overall score and aspect bars
======================================== */
.lgap-property-reviews .lgap-reviews-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px 48px;
}

.lgap-property-reviews .lgap-reviews-overall {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lgap-property-reviews .lgap-reviews-overall-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lgap-property-reviews .lgap-reviews-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lgap-property-reviews .lgap-reviews-score-value {
    font-family: var(--lgap-reviews-display-font);
    font-size: 64px;
    font-weight: 600;
    line-height: 1;
    color: #000000;
}

.lgap-property-reviews .lgap-reviews-score-scale {
    font-size: 18px;
    color: var(--lgap-reviews-muted);
}

.lgap-property-reviews .lgap-reviews-band {
    font-family: var(--lgap-reviews-display-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #000000;
}

.lgap-property-reviews .lgap-reviews-stars {
    position: relative;
    width: 92px;
    height: 16px;
}

.lgap-property-reviews .lgap-reviews-stars-empty,
.lgap-property-reviews .lgap-reviews-stars-full {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 3px;
    height: 16px;
    overflow: hidden;
}

.lgap-property-reviews .lgap-reviews-stars-empty {
    width: 92px;
    fill: #E3E3E3;
}

.lgap-property-reviews .lgap-reviews-stars-full {
    fill: var(--lgap-reviews-accent);
}

.lgap-property-reviews .lgap-reviews-stars svg {
    flex-shrink: 0;
    display: block;
}

.lgap-property-reviews .lgap-reviews-count {
    font-size: 14px;
    color: var(--lgap-reviews-muted);
}

.lgap-property-reviews .lgap-reviews-aspects {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.lgap-property-reviews .lgap-reviews-aspect {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 14px;
}

.lgap-property-reviews .lgap-reviews-aspect-label {
    font-size: 15px;
    font-weight: 400;
    color: var(--lgap-reviews-text);
}

.lgap-property-reviews .lgap-reviews-aspect-bar {
    position: relative;
    height: 6px;
    background: #EEEEEE;
}

.lgap-property-reviews .lgap-reviews-aspect-bar span {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    background: var(--lgap-reviews-accent);
}

.lgap-property-reviews .lgap-reviews-aspect-value {
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    color: #000000;
}

/* ========================================
   Verified-guest note
======================================== */
.lgap-property-reviews .lgap-reviews-verified {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--lgap-reviews-muted);
}

.lgap-property-reviews .lgap-reviews-verified-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

/* ========================================
   Language filter and sort
======================================== */
.lgap-property-reviews .lgap-reviews-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lgap-property-reviews .lgap-reviews-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lgap-property-reviews .lgap-reviews-filter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid var(--lgap-reviews-soft);
    border-radius: 22px;
    background: var(--lgap-reviews-soft);
    color: var(--lgap-reviews-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.lgap-property-reviews .lgap-reviews-filter:hover {
    border-color: var(--lgap-reviews-ink);
}

.lgap-property-reviews .lgap-reviews-filter[aria-pressed="true"] {
    border-color: var(--lgap-reviews-ink);
    background: var(--lgap-reviews-ink);
    color: #FFFFFF;
}

.lgap-property-reviews .lgap-reviews-filter-count {
    opacity: 0.75;
}

.lgap-property-reviews .lgap-reviews-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lgap-property-reviews .lgap-reviews-sort-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--lgap-reviews-ink);
}

.lgap-property-reviews .lgap-reviews-sort-select {
    min-height: 44px;
    margin: 0;
    padding: 0 36px 0 14px;
    border: 1px solid #DDDDDD;
    border-radius: 0;
    background-color: #FFFFFF;
    color: var(--lgap-reviews-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
}

/* ========================================
   Reviews
======================================== */
.lgap-property-reviews .lgap-reviews-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lgap-property-reviews .lgap-review {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lgap-property-reviews .lgap-review-article {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0;
    border-top: 1px solid var(--lgap-reviews-line);
}

.lgap-property-reviews .lgap-review-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
        "score title band"
        "score byline band";
    align-items: start;
    column-gap: 16px;
    row-gap: 4px;
}

.lgap-property-reviews .lgap-review-score {
    grid-area: score;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--lgap-reviews-accent);
    color: #000000;
    font-family: var(--lgap-reviews-display-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.lgap-property-reviews .lgap-review-band {
    grid-area: band;
    font-size: 14px;
    font-weight: 600;
    color: var(--lgap-reviews-ink);
}

.lgap-property-reviews .lgap-review-title {
    grid-area: title;
    margin: 0;
    font-family: var(--lgap-reviews-display-font);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    color: #000000;
    overflow-wrap: anywhere;
}

.lgap-property-reviews .lgap-review-byline {
    grid-area: byline;
    font-size: 14px;
    line-height: 1.45;
    color: var(--lgap-reviews-muted);
}

.lgap-property-reviews .lgap-review-comment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-left: 60px;
}

.lgap-property-reviews .lgap-review-comment-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.lgap-property-reviews .lgap-review-positive .lgap-review-comment-icon {
    color: #1D6B45;
}

.lgap-property-reviews .lgap-review-negative .lgap-review-comment-icon {
    color: #A84300;
}

.lgap-property-reviews .lgap-review-comment-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.lgap-property-reviews .lgap-review-comment-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--lgap-reviews-text);
    overflow-wrap: anywhere;
}

/* About three lines; the script adds the class only when the text is longer. */
.lgap-property-reviews .lgap-review-comment-text.lgap-is-folded {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.lgap-property-reviews .lgap-review-fold {
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--lgap-reviews-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: underline;
    text-transform: none;
    cursor: pointer;
}

.lgap-property-reviews .lgap-review-fold:hover {
    background: none;
    color: #000000;
    text-decoration-thickness: 2px;
}

.lgap-property-reviews .lgap-review-reply {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 60px;
    padding: 14px 18px;
    background: var(--lgap-reviews-soft);
}

.lgap-property-reviews .lgap-review-reply-heading {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--lgap-reviews-ink);
}

.lgap-property-reviews .lgap-review-reply-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--lgap-reviews-text);
    overflow-wrap: anywhere;
}

/* ========================================
   Show more / show less
======================================== */
.lgap-property-reviews .lgap-reviews-more-wrapper {
    margin-top: -24px;
    padding-top: 24px;
    border-top: 1px solid var(--lgap-reviews-line);
}

.lgap-property-reviews .lgap-reviews-more {
    min-height: 44px;
    margin: 0;
    padding: 0 22px;
    border: 1px solid var(--lgap-reviews-accent);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--lgap-reviews-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
}

.lgap-property-reviews .lgap-reviews-more:hover {
    background: var(--lgap-reviews-accent);
    color: #000000;
}

/* ========================================
   Focus
======================================== */
.lgap-property-reviews button:focus,
.lgap-property-reviews select:focus {
    outline: none;
}

.lgap-property-reviews button:focus-visible,
.lgap-property-reviews select:focus-visible {
    outline: 2px solid var(--lgap-reviews-ink);
    outline-offset: 2px;
}

/* ========================================
   Editor placeholder
======================================== */
.elementor-widget-avantio-property-reviews .lgap-reviews-placeholder {
    padding: 24px;
    border: 1px dashed #C4C4C4;
    background: #F7F7F7;
    color: #333333;
    font-size: 14px;
    text-align: center;
}

.elementor-widget-avantio-property-reviews .lgap-reviews-placeholder p {
    margin: 0;
}

/* ========================================
   Phone: below the site's mobile breakpoint
======================================== */
@media (max-width: 767px) {
    .lgap-property-reviews {
        gap: 20px;
    }

    .lgap-property-reviews .lgap-reviews-overview {
        flex-direction: column;
        gap: 20px;
    }

    .lgap-property-reviews .lgap-reviews-overall {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .lgap-property-reviews .lgap-reviews-overall-details {
        gap: 6px;
    }

    .lgap-property-reviews .lgap-reviews-score-value {
        font-size: 52px;
    }

    .lgap-property-reviews .lgap-reviews-score-scale {
        display: none;
    }

    .lgap-property-reviews .lgap-reviews-band {
        font-size: 18px;
    }

    .lgap-property-reviews .lgap-reviews-count {
        font-size: 13px;
    }

    .lgap-property-reviews .lgap-reviews-aspects {
        flex: 0 0 auto;
        gap: 12px;
    }

    .lgap-property-reviews .lgap-reviews-aspect {
        grid-template-columns: 128px minmax(0, 1fr) 30px;
        gap: 12px;
    }

    .lgap-property-reviews .lgap-reviews-aspect-label,
    .lgap-property-reviews .lgap-reviews-aspect-value {
        font-size: 14px;
    }

    .lgap-property-reviews .lgap-reviews-verified {
        font-size: 13px;
    }

    .lgap-property-reviews .lgap-reviews-controls {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .lgap-property-reviews .lgap-reviews-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .lgap-property-reviews .lgap-reviews-filters::-webkit-scrollbar {
        display: none;
    }

    .lgap-property-reviews .lgap-reviews-filter {
        flex-shrink: 0;
        padding: 0 16px;
    }

    .lgap-property-reviews .lgap-reviews-sort {
        justify-content: space-between;
    }

    .lgap-property-reviews .lgap-reviews-sort-label {
        font-size: 12px;
    }

    .lgap-property-reviews .lgap-reviews-sort-select {
        flex: 1 1 auto;
        padding-left: 12px;
    }

    .lgap-property-reviews .lgap-review-article {
        gap: 12px;
        padding: 20px 0;
    }

    .lgap-property-reviews .lgap-review-header {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "score band"
            "score title"
            "score byline";
        column-gap: 12px;
    }

    .lgap-property-reviews .lgap-review-score {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lgap-property-reviews .lgap-review-band {
        font-size: 12px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .lgap-property-reviews .lgap-review-title {
        font-size: 17px;
    }

    .lgap-property-reviews .lgap-review-byline {
        font-size: 13px;
    }

    .lgap-property-reviews .lgap-review-comment {
        gap: 10px;
        padding-left: 0;
    }

    .lgap-property-reviews .lgap-review-comment-icon {
        width: 18px;
        height: 18px;
    }

    .lgap-property-reviews .lgap-review-comment-body {
        gap: 4px;
    }

    .lgap-property-reviews .lgap-review-comment-text {
        font-size: 15px;
    }

    .lgap-property-reviews .lgap-review-reply {
        margin-left: 0;
        padding: 12px 14px;
    }

    .lgap-property-reviews .lgap-review-reply-heading {
        font-size: 12px;
    }

    .lgap-property-reviews .lgap-review-reply-text {
        font-size: 14px;
    }

    .lgap-property-reviews .lgap-reviews-more-wrapper {
        margin-top: -20px;
        padding-top: 20px;
    }

    .lgap-property-reviews .lgap-reviews-more {
        width: 100%;
        min-height: 48px;
        font-size: 15px;
    }
}

@media print {
    .lgap-property-reviews .lgap-reviews-controls,
    .lgap-property-reviews .lgap-reviews-more-wrapper,
    .lgap-property-reviews .lgap-review-fold {
        display: none !important;
    }

    .lgap-property-reviews .lgap-review[hidden] {
        display: block !important;
    }

    .lgap-property-reviews .lgap-review-comment-text.lgap-is-folded {
        display: block;
        -webkit-line-clamp: none;
        line-clamp: none;
    }
}
