body.page-favorites .site-main {
    padding-top: 0;
    background: #ffffff;
}

.favorites-page {
    min-height: calc(100vh - 90px);
    background: #ffffff;
    color: #0d245a;
}

.favorites-page__back {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 1.4rem;
    color: #0d245a;
    font-weight: 850;
    text-decoration: none;
    position: relative;
}

.favorites-page__back::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.22rem;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.22s ease;
}

.favorites-page__back:hover::after {
    width: 100%;
}

.favorites-hero {
    padding: 3rem 0 2rem;
}

.favorites-hero__eyebrow {
    margin: 0 0 0.75rem;
    color: #b89a61;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.favorites-hero h1 {
    margin: 0 0 0.85rem;
    color: #0d245a;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
}

.favorites-hero p {
    margin: 0;
    max-width: 980px;
    color: #526382;
    font-size: 1.08rem;
    line-height: 1.6;
}

.favorites-hero__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    min-height: 48px;
    padding: 0 1.35rem;
    border-radius: 2px;
    background: #0d245a;
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(13, 36, 90, 0.16);
}

.favorites-hero__button:hover {
    background: #063195;
}

.favorites-tabs {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.favorites-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0 0.75rem;
    background: #ffffff;
    color: #0d245a;
    font-weight: 850;
}

.favorites-tabs__item.is-active {
    border-color: #0d245a;
    background: #0d245a0a;
    color: #0d245a;
}

.favorites-tabs__item strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #0d245a;
    color: #ffffff;
    font-size: 0.85rem;
    line-height: 1;
}

.favorites-content {
    padding: 0.5rem 0 4.5rem;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.favorites-results .listings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1180px;
    gap: 1.5rem;
    align-items: stretch;
}

.favorites-results .listing-card {
    width: 100%;
}

.favorites-results__loading {
    color: #526382;
}

.favorites-empty {
    max-width: 760px;
    padding: 2.4rem;
    border: 1px solid #dce6f3;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(13, 36, 90, 0.08);
}

.favorites-empty h2 {
    margin: 0 0 0.8rem;
    color: #0d245a;
    font-size: 1.7rem;
}

.favorites-empty p {
    margin: 0 0 1.4rem;
    color: #526382;
    line-height: 1.6;
}

.favorites-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 1.25rem;
    border-radius: 2px;
    background: #0d245a;
    color: #ffffff;
    font-weight: 850;
    text-decoration: none;
}

.favorites-empty a:hover {
    background: #063195;
}

@media (max-width: 1100px) {
    .favorites-hero {
        padding: 2.4rem 0 1.6rem;
    }

    .favorites-hero h1 {
        font-size: clamp(2.4rem, 6vw, 3.2rem);
        line-height: 1.05;
    }

    .favorites-content {
        padding-top: 0.75rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 1.4rem;
    }

    .favorites-results .listings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.35rem;
    }

    .favorites-results .listing-card__image {
        aspect-ratio: 4 / 3;
    }

    .favorites-results .listing-card__body {
        padding: 1.15rem;
    }

    .favorites-results .listing-card__title {
        font-size: 1.35rem;
        line-height: 1.18;
    }

    .favorites-results .listing-card__location {
        font-size: 0.95rem;
    }

    .favorites-results .listing-card__price {
        font-size: 1.75rem;
    }
}

@media (max-width: 580px) {
    .favorites-hero {
        padding: 1.65rem 0 1rem;
    }

    .favorites-hero h1 {
        font-size: 2.1rem;
        line-height: 1.05;
        margin-bottom: 0.8rem;
    }

    .favorites-hero p {
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .favorites-hero__button {
        width: 100%;
        min-height: 48px;
        margin-top: 1.1rem;
    }


    .favorites-tabs {
        margin-top: 1.55rem;
        margin-bottom: 1.15rem;
    }

    .favorites-tabs__item {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
        padding: 0 1rem;
    }

    .favorites-content {
        padding: 0.75rem 0 4.5rem;
        gap: 1.2rem;
    }

    .favorites-empty {
        width: 100%;
        padding: 1.5rem;
        border-radius: 2px;
        box-shadow: 0 12px 30px rgba(13, 36, 90, 0.06);
    }

    .favorites-empty h2 {
        margin-bottom: 0.7rem;
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .favorites-empty p {
        margin-bottom: 1.2rem;
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .favorites-empty a {
        width: 100%;
        min-height: 48px;
    }

    .favorites-results .listings-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .favorites-results .listing-card {
        border-radius: 2px;
    }
}