.p2p-home-search-wrap,
.p2p-home-search-wrap * {
    box-sizing: border-box;
}

.p2p-home-search-wrap {
    width: min(980px, 100%);
    font-family: "Inter", sans-serif;
}

.p2p-home-search-trigger {
    display: none;
}

.p2p-home-search-modal {
    position: static;
    display: block;
}

.p2p-home-search-modal__sheet {
    position: static;
}

.p2p-home-search-modal__backdrop,
.p2p-home-search-modal__header,
.p2p-home-search-modal__handle {
    display: none;
}

.p2p-home-search {
    width: min(980px, 100%);
    margin: 0;
    padding: 22px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
    align-items: stretch;
    gap: 0;
    border: 0;
    border-radius: 14px;
    background: #fff !important;
    box-shadow: 0 20px 60px rgba(10, 15, 30, 0.35);
    font-family: "Inter", sans-serif;
}

.p2p-home-search__field {
    min-width: 0;
    padding: 6px 18px;
    border-right: 1px solid #D8D6CC;
}

.p2p-home-search__field label {
    display: block;
    margin: 0 0 4px;
    color: #8A8D80;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.p2p-home-search__field input,
.p2p-home-search__field select {
    width: 100%;
    min-width: 0;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent !important;
    box-shadow: none;
    color: #1B1B18;
    font-family: "Inter", sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 28px;
}

.p2p-home-search__field input:focus,
.p2p-home-search__field select:focus {
    outline: 2px solid rgba(184, 135, 58, .35);
    outline-offset: 3px;
    border-radius: 3px;
}

.p2p-home-search__field select,
.p2p-home-search__field input[type="date"] {
    cursor: pointer;
}

.p2p-home-search__field input[type="number"] {
    -moz-appearance: textfield;
}

.p2p-home-search__field input[type="number"]::-webkit-outer-spin-button,
.p2p-home-search__field input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.p2p-home-search__hint {
    display: block;
    margin-top: 1px;
    color: #8A8D80;
    font-size: 11.5px;
    font-weight: 400;
    line-height: 1.25;
}

.p2p-home-search__budget-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #1B1B18;
    font-size: 14.5px;
    font-weight: 600;
}

.p2p-home-search__budget-wrap input {
    flex: 1;
}

.p2p-home-search__submit {
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 14px;
}

.p2p-home-search__submit button {
    width: 52px;
    height: 52px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0 !important;
    border-radius: 10px;
    background: #B8873A !important;
    box-shadow: none;
    color: #fff !important;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: background .15s ease, transform .15s ease;
}

.p2p-home-search__submit button svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    flex: 0 0 22px;
    display: block;
}

.p2p-home-search__submit button:hover,
.p2p-home-search__submit button:focus-visible {
    background: #8F6A2C !important;
    color: #fff !important;
}

.p2p-home-search__submit button:active {
    transform: scale(.97);
}

.p2p-home-search__submit button span {
    display: none;
}

@media (max-width: 900px) and (min-width: 768px) {
    .p2p-home-search {
        grid-template-columns: 1fr 1fr;
        padding: 14px;
    }

    .p2p-home-search__field {
        padding: 12px 14px;
        border-right: 0;
        border-bottom: 1px solid #D8D6CC;
    }

    .p2p-home-search__field:nth-of-type(odd) {
        border-right: 1px solid #D8D6CC;
    }

    .p2p-home-search__submit {
        grid-column: 1 / -1;
        padding: 12px 0 0;
    }

    .p2p-home-search__submit button {
        width: 100%;
        height: 48px;
        border-radius: 9px;
    }

    .p2p-home-search__submit button span {
        display: inline;
    }
}

@media (max-width: 767px) {
    html.p2p-home-search-is-open,
    body.p2p-home-search-is-open {
        overflow: hidden !important;
    }

    .p2p-home-search-wrap {
        width: 100%;
    }

    .p2p-home-search-trigger {
        width: 100%;
        min-height: 62px;
        margin: 0;
        padding: 11px 12px 11px 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        border: 0 !important;
        border-radius: 12px;
        background: #fff !important;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
        color: #14203A !important;
        text-align: left;
        font-family: "Inter", sans-serif;
        cursor: pointer;
    }

    .p2p-home-search-trigger__copy {
        min-width: 0;
        flex: 1;
        display: block;
    }

    .p2p-home-search-trigger__primary,
    .p2p-home-search-trigger__secondary {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .p2p-home-search-trigger__primary {
        color: #14203A;
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.3;
    }

    .p2p-home-search-trigger__secondary {
        margin-top: 2px;
        color: #8A8D80;
        font-size: 11.5px;
        font-weight: 400;
        line-height: 1.3;
    }

    .p2p-home-search-trigger__go {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: #B8873A;
        color: #fff;
    }

    .p2p-home-search-trigger__go svg {
        width: 18px !important;
        height: 18px !important;
        display: block;
    }

    .p2p-home-search-modal {
        position: fixed;
        inset: 0;
        z-index: 100000;
        display: none;
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }

    .p2p-home-search-modal.is-open {
        display: flex;
    }

    .p2p-home-search-modal__backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
        padding: 0;
        border: 0 !important;
        border-radius: 0;
        background: rgba(20, 32, 58, .48) !important;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        cursor: default;
    }

    .p2p-home-search-modal__sheet {
        position: relative;
        z-index: 1;
        width: 100%;
        max-height: min(88svh, 720px);
        overflow-y: auto;
        padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .18);
        color: #1B1B18;
        -webkit-overflow-scrolling: touch;
    }

    .p2p-home-search-modal__handle {
        width: 36px;
        height: 4px;
        margin: 0 auto 12px;
        display: block;
        border-radius: 3px;
        background: #D8D6CC;
    }

    .p2p-home-search-modal__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 8px;
    }

    .p2p-home-search-modal__header h2 {
        margin: 0;
        color: #14203A;
        font-family: "Fraunces", serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
    }

    .p2p-home-search-modal__close {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0 !important;
        border-radius: 9px;
        background: #F5F5F1 !important;
        color: #14203A !important;
        font-family: "Inter", sans-serif;
        font-size: 24px;
        font-weight: 400;
        line-height: 1;
        cursor: pointer;
    }

    .p2p-home-search {
        width: 100%;
        padding: 0;
        display: grid;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        background: #fff !important;
        box-shadow: none;
    }

    .p2p-home-search__field,
    .p2p-home-search__field:nth-of-type(odd) {
        padding: 13px 2px;
        border-right: 0;
        border-bottom: 1px solid #D8D6CC;
    }

    .p2p-home-search__field label {
        margin-bottom: 5px;
    }

    .p2p-home-search__field input,
    .p2p-home-search__field select {
        height: 32px;
        font-size: 15px;
        line-height: 32px;
    }

    .p2p-home-search__field:last-of-type {
        border-bottom: 0;
    }

    .p2p-home-search__submit {
        padding: 14px 0 0;
    }

    .p2p-home-search__submit button {
        width: 100%;
        height: 48px;
        border-radius: 10px;
    }

    .p2p-home-search__submit button span {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p2p-home-search__submit button {
        transition: none;
    }
}
