@media (max-width: 1199px) {
    .civitatis-card {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .civitatis-mobile-filter-button {
        position: fixed;
        right: 0;
        top: 20%;
        z-index: 950;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 48px;
        padding: 12px 14px;
        border: 0;
        border-radius: 18px 0 0 18px;
        background: var(--theme-color);
        color: #fff;
        font-size: 14px;
        font-weight: 900;
        box-shadow: 0 16px 34px rgba(17, 57, 68, 0.24);
        transform: translateY(-50%);
        cursor: pointer;
    }

    .civitatis-mobile-filter-button i {
        font-size: 15px;
    }

    .civitatis-mobile-filter-button__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #fff;
        color: var(--theme-color);
        font-size: 12px;
        line-height: 1;
    }

    .civitatis-mobile-filter-button__count[hidden] {
        display: none;
    }

    .civitatis-browser__filters-overlay {
        position: fixed;
        inset: 0;
        z-index: 940;
        display: block;
        background: rgba(10, 24, 29, .52);
        opacity: 0;
        visibility: hidden;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .civitatis-browser.is-filter-panel-open .civitatis-browser__filters-overlay {
        opacity: 1;
        visibility: visible;
    }

    .civitatis-browser__sidebar {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 960;
        width: min(390px, 88vw);
        height: 100dvh;
        max-height: none;
        overflow-y: auto;
        padding: 18px 16px 28px;
        background: #f7fbfc;
        border-left: 1px solid #dce8eb;
        box-shadow: -24px 0 50px rgba(17, 57, 68, .18);
        transform: translateX(108%);
        transition: transform .26s ease;
        scrollbar-gutter: auto;
    }

    .civitatis-browser.is-filter-panel-open .civitatis-browser__sidebar {
        transform: translateX(0);
    }

    .civitatis-mobile-filters__header {
        position: sticky;
        top: -18px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: -18px -16px 14px;
        padding: 18px 16px 14px;
        background: #f7fbfc;
        border-bottom: 1px solid #dce8eb;
    }

        .civitatis-mobile-filters__header h3 {
            margin: 0;
            color: #18363e;
            font-size: 20px;
        }

    .civitatis-mobile-filters__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #dce8eb;
        border-radius: 999px;
        background: #fff;
        color: #18363e;
        cursor: pointer;
    }

    .civitatis-browser__shell {
        grid-template-columns: 1fr;
    }

    /*.civitatis-browser__sidebar {
        position: static;
        order: -1;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }*/
}