.agents-page__top-line {
    position: relative;
    height: auto;
    margin-bottom: 30px;
    padding: 0;
}

.search-items-wrap .grey-box {
    margin-bottom: 10px;
}

.items-page__block-bottom-wrapper {
    padding: 10px 0 20px;
}

.search-page__head-content {
    display: flex;
    column-gap: 20px;
    margin-bottom: 20px;
}

.search-page__head-content-left {
    flex-grow: 1;
    overflow: hidden;
}

.search-page__head-content-right {
    display: none;
    min-width: 292px;
}

.search-page__seo:not(#\9) {
    border-bottom: none;
    margin-bottom: 0;
}

.search-page__seo_unsplit:not(#\9) {
    border-bottom: none;
    margin-bottom: unset;
    padding-bottom: unset;
}

.search-page__breadcrumbs {
    margin-bottom: 10px;
}

.search-page__breadcrumbs .container {
    padding: 0;
}

.search-page__title {
    font-family: 'Gilroy', sans-serif;
    font-weight: 600;
    font-size: 32px;

    @media (max-width: 767px) {
        font-size: 24px;
    }
}

.search-page-sort {
    display: flex;
    gap: 23px;
    font-family: SF Pro Display, sans-serif;
    font-weight: 500;
    line-height: normal;
    position: relative;
}

.search-items-sort__total {
    margin: 0;
    font-family: "Gilroy", sans-serif;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    color: #333336;
}

.search-items-sort__sort {
}

.search-bar__relink {
    display: flex;
    padding: 5px;
    padding-left: 0;
    border-radius: 4px;
    max-width: 295px;
    width: 100%;
    height: 50px;
    color: var(--switch-control-color, #556266);
}

.search-bar__relink:focus .search-bar__relink-item-active {
    color: #556266;
    background-color: #fff;
    border-color: #dfe4e5;
}

.search-bar__relink-viewport {
    display: flex;
    flex-grow: 1;
}

.search-bar__relink-viewport:focus-within > .search-bar__relink-item-active {
    color: #556266;
    background-color: #fff;
    border-color: #dfe4e5;
}

.search-bar__relink-item {
    background-color: #fff;
    flex-grow: 1;
    display: flex;
    border-left: 1px solid var(--switch-control-border-color, #dfe4e5);
    border-top: 1px solid var(--switch-control-border-color, #dfe4e5);
    border-bottom: 1px solid var(--switch-control-border-color, #dfe4e5);
    align-items: center;
    justify-content: center;
}

.search-bar__relink-item:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.search-bar__relink-item:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-right: 1px solid var(--switch-control-border-color, #dfe4e5);
}

.search-bar__relink-item:hover {
    border: 1px solid var(--switch-control-border-hover, #2bb6f7);
}

.search-bar__relink-item:focus {
    color: #000;
    border: 1px solid var(--switch-control-border-hover, #2bb6f7);
}

.search-bar__relink-item.search-bar__relink-item-active {
    color: black;
    background-color: #ebfafe;
    border: 1px solid var(--switch-control-border-hover, #2bb6f7);
}

.search-bar__relink-item:not(.search-bar__relink-item-active) {
    color: var(--switch-control-color, #556266);
    text-decoration: none;
}

.search-bar__relink-item:not(.search-bar__relink-item-active):hover {
    color: #000;
}

.search-bar__relink-item:not(.search-bar__relink-item-active):focus {
    background-color: #ebfafe;
    color: #000;
}

@media (max-width: 1279px) {
    .search-page__head-content-right {
        display: block;
    }
}

@media (max-width: 1099px) {
    .search-page__head-content-right {
        min-width: 100px;
    }

    .search-page__map-button-text {
        display: none;
    }
}

@media (max-width: 767px) {
    .search-bar__relink {
        max-width: unset;
        padding: unset;
        height: 40px;
        margin-top: 5px;
    }
}

@media (max-width: 660px) {
    .agents-page__top-line {
        margin-bottom: 10px;
    }
}

@media (min-width: 576px) {
    .search-page__head-content {
        border-bottom: 1px solid #e6e6e6;
    }

    .search-page__head-content:has(.seo-text-search__seo-toggle_hidden) {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .search-page-sort {
        justify-content: space-between;
    }
}