.rooma21-mobile-search-popover {
        --rooma21-search-accent: #de9a22;
        --rooma21-search-accent-dark: #b8790f;
        --rooma21-search-text: #222329;
        --rooma21-search-muted: #777b84;
        position: fixed;
        inset: 0;
        z-index: 1090;
        pointer-events: none;
        visibility: hidden;
    }

    .rooma21-mobile-search-popover.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .rooma21-mobile-search-popover__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(18, 24, 34, 0.38);
        opacity: 0;
        transition: opacity 0.24s ease;
    }

    .rooma21-mobile-search-popover.is-open .rooma21-mobile-search-popover__backdrop {
        opacity: 1;
    }

.rooma21-mobile-search-popover__sheet {
        top: auto;
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 84dvh;
        max-height: calc(100dvh - 10px);
        min-height: 560px;
        display: flex;
        flex-direction: column;
        padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
        background: #fbfaf8;
        border-radius: 32px 32px 0 0;
        box-shadow: 0 -26px 70px rgba(24, 28, 38, 0.24);
        transform: translateY(104%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), height 0.24s ease, max-height 0.24s ease, border-radius 0.2s ease;
    }

    .rooma21-mobile-search-popover.is-open .rooma21-mobile-search-popover__sheet {
        transform: translateY(0);
    }

    .rooma21-mobile-search-popover__handle {
        width: 68px;
        height: 4px;
        margin: 0 auto 16px;
        border-radius: 999px;
        background: #d9d3ca;
    }

    .rooma21-mobile-search-popover__close {
        position: absolute;
        top: 38px;
        right: 20px;
        width: 48px;
        height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #1f232b;
        background: #ffffff;
        border: 1px solid #ece8e0;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(17, 24, 39, 0.10);
        cursor: pointer;
        transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .rooma21-mobile-search-popover__header {
        flex-shrink: 0;
        padding-right: 58px;
        user-select: none;
    }

    .rooma21-mobile-search-popover__title {
        margin: 0;
        color: var(--rooma21-search-text);
        font-size: 22px;
        font-weight: 500;
        line-height: 1.16;
        letter-spacing: 0;
    }

    .rooma21-mobile-search-popover__type-tabs {
        flex-shrink: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2px;
        margin-top: 18px;
        padding: 3px 4px;
        background: #ececf3;
        border: 1px solid #dedee9;
        border-radius: 999px;
        box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
    }

    .rooma21-mobile-search-popover__type-tab {
        min-width: 0;
        min-height: 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #8b90a1;
        background: transparent;
        border: 1px solid transparent;
        border-radius: 999px;
        padding: 6px 8px;
        font-size: 10px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .rooma21-mobile-search-popover__type-tab.is-active {
        color: #111827;
        background: #ffffff;
        border-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.10);
    }

    .rooma21-mobile-search-popover__form {
        flex-shrink: 0;
        margin: 18px 0 0;
    }

    .rooma21-mobile-search-popover__input-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .rooma21-mobile-search-popover__input-row {
        display: grid;
        grid-template-columns: 30px 1fr 40px;
        gap: 8px;
        align-items: center;
        min-height: 58px;
        padding: 5px 8px 5px 16px;
        background: #ffffff;
        border: 1.5px solid var(--rooma21-search-accent);
        border-radius: 21px;
    }

    .rooma21-mobile-search-popover__search-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #69707c;
    }

    .rooma21-mobile-search-popover__input {
        width: 100%;
        min-width: 0;
        height: 46px;
        padding: 0;
        color: var(--rooma21-search-text);
        background: transparent;
        border: 0;
        outline: 0;
        font-size: 16px;
        font-weight: 500;
    }

    .rooma21-mobile-search-popover__input::placeholder {
        color: #858891;
    }

    .rooma21-mobile-search-popover__submit {
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--rooma21-search-accent);
        background: #fff8ea;
        border: 1px solid rgba(222, 154, 34, 0.24);
        border-radius: 999px;
        cursor: pointer;
        transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .rooma21-mobile-search-popover__close:active,
    .rooma21-mobile-search-popover__submit:active,
    .rooma21-mobile-search-popover__type-tab:active,
    .rooma21-mobile-search-popover__quick-list button:active,
    .rooma21-mobile-search-popover__result:active,
    .rooma21-mobile-search-popover__property-card:active {
        transform: scale(0.96);
    }

    .rooma21-mobile-search-popover__quick-list {
        flex-shrink: 0;
        display: flex;
        gap: 10px;
        margin: 18px -16px 0;
        padding: 0 16px 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .rooma21-mobile-search-popover__quick-list::-webkit-scrollbar {
        display: none;
    }

    .rooma21-mobile-search-popover__quick-list button {
        flex: 0 0 auto;
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        color: #666b74;
        background: #ffffff;
        border: 1px solid #ece8e0;
        border-radius: 999px;
        box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
        font-size: 12px;
        font-weight: 680;
        white-space: nowrap;
        cursor: pointer;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

    .rooma21-mobile-search-popover__quick-list button.is-active,
    .rooma21-mobile-search-popover__quick-list button:hover,
    .rooma21-mobile-search-popover__quick-list button:focus-visible {
        color: var(--rooma21-search-accent-dark);
        background: #fffaf2;
        border-color: rgba(222, 154, 34, 0.72);
    }

    .rooma21-mobile-search-popover__results {
        flex: 1;
        min-height: 0;
        margin: 0 -16px;
        padding: 0 16px 6px;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .rooma21-mobile-search-popover__empty,
    .rooma21-mobile-search-popover__loading {
        display: flex;
        min-height: 170px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 18px;
        color: var(--rooma21-search-muted);
        text-align: center;
    }

    .rooma21-mobile-search-popover__empty-title,
    .rooma21-mobile-search-popover__loading {
        color: var(--rooma21-search-text);
        font-size: 14px;
        font-weight: 760;
    }

    .rooma21-mobile-search-popover__empty-text {
        max-width: 270px;
        color: var(--rooma21-search-muted);
        font-size: 12px;
        line-height: 1.45;
    }

    .rooma21-mobile-search-popover__section-title {
        margin: 0 0 7px;
        padding: 0 2px;
        color: #787d87;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .rooma21-mobile-search-popover__result-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #eee9e1;
        border-radius: 16px;
    }

    .rooma21-mobile-search-popover__result {
        width: 100%;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto 26px;
        gap: 10px;
        align-items: center;
        min-height: 58px;
        padding: 11px 10px;
        color: inherit;
        background: transparent;
        border: 0;
        border-bottom: 1px solid #f0ece5;
        border-radius: 0;
        box-shadow: none;
        text-align: left;
        cursor: pointer;
        transition: transform 0.18s ease, background 0.18s ease;
    }

    .rooma21-mobile-search-popover__result:last-child {
        border-bottom: 0;
    }

    .rooma21-mobile-search-popover__result:hover,
    .rooma21-mobile-search-popover__result:focus-visible {
        background: #fffaf2;
        outline: 0;
    }

    .rooma21-mobile-search-popover__result-thumb {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--rooma21-search-accent);
        background: #fff4df;
        border: 1px solid #f5dfbb;
        border-radius: 10px;
    }

    .rooma21-mobile-search-popover__result-thumb--facility {
        color: #0f766e;
        background: #ecfdf5;
        border-color: #cceee1;
    }

    .rooma21-mobile-search-popover__result-body {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .rooma21-mobile-search-popover__result-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 21px;
        padding: 3px 7px;
        color: var(--rooma21-search-accent-dark);
        background: #fff8ea;
        border: 1px solid rgba(222, 154, 34, 0.24);
        border-radius: 999px;
        font-size: 9px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .rooma21-mobile-search-popover__result-badge--facility {
        color: #0f766e;
        background: #ecfdf5;
        border-color: #cceee1;
    }

    .rooma21-mobile-search-popover__result-name {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: var(--rooma21-search-text);
        font-size: 14px;
        font-weight: 760;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rooma21-mobile-search-popover__result-path {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: var(--rooma21-search-muted);
        font-size: 12px;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rooma21-mobile-search-popover__result-arrow {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        color: var(--rooma21-search-accent);
        background: transparent;
        border: 0;
        border-radius: 999px;
        box-shadow: none;
    }

    .rooma21-mobile-search-popover__property-section {
        margin-top: 14px;
        overflow: hidden;
        background: #ffffff;
        border: 1px solid #eee9e1;
        border-radius: 16px;
    }

    .rooma21-mobile-search-popover__section-title--properties {
        margin: 0;
        padding: 13px 13px;
        color: var(--rooma21-search-accent-dark);
        background: #f7f5ef;
        font-size: 11px;
        text-transform: none;
    }

    .rooma21-mobile-search-popover__property-list {
        display: flex;
        flex-direction: column;
    }

    .rooma21-mobile-search-popover__property-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        min-height: 88px;
        padding: 12px 13px;
        color: inherit;
        text-decoration: none;
        border-bottom: 1px solid #f0ece5;
        transition: transform 0.18s ease, background 0.18s ease;
    }

    .rooma21-mobile-search-popover__property-card:last-child {
        border-bottom: 0;
    }

    .rooma21-mobile-search-popover__property-card:hover,
    .rooma21-mobile-search-popover__property-card:focus-visible {
        background: #fffaf2;
        outline: 0;
    }

    .rooma21-mobile-search-popover__property-image {
        width: 64px;
        height: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        color: var(--rooma21-search-accent);
        background: #fff4df;
        border: 1px solid #f5dfbb;
        border-radius: 9px;
    }

    .rooma21-mobile-search-popover__property-image img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

    .rooma21-mobile-search-popover__property-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .rooma21-mobile-search-popover__property-badge {
        display: inline-flex;
        align-items: center;
        min-height: 19px;
        padding: 3px 8px;
        color: #5d626c;
        background: #eef0f3;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 760;
        line-height: 1;
    }

    .rooma21-mobile-search-popover__property-title {
        display: -webkit-box;
        max-width: 100%;
        overflow: hidden;
        color: var(--rooma21-search-text);
        font-size: 13px;
        font-weight: 760;
        line-height: 1.25;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .rooma21-mobile-search-popover__property-title b {
        color: var(--rooma21-search-accent-dark);
        font-weight: 840;
    }

    .rooma21-mobile-search-popover__property-location {
        max-width: 100%;
        overflow: hidden;
        color: var(--rooma21-search-muted);
        font-size: 11px;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rooma21-mobile-search-popover__property-price {
        max-width: 100%;
        overflow: hidden;
        color: var(--rooma21-search-accent-dark);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.rooma21-mobile-search-popover-open {
        overflow: hidden;
    }

    @media (min-width: 768px) {
        .rooma21-mobile-search-popover {
            display: none;
        }
    }

    @media (max-width: 390px) {
        .rooma21-mobile-search-popover__sheet {
            height: 86dvh;
            min-height: 520px;
            padding-right: 12px;
            padding-left: 12px;
            border-radius: 28px 28px 0 0;
        }

        .rooma21-mobile-search-popover__close {
            right: 16px;
            width: 44px;
            height: 44px;
        }

        .rooma21-mobile-search-popover__title {
            font-size: 21px;
        }

        .rooma21-mobile-search-popover__type-tab {
            min-height: 28px;
            padding: 5px 7px;
            font-size: 9px;
        }

        .rooma21-mobile-search-popover__input-row {
            grid-template-columns: 28px 1fr 36px;
            padding-left: 14px;
        }

        .rooma21-mobile-search-popover__submit {
            width: 34px;
            height: 34px;
        }

        .rooma21-mobile-search-popover__quick-list,
        .rooma21-mobile-search-popover__results {
            margin-right: -12px;
            margin-left: -12px;
            padding-right: 12px;
            padding-left: 12px;
        }

        .rooma21-mobile-search-popover__result {
            grid-template-columns: 34px minmax(0, 1fr) auto 24px;
            gap: 8px;
            padding: 10px 8px;
        }

        .rooma21-mobile-search-popover__result-thumb {
            width: 32px;
            height: 32px;
        }

        .rooma21-mobile-search-popover__property-card {
            grid-template-columns: 58px minmax(0, 1fr);
            gap: 10px;
            padding: 11px 10px;
        }

        .rooma21-mobile-search-popover__property-image {
            width: 58px;
            height: 58px;
        }
    }

    @media (max-height: 650px) {
        .rooma21-mobile-search-popover__sheet {
            height: calc(100dvh - 10px);
            min-height: 0;
        }

        .rooma21-mobile-search-popover__handle {
            margin-bottom: 10px;
        }

        .rooma21-mobile-search-popover__type-tabs,
        .rooma21-mobile-search-popover__form,
        .rooma21-mobile-search-popover__quick-list {
            margin-top: 12px;
        }
    }

    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__sheet {
        top: 0;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        padding-top: calc(12px + env(safe-area-inset-top));
        border-radius: 0;
    }

    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__handle,
    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__header {
        display: none;
    }

    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__close {
        top: calc(12px + env(safe-area-inset-top));
        right: 14px;
        width: 42px;
        height: 42px;
    }

    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__type-tabs {
        margin-top: 52px;
    }

    .rooma21-mobile-search-popover.is-search-focused .rooma21-mobile-search-popover__form {
        margin-top: 12px;
    }
