
/* Linkul automat "Anunțuri salvate" trebuie să folosească stilul nativ al meniului Astra.
   Nu forțăm font-size/font-weight aici, ca să nu îl scoatem din linie cu restul meniului. */
.main-header-menu .fmb-menu-saved-listings > a.menu-link,
.ast-builder-menu .fmb-menu-saved-listings > a.menu-link,
.site-header .fmb-menu-saved-listings > a.menu-link {
    display: flex;
    align-items: center;
}

.main-header-menu .fmb-menu-saved-listings > a.menu-link .menu-text,
.ast-builder-menu .fmb-menu-saved-listings > a.menu-link .menu-text,
.site-header .fmb-menu-saved-listings > a.menu-link .menu-text {
    font: inherit;
}

.fmb-favorite-single-wrap {
    margin: 10px 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    vertical-align: middle;
}

.fmb-favorite-single-wrap--js {
    margin-left: 10px;
}

.fmb-favorite-card-host {
    position: relative !important;
}

.fmb-favorite-btn {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.fmb-favorite-btn:hover,
.fmb-favorite-btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    color: #1f2937;
    text-decoration: none !important;
}

.fmb-favorite-btn:disabled,
.fmb-favorite-btn.is-loading {
    opacity: 0.72;
    cursor: wait;
    transform: none;
}

.fmb-favorite-btn.is-saved {
    border-color: #f2c94c;
    background: #fff7d6;
}

.fmb-favorite-icon {
    font-size: 18px;
    line-height: 1;
}

.fmb-favorite-btn.is-saved .fmb-favorite-icon {
    color: #b45309;
}

.fmb-favorite-btn--single {
    min-height: 42px;
    background: #f2c94c;
    border-color: #f2c94c;
    box-shadow: 0 10px 22px rgba(242, 201, 76, 0.24);
}

.fmb-favorite-btn--single:hover,
.fmb-favorite-btn--single:focus {
    background: #f6d65f;
    border-color: #f6d65f;
}

.fmb-favorite-btn--card {
    font-size: 12px;
    padding: 8px 11px;
    min-height: 34px;
    max-width: calc(100% - 24px);
}

.fmb-favorite-btn--card .fmb-favorite-icon {
    font-size: 15px;
}

.fmb-favorite-injected-wrap {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    pointer-events: auto;
}

.fmb-favorite-injected-wrap .fmb-favorite-btn {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
}

.fmb-saved-listings {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 20px 0 34px;
}

.fmb-saved-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.fmb-saved-card.is-removing {
    opacity: 0;
    transform: scale(0.98);
}

.fmb-saved-card__image {
    display: block;
    width: 100%;
    height: 220px;
    background: #f9fafb;
    overflow: hidden;
    text-decoration: none !important;
}

.fmb-saved-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fmb-saved-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fmb-saved-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.fmb-saved-card__type {
    font-size: 12px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fmb-saved-card__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.fmb-saved-card__title a {
    color: #111827;
    text-decoration: none !important;
}

.fmb-saved-card__title a:hover {
    color: #b45309;
}

.fmb-saved-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fmb-saved-card__price,
.fmb-saved-card__county {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
}

.fmb-saved-card__price {
    background: #fff7d6;
    color: #7c4a03;
}

.fmb-saved-card__excerpt {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.fmb-saved-card__actions {
    margin-top: auto;
    padding-top: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.fmb-saved-card__open,
.fmb-saved-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #1f2937;
    color: #ffffff !important;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.fmb-favorite-btn--remove {
    box-shadow: none;
    padding: 9px 12px;
    font-size: 13px;
}

.fmb-saved-empty,
.fmb-saved-login {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    margin: 20px 0 34px;
}

.fmb-saved-empty h3,
.fmb-saved-login h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.fmb-saved-empty p,
.fmb-saved-login p {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .fmb-saved-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fmb-favorite-single-wrap {
        display: flex;
        justify-content: stretch;
        width: 100%;
        margin-left: 0;
    }

    .fmb-favorite-btn--single {
        width: 100%;
    }

    .fmb-saved-listings {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .fmb-saved-card__image {
        height: 200px;
    }

    .fmb-saved-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fmb-saved-card__open,
    .fmb-favorite-btn--remove {
        width: 100%;
    }
}
