.afr-summary,
.afr-reviews {
    font-family: inherit;
    color: #ffffff;
}

.afr-widget {
    font-family: inherit;
    color: #ffffff;
    padding: 32px 24px;
    position: relative;
}

.afr-widget--no-bg {
    background: none;
}

.afr-widget--has-bg {
    background-image: url('https://approachtours.com/wp-content/uploads/2023/02/Pattern-backing-scaled.webp');
    background-size: contain;
    background-position: top center;
    background-repeat: repeat;
    background-attachment: fixed;
}

.afr-widget--no-bg {
    background: none;
}

.afr-widget--has-bg {
    background-image: url('https://approachtours.com/wp-content/uploads/2023/02/Pattern-backing-scaled.webp');
    background-size: contain;
    background-position: top center;
    background-repeat: repeat;
    background-attachment: fixed;
}

.afr-widget *,
.afr-widget *::before,
.afr-widget *::after {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.afr-widget__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.afr-widget__title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #00008c;
    text-align: center;
}

.afr-widget__logo img {
    max-height: 28px;
    width: auto;
    display: block;
}

.afr-widget__summary {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    background: #00008c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 24px;
    width: 75%;
}

.afr-summary-card {
    flex: 1 1 0;
    padding: 18px 20px;
    background: #00008c;
    color: #ffffff;
}

.afr-summary-card__score {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.afr-summary-card__outof {
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
}

.afr-summary-card h3 {
    margin: 8px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.afr-summary-card__title-main,
.afr-summary-card__title-sub {
    display: block;
}

.afr-summary-card__title-sub {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.afr-summary-card__desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.afr-summary-card__powered {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.afr-summary-card__logo {
    margin-top: 6px;
}

.afr-summary-card__logo img {
    max-height: 24px;
    width: auto;
}

.afr-summary-card__body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
}

.afr-summary-card__metrics {
    border: 0;
    padding: 12px;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.08);
}

.afr-summary-card .afr-stars__base,
.afr-summary-card .afr-stars__fill {
    color: #f6b21a;
}

.afr-summary-divider {
    width: 1px;
    border: 0;
    margin: 12px 0;
    background: rgba(255, 255, 255, 0.3);
    align-self: stretch;
}

.afr-widget__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 auto 20px;
    width: 75%;
}

.afr-control {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    gap: 6px;
}

.afr-control span {
    color: #00008c;
    font-weight: 600;
}

.afr-control__select {
    border: 0;
    padding: 8px 12px;
    font-size: 14px;
    background: #00008c;
    color: #ffffff;
}

.afr-control__select option {
    background: #ffffff;
    color: #00008c;
}

.afr-control__select option:checked,
.afr-control__select option:hover {
    background: #00008c;
    color: #ffffff;
}

.afr-widget__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.afr-review {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px;
    background: var(--afr-review-bg, rgba(0, 0, 0, 0.35));
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 16px;
    width: 75%;
    margin: 0 auto;
}

.afr-review__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
}

.afr-review__text {
    font-size: 15px;
    line-height: 1.6;
}

.afr-review__subheading {
    margin-top: 12px;
    font-weight: 600;
}

.afr-review__section-header {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.afr-review__content--no-title .afr-review__section-header {
    margin-top: 0;
}

.afr-review__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.afr-review__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    text-align: left;
}

.afr-review__date {
    color: rgba(255, 255, 255);
}

.afr-review__section-stars {
    margin: 0;
}

.afr-review__media {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.afr-media-thumb {
    width: 112px;
    height: 112px;
    overflow: hidden;
    background: #fafafa;
    padding: 0;
    cursor: pointer;
    position: relative;
    transition: transform 160ms ease;
}

.afr-media-thumb:hover {
    transform: scale(1.04);
}

.afr-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afr-media-thumb--more::after {
    content: attr(data-more);
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    padding: 2px 6px;
    font: 600 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #00008c;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    pointer-events: none;
}

.afr-review__response {
    margin-top: 12px;
}

.afr-response-toggle {
    border: 1px solid var(--afr-review-bg, #00008c);
    background: #ffffff;
    color: var(--afr-review-bg, #00008c);
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    box-sizing: border-box;
}

.afr-response-toggle:hover,
.afr-response-toggle:focus,
.afr-response-toggle:active {
    background: var(--afr-review-bg, #00008c);
    color: #ffffff;
    border-color: #ffffff;
}

.afr-response-text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.afr-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.afr-lightbox.is-active {
    display: flex;
}

.afr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.afr-lightbox__content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 72px;
    gap: 0;
    box-sizing: border-box;
}

.afr-lightbox__content img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.afr-lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    background: #00008c;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.afr-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: #00008c;
    color: #ffffff;
    width: 42px;
    height: 42px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.afr-lightbox__prev {
    left: 12px;
}

.afr-lightbox__next {
    right: 12px;
}

.afr-lightbox__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.afr-stars {
    display: inline-flex;
    gap: 2px;
    color: #f6b21a;
}

.afr-stars__wrap {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
}

.afr-stars__base {
    color: rgba(255, 255, 255, 0.35);
}

.afr-stars__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: calc((var(--afr-rating) / 5) * 100%);
    overflow: hidden;
    white-space: nowrap;
    color: #f6b21a;
}

.afr-readmore {
    display: inline;
    margin-left: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    line-height: inherit;
}

.afr-readmore:hover,
.afr-readmore:focus {
    color: rgba(255, 255, 255, 0.8);
}

.afr-merchant-response {
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    padding-left: 16px;
    background: rgba(0, 0, 0, 0.35);
}

.afr-merchant-response__who {
    font-weight: 600;
    margin-bottom: 8px;
}

.afr-merchant-response__text {
    line-height: 1.6;
}

.afr-widget__actions {
    margin-top: 24px;
    text-align: center;
}

.afr-loadmore {
    border: 1px solid #ffffff;
    background: #00008c;
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.afr-loadmore:hover,
.afr-loadmore:focus,
.afr-loadmore:active {
    background: #ffffff;
    color: #00008c;
    border-color: #00008c;
}

.afr-summary {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
}

.afr-summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.afr-summary-count {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.75);
}

.afr-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
}

.afr-review-card {
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 12px;
    background: rgba(0, 0, 0, 0.35);
}

.afr-review-stars {
    margin-bottom: 8px;
    color: #f0a500;
}

.afr-review-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.afr-review-body {
    margin-bottom: 8px;
}

.afr-review-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.afr-rating-dist {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 200px;
}

.afr-rating-dist__row {
    display: grid;
    grid-template-columns: 20px 1fr 60px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.afr-rating-dist__stars {
    font-weight: 600;
}

.afr-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 999px;
}

.afr-bar__fill {
    display: block;
    height: 100%;
    width: var(--afr-bar-percent, 0%);
    background: #f6b21a;
    border-radius: 999px;
}

.afr-widget__empty--filters {
    background: #00008c;
    color: #ffffff;
    padding: 12px 16px;
    text-align: center;
}

.afr-review__tour-link {
    color: #ffffff;
    text-decoration: underline;
}

.afr-review__tour-link:hover,
.afr-review__tour-link:focus {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 800px) {
    .afr-review {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .afr-widget__summary {
        flex-direction: column;
        width: 100%;
    }

    .afr-summary-card {
        padding: 12px 16px;
    }

    .afr-summary-card h3 {
        font-size: 14px;
    }

    .afr-summary-card__desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .afr-summary-card__body {
        gap: 10px;
    }

    .afr-summary-card--overall,
    .afr-summary-card--trip,
    .afr-summary-card--experience {
        text-align: center;
    }

    .afr-summary-card--overall .afr-summary-card__body,
    .afr-summary-card--trip .afr-summary-card__body,
    .afr-summary-card--experience .afr-summary-card__body {
        flex-direction: column;
        align-items: center;
    }

    .afr-summary-card--overall .afr-summary-card__metrics,
    .afr-summary-card--trip .afr-summary-card__metrics,
    .afr-summary-card--experience .afr-summary-card__metrics {
        text-align: center;
    }

    .afr-summary-card--overall .afr-rating-dist {
        align-items: center;
    }

    .afr-summary-card--trip .afr-rating-dist,
    .afr-summary-card--experience .afr-rating-dist {
        align-items: stretch;
        width: 100%;
    }

    .afr-summary-card--trip .afr-rating-dist__row,
    .afr-summary-card--experience .afr-rating-dist__row {
        width: 100%;
    }

    .afr-widget__controls {
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .afr-control {
        flex: 1 1 0;
        min-width: 0;
    }

    .afr-control span {
        font-size: 11px;
    }

    .afr-control__select {
        width: 100%;
        font-size: 13px;
        padding: 6px 8px;
    }

    .afr-summary-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
}

.afr-error {
    color: #ffe3e3;
}

.afr-empty {
    color: rgba(255, 255, 255, 0.75);
}
