.local-favorites-page {
    --favorites-ink: #17344d;
    --favorites-muted: #748393;
    --favorites-gold: #c5a15b;
    --favorites-teal: #078b7c;
    background: #f7f8f6;
    color: var(--favorites-ink);
}

.local-favorites-page.sakan-home .site-header-shell:not(.is-sticky) {
    position: absolute;
    inset: 0 0 auto;
    z-index: 100;
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.local-favorites-page .desktop-primary-nav > a,
.local-favorites-page .desktop-primary-nav .header-account > .desktop-account-trigger,
.local-favorites-page .header-links,
.local-favorites-page .header-setting,
.local-favorites-page .site-logo-name {
    color: #fff !important;
}

.local-favorites-page .site-logo-tagline {
    color: #ffe3a1 !important;
}

.local-favorites-page .mobile-menu-toggle {
    background: #fff7e8;
    color: #17344d !important;
}

.local-favorites-page .desktop-primary-nav > a[aria-current="page"] {
    background: #fff !important;
    color: #17344d !important;
}

.local-favorites-main {
    min-height: 62vh;
    padding: 0 0 82px;
    background: #f7f8f6;
}

.local-favorites-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.local-favorites-hero {
    padding-top: 84px;
}

.local-favorites-hero .offers-hero-caption {
    bottom: 20px;
}

.local-favorites-result-summary {
    font-weight: 600;
}

.local-favorites-content {
    margin-top: 0;
    padding: 42px 0 0;
}

.local-favorites-content__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 17px;
}

.local-favorites-content__heading > div > span {
    color: #9a7941;
    font-size: 11px;
    font-weight: 800;
}

.local-favorites-content__heading h2 {
    margin: 4px 0 0;
    color: var(--favorites-ink);
    font-size: clamp(19px, 2.2vw, 25px);
    font-weight: 850;
}

.local-favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.local-favorite-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e3e8e1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px #17344d06;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.local-favorite-card:hover {
    transform: translateY(-4px);
    border-color: #b89a60;
    box-shadow: 0 14px 30px #17344d14;
}

.local-favorite-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 235px;
    flex: 0 0 235px;
    overflow: hidden;
    background: #dae2dd;
}

.local-favorite-card__image::after {
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, #10283e99);
    content: "";
    pointer-events: none;
}

.local-favorite-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.local-favorite-card:hover .local-favorite-card__image img {
    transform: scale(1.04);
}

.local-favorite-card__price {
    position: absolute;
    z-index: 1;
    top: 15px;
    inset-inline-start: 15px;
    padding: 6px 11px;
    border-radius: 7px;
    background: #fff3dd;
    color: #856223;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.local-favorite-card__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 19px;
}

.local-favorite-card__body > small {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 7px;
    padding: 4px 8px;
    border-radius: 7px;
    background: #f5f0e5;
    color: #876931;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.local-favorite-card h2 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 7px;
    color: #15334f;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.local-favorite-card h2 a {
    color: inherit;
}

.local-favorite-card h2 a:hover {
    color: var(--favorites-teal);
}

.local-favorite-card__location {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    color: #83909b;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.local-favorite-card__location .material-symbols-rounded {
    flex: 0 0 auto;
    color: #b09152;
    font-size: 16px;
}

.local-favorite-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 0;
    color: #74818c;
    font-size: 11px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.local-favorite-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
}

.local-favorite-card__actions > a,
.local-favorite-card__actions > button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.local-favorite-card__actions > a {
    color: var(--favorites-teal);
}

.local-favorite-card__actions > button {
    color: #a56d70;
}

.local-favorite-card__actions > button:hover {
    color: #bd4d55;
}

.local-favorite-card__actions .material-symbols-rounded {
    font-size: 17px;
}

.local-favorites-empty {
    display: grid;
    justify-items: center;
    padding: 46px 24px 40px;
    border: 1px solid #e2e8e5;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff, #fbfcfa);
    box-shadow: 0 12px 36px #17344d08;
    text-align: center;
}

.local-favorites-empty__art {
    position: relative;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    margin-bottom: 15px;
    border: 1px solid #f0e5cc;
    border-radius: 30px;
    background: linear-gradient(145deg, #fffaf0, #f8f1e3);
    color: #c57c82;
}

.local-favorites-empty__art > .material-symbols-rounded:first-child {
    font-size: 43px;
}

.local-favorites-empty__art > .material-symbols-rounded:last-child {
    position: absolute;
    right: -9px;
    bottom: -7px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 13px;
    background: #173c53;
    color: #f0d79f;
    font-size: 18px;
}

.local-favorites-empty h2 {
    margin: 0;
    color: var(--favorites-ink);
    font-size: 20px;
    font-weight: 900;
}

.local-favorites-empty p {
    max-width: 440px;
    margin: 8px 0 20px;
    color: var(--favorites-muted);
    font-size: 13px;
    line-height: 1.9;
}

.local-favorites-empty > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: var(--favorites-teal);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}

.local-favorites-empty > a:hover {
    transform: translateY(-1px);
    background: #066d61;
}

.local-favorites-empty > a .material-symbols-rounded {
    font-size: 17px;
}

.local-favorites-error {
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px solid #f0cccc;
    border-radius: 14px;
    background: #fff7f7;
    color: #9c3d3d;
    text-align: center;
}

.local-favorites-page :is(a, button):focus-visible {
    outline: 3px solid #d5b66e;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .local-favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .local-favorites-main {
        padding: 0 0 64px;
    }

    .local-favorites-hero {
        padding-top: 78px;
    }
}

@media (max-width: 600px) {
    .local-favorites-shell {
        width: calc(100% - 28px);
    }

    .local-favorites-hero {
        min-height: 465px;
    }

    .local-favorites-content {
        padding-top: 28px;
    }

    .local-favorites-content__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 13px;
    }

    .local-favorites-content__heading h2 {
        font-size: 20px;
    }

    .local-favorites-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .local-favorite-card__image {
        height: 230px;
        flex-basis: 230px;
    }

    .local-favorite-card h2 {
        font-size: 17px;
    }

    .local-favorites-empty {
        padding: 34px 18px 30px;
        border-radius: 20px;
    }

    .local-favorites-empty h2 {
        font-size: 18px;
    }

    .local-favorites-empty p {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .local-favorite-card,
    .local-favorite-card__image img,
    .local-favorites-empty > a {
        transition: none;
    }
}

.local-favorites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.local-favorite-card__remove {
    position: absolute;
    z-index: 2;
    top: 22px;
    inset-inline-start: 22px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 1px solid #e6edf5;
    border-radius: 50%;
    background: #fff;
    color: #d65b65;
    box-shadow: 0 3px 10px #17344d16;
    cursor: pointer;
}

.local-favorite-card__remove:hover {
    background: #fff1f2;
}

.local-favorite-card__remove .material-symbols-rounded {
    font-size: 19px;
}

@media (max-width: 760px) {
    .local-favorites-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .local-favorite-card__remove {
        top: 20px;
        inset-inline-start: 20px;
    }
}
