/* Advanced Wishlist Styles */

/* Wishlist Button on Cards */
.wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover {
    background: #f8f9fa;
    border-color: #1a1a1a;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wishlist-btn i {
    font-size: 16px;
    color: #6b6b6b;
    transition: all 0.3s ease;
}

.wishlist-btn:hover i {
    color: #1a1a1a;
}

.wishlist-btn.active {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-color: #DC2626;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3), 0 0 0 4px rgba(220, 38, 38, 0.1);
    transform: scale(1.05);
}

.wishlist-btn.active i {
    color: #ffffff;
}

.wishlist-btn.active:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.wishlist-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #ffffff;
}

/* Top bar wishlist button count must stay visible on listings page */
.action-icon-btn-wrap-wishlist .wishlist-count,
#wishlistBtn .wishlist-count {
    display: inline-flex !important;
}

/* Wishlist Modal */
.wishlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.wishlist-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.wishlist-modal-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 1400px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.wishlist-modal-overlay.show .wishlist-modal-container {
    transform: scale(1);
}

.wishlist-modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 16px 16px 0 0;
}

.wishlist-header-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-header-content h3 i {
    color: #1a1a1a;
    font-size: 18px;
}

.wishlist-header-content p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

.wishlist-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wishlist-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wishlist-action-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.wishlist-action-btn i {
    font-size: 14px;
    color: #6b6b6b;
}

.wishlist-action-btn:hover i {
    color: #ffffff;
}

.wishlist-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.wishlist-modal-close:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.wishlist-modal-close i {
    font-size: 14px;
    color: #6b6b6b;
}

.wishlist-modal-close:hover i {
    color: #ffffff;
}

.wishlist-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* Wishlist Tabs */
.wishlist-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0;
}

.wishlist-tab {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6b6b6b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    margin-bottom: -1px;
}

.wishlist-tab:hover {
    color: #1a1a1a;
    background: #f8f9fa;
}

.wishlist-tab.active {
    color: #1a1a1a;
    border-bottom-color: #DC2626;
}

.wishlist-tab-content {
    display: none;
}

.wishlist-tab-content.active {
    display: block;
}

/* Wishlist Properties Grid */
.wishlist-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.wishlist-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
    grid-column: 1 / -1;
}

.wishlist-empty-state i {
    font-size: 64px;
    color: #1a1a1a;
    opacity: 0.3;
    margin-bottom: 20px;
}

.wishlist-empty-state p {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.wishlist-empty-state span {
    font-size: 12px;
    color: #6b6b6b;
}

.wishlist-property-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-property-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1a1a1a;
}

.wishlist-property-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wishlist-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Next/Image in modal grid (class on img root) */
.wishlist-property-card .wishlist-property-img {
    width: 100%;
    height: auto;
    display: block;
}

.wishlist-property-card:hover .wishlist-property-image img {
    transform: scale(1.05);
}

.wishlist-remove-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.wishlist-remove-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.wishlist-remove-btn i {
    font-size: 12px;
    color: #6b6b6b;
}

.wishlist-remove-btn:hover i {
    color: #ffffff;
}

.wishlist-property-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wishlist-property-badge i {
    font-size: 10px;
}

.wishlist-property-info {
    padding: 20px;
}

.wishlist-property-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.wishlist-property-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.wishlist-property-location {
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wishlist-property-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wishlist-property-specs span {
    font-size: 11px;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wishlist-property-specs i {
    color: #1a1a1a;
    font-size: 10px;
}

.wishlist-property-actions {
    display: flex;
    gap: 8px;
}

.btn-wishlist-action {
    flex: 1;
    padding: 10px 16px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-wishlist-action:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.btn-wishlist-action i {
    font-size: 11px;
}

/* AI Recommendations */
.ai-recommendations-section {
    padding: 20px 0;
}

.recommendations-header {
    text-align: center;
    margin-bottom: 32px;
}

.recommendations-header i {
    font-size: 48px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.recommendations-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.recommendations-header p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.recommendations-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
    grid-column: 1 / -1;
}

.recommendations-empty i {
    font-size: 64px;
    color: #1a1a1a;
    opacity: 0.3;
    margin-bottom: 20px;
}

.recommendations-empty p {
    font-size: 14px;
    color: #6b6b6b;
}

.recommendation-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #1a1a1a;
}

.recommendation-match-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recommendation-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

.recommendation-info {
    padding: 16px;
}

.recommendation-info h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.recommendation-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.recommendation-location {
    font-size: 11px;
    color: #6b6b6b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.recommendation-specs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: #6b6b6b;
}

.recommendation-actions {
    display: flex;
    gap: 8px;
}

.btn-recommendation {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-recommendation:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

/* Price Alerts */
.price-alerts-section {
    padding: 20px 0;
}

.alerts-header {
    text-align: center;
    margin-bottom: 32px;
}

.alerts-header i {
    font-size: 48px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.alerts-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.alerts-header p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alerts-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
}

.alerts-empty i {
    font-size: 64px;
    color: #1a1a1a;
    opacity: 0.3;
    margin-bottom: 20px;
}

.alerts-empty p {
    font-size: 14px;
    color: #6b6b6b;
}

.price-alert-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

.price-alert-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.price-alert-card.price-drop {
    border-left: 4px solid #DC2626;
}

.alert-property-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.alert-property-info {
    flex: 1;
}

.alert-property-info h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    font-family: 'Playfair Display', serif;
}

.alert-price-comparison {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 14px;
    color: #6b6b6b;
    text-decoration: line-through;
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Playfair Display', serif;
}

.price-change {
    background: #f0f0f0;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.alert-location {
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.alert-actions {
    display: flex;
    gap: 8px;
}

.btn-alert-action {
    padding: 10px 20px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-alert-action:hover {
    background: #f5f5f5;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-alert-action.primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff;
}

.btn-alert-action.primary:hover {
    background: #B91C1C;
}

/* Analytics */
.wishlist-analytics-section {
    padding: 20px 0;
}

.analytics-header {
    text-align: center;
    margin-bottom: 32px;
}

.analytics-header i {
    font-size: 48px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.analytics-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.analytics-header p {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0;
}

.analytics-content {
    margin-top: 24px;
}

.analytics-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b6b6b;
}

.analytics-empty i {
    font-size: 64px;
    color: #1a1a1a;
    opacity: 0.3;
    margin-bottom: 20px;
}

.analytics-empty p {
    font-size: 14px;
    color: #6b6b6b;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.analytics-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #1a1a1a;
}

.analytics-icon {
    width: 48px;
    height: 48px;
    background: #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.analytics-icon i {
    font-size: 24px;
    color: #1a1a1a;
}

.analytics-content h5 {
    font-size: 12px;
    font-weight: 600;
    color: #6b6b6b;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.analytics-value {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
}

.analytics-content p {
    font-size: 11px;
    color: #6b6b6b;
    margin: 0;
    line-height: 1.5;
}

.analytics-insights {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.analytics-insights h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analytics-insights h5 i {
    color: #1a1a1a;
    font-size: 20px;
}

.analytics-insights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-insights li {
    padding: 12px 0;
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.6;
    border-bottom: 1px solid #e5e7eb;
}

.analytics-insights li:last-child {
    border-bottom: none;
}

.analytics-insights strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Notification */
.wishlist-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.wishlist-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-notification.info {
    background: #6b6b6b;
}

/* Responsive */
@media (max-width: 768px) {
    .wishlist-modal-container {
        max-height: 95vh;
    }
    
    .wishlist-properties-grid,
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .price-alert-card {
        flex-direction: column;
    }
    
    .alert-property-image {
        width: 100%;
        height: 200px;
    }

    .wishlist-btn{
        top: 10px;
        left: 10px;
        width: 25px;
        height: 25px;
    }
}

