.review-heading-actions,
.review-item-header,
.review-author,
.review-gym-rating,
.review-list-header,
.review-summary-score {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.review-heading-actions,
.review-item-header,
.review-list-header {
    justify-content: space-between;
}

.review-stars {
    color: #087f75;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.review-outline-button,
.review-cta-button,
.review-pagination a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid #087f75;
    border-radius: 6px;
    color: #087f75;
    background: #fff;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.review-outline-button:hover,
.review-pagination a:hover {
    color: #065f57;
    background: #edf6f3;
}

.gym-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    padding: 0 0 1rem;
    border-bottom: 1px solid #dce5e2;
}

.gym-section-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: #29383d;
    font-size: 0.875rem;
    text-decoration: none;
}

.gym-section-nav a[aria-current="location"] {
    color: #087f75;
    font-weight: 700;
}

.gym-section-nav a:hover {
    color: #087f75;
    text-decoration: underline;
    text-underline-offset: 0.4em;
}

#gym-information,
#reviews,
#reviews-heading,
#gym-access {
    scroll-margin-top: 5rem;
}

.review-section {
    width: 100%;
    max-width: 960px;
    margin: 0 auto 2rem;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    background: #fff;
    padding: 1.5rem;
    color: #29383d;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.review-section-body {
    background: #f8f8f8;
}

.review-gym-header {
    padding-bottom: 1rem;
}

.review-gym-location,
.review-gym-count {
    color: #607077;
    font-size: 0.8125rem;
}

.review-gym-location {
    margin: 0 0 0.5rem;
}

.review-gym-name {
    margin: 0 0 0.75rem;
    color: #111;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.5;
}

.review-gym-rating {
    margin: 0;
    gap: 0.25rem;
}

.review-content {
    padding-top: 1.25rem;
}

.review-content > h3 {
    margin: 0 0 1rem;
    color: #111;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.6;
}

.review-summary,
.review-empty {
    padding: 1rem 1.125rem;
    border-radius: 8px;
    background: #f1f7f6;
}

.review-summary-score {
    margin-bottom: 0.5rem;
    gap: 0.25rem;
}

.review-summary-average {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.review-summary-scale,
.review-summary-caption,
.review-policy-note,
.review-list-header,
.review-posted,
.review-cta-note,
.review-empty-note {
    color: #607077;
    font-size: 0.8125rem;
}

.review-summary-count,
.review-policy-lead,
.review-empty-lead {
    margin: 0;
    color: #626d70;
    font-size: 0.875rem;
}

.review-summary-caption {
    display: inline-block;
    margin-left: 0.25rem;
    font-weight: 400;
}

.review-policy {
    margin: 1rem 0;
    padding: 0.125rem 0.75rem;
    border-left: 3px solid #087f75;
}

.review-policy-note,
.review-empty-note {
    margin: 0.25rem 0 0;
}

.review-list-header {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dce5e2;
}

.review-list,
.review-chips,
.review-images {
    margin: 0;
    padding: 0;
    list-style: none;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #dce5e2;
}

.review-item:last-child {
    border-bottom: 0;
}

.review-author {
    margin: 0;
    gap: 0.25rem;
    color: #111;
    font-weight: 700;
    font-size: 0.875rem;
}

.review-posted {
    margin: 0;
}

.review-chips,
.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.review-chips li {
    padding: 0.5rem;
    border-radius: 2px;
    background: #f1f7f6;
    font-size: 0.75rem;
}

.review-subheading {
    margin: 1rem 0 0.5rem;
    color: #111;
    font-size: 0.875rem;
    font-weight: 700;
}

.review-text {
    margin: 0 0 1rem;
    color: #626d70;
    font-size: 0.875rem;
    line-height: 1.9;
    white-space: pre-line;
}

.review-images a {
    display: inline-block;
}

.review-images img {
    display: block;
    object-fit: cover;
    border: 1px solid #dce5e2;
    border-radius: 6px;
}

.review-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.review-cta {
    margin-top: 0;
    padding: 1.25rem 1rem 2rem;
    border-radius: 8px 8px 0 0;
    background: #f1f7f6;
    text-align: center;
}

.review-cta-title {
    margin: 0 0 0.5rem;
    color: #111;
    font-size: 1rem;
    font-weight: 700;
}

.review-cta-lead {
    margin: 0 0 0.5rem;
    color: #626d70;
    font-size: 0.875rem;
}

.review-cta-button {
    color: #fff;
    background: #087f75;
}

.review-cta-button:hover {
    color: #fff;
    background: #065f57;
}

.review-cta-note {
    margin: 0.75rem 0 0;
}

.review-heading-actions a:focus-visible,
.gym-section-nav a:focus-visible,
.review-section a:focus-visible,
.review-form-banner a:focus-visible {
    outline: 3px solid #087f75;
    outline-offset: 4px;
}

.review-form-banner {
    width: 300px;
    max-width: 100%;
    margin: 0 auto 2rem;
}

.review-form-banner a {
    display: block;
    position: relative;
}

.review-form-banner a::after {
    position: absolute;
    inset: 0;
    border: 1px solid #dce5e2;
    content: "";
    pointer-events: none;
}

.review-form-banner img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .review-section {
        padding: 1rem;
    }

    .gym-section-nav {
        gap: 0 1rem;
    }

    .review-summary,
    .review-empty,
    .review-cta {
        padding: 1rem;
    }

    .review-summary-caption {
        display: block;
        margin-left: 0;
    }

    .review-cta-button {
        width: 100%;
    }
}
