/* Airbnb-Style Reviews Component
 * Based on Airbnb's reviews modal design
 * Rebuilt: 2026-01-23 for BUG-141 fix
 * Original implementation extracted from chat history
 */

/* ============================================
   REVIEWS SECTION (Main Page)
   ============================================ */

.airbnb-reviews {
    padding: 2rem 0;
}

.airbnb-reviews__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.airbnb-reviews__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 1.5rem;
}

/* Guest reviews mention pills (Airbnb-style) */
.airbnb-reviews__mentions {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ebebeb;
}

.airbnb-reviews__mentions-wrap {
    position: relative;
}

.airbnb-reviews__mentions-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-right: 0;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.airbnb-reviews__mentions-wrap.smart-hscroll--can-right .airbnb-reviews__mentions-row {
    padding-right: 52px;
}

.airbnb-reviews__mentions-wrap.smart-hscroll--can-left .airbnb-reviews__mentions-row {
    padding-left: 52px;
}

.airbnb-reviews__mentions-row::-webkit-scrollbar {
    display: none;
}

.airbnb-reviews__mention-chip {
    border: 1px solid #ebebeb;
    background: #ffffff;
    border-radius: 999px;
    padding: 13px 18px;
    min-height: 46px;
    font-size: 14px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    color: #222;
}

.airbnb-reviews__mention-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex: 0 0 auto;
}

.airbnb-reviews__mention-count {
    color: #717171;
    font-weight: 600;
}

.airbnb-reviews__mentions-scroll {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #ebebeb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.airbnb-reviews__mentions-scroll--left {
    right: auto;
    left: 6px;
}

/* Reviews Grid - 2 column layout like Airbnb */
.airbnb-reviews__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .airbnb-reviews__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Individual Review Card */
.airbnb-review {
    padding: 18px 0;
    border-bottom: 1px solid #e5e7eb;
}

.airbnb-review:last-child {
    border-bottom: none;
}

/* Review Header - Avatar + Name */
.airbnb-review__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.airbnb-review__avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.airbnb-review__avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.airbnb-review__identity {
    flex: 1;
    min-width: 0;
}

.airbnb-review__name {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.airbnb-review__sub {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.2;
    margin-top: 2px;
}

/* Review Meta - Stars + Date + Badge */
.airbnb-review__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 0;
}

.airbnb-review__meta-item {
    font-size: 12px;
    color: #6b7280;
}

/* Star Rating */
.airbnb-review__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.airbnb-review__star {
    width: 12px;
    height: 12px;
    color: #d1d5db;
    transition: color 0.15s ease;
}

.airbnb-review__star.is-active {
    color: #111827;
}

/* Review Text Content */
.airbnb-review__text {
    font-size: 14px;
    line-height: 1.5;
    color: #111827;
    margin: 10px 0 0;
    white-space: pre-line;
    word-wrap: break-word;
}

.airbnb-review__text--truncated {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Search Highlight Match */
mark.airbnb-review__match {
    background-color: #ffeb3b;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

/* Show More Toggle */
.airbnb-review__toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
}

.airbnb-review__toggle:hover {
    color: #000;
}

/* Show All Reviews Button */
.airbnb-reviews__show-all {
    margin-top: 1.5rem;
    text-align: left;
}

.airbnb-reviews__show-all-btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.airbnb-reviews__show-all-btn:hover {
    background: #f7f7f7;
}

/* AI/price page uses borderless CTAs; keep this button consistent there. */
.ai-price-page .airbnb-reviews__show-all-btn {
    border: none;
    border-radius: 999px;
    background: rgba(40, 154, 150, 0.12);
    color: #226d68;
    font-weight: 700;
}

.ai-price-page .airbnb-reviews__show-all-btn:hover {
    background: rgba(40, 154, 150, 0.18);
}

.ai-price-page .airbnb-reviews__show-all-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 154, 150, 0.25);
}

/* Footer with How Reviews Work */
.airbnb-reviews__footer {
    margin-top: 1.5rem;
    position: relative;
}

.airbnb-reviews__help-link {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #717171;
    text-decoration: underline;
    cursor: pointer;
}

.airbnb-reviews__help-link:hover {
    color: #222;
}

.airbnb-reviews__help-popover {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    max-width: 320px;
    z-index: 100;
    margin-bottom: 0.5rem;
}

.airbnb-reviews__help-popover[hidden] {
    display: none;
}

.airbnb-reviews__help-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #717171;
    cursor: pointer;
    line-height: 1;
}

.airbnb-reviews__help-text {
    font-size: 0.875rem;
    color: #222;
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.airbnb-reviews__help-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   REVIEWS MODAL (Airbnb-style)
   Uses airbnb-reviews-modal prefix with CSS vars
   ============================================ */

.airbnb-reviews-modal {
    /* Colors */
    --airbnb-text: #222222;
    --airbnb-muted: #717171;
    --airbnb-border: #dddddd;
    --airbnb-modal-bg: #ffffff;

    /* Typography */
    --airbnb-avatar-size: 48px;
    --airbnb-body-size: 16px;
    --airbnb-body-line: 24px;
    --airbnb-meta-size: 14px;
    --airbnb-meta-line: 18px;

    /* Modal dimensions */
    --airbnb-modal-width: 1032px;
    --airbnb-modal-radius: 32px;
    --airbnb-modal-pad-x: 64px;
    --airbnb-modal-pad-top: 56px;
    --airbnb-modal-pad-bottom: 24px;
    --airbnb-modal-gap-x: 32px;
    --airbnb-modal-left-width: 333px;
    --airbnb-modal-shadow: rgba(0, 0, 0, 0.28) 0px 8px 28px 0px;

    /* Custom scrollbar */
    --airbnb-scroll-track-height: 200px;
    --airbnb-topbar-height: 56px;

    /* Bootstrap override */
    --bs-modal-margin: 40px;
}

/* Modal Dialog - Bootstrap integration */
.airbnb-reviews-modal .modal-dialog {
    max-width: var(--airbnb-modal-width);
    margin: var(--bs-modal-margin) auto;
}

.airbnb-reviews-modal .modal-content {
    border-radius: var(--airbnb-modal-radius);
    border: none;
    box-shadow: var(--airbnb-modal-shadow);
    background: var(--airbnb-modal-bg);
    overflow: hidden;
}

.airbnb-reviews-modal .modal-body {
    padding: 0;
    overflow: hidden;
}

/* Modal Layout - Grid with topbar, left, right areas */
.airbnb-reviews-modal__layout {
    display: grid;
    grid-template-columns: var(--airbnb-modal-left-width) 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "topbar topbar"
        "left right";
    height: calc(100vh - (var(--bs-modal-margin) * 2));
    max-height: 800px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .airbnb-reviews-modal__layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "topbar"
            "left"
            "right";
        max-height: none;
        height: auto;
    }
}

/* Topbar - Sticky header row */
.airbnb-reviews-modal__topbar {
    grid-area: topbar;
    display: grid;
    grid-template-columns: var(--airbnb-modal-left-width) 1fr auto;
    align-items: center;
    padding: 0 var(--airbnb-modal-pad-x);
    height: var(--airbnb-topbar-height);
    border-bottom: 1px solid var(--airbnb-border);
    position: sticky;
    top: 0;
    background: var(--airbnb-modal-bg);
    z-index: 10;
}

.airbnb-reviews-modal__topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.airbnb-reviews-modal__topbar-center {
    /* Empty or for title */
}

.airbnb-reviews-modal__topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Close button */
.airbnb-reviews-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.airbnb-reviews-modal__close:hover {
    background: #f7f7f7;
}

.airbnb-reviews-modal__close svg {
    width: 16px;
    height: 16px;
    color: var(--airbnb-text);
}

/* Left Column - Histogram + Highlights */
.airbnb-reviews-modal__left {
    grid-area: left;
    padding: var(--airbnb-modal-pad-top) var(--airbnb-modal-gap-x) var(--airbnb-modal-pad-bottom) var(--airbnb-modal-pad-x);
    border-right: 1px solid var(--airbnb-border);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .airbnb-reviews-modal__left {
        border-right: none;
        border-bottom: 1px solid var(--airbnb-border);
        padding: 1.5rem;
    }
}

/* Overall Rating */
.airbnb-reviews-modal__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.airbnb-reviews-modal__rating-star {
    width: 24px;
    height: 24px;
    color: var(--airbnb-text);
}

.airbnb-reviews-modal__rating-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--airbnb-text);
}

.airbnb-reviews-modal__count {
    font-size: var(--airbnb-meta-size);
    color: var(--airbnb-muted);
    margin-left: 0.25rem;
}

/* Histogram */
.airbnb-reviews-modal__histogram {
    margin-bottom: 1.5rem;
}

.airbnb-reviews-modal__histogram-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.airbnb-reviews-modal__histogram-row:hover {
    opacity: 0.7;
}

.airbnb-reviews-modal__histogram-label {
    width: 12px;
    font-size: 0.75rem;
    color: var(--airbnb-muted);
    text-align: right;
}

.airbnb-reviews-modal__histogram-track {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.airbnb-reviews-modal__histogram-fill {
    height: 100%;
    background: var(--airbnb-text);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* School Highlights in Modal */
.airbnb-reviews-modal__highlights {
    margin-top: 1.5rem;
}

.airbnb-reviews-modal__highlights-title {
    font-size: var(--airbnb-body-size);
    font-weight: 600;
    color: var(--airbnb-text);
    margin-bottom: 0.75rem;
}

.airbnb-reviews-modal__highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ebebeb;
}

.airbnb-reviews-modal__highlight-row:last-child {
    border-bottom: none;
}

.airbnb-reviews-modal__highlight-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--airbnb-meta-size);
    color: var(--airbnb-text);
}

.airbnb-reviews-modal__highlight-name i {
    font-size: 1rem;
    color: var(--airbnb-text);
}

.airbnb-reviews-modal__highlight-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--airbnb-text);
}

/* Right Column - Search + Reviews */
.airbnb-reviews-modal__right {
    grid-area: right;
    padding: var(--airbnb-modal-pad-top) var(--airbnb-modal-pad-x) var(--airbnb-modal-pad-bottom) var(--airbnb-modal-gap-x);
    overflow-y: auto;
    position: relative;
}

@media (max-width: 768px) {
    .airbnb-reviews-modal__right {
        padding: 1.5rem;
    }
}

/* Search Box */
.airbnb-reviews-modal__search {
    margin-bottom: 1.5rem;
    position: relative;
}

.airbnb-reviews-modal__search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid #b0b0b0;
    border-radius: 32px;
    font-size: var(--airbnb-meta-size);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.airbnb-reviews-modal__search-input:focus {
    border-color: var(--airbnb-text);
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1);
}

.airbnb-reviews-modal__search-input::placeholder {
    color: var(--airbnb-muted);
}

.airbnb-reviews-modal__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--airbnb-muted);
    pointer-events: none;
}

/* Search Results Header */
.airbnb-reviews-modal__search-results {
    font-size: var(--airbnb-meta-size);
    color: var(--airbnb-muted);
    margin-bottom: 1rem;
}

.airbnb-reviews-modal__search-term {
    font-weight: 600;
    color: var(--airbnb-text);
}

/* Sort Dropdown */
.airbnb-reviews-modal__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.airbnb-reviews-modal__sort-label {
    font-size: var(--airbnb-meta-size);
    color: var(--airbnb-muted);
}

.airbnb-reviews-modal__sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    background: #fff;
    font-size: var(--airbnb-meta-size);
    color: var(--airbnb-text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.airbnb-reviews-modal__sort-select:hover,
.airbnb-reviews-modal__sort-select:focus {
    border-color: var(--airbnb-text);
}

/* Reviews List Container */
.airbnb-reviews-modal__reviews {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Review in Modal (reuses .airbnb-review) */
.airbnb-reviews-modal__reviews .airbnb-review {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ebebeb;
}

.airbnb-reviews-modal__reviews .airbnb-review:last-child {
    border-bottom: none;
}

/* Active review highlight */
.airbnb-review.is-active {
    background: #f7f7f7;
    margin: -0.75rem;
    padding: 0.75rem;
    padding-bottom: 2.25rem;
    border-radius: 12px;
}

/* Loading state */
.airbnb-reviews-modal__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.airbnb-reviews-modal__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--airbnb-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty state */
.airbnb-reviews-modal__empty {
    text-align: center;
    padding: 3rem;
    color: var(--airbnb-muted);
}

/* Custom Scrollbar - Scroll Indicator */
.airbnb-reviews-modal__scroll-indicator {
    position: absolute;
    right: 8px;
    top: calc(var(--airbnb-topbar-height) + var(--airbnb-modal-pad-top));
    bottom: var(--airbnb-modal-pad-bottom);
    width: 6px;
    background: transparent;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 20;
}

.airbnb-reviews-modal__scroll-indicator:hover {
    opacity: 1 !important;
}

.airbnb-reviews-modal__scroll-thumb {
    width: 100%;
    min-height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.airbnb-reviews-modal__scroll-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Hide native scrollbar in modal */
.airbnb-reviews-modal__right::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.airbnb-reviews-modal__layout::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* Sidebar hidden state (mobile or when collapsed) */
.airbnb-reviews-modal__left.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .airbnb-reviews-modal__scroll-indicator {
        display: none;
    }
}

/* ============================================
   BACKWARDS COMPATIBILITY
   Support old reviews-modal__ prefix
   ============================================ */

/* ============================================
   REVIEWS MODAL (Airbnb-like v2)
   Opt-in via .reviews-modal--airbnb
   ============================================ */

/* Hide page sidebars while reviews modals are open (BUG-168). */
body.ai-price-page.reviews-modal-open .sticky-sidebar-content {
    visibility: hidden;
    pointer-events: none;
}

body.k12-listing-page.reviews-modal-open .listing-sidebar {
    visibility: hidden;
    pointer-events: none;
}

.reviews-modal.reviews-modal--airbnb .modal-dialog {
    max-width: 668px;
    margin: 28px auto;
}

.reviews-modal.reviews-modal--airbnb .modal-content {
    border-radius: 20px;
    border: none;
    max-height: 92vh;
    min-height: 92vh;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 8px 28px 0px;
}

.reviews-modal.reviews-modal--airbnb .modal-header {
    border-bottom: none;
    padding: 1rem 1.25rem 0.5rem;
}

/* Header search button — hidden on desktop (search is in toolbar) */
.reviews-modal.reviews-modal--airbnb .reviews-v2__header-search {
    display: none;
}

.reviews-modal.reviews-modal--airbnb .modal-body {
    padding: 0;
    max-height: 87vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    /* Override Bootstrap .modal padding + add dark backdrop like Airbnb */
    .reviews-modal.reviews-modal--airbnb {
        padding: 0 !important;
        background: rgba(0, 0, 0, 0.5);
    }

    /* Override Bootstrap .modal-dialog-centered + .modal-dialog-scrollable */
    .reviews-modal.reviews-modal--airbnb .modal-dialog {
        margin: 0 !important;
        max-width: 100%;
        width: 100%;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 100dvh !important;
        display: flex;
        align-items: flex-end;
    }

    .reviews-modal.reviews-modal--airbnb .modal-content {
        min-height: 99dvh;
        max-height: 99dvh;
        border-radius: 20px 20px 0 0;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .reviews-modal.reviews-modal--airbnb .modal-header {
        flex-shrink: 0;
    }

    .reviews-modal.reviews-modal--airbnb .modal-body {
        flex: 1;
        min-height: 0;
        max-height: none !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0;
    }
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__sticky {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 28px 14px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__list {
    padding: 0 28px 28px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 12px 14px;
    flex: 1 1 auto;
    background: #ffffff;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill input {
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    font-size: 16px;
    line-height: 22px;
    background: transparent;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill:focus-within {
    border-color: #2ac8c8;
    box-shadow: 0 0 0 0.25rem rgba(42, 200, 200, 0.18);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__cancel {
    border: none;
    background: transparent;
    padding: 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__header {
    margin-bottom: 12px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__guest {
    text-align: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__guest-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
    line-height: 1;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__laurel {
    font-size: 34px;
    opacity: 0.9;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__guest-title {
    font-size: 32px;
    font-weight: 800;
    margin-top: 8px;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__guest-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-top: 4px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__simple-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    color: #289a96;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-link:hover {
    color: #2ac8c8;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-wrap {
    position: relative;
    display: inline-flex;
}

/* Toolbar copy: hidden on desktop, shown on mobile via media query */
.reviews-modal.reviews-modal--airbnb .reviews-v2__how-wrap--toolbar {
    display: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover {
    position: absolute;
    top: 26px;
    left: 0;
    width: min(300px, calc(100vw - 96px));
    background: rgba(31, 41, 55, 0.94);
    color: #f9fafb;
    border-radius: 14px;
    padding: 14px 16px 12px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 10px 28px 0px;
    z-index: 5;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__guest .reviews-v2__how-popover {
    left: 50%;
    transform: translateX(-50%);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #f9fafb;
    font-size: 22px;
    line-height: 1;
    opacity: 0.85;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover-close:hover {
    opacity: 1;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover-text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #f9fafb;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__how-popover-cta:hover {
    background: rgba(17, 24, 39, 0.8);
    color: #ffffff;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown {
    margin-top: 14px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap {
    position: relative;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-row {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow-x: auto;
    display: flex;
    gap: 0;
    padding-right: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap.smart-hscroll--can-right .reviews-v2__breakdown-row {
    padding-right: 52px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap.smart-hscroll--can-left .reviews-v2__breakdown-row {
    padding-left: 52px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-row::-webkit-scrollbar {
    display: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg {
    padding: 14px 18px;
    min-width: 150px;
    border-right: 1px solid #e5e7eb;
    flex: 0 0 auto;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg--overall {
    min-width: 210px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg:last-child {
    border-right: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-title {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 6px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-rating {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-icon {
    font-size: 24px;
    line-height: 1;
    color: #111827;
    opacity: 0.9;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    opacity: 0.9;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask {
    width: 24px;
    height: 24px;
    display: inline-block;
    background-color: var(--seg-accent, #111827);
    opacity: 0.9;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask--diversity {
    -webkit-mask-image: url('/assets/SVG/diversity/unity.svg');
    mask-image: url('/assets/SVG/diversity/unity.svg');
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask--administration {
    -webkit-mask-image: url('/assets/SVG/admin/female-admin.svg');
    mask-image: url('/assets/SVG/admin/female-admin.svg');
    transform: scale(1.18);
    transform-origin: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask--clubs {
    -webkit-mask-image: url('/assets/SVG/club/social-club.svg');
    mask-image: url('/assets/SVG/club/social-club.svg');
    transform: scale(0.9);
    transform-origin: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask--teachers {
    -webkit-mask-image: url('/assets/SVG/teacher/teacher.svg');
    mask-image: url('/assets/SVG/teacher/teacher.svg');
}

/* Grade-based segment colors (BUG-161) */
.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-aplus {
    --seg-accent: #289a96;
    --seg-accent-bg: rgba(40, 154, 150, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-a {
    --seg-accent: #33b6b1;
    --seg-accent-bg: rgba(51, 182, 177, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-aminus {
    --seg-accent: #55dcd5;
    --seg-accent-bg: rgba(85, 220, 213, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-bplus {
    --seg-accent: #6a7ff5;
    --seg-accent-bg: rgba(106, 127, 245, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-b {
    --seg-accent: #8193f8;
    --seg-accent-bg: rgba(129, 147, 248, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-bminus {
    --seg-accent: #bac5fc;
    --seg-accent-bg: rgba(186, 197, 252, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-cplus {
    --seg-accent: #fdba74;
    --seg-accent-bg: rgba(253, 186, 116, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-c {
    --seg-accent: #fca65a;
    --seg-accent-bg: rgba(252, 166, 90, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-cminus {
    --seg-accent: #fb923c;
    --seg-accent-bg: rgba(251, 146, 60, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-dplus {
    --seg-accent: #f47c7c;
    --seg-accent-bg: rgba(244, 124, 124, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-d {
    --seg-accent: #f26b6b;
    --seg-accent-bg: rgba(242, 107, 107, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-dminus,
.reviews-modal.reviews-modal--airbnb .reviews-v2__seg.hl-tier-f {
    --seg-accent: #ef4444;
    --seg-accent-bg: rgba(239, 68, 68, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg[class*="hl-tier-"] {
    background: var(--seg-accent-bg, transparent);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__seg[class*="hl-tier-"] .reviews-v2__seg-rating,
.reviews-modal.reviews-modal--airbnb .reviews-v2__seg[class*="hl-tier-"] .reviews-v2__seg-icon {
    color: var(--seg-accent, #111827);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__dist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__dist-row {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 8px;
    align-items: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__dist-label {
    font-size: 12px;
    color: #6b7280;
    line-height: 1;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__dist-bar {
    height: 7px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__dist-fill {
    height: 100%;
    background: #111827;
    border-radius: 999px;
    width: 0%;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions {
    margin-top: 14px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-wrap {
    position: relative;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-right: 0;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-wrap.smart-hscroll--can-right .reviews-v2__mentions-row {
    padding-right: 52px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-wrap.smart-hscroll--can-left .reviews-v2__mentions-row {
    padding-left: 52px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-row::-webkit-scrollbar {
    display: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__chip {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    padding: 14px 20px;
    min-height: 52px;
    font-size: 15px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 0 0 auto;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__chip.is-active {
    border-color: #289a96;
    background: rgba(42, 200, 200, 0.08);
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__chip-count {
    color: #6b7280;
    font-weight: 600;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__chip--clear {
    border-style: dashed;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__scroll-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__scroll-btn--left {
    right: auto;
    left: 6px;
}

.modal-backdrop.reviews-modal-backdrop--transparent {
    opacity: 0;
    pointer-events: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__chip-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__sticky--mention {
    padding-top: 12px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mention-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 0 10px;
    gap: 8px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mention-hero-icon {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mention-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #111827;
    line-height: 1.1;
    text-align: center;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__mention-hero-sub {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__count {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__pill {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__matchline {
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__matchterm {
    color: #111827;
    font-weight: 700;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__review {
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__review:last-child {
    border-bottom: none;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__review--highlight {
    background: #f7f7f7;
    border-radius: 14px;
    padding: 18px 12px;
    margin: 0 -12px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__review-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #374151;
    flex: 0 0 auto;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__name {
    font-weight: 800;
    color: #111827;
    font-size: 16px;
    line-height: 1.2;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__location {
    color: #6b7280;
    font-size: 13px;
    margin-top: 2px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__meta {
    color: #6b7280;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    line-height: 1;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__stars i {
    font-size: 13px;
    color: #111827;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__stars i.is-off {
    color: #d1d5db;
}

.reviews-modal.reviews-modal--airbnb .reviews-v2__text {
    color: #111827;
    font-size: 15px;
    margin-top: 10px;
    white-space: pre-line;
}

.reviews-modal.reviews-modal--airbnb .dropdown-menu {
    border-radius: 14px;
    padding: 8px 0;
}

.reviews-modal.reviews-modal--airbnb .dropdown-menu .dropdown-item {
    font-size: 15px;
    padding: 10px 14px;
}

/* Map old class names to new styles for gradual migration */
.reviews-modal .modal-dialog {
    max-width: 1032px;
    margin: 40px auto;
}

.reviews-modal .modal-content {
    border-radius: 32px;
    border: none;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.28) 0px 8px 28px 0px;
}

.reviews-modal .modal-header {
    border-bottom: 1px solid #dddddd;
    padding: 1rem 1.5rem;
}

.reviews-modal .modal-body {
    padding: 0;
    overflow: hidden;
}

/* Layout backwards compat */
.reviews-modal__layout {
    display: grid;
    grid-template-columns: 333px 1fr;
    min-height: 600px;
    max-height: calc(90vh - 60px);
    overflow: hidden;
}

@media (max-width: 768px) {
    .reviews-modal__layout {
        grid-template-columns: 1fr;
    }
}

.reviews-modal__sidebar {
    padding: 1.5rem;
    border-right: 1px solid #dddddd;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .reviews-modal__sidebar {
        border-right: none;
        border-bottom: 1px solid #dddddd;
    }
}

.reviews-modal__content {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Rating backwards compat */
.reviews-modal__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reviews-modal__rating-star {
    width: 24px;
    height: 24px;
    color: #222;
}

.reviews-modal__rating-value {
    font-size: 1.375rem;
    font-weight: 600;
    color: #222;
}

/* Distribution backwards compat */
.reviews-modal__distribution {
    margin-bottom: 1.5rem;
}

.reviews-modal__distribution-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.reviews-modal__distribution-label {
    width: 12px;
    font-size: 0.75rem;
    color: #717171;
    text-align: right;
}

.reviews-modal__distribution-bar {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.reviews-modal__distribution-fill {
    height: 100%;
    background: #222;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Highlights backwards compat */
.reviews-modal__highlights {
    margin-top: 1.5rem;
}

.reviews-modal__highlight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ebebeb;
}

.reviews-modal__highlight:last-child {
    border-bottom: none;
}

.reviews-modal__highlight-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviews-modal__highlight-icon {
    width: 24px;
    height: 24px;
    color: #222;
}

.reviews-modal__highlight-label {
    font-size: 0.875rem;
    color: #222;
}

.reviews-modal__highlight-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222;
}

/* Toolbar backwards compat */
.reviews-modal__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.reviews-modal__count {
    font-size: 1.375rem;
    font-weight: 600;
    color: #222;
}

.reviews-modal__search {
    flex: 1;
    max-width: 300px;
    position: relative;
}

.reviews-modal__search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #b0b0b0;
    border-radius: 32px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.reviews-modal__search-input:focus {
    border-color: #222;
}

.reviews-modal__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #717171;
}

.reviews-modal__filter {
    position: relative;
}

.reviews-modal__filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    color: #222;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.reviews-modal__filter-btn:hover {
    border-color: #222;
}

/* Reviews list backwards compat */
.reviews-modal__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .reviews-modal__list {
        grid-template-columns: 1fr;
    }
}

.reviews-modal__review {
    padding-bottom: 1.5rem;
}

.reviews-modal__review-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.reviews-modal__review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #222 0%, #484848 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.reviews-modal__review-info {
    flex: 1;
}

.reviews-modal__review-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}

.reviews-modal__review-location {
    font-size: 0.75rem;
    color: #717171;
    margin: 0;
}

.reviews-modal__review-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.reviews-modal__review-stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
}

.reviews-modal__review-star {
    width: 10px;
    height: 10px;
    color: #222;
}

.reviews-modal__review-date {
    font-size: 0.75rem;
    color: #717171;
}

.reviews-modal__review-tag {
    font-size: 0.75rem;
    color: #717171;
}

.reviews-modal__review-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #222;
    margin: 0;
}

.reviews-modal__how-it-works {
    font-size: 0.75rem;
    color: #717171;
    text-decoration: underline;
    cursor: pointer;
}

.reviews-modal__how-it-works:hover {
    color: #222;
}

/* ============================================
   AIRBNB MOBILE MODAL REFINEMENTS (2026-02-02)
   Match Airbnb's exact mobile modal pattern
   ============================================ */

/* Mobile: Match Airbnb's exact mobile modal (2026-02-03) */
@media (max-width: 768px) {

    /* No grab handle — Airbnb doesn't show one */
    .reviews-modal.reviews-modal--airbnb .modal-content::before {
        display: none;
    }

    /* Modal header: Back arrow left, search icon right (Airbnb pattern) */
    .reviews-modal.reviews-modal--airbnb .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 24px 0;
        border-bottom: none;
        position: relative;
        background: #f7f7f7;
    }

    /* Hide default Bootstrap close X, replace with back arrow */
    .reviews-modal.reviews-modal--airbnb .modal-header .btn-close {
        position: relative;
        width: 32px;
        height: 32px;
        padding: 0;
        margin: 0 0 0 -14px;
        background: transparent;
        border: none;
        border-radius: 50%;
        box-shadow: none;
        outline: none;
        opacity: 1;
        order: -1;
        background-image: none !important;
    }

    .reviews-modal.reviews-modal--airbnb .modal-header .btn-close::before {
        content: '←';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        font-weight: 400;
        color: #222222;
        line-height: 1;
    }

    .reviews-modal.reviews-modal--airbnb .modal-header .btn-close::after {
        display: none;
    }

    .reviews-modal.reviews-modal--airbnb .modal-header .btn-close:hover {
        background: #f7f7f7;
    }

    /* Show search icon in header (Airbnb: top-right, aligned with "Most relevant" pill edge) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__header-search {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: none;
        padding: 0;
        margin-right: -14px;
        color: #222;
        font-size: 16px;
        cursor: pointer;
        border-radius: 50%;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__header-search:hover {
        background: #f7f7f7;
    }

    /* Hide search icon from toolbar on mobile (it's in the header now) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar-actions .reviews-v2__icon-btn {
        display: none !important;
    }

    /* Un-stick the header section on mobile — everything scrolls, only the
       modal-header (back arrow + search icon) stays fixed at top. */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__sticky {
        position: static;
        padding: 0 24px 0;
        border-bottom: none;
        background: #f7f7f7;
    }

    /* When search is open on mobile, Airbnb hides the top header row */
    .reviews-modal.reviews-modal--airbnb.reviews-modal--search .modal-header {
        display: none;
    }

    /* ── Search mode: pill + cancel at top of sticky area ────── */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__search-header {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 -24px;
        padding: 10px 20px;
        background: #fff;
        border-bottom: 1px solid #ebebeb;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill {
        border: 1px solid #b0b0b0;
        border-radius: 999px;
        padding: 10px 14px;
        background: #fff;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill input {
        font-size: 15px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__search-pill:focus-within {
        border-color: #222;
        box-shadow: none;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__cancel {
        font-size: 15px;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Below the horizontal line: white background, zero vertical gap */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
        background: #fff;
        margin-left: -24px;
        margin-right: -24px;
        margin-top: 0;
        margin-bottom: 0;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Full-width horizontal bar — sits on the white mentions section, not the grey breakdown */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown::after {
        display: none;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions::before {
        content: '';
        display: block;
        margin-left: -24px;
        margin-right: -24px;
        margin-bottom: 12px;
        border-top: 1px solid #e5e7eb;
    }

    /* ★ 4.8 rating — Airbnb: large bold number, inline star */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__simple-rating {
        font-size: 32px;
        font-weight: 800;
        gap: 8px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__simple-rating .bi-star-fill {
        font-size: 24px;
    }

    /* "How reviews work" — hide from under rating, show in toolbar */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__simple .reviews-v2__how-wrap,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__guest .reviews-v2__how-wrap {
        display: none;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__how-wrap--toolbar {
        display: inline-flex;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__how-link {
        font-size: 12px;
        font-weight: 400;
        margin-top: 0;
        line-height: 1;
        padding: 0;
    }

    /* ── Rating breakdown segments ─────────────────────────
       Airbnb: no outer border, narrower segments, floating
       pipe dividers, no colored backgrounds, small icons */

    /* Space between rating and breakdown segments */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__header {
        margin-bottom: 0;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown {
        margin-top: 8px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-row {
        border: none;
        border-radius: 0;
        gap: 0;
    }

    /* Narrower segments, no border, no colored bg */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg {
        padding: 8px 12px 14px;
        min-width: 95px;
        border-right: none;
        border-radius: 0;
        background: transparent !important;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg--overall {
        min-width: 130px;
        padding-left: 0;
    }

    /* Floating pipe divider between segments (Airbnb-style) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg + .reviews-v2__seg::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: #ddd;
    }

    /* Segment title — match Airbnb: 12px, near-black */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-title {
        font-size: 12px;
        font-weight: 500;
        color: #222;
        margin-bottom: 2px;
    }

    /* Segment rating number — keep highlight color via --seg-accent */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-rating {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    /* Segment icons — 24px, pushed to bottom of pipe like Airbnb */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-icon {
        font-size: 24px;
        margin-top: auto;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask {
        width: 24px;
        height: 24px;
        margin-top: auto;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-img {
        width: 24px;
        height: 24px;
        margin-top: auto;
    }

    /* Distribution bars — match Airbnb's compact chart */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist {
        gap: 2px;
        margin-top: 2px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist-row {
        grid-template-columns: 10px 1fr;
        gap: 6px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist-label {
        font-size: 12px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist-bar {
        height: 4px;
    }

    /* ── Toolbar row ───────────────────────────────────────
       count left, dropdown right, "how reviews work" below count */

    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
        margin-top: 16px;
        flex-wrap: wrap;
        row-gap: 0 !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__how-wrap--toolbar {
        order: 3;
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__how-wrap--toolbar .reviews-v2__how-link {
        margin-top: 0 !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__count {
        font-size: 16px;
        font-weight: 600;
    }

    /* Dropdown pill — keep border */

    /* ── Review cards — Airbnb measurements ─────────────── */

    .reviews-modal.reviews-modal--airbnb .reviews-v2__avatar {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__name {
        font-size: 16px;
        font-weight: 600;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__location {
        font-size: 14px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__meta {
        font-size: 14px;
        margin-top: 12px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__stars i {
        font-size: 12px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__text {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 12px;
    }

    /* Mentions chips — compact (shorter) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__chip {
        padding: 6px 10px;
        min-height: 32px;
        font-size: 12px;
        gap: 5px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__chip-img {
        width: 18px;
        height: 18px;
    }

    /* List + review padding */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__list {
        padding: 0 24px 24px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__review {
        padding: 16px 0;
        border-bottom: none;
    }
}

/* Search icon button - moved to header on mobile */
@media (max-width: 768px) {
    .reviews-modal.reviews-modal--airbnb .reviews-v2__icon-btn {
        width: 36px;
        height: 36px;
        border-color: #dddddd;
    }
}

/* ============================================
   MOBILE COMPACT STYLING (2026-02-02)
   Hide bottom nav when modal open + compact spacing
   ============================================ */

/* Hide bottom nav when reviews modal is open (using :has() for native dialog detection) */
@media (max-width: 768px) {
    /* When reviews modal is open, hide ALL bottom/fixed elements */
    body:has(.reviews-modal.show) .k12-listing-bottom-nav,
    body:has(.reviews-modal.show) .k12-bottom-nav,
    body:has(.reviews-modal.show) .listing-sticky-nav,
    body:has(.reviews-modal.show) [data-listing-booking-bar],
    body:has(.reviews-modal.show) .k12-bottom-sheet-backdrop,
    body:has(.reviews-modal.show) .k12-bottom-sheet-handle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* COMPACT overrides (layer on top of main mobile section above) */

    /* HIDE scroll buttons on mobile - users can swipe */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__scroll-btn {
        display: none !important;
    }

    /* Rating breakdown - edge-to-edge swipeable (no rounded ends on overflow) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap {
        margin-left: -24px !important;
        margin-right: -24px !important;
        padding-left: 24px !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap::-webkit-scrollbar {
        display: none !important;
    }

    /* First segment keeps left radius, last has NO radius (implies continuation) */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg:first-child {
        border-top-left-radius: 12px !important;
        border-bottom-left-radius: 12px !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg:last-child {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    /* Mentions chips - edge-to-edge swipeable */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-wrap {
        margin-left: -24px !important;
        margin-right: -24px !important;
        padding-left: 24px !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-row {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-row::-webkit-scrollbar {
        display: none !important;
    }

    /* "Most relevant" pill — compact */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__pill,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__sort-btn {
        padding: 4px 8px !important;
        font-size: 12px !important;
        min-height: 28px !important;
        gap: 4px !important;
    }

    /* Toolbar row — tighter */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
        margin-top: 0 !important;
        padding-top: 8px !important;
        margin-bottom: 2px !important;
    }

    /* Guest reviews mention label */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    /* Guest reviews mention title — compact */
    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
    }

    /* Mobile: hide desktop dropdown, show sort pill that opens modal */
    .reviews-v2__sort-desktop { display: none !important; }
    .reviews-v2__sort-mobile { display: inline-flex !important; }
}

/* Desktop: show dropdown, hide mobile sort pill */
.reviews-modal.reviews-modal--airbnb .reviews-v2__sort-mobile { display: none; }

/* ──────────────────────────────────────────────
   Sort Modal (Airbnb-style centered sheet)
   ────────────────────────────────────────────── */
.reviews-sort-modal {
    position: fixed;
    inset: 0;
    /* Must sit above Bootstrap modals/backdrops and any app-specific modal z-index overrides. */
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.reviews-sort-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.reviews-sort-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.reviews-sort-modal__sheet {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: calc(100% - 32px);
    max-width: 400px;
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.reviews-sort-modal.is-open .reviews-sort-modal__sheet {
    transform: scale(1);
}

.reviews-sort-modal__header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    padding: 12px 24px;
}

.reviews-sort-modal__close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    padding: 0;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0;
}

.reviews-sort-modal__close:hover {
    background: #f7f7f7;
}

.reviews-sort-modal__title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.reviews-sort-modal__header-spacer {
    width: 32px;
    height: 32px;
}

.reviews-sort-modal__options {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.reviews-sort-modal__option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 16px;
    color: #222;
    cursor: pointer;
}

.reviews-sort-modal__option > span:first-child {
    flex: 1;
    min-width: 0;
}

.reviews-sort-modal__option:last-child {
    border-bottom: none;
}

.reviews-sort-modal__option input[type="radio"] {
    display: none;
}

.reviews-sort-modal__radio {
    width: 24px;
    height: 24px;
    border: 2px solid #b0b0b0;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
    background: #ffffff;
}

.reviews-sort-modal__option input[type="radio"]:checked ~ .reviews-sort-modal__radio {
    border-color: #222;
    background: #ffffff;
}

.reviews-sort-modal__option input[type="radio"]:checked ~ .reviews-sort-modal__radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #222;
    border-radius: 50%;
}

.reviews-sort-modal__footer {
    padding: 12px 24px 16px;
}

.reviews-sort-modal__save {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.reviews-sort-modal__save:hover {
    background: #000;
}

/* ── "How reviews work" bottom sheet (mobile) ───────────────── */
.reviews-how-sheet {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}

.reviews-how-sheet.is-open {
    pointer-events: auto;
}

.reviews-how-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reviews-how-sheet.is-open .reviews-how-sheet__backdrop {
    opacity: 1;
}

.reviews-how-sheet__sheet {
    position: relative;
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.reviews-how-sheet.is-open .reviews-how-sheet__sheet {
    transform: translateY(0);
}

.reviews-how-sheet__header {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    padding: 6px 24px;
}

.reviews-how-sheet__close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    padding: 0;
    font-size: 16px;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.reviews-how-sheet__close:hover {
    background: #f7f7f7;
}

.reviews-how-sheet__title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    text-align: center;
}

.reviews-how-sheet__header-spacer {
    width: 32px;
    height: 32px;
}

.reviews-how-sheet__body {
    padding: 20px 24px;
}

.reviews-how-sheet__text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
}

.reviews-how-sheet__text:last-child {
    margin-bottom: 0;
}

.reviews-how-sheet__footer {
    padding: 4px 24px 24px;
}

.reviews-how-sheet__cta {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    text-decoration: underline;
}

.reviews-how-sheet__cta:hover {
    color: #000;
}

/* Desktop parity pass (BUG-262):
   Bring selected mobile top-surface treatments to desktop while keeping mobile behavior unchanged. */
@media (min-width: 769px) {
    .reviews-modal.reviews-modal--airbnb .modal-header {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 14px 20px 0;
        background: #f7f7f7;
    }

    .reviews-modal.reviews-modal--airbnb .modal-header .btn-close {
        margin: 0 0 0 auto;
        opacity: 1;
    }

    .reviews-modal.reviews-modal--airbnb .modal-content,
    .reviews-modal.reviews-modal--airbnb .modal-body,
    .reviews-modal.reviews-modal--airbnb .reviews-v2,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__list {
        background: #ffffff;
    }

    .reviews-modal.reviews-modal--airbnb:not(.reviews-modal--mention) .reviews-v2__sticky {
        position: static;
        top: auto;
        z-index: auto;
        background: #f7f7f7;
        border-bottom: none;
        padding: 10px 28px 0;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__header {
        margin-bottom: 0;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__simple-rating {
        gap: 10px;
        margin-bottom: 2px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown {
        margin-top: 8px;
        margin-left: -28px;
        margin-right: -28px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-wrap::-webkit-scrollbar {
        display: none;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__breakdown-row {
        border: none;
        border-radius: 0;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg {
        padding: 8px 12px 14px;
        min-width: 104px;
        border-right: none;
        border-radius: 0;
        background: transparent !important;
        position: relative;
        display: flex;
        flex-direction: column;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg--overall {
        min-width: 170px;
        padding-left: 0;
        padding-right: 14px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg + .reviews-v2__seg::before {
        content: '';
        position: absolute;
        left: 0;
        top: 10%;
        height: 80%;
        width: 1px;
        background: #dddddd;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-title {
        font-size: 12px;
        font-weight: 500;
        color: #222222;
        margin-bottom: 2px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-rating {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-icon,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-mask,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__seg-img {
        margin-top: auto;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist {
        gap: 2px;
        margin-top: 2px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist-row {
        grid-template-columns: 10px 1fr;
        gap: 6px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__dist-bar {
        height: 4px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions,
    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
        background: #ffffff;
        margin-left: -28px;
        margin-right: -28px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions {
        margin-top: 0;
        padding-top: 24px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-title {
        margin-bottom: 20px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__mentions-row {
        padding-bottom: 20px;
    }

    .reviews-modal.reviews-modal--airbnb .reviews-v2__toolbar {
        margin-top: 0;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .reviews-modal.reviews-modal--airbnb .dropdown-menu {
        background: #ffffff;
        opacity: 1;
        backdrop-filter: none;
    }
}
