/* =========================================================
   PREMIUM NEIGHBORHOODS PAGE ENHANCEMENTS
   Version: 2.0 - Luxury Redesign
   ========================================================= */

/* Premium Neighborhood Cards Grid */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 35px;
    padding: 0 20px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Premium Neighborhood Card */
.neighborhood-card {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(102, 126, 234, 0.08);
    cursor: pointer;
}

.neighborhood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.neighborhood-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.25), 
                0 0 40px rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.25);
}

.neighborhood-card:hover::before {
    opacity: 1;
}

/* Premium Image Container */
.neighborhood-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3c6d 0%, #2d5a8f 100%);
}

.neighborhood-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.neighborhood-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.05);
}

.neighborhood-card:hover .neighborhood-video {
    transform: scale(1.1);
    filter: brightness(1.05) contrast(1.1);
}

/* Premium Badge Styles */
.neighborhood-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    z-index: 3;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.neighborhood-badge.prestige {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.neighborhood-badge.popular {
    background: linear-gradient(135deg, #FF1744 0%, #D50000 100%);
    color: white;
}

.neighborhood-badge.value {
    background: linear-gradient(135deg, #00C853 0%, #00897B 100%);
    color: white;
}

.neighborhood-badge.roi {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.neighborhood-badge.investment {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.neighborhood-badge.business {
    background: linear-gradient(135deg, #6B7280 0%, #374151 100%);
    color: white;
}

.neighborhood-badge.community {
    background: linear-gradient(135deg, #EC4899 0%, #BE185D 100%);
    color: white;
}

.neighborhood-badge.sports {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.neighborhood-badge.premium {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
}

.neighborhood-badge.industrial {
    background: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
    color: white;
}

.neighborhood-badge.strategic {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

/* Premium Content Section */
.neighborhood-content {
    position: relative;
    padding: 30px;
    z-index: 2;
}

.neighborhood-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #1a3c6d 0%, #2d5a8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.neighborhood-card:hover .neighborhood-content h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Premium Stats Section */
.neighborhood-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #4a5568;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e8eef3;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.stat-item i {
    font-size: 1.1rem;
    color: #667eea;
    transition: color 0.3s ease;
}

.stat-item:hover i {
    color: white;
    transform: scale(1.1);
}

.stat-item strong {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 1.05rem;
}

.stat-item:hover strong {
    color: white;
}

/* Premium Tags */
.neighborhood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.neighborhood-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.neighborhood-tags .tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.neighborhood-tags .tag i {
    font-size: 0.85rem;
}

/* Premium CTA Button */
.btn-neighborhood {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-neighborhood::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-neighborhood:hover::before {
    left: 100%;
}

.btn-neighborhood:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-neighborhood i {
    margin-left: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-neighborhood:hover i {
    transform: translateX(8px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .neighborhoods-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }

    .neighborhood-image {
        height: 240px;
    }

    .neighborhood-content {
        padding: 25px;
    }

    .neighborhood-content h3 {
        font-size: 1.35rem;
    }

    .stat-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .neighborhood-badge {
        top: 15px;
        right: 15px;
        padding: 6px 14px;
        font-size: 0.7rem;
    }

    .btn-neighborhood {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .neighborhood-image {
        height: 220px;
    }

    .neighborhood-content {
        padding: 20px;
    }

    .neighborhood-content h3 {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .stat-item {
        font-size: 0.85rem;
        padding: 8px 10px;
    }

    .neighborhood-stats {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .neighborhood-tags {
        gap: 8px;
        margin-bottom: 20px;
    }

    .btn-neighborhood {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Premium Loading State */
.neighborhood-card.loading {
    opacity: 0.5;
    pointer-events: none;
}

.neighborhood-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmerLoad 1.5s infinite;
}

@keyframes shimmerLoad {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Empty State */
.neighborhoods-empty {
    text-align: center;
    padding: 80px 20px;
}

.neighborhoods-empty i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 20px;
}

.neighborhoods-empty h3 {
    font-size: 1.8rem;
    color: #4a5568;
    margin-bottom: 10px;
}

.neighborhoods-empty p {
    font-size: 1.1rem;
    color: #718096;
}
