.ast-container {
    max-width: 1400px !important;
    padding: 0 !important;
}

.smi-section__header h2 {
    margin: 0;
    text-align: center;
    font-family: "Zilla Slab", Sans-serif;
    font-size: clamp(42px, 5vw, 76px) !important;
    line-height: 1;
    font-weight: 300;
    color: #6b6b78;
}

.smi-section.sm-search-page {
    margin: 0 !important;
    width: 100% !important;
    max-width: 1400px !important;
}

.sm-search-page {
    padding: 40px 0 60px;
}

.sm-search-page__header {
    margin-bottom: 28px;
}

.sm-search-filters {
    margin-bottom: 36px;
}

.sm-search-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 20px;
    align-items: flex-end;
    width: 100%;
}

.sm-filter-item {
    flex: 1 1 180px;
    min-width: 160px;
}

.sm-filter-item--range {
    flex: 1.2 1 220px;
    min-width: 220px;
}


.sm-filter-item {
    flex: 1 1 180px;
    min-width: 160px;
}

.sm-filter-item--range {
    flex: 1.2 1 220px;
    min-width: 220px;
}

.sm-filter-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f8291;
    font-weight: 600;
}

.sm-filter-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0;
}

.sm-filter-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sm-filter-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sm-filter-control select,
.sm-filter-control input {
    width: 100%;
    height: 32px;
    min-height: 32px;
    border: 0;
    border-bottom: 1px solid rgba(104, 117, 175, 0.35);
    outline: none;
    background: transparent;
    box-shadow: none;
    margin: 0;
    padding: 0 0 8px;
    font-size: 15px;
    line-height: 1.2;
    color: #2f3241;
    font-family: inherit;
    border-radius: 0;
}

.sm-filter-control select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.sm-filter-control.range {
    gap: 8px;
}

.sm-filter-control.range input {
    max-width: 72px;
}

.range-separator,
.range-unit {
    flex: 0 0 auto;
    font-size: 15px;
    color: #8f93a3;
    white-space: nowrap;
    padding-bottom: 8px;
    align-self: flex-end;
}

.sm-search-actions {
    flex: 0 0 auto;
    min-width: 180px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.sm-search-submit,
.sm-clear-filters {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sm-search-submit {
    background: #1128df;
    color: #fff;
}

.sm-clear-filters {
    color: #eef2ff;
    background: #1128df;
    border: 2px solid #1128df;
}

.sm-clear-filters:hover {
    color: #1128df;
    background: transparent;
    border: 2px solid #1128df;
}

/* WYNIKI */
.sm-search-results {
    width: 100%;
}

.sm-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.sm-flat-card {
    background: #f5f5f5;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sm-flat-card__header {
    padding: 16px 16px 8px;
}

.sm-flat-card__code {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 8px;
}

.sm-flat-card__inv {
    font-size: 14px;
    line-height: 1.3;
    color: #9a9a9a;
}

.sm-flat-card__plan {
    padding: 0 16px;
    text-align: center;
}

.sm-flat-card__plan-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sm-flat-card__plan-missing {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 14px;
    background: #ececec;
}

.sm-flat-card__meta {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.sm-flat-card__meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.sm-flat-card__meta-row .label {
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.04em;
}

.sm-flat-card__meta-row .value {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    text-align: right;
}

.sm-flat-floor-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    background: #1128df;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.sm-flat-card__footer {
    margin-top: 10px;
    justify-content: center;
}

.sm-flat-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 20px;
    background: #1128df;
    border: 2px solid #1128df;
    color: #fff;
    text-decoration: none !important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background .2s ease, transform .2s ease;
}

.sm-flat-card__btn:hover {
    background: transparent;
    color: #1128df;
    transform: translateY(-1px);
}

.sm-search-pagination {
    margin: 3em auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5em;
}

.sm-page-btn {
    background-color: #1128df;
    border: 2px solid #1128df;
    color: white;
}

.sm-page-btn:hover {
    background-color: transparent;
    color: #1128df;
}

.sm-page-btn.is-active {
    background-color: transparent;
    color: #1128df;
}

@media (max-width: 1400px) {
    .site-content {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 1200px) {
    .sm-search-form__row {
        flex-wrap: wrap;
        overflow: visible;
    }

    .sm-filter-item,
    .sm-filter-item--range {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 220px;
    }

    .sm-search-actions {
        width: 100%;
        min-width: 0;
    }

    .sm-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-content {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    body #page {
        overflow-x: hidden !important;
    }

    .sm-search-form__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sm-filter-item,
    .sm-filter-item--range,
    .sm-search-actions {
        min-width: 0;
        width: 100%;
    }

    .sm-search-actions {
        flex-direction: column;
    }

    .sm-search-submit,
    .sm-clear-filters {
        width: 100%;
    }

    .sm-search-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {

    .sm-filter-item,
    .sm-filter-item--range {
        flex: 1 1 calc(33.333% - 14px);
        min-width: 220px;
    }

    .sm-search-actions {
        width: 100%;
        min-width: 0;
    }

    .sm-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .sm-search-form__row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .sm-filter-item,
    .sm-filter-item--range,
    .sm-search-actions {
        min-width: 0;
        width: 100%;
    }

    .sm-search-actions {
        flex-direction: column;
    }

    .sm-search-submit,
    .sm-clear-filters {
        width: 100%;
    }

    .sm-search-grid {
        grid-template-columns: 1fr;
    }
}