/* ═══════════════════════════════════════════════════════════
   FAVORITOS PAGE
   ═══════════════════════════════════════════════════════════ */

.card-imovel__favorito {
    background-color: #ffffffe6 !important;
    color: var(--cor-site-1);
    font-size: 17px;
    height: 35px;
    width: 35px;
    border-radius: 8px !important;
    border: 1px solid #dedede;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    padding: 0;
}

.btn-imoveis-home {
    padding: 14px;
    background: var(--cor-site-1);
    border: 1px solid var(--cor-site-1);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.btn-imoveis-home:hover, .btn-imoveis-home:focus {
    padding: 14px;
    background: #fff;
    color: var(--cor-site-1);
    transform: translateY(-3px) !important;
}

button.card-imovel__favorito > i {
    font-size: 19px;
}

.card-imovel__favorito.active {
    color: var(--cor-site-1);
    border: 1px solid #dedede;
}

.property-card__image-container .card-imovel__favorito {
    position: absolute;
    top: 12px;
    right: 12px;
}

.card-imovel__favorito.detalhes {
    position: static;
    display: inline-flex;
    width: 34px;
    height: 34px;
    margin-right: 0;
    border-radius: 999px !important;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── Hero institucional com a imagem do blog.php ─────────────── */
.fav-hero {
    position: relative;
    min-height: 52vh;
    background-size: cover;
    background-position: bottom;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}

.fav-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(2, 8, 40, 0.78) 0%,
        rgba(2, 8, 40, 0.55) 55%,
        rgba(2, 8, 40, 0.72) 100%
    );
    z-index: 0;
}

/* Mantém a logo do header visível no topo (não há logo no corpo do hero desta página) */
.cabecalho--hero:not(.cabecalho--fixo) .cabecalho__logo {
    display: block;
}

.fav-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 0;
}

.fav-hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
    backdrop-filter: blur(6px);
}

.fav-hero__pill i {
    color: #f5c518;
    font-size: 10px;
}

.fav-hero__titulo {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 14px;
}

.fav-hero__sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 36px;
    line-height: 1.6;
    max-width: 650px;
}

/* ── Seções ───────────────────────────────────────────────── */
.fav-section {
    padding: 40px 0 64px;
    border-bottom: 1px solid #ebebeb;
}

.fav-section:last-child { border-bottom: none; }

.fav-section__header {
    margin-bottom: 32px;
}

.fav-section__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cor-site-1);
    margin-bottom: 6px;
}

.fav-section__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--cinza-900, #111827);
    margin: 0 0 6px;
}

.fav-section__subtitle {
    font-size: 14px;
    color: var(--cinza-600, #4b5563);
    margin: 0;
}

/* ── Estado vazio ─────────────────────────────────────────── */
.fav-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    background: var(--cinza-100, #f8fafc);
    border-radius: 12px;
    border: 1px solid #ebebeb;
    width: 100%;
}

.fav-empty__icon {
    font-size: 40px;
    color: var(--cinza-300, #cbd5e1);
    margin-bottom: 16px;
}

.fav-empty__titulo {
    font-size: 17px;
    font-weight: 700;
    color: var(--cinza-800, #1f2937);
    margin: 0 0 6px;
}

.fav-empty__texto {
    font-size: 14px;
    color: var(--cinza-400, #94a3b8);
    margin: 0 0 20px;
}

.fav-empty__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cor-site-1);
    text-decoration: none;
    border: 1.5px solid var(--cor-site-1);
    padding: 8px 18px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}

.fav-empty__link:hover {
    background: var(--cor-site-1);
    color: #fff;
    text-decoration: none;
}

/* ── Loading ──────────────────────────────────────────────── */
.fav-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--cinza-400, #94a3b8);
    font-size: 14px;
    width: 100%;
}

.fav-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--cor-site-1);
    border-radius: 50%;
    animation: fav-spin .7s linear infinite;
}

@keyframes fav-spin {
    to { transform: rotate(360deg); }
}

/* ── Carrossel de fotos nos cards de favoritos ────────────── */
.card-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.card-carousel__track {
    position: relative;
    height: 100%;
    width: 100%;
}

.card-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.card-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.card-carousel__slide a {
    display: block;
    height: 100%;
}

.card-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s, background .2s;
    flex-shrink: 0;
}

.property-card-container:hover .card-carousel__btn {
    opacity: 1;
}

.card-carousel__btn:hover {
    background: #fff;
}

.card-carousel__btn--prev {
    left: 10px;
}

.card-carousel__btn--next {
    right: 10px;
}

.card-carousel__btn svg {
    stroke: #1a1a1a;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.card-carousel__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
}

.card-carousel__dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .2s, transform .2s;
    flex-shrink: 0;
}

.card-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .fav-hero__inner { padding-top: 52px; }
    .fav-section { padding: 40px 0; }
}
