/* Favorites Listing Page Styles */

.favorites-listing-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Favorites Header */
.favorites-header-section {
    background: linear-gradient(135deg, #ff4757 0%, #e84393 100%);
    padding: 50px 0;
    margin-bottom: 40px;
}

.favorites-header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.favorites-title-area {
    color: #fff;
}

.favorites-title-area h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.favorites-title-area p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
}

.favorites-actions {
    display: flex;
    gap: 15px;
}

.btn-clear-all-favorites,
.btn-back-to-search {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-all-favorites {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-clear-all-favorites:hover {
    background: #fff;
    color: #ff4757;
}

.btn-back-to-search {
    background: #fff;
    color: #ff4757;
}

.btn-back-to-search:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Favorites Results Section */
.favorites-results-section {
    max-width: 1400px;
    margin: 0 auto;
}

.favorites-count-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 25px 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.favorites-count-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #011923;
    margin: 0;
}

.favorites-count-badge {
    padding: 8px 20px;
    background: #ff4757;
    color: #fff;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
}

/* Empty State */
.favorites-empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.favorites-empty-state.show {
    display: flex;
}

.favorites-empty-state i {
    font-size: 100px;
    color: #ff4757;
    margin-bottom: 25px;
    opacity: 0.3;
}

.favorites-empty-state h3 {
    font-size: 32px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 15px 0;
}

.favorites-empty-state p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.btn-browse-properties {
    background: #00A9FF;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-browse-properties:hover {
    background: #0090d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 169, 255, 0.3);
}

/* Favorites Grid */
.favorites-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.favorites-properties-grid.hidden {
    display: none;
}

/* Favorite Property Card */
.favorite-property-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    animation: fadeInUp 0.6s ease forwards;
}

.favorite-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.favorite-added-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.favorite-added-date i {
    font-size: 13px;
}

.btn-remove-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 71, 87, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 2;
}

.btn-remove-favorite:hover {
    background: #ff4757;
    transform: scale(1.15);
}

/* Responsive Design for Favorites Page */
@media (max-width: 1200px) {
    .favorites-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .favorites-header-section {
        padding: 40px 0;
    }

    .favorites-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .favorites-title-area h1 {
        font-size: 36px;
    }

    .favorites-title-area p {
        font-size: 16px;
    }

    .favorites-actions {
        width: 100%;
        justify-content: space-between;
    }

    .favorites-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }

    .favorites-count-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .favorites-header-section {
        padding: 30px 0;
    }

    .favorites-title-area h1 {
        font-size: 28px;
    }

    .favorites-title-area p {
        font-size: 15px;
    }

    .favorites-properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .favorite-property-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .favorites-count-header {
        padding: 20px;
    }

    .favorites-count-header h2 {
        font-size: 24px;
    }

    .btn-clear-all-favorites,
    .btn-back-to-search {
        padding: 10px 18px;
        font-size: 14px;
    }

    .favorites-empty-state {
        padding: 60px 20px;
    }

    .favorites-empty-state i {
        font-size: 80px;
    }

    .favorites-empty-state h3 {
        font-size: 26px;
    }

    .favorites-empty-state p {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .favorites-title-area h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }

    .favorites-title-area p {
        font-size: 14px;
    }

    .favorites-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-clear-all-favorites,
    .btn-back-to-search {
        width: 100%;
        justify-content: center;
    }

    .favorites-count-header h2 {
        font-size: 20px;
    }

    .favorites-count-badge {
        font-size: 13px;
        padding: 6px 16px;
    }

    .favorites-empty-state {
        padding: 40px 15px;
    }

    .favorites-empty-state i {
        font-size: 60px;
    }

    .favorites-empty-state h3 {
        font-size: 22px;
    }

    .favorites-empty-state p {
        font-size: 14px;
    }

    .btn-browse-properties {
        width: 100%;
        justify-content: center;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.favorite-property-card:nth-child(1) { animation-delay: 0.1s; }
.favorite-property-card:nth-child(2) { animation-delay: 0.2s; }
.favorite-property-card:nth-child(3) { animation-delay: 0.3s; }
.favorite-property-card:nth-child(4) { animation-delay: 0.4s; }
.favorite-property-card:nth-child(5) { animation-delay: 0.5s; }
.favorite-property-card:nth-child(6) { animation-delay: 0.6s; }
