.search-page {
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: start;
    background: #FFFFFF;
    color: #000000;
}

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

.search-page [hidden] {
    display: none !important;
}

.search-filters {
    position: sticky;
    top: 0;
    width: 310px;
    max-height: 100vh;
    margin: 0;
    padding: 24px;
    overflow-y: auto;
    background: #FFFFFF;
    box-shadow: 0 0 17px rgba(0, 0, 0, 0.07);
}

.search-filters__mobile-bar,
.search-filters__foot {
    display: none;
}

.search-filters__title {
    margin: 0 0 20px;
    color: #999999;
    font-size: 18px;
}

.search-filters__group {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.search-filters__legend {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    float: none;
    width: 100%;
    margin: 0 0 17px;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.search-filters__rule {
    margin: 0 0 24px;
    border: 0;
    border-top: 1px solid #D5D5D5;
    opacity: 1;
}

.search-filters__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-filters__reset {
    padding: 0;
    border: 0;
    background: transparent;
    color: #808080;
    font-size: 11px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.search-filters__apply {
    width: 100%;
    margin-top: 16px;
}

.search-check {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
}

.search-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid #808080;
    border-radius: 3px;
    background: #FFFFFF;
    appearance: none;
    cursor: pointer;
}

.search-check input:checked {
    border-color: #000000;
    background: #000000;
    box-shadow: inset 0 0 0 2px #FFFFFF;
}

.search-check input:focus-visible,
.search-chip input:focus-visible + span,
.search-range input:focus-visible,
.search-compare:focus-visible,
.search-icon:focus-visible,
.search-square:focus-visible,
.search-button:focus-visible,
.search-pager__page:focus-visible,
.search-card__title a:focus-visible {
    outline: 2px solid #FEAC00;
    outline-offset: 2px;
}

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-chip {
    margin: 0;
    cursor: pointer;
}

.search-chip input {
    position: absolute;
    opacity: 0;
}

.search-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    background: #F2F2F2;
    font-size: 14px;
}

.search-chip input:checked + span {
    background: #000000;
    color: #FFFFFF;
}

.search-range {
    position: relative;
    height: 40px;
    margin-top: 34px;
}

.search-range__track,
.search-range__fill {
    position: absolute;
    top: 14.5px;
    height: 9px;
}

.search-range__track {
    left: 0;
    right: 0;
    border-radius: 5px;
    background: #D9D9D9;
}

.search-range__fill {
    background: #8C8C8C;
}

.search-range input {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 18px;
    margin: 0;
    background: none;
    appearance: none;
    pointer-events: none;
}

.search-range input::-webkit-slider-runnable-track {
    background: none;
}

.search-range input::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #808080;
    border-radius: 50%;
    background: #FFFFFF;
    appearance: none;
    pointer-events: auto;
    cursor: pointer;
}

.search-range input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid #808080;
    border-radius: 50%;
    background: #FFFFFF;
    box-sizing: border-box;
    pointer-events: auto;
    cursor: pointer;
}

.search-range__bubbles span {
    position: absolute;
    top: -22px;
    left: clamp(34px, var(--at, 0%), calc(100% - 34px));
    padding: 4px 10px;
    border-radius: 6px;
    background: #232324;
    color: #FFFFFF;
    font-size: 12px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.search-range__bubbles span::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    border: 4px solid transparent;
    border-top-color: #232324;
    transform: translateX(-50%);
}

.search-range__inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.search-range__inputs input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    background: #FFFFFF;
    font-size: 15px;
}

.search-range__inputs i {
    color: #ADADAD;
    font-style: normal;
}

.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid #000000;
    border-radius: 57px;
    background: #000000;
    color: #FFFFFF;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.search-button:hover {
    color: #FFFFFF;
}

.search-button--ghost {
    background: #FFFFFF;
    color: #000000;
}

.search-button--ghost:hover {
    color: #000000;
}

.search-button--small {
    min-height: 32px;
    margin-top: 12px;
    padding: 0 16px;
}

.search-button[disabled] {
    border-color: #CCCCCC;
    background: #CCCCCC;
    cursor: not-allowed;
}

.search-results {
    min-height: 100vh;
    padding: 24px 32px 60px;
}

.search-results.is-loading {
    opacity: 0.55;
}

.search-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
}

.search-bar .shell-sort__button {
    font-size: 16px;
}

.search-bar__filters {
    display: none;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #CCCCCC;
    border-radius: 999px;
    background: #FFFFFF;
    font-size: 15px;
}

.search-notice {
    margin: 0;
    padding: 24px 0;
    font-size: 16px;
}

.search-notice p {
    margin: 0 0 16px;
}

.search-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-card {
    display: grid;
    grid-template-columns: 388px 1fr;
    gap: 15px;
    align-items: center;
    min-height: 290px;
    padding: 12px 11px;
    border: 1px solid #CCCCCC;
    border-radius: 6px;
    background: #FFFFFF;
}

.search-card.is-selected {
    border-color: #FFC54D;
    box-shadow: 0 0 0 1px #FFC54D;
}

.search-card__media {
    display: block;
    height: 266px;
    overflow: hidden;
    border-radius: 6px;
    background: #D9D9D9;
}

.search-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    min-width: 0;
    padding: 0 17px;
}

.search-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 36px;
}

.search-card__place {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #999999;
    font-size: 18px;
}

.search-card__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-compare,
.search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border: 1px solid #E4E4E4;
    border-radius: 8px;
    background: #FAFAFA;
    cursor: pointer;
}

.search-compare {
    padding: 0 13px;
    color: #666666;
    font-size: 16px;
}

.search-compare__on,
.search-compare[aria-pressed="true"] .search-compare__off {
    display: none;
}

.search-compare[aria-pressed="true"] {
    border-color: #000000;
    background: #000000;
    color: #FFFFFF;
}

.search-compare[aria-pressed="true"] .search-compare__on {
    display: inline;
}

.search-compare[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.search-icon {
    width: 40px;
    padding: 0;
}

.search-icon.is-done {
    border-color: #30D158;
}

.search-card__title {
    margin: 0;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.search-card__title a {
    color: #000000;
    text-decoration: none;
}

.search-card__units {
    margin: 12px 0 0;
    color: #999999;
    font-size: 16px;
}

.search-card__specs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-top: 17px;
    color: #4D4D4D;
    font-size: 16px;
}

.search-card__specs span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.search-card__price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 16px 21px;
    border-radius: 14px;
    background: #EFF8F9;
}

.search-card__price span {
    display: block;
    color: #808080;
    font-size: 16px;
}

.search-card__price strong {
    font-size: 24px;
    line-height: 1.2;
}

.search-card__cta {
    display: flex;
    flex: none;
    gap: 10px;
}

.search-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 91px;
    height: 42px;
    border: 1px solid #E6E6E6;
    border-radius: 6px;
    background: #FFFFFF;
}

.search-square--wa {
    border-color: #30D158;
    background: #30D158;
}

.search-pager--endless {
    height: 600px;
    margin-top: -600px;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.search-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 28px;
}

.search-pager__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #CCCCCC;
    border-radius: 50%;
    background: #FFFFFF;
    color: #000000;
    font-size: 13px;
    text-decoration: none;
}

.search-pager__page.is-active {
    border-color: #000000;
    background: #000000;
    color: #FFFFFF;
}

.compare-tray {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 70;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(1180px, calc(100% - 48px));
    padding: 16px 20px 18px;
    border-radius: 13px 13px 0 0;
    background: #FFFFFF;
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%);
}

.compare-tray__head {
    font-size: 16px;
}

.compare-tray__head small {
    margin-left: 6px;
    color: #999999;
    font-size: 14px;
}

.compare-tray__notice {
    margin-left: 12px;
    color: #808080;
    font-size: 12px;
}

.compare-tray__row {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.compare-tray__slots {
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
}

.compare-slot {
    position: relative;
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    min-height: 112px;
    padding: 8px 36px 8px 8px;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
}

.compare-slot__media {
    flex: none;
    width: 76px;
    height: 96px;
    overflow: hidden;
    border-radius: 8px;
    background: #D9D9D9;
}

.compare-slot__media img,
.compare-table__media img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-slot__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    color: #808080;
    font-size: 12px;
    line-height: 1.3;
}

.compare-slot__text > b {
    overflow: hidden;
    color: #000000;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-slot__price {
    color: #4D4D4D;
}

.compare-slot__price b {
    color: #000000;
}

.compare-slot__spec {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    color: #4D4D4D;
}

.compare-slot__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F2F2F2;
    cursor: pointer;
}

.compare-slot--empty {
    justify-content: center;
    padding: 8px 16px;
    border-style: dashed;
    border-color: #CCCCCC;
    color: #999999;
    font-size: 12px;
    text-align: center;
}

.compare-tray__actions {
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 210px;
}

.compare-tray__actions .search-button {
    padding: 0 12px;
    white-space: nowrap;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.search-modal[hidden] {
    display: none;
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.search-modal__box {
    position: relative;
    width: min(1200px, 100%);
    max-height: 90vh;
    overflow: auto;
    border-radius: 13px;
    background: #FFFFFF;
}

.search-modal__head {
    padding: 20px 72px 14px 22px;
    border-bottom: 1px solid #E6E6E6;
}

.search-modal__box--narrow {
    width: min(460px, 100%);
    padding: 32px 30px 34px;
}

.search-modal__box--narrow .property-lead {
    max-width: none;
    margin: 0;
    padding: 0;
}

.search-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #F2F2F2;
    cursor: pointer;
}

.search-modal__box--narrow .search-modal__close {
    top: 12px;
    right: 12px;
    background: transparent;
}

.search-modal__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.search-modal__sub {
    margin: 2px 0 0;
    color: #808080;
    font-size: 12px;
}

.search-modal__status {
    margin: 16px 0 0;
    font-size: 15px;
}

.search-modal__status.is-error {
    color: #B3261E;
}

.search-modal__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #E6E6E6;
}

.search-modal__foot .search-button {
    min-width: 420px;
    min-height: 48px;
}

.search-modal__foot p {
    margin: 0;
    color: #ADADAD;
    font-size: 11px;
}

.compare-scroll {
    overflow-x: auto;
}

.compare-table {
    border-collapse: collapse;
    font-size: 13px;
}

.compare-table th,
.compare-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

.compare-table td {
    width: 336px;
    min-width: 240px;
    border-bottom: 1px solid #F2F2F2;
}

.compare-table th {
    width: 192px;
    min-width: 150px;
    background: #FAFAFA;
    color: #808080;
    font-weight: 400;
}

.compare-table tr:first-child th {
    vertical-align: bottom;
}

.compare-table__section th {
    padding-top: 18px;
    padding-bottom: 10px;
    background: #FFFFFF;
    color: #000000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compare-table td strong {
    font-size: 15px;
}

.compare-table td small {
    color: #808080;
    font-size: 11px;
}

.compare-table__below {
    display: block;
}

.compare-table__dot {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.compare-table__dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #30D158;
}

.compare-table__dot--amber::before {
    background: #FEAC00;
}

.compare-table__media {
    position: relative;
    display: block;
    width: 300px;
    max-width: 100%;
    height: 152px;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 8px;
    background: #D9D9D9;
}

.compare-table__remove {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
}

.compare-table__name {
    color: #000000;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.compare-table__badge {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #E8F8EC;
    color: #1E7A37;
    font-size: 10px;
}

.compare-table__badge::before {
    content: "★";
    font-size: 9px;
}

.search-locked {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .search-page {
        grid-template-columns: 1fr;
    }

    .search-filters {
        position: fixed;
        inset: 0;
        z-index: 110;
        width: auto;
        max-height: none;
        padding: 0 20px;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        visibility: hidden;
    }

    .search-filters.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .search-filters__mobile-bar {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0 -20px 16px;
        padding: 16px 20px;
        border-bottom: 1px solid #E6E6E6;
        background: #FFFFFF;
        font-size: 19px;
    }

    .search-filters__foot {
        position: sticky;
        bottom: 0;
        display: flex;
        gap: 12px;
        margin: 24px -20px 0;
        padding: 14px 20px;
        border-top: 1px solid #E6E6E6;
        background: #FFFFFF;
    }

    .search-filters__foot .search-button {
        flex: 1;
        min-height: 48px;
        padding: 0 12px;
    }

    .search-filters__legend,
    .search-check {
        font-size: 15px;
    }

    .search-chip span {
        min-width: 38px;
        height: 38px;
        padding: 0 8px;
        border-radius: 19px;
    }

    .search-results {
        min-height: 0;
        padding: 16px 16px 40px;
    }

    .search-bar {
        flex-wrap: wrap;
        margin-bottom: 14px;
    }

    .search-bar__filters {
        display: inline-flex;
    }

    .search-bar__count {
        width: 100%;
    }

    .search-list {
        gap: 14px;
    }

    .search-card {
        position: relative;
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
        padding: 10px;
        border-radius: 14px;
    }

    .search-card__media {
        height: auto;
        aspect-ratio: 338 / 210;
    }

    .search-card__body {
        gap: 0;
        padding: 0 6px;
    }

    .search-card__top {
        display: block;
        min-height: 0;
    }

    .search-card__actions {
        position: absolute;
        top: 20px;
        right: 20px;
        left: 20px;
        z-index: 2;
        gap: 8px;
    }

    .search-compare {
        margin-right: auto;
        border-color: transparent;
        background: rgba(255, 255, 255, 0.92);
    }

    .search-icon {
        width: 36px;
        border-color: transparent;
        background: rgba(255, 255, 255, 0.92);
    }

    .search-card__place {
        gap: 6px;
        font-size: 15px;
    }

    .search-card__place img {
        width: 16px;
        height: 16px;
    }

    .search-card__title {
        margin-top: 6px;
        font-size: 19px;
    }

    .search-card__units,
    .search-card__specs {
        margin-top: 6px;
        font-size: 15px;
    }

    .search-card__specs {
        gap: 6px 16px;
    }

    .search-card__specs img {
        width: 18px;
        height: 18px;
    }

    .search-card__price {
        min-height: 64px;
        margin-top: 12px;
        padding: 12px;
        border-radius: 12px;
    }

    .search-card__price span {
        font-size: 14px;
    }

    .search-card__price strong {
        font-size: 21px;
    }

    .search-square {
        width: 58px;
        height: 40px;
    }

    .compare-tray {
        bottom: 16px;
        flex-direction: row;
        align-items: center;
        width: calc(100% - 32px);
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 14px;
        background: #232324;
        color: #FFFFFF;
    }

    .compare-tray__head {
        flex: 1;
        font-size: 13px;
    }

    .compare-tray__head small {
        display: block;
        margin: 0;
        color: #CCCCCC;
        font-size: 12px;
    }

    .compare-tray__notice,
    .compare-tray__slots,
    .compare-tray__actions [data-compare-clear] {
        display: none;
    }

    .compare-tray__actions {
        width: auto;
    }

    .compare-tray__actions .search-button {
        border-color: #FFFFFF;
        background: #FFFFFF;
        color: #000000;
    }

    .compare-tray__actions .search-button[disabled] {
        opacity: 0.5;
    }

    .search-modal {
        padding: 0;
    }

    .search-modal__box {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .search-modal__box--narrow {
        height: auto;
        max-height: 100vh;
        padding: 48px 20px 28px;
    }

    .search-modal__close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }

    .compare-table th {
        width: 110px;
        min-width: 110px;
        padding: 10px 12px;
    }

    .compare-table td {
        width: 180px;
        min-width: 160px;
        padding: 10px 12px;
    }

    .compare-table__media {
        width: 100%;
        height: 96px;
    }

    .search-modal__foot {
        position: sticky;
        bottom: 0;
        background: #FFFFFF;
    }

    .search-modal__foot .search-button {
        width: 100%;
        min-width: 0;
    }
}

.search-bar .shell-sort__button {
    color: #000000;
    font-weight: 400;
}

.search-card {
    position: relative;
}

.search-card__title a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.search-card__media,
.search-card__actions,
.search-card__cta {
    position: relative;
    z-index: 1;
}

.compare-table {
    font-size: 14px;
}

@media (min-width: 1001px) {
    .compare-tray {
        gap: 14px;
        width: min(1360px, calc(100% - 48px));
        padding: 20px 24px 22px;
    }

    .compare-tray__head {
        font-size: 18px;
    }

    .compare-tray__head small,
    .compare-tray__notice,
    .compare-slot__text,
    .compare-slot--empty {
        font-size: 14px;
    }

    .compare-slot {
        min-height: 128px;
    }

    .compare-slot__media {
        width: 92px;
        height: 112px;
    }

    .compare-slot__text > b {
        font-size: 16px;
    }
}

@media (min-width: 1001px) {
    body:has(> .search-page) {
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body:has(> .search-page) > .shell-header {
        flex: none;
    }

    .search-page {
        flex: 1;
        min-height: 0;
        align-items: stretch;
    }

    .search-filters {
        position: static;
        max-height: none;
        min-height: 0;
    }

    .search-results {
        min-height: 0;
        overflow-y: auto;
    }
}
