* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    /* background: var(--bg); */
    color: var(--brown);
    /* font-family: var(--sans); */
    /* font-family: var(--sans); */

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font-family: inherit;
}


.page {
    width: 100%;
    max-width: 1160px;

    margin: 0 auto;

    padding: 20px 30px 40px;
}



.page-title {
    margin: 0 0 18px;

    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: -1.4px;
}



.tabs {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 23px;
}

.tab {
    border: 0;
    outline: 0;

    padding: 10px 17px;

    border-radius: 24px;

    background: #eee6d5;

    color: #68483b;

    font-size: 14px;

    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}

.tab:hover {
    background: #e8decb;
}

.tab.active {
    background: #fba881;
    color: #000000;

    font-weight: 600;
}


.view {
    display: none;
}

.view.active {
    display: block;
}



.listing-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 260px);

    gap: 20px;
}



.listing-card {
    width: 260px;

    background: var(--card);

    border: 1px solid var(--card-border);

    border-radius: 22px;

    padding: 8px 8px 16px;

    box-shadow:
        0 9px 20px rgba(62, 40, 18, 0.07);
}



.listing-image {
    position: relative;

    width: 100%;
    height: 181px;

    overflow: hidden;

    border-radius: 17px;

    background: #d5c6ae;
}

.listing-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}



.category {
    position: absolute;

    top: 9px;
    left: 9px;

    padding: 4px 9px;

    border-radius: 7px;

    background: rgba(255, 252, 244, 0.91);

    color: #44261c;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.5px;

    line-height: 1;
}



.heart {
    position: absolute;

    top: 7px;
    right: 8px;

    width: 38px;
    height: 38px;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 252, 244, 0.91);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: var(--orange);

    font-size: 19px;

    line-height: 1;

    transition: 0.2s ease;
}

.heart:hover {
    transform: scale(1.06);
}

.heart.saved {
    color: var(--orange);
}


.listing-content {
    padding: 11px 8px 0;
}

.listing-title {
    margin: 0 0 5px;

    font-family: var(--serif);

    font-size: 16px;

    font-weight: 600;

    line-height: 1.15;

    color: var(--brown);

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.want-line {
    display: flex;
    align-items: center;

    gap: 4px;

    width: 100%;

    margin-bottom: 13px;

    color: #714c3d;

    font-size: 12px;

    line-height: 1.2;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.want-icon {
    color: var(--orange);

    font-size: 15px;

    flex-shrink: 0;
}



.listing-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 13px;
}

.location {
    color: #755449;

    font-size: 12px;
}

.price {
    color: var(--orange);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;
}


.listing-footer {
    display: flex;
    align-items: center;

    gap: 4px;

    color: #714d40;

    font-size: 12px;
}

.listing-footer .view-link {
    color: var(--orange);

    text-decoration: none;

    cursor: pointer;
}

.listing-footer .view-link:hover {
    text-decoration: underline;
}


.wishlist-panel {
    width: 100%;

    background: var(--card);

    border: 1px solid var(--card-border);

    border-radius: 25px;

    padding: 27px 24px 23px;

    box-shadow:
        0 10px 24px rgba(62, 40, 18, 0.07);

    margin-bottom: 34px;
}

.wishlist-label {
    display: block;

    margin: 0 0 15px;

    font-family: var(--serif);

    font-size: 18px;

    font-weight: 400;

    line-height: 1.2;
}


.wishlist-search {
    display: flex;

    align-items: center;

    gap: 8px;
}

.wishlist-input {
    flex: 1;

    width: 100%;
    height: 50px;

    border: 1px solid #ddd2bb !important;

    border-radius: 16px !important;

    background: #fffdf8 !important;

    padding: 0 16px;

    color: var(--brown);

    font-size: 16px;

    outline: none;

    box-shadow: none !important;
}

.wishlist-input::placeholder {
    color: #a48679;
}

.wishlist-input:focus {
    border-color: #c9b99e !important;

    box-shadow:
        0 0 0 3px rgba(184, 61, 0, 0.06) !important;
}

.add-button {
    height: 50px;

    min-width: 89px;

    padding: 0 18px;

    border: 0;

    border-radius: 26px;

    background: var(--brown);

    color: #7b2800;

    font-size: 14px;

    font-weight: 600;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;
}

.add-button:hover {
    background: #4a2117;
}

.plus {
    font-size: 20px;

    font-weight: 300;

    line-height: 1;
}


.chips {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 16px;
}

.chip {
    min-height: 28px;

    display: flex;

    align-items: center;

    gap: 7px;

    padding: 6px 10px 6px 12px;

    border-radius: 18px;

    background: var(--white);

    border: 1px solid rgba(220, 209, 189, 0.4);

    color: #4c2a20;

    font-size: 12px;

    line-height: 1;
}

.chip-remove {
    border: 0;

    padding: 0;

    background: transparent;

    color: #6d4e43;

    font-size: 15px;

    line-height: 12px;

    cursor: pointer;
}


.notification {
    margin-top: 18px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}

.notification-text {
    font-size: 14px;

    color: var(--brown);
}

.switch {
    width: 36px;
    height: 20px;

    flex-shrink: 0;

    position: relative;

    border-radius: 20px;

    background: #c6baa4;

    cursor: pointer;
}

.switch::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 14px;
    height: 14px;

    background: white;

    border-radius: 50%;

    transition: 0.2s ease;
}

.switch.on {
    /* background: var(--orange); */
}

.switch.on::after {
    transform: translateX(16px);
}


.matching-title {
    margin: 0 0 15px;

    font-family: var(--serif);

    font-size: 25px;

    font-weight: 400;

    line-height: 1.2;

    letter-spacing: -0.5px;
}



.empty-state {
    width: 100%;

    min-height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    background: var(--card);

    border: 1px solid var(--card-border);

    border-radius: 24px;

    box-shadow:
        0 10px 24px rgba(62, 40, 18, 0.07);
}

.empty-title {
    margin: 0 0 7px;

    font-family: var(--serif);

    font-size: 20px;

    font-weight: 400;
}

.empty-description {
    margin: 0 0 17px;

    color: #704f43;

    font-size: 14px;
}

.browse-button {
    border: 0;

    border-radius: 22px;

    padding: 11px 21px;

    background: #a93700;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}

.browse-button:hover {
    background: #a93700;
}


@media (max-width: 768px) {

    .page {
        padding: 15px 20px 30px;
    }

    .listing-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 15px;
    }

    .listing-card {
        width: 100%;
    }

    .listing-image {
        height: 190px;
    }

    .wishlist-panel {
        padding: 24px 18px 20px;
    }
}


@media (max-width: 576px) {

    .page {
        padding: 14px 15px 30px;
    }

    .page-title {
        font-size: 34px;
    }

    .tabs {
        margin-bottom: 20px;
    }

    .tab {
        padding: 9px 15px;

        font-size: 13px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
    }

    .listing-card {
        width: 100%;
    }

    .listing-image {
        height: 220px;
    }

    .wishlist-search {
        flex-direction: column;
    }

    .wishlist-input {
        width: 100%;
    }

    .add-button {
        width: 100%;
    }

    .wishlist-panel {
        border-radius: 20px;

        padding: 22px 15px 19px;
    }

    .notification {
        align-items: flex-start;
    }

    .matching-title {
        font-size: 22px;
    }
}