/* ============================================
   FAVORITES PAGE STYLES
   Modern, Clean Favorites Interface
   ============================================ */

/* Container - Override default */
.favorites-container {
    padding: 3rem 1rem;
    max-width: 1280px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

@media (min-width: 640px) {
    .favorites-container {
        padding: 3rem 1.5rem;
    }
}

/* Page Header */
.favorites-page-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.favorites-page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--color-text-strong);
}

.favorites-page-subtitle {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 1.125rem;
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2rem;
}

/* Property Card */
.property-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Property Image */
.property-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--color-bg-secondary);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--color-text-muted);
}

.property-image-placeholder svg {
    width: 60px;
    height: 60px;
}

/* Saved Badge */
.saved-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    color: var(--color-text-strong);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
}

/* Property Details */
.property-details {
    padding: 1.5rem;
}

.property-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--color-text-strong);
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

.property-location svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary-500);
}

.property-location span {
    font-weight: 500;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.property-price-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-500);
}

.property-price-period {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Property Features */
.property-features {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
}

.property-feature svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary-500);
}

/* View Button */
.view-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--ai-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.view-details-btn svg {
    width: 18px;
    height: 18px;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Empty State */
.favorites-empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.favorites-empty-state svg {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-text-muted);
}

.favorites-empty-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: var(--color-text-strong);
}

.favorites-empty-text {
    color: var(--color-text-muted);
    margin: 0 0 2rem 0;
    font-size: 1.125rem;
}

.browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--ai-gradient);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.browse-btn svg {
    width: 18px;
    height: 18px;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sparkles Icon Animation */
@keyframes sparkle {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.sparkles-icon {
    animation: sparkle 2s ease-in-out infinite;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .favorites-container {
        padding: 2rem 1rem;
    }

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

    .favorites-page-title {
        font-size: 2rem;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-features {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .favorites-page-title {
        font-size: 1.75rem;
    }

    .property-card {
        margin-bottom: 0.5rem;
    }

    .property-price-value {
        font-size: 1.75rem;
    }

    .wallet-badge-nav {
        width: 100%;
        justify-content: center;
    }
}