/**
 * Zuri IDX Neighborhoods - Frontend Styles
 * Golden Theme with Syne Font
 */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Main Container
   ========================================================================== */

.zuri-neighborhood-showcase {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.neighborhood-title {
    font-family: 'Syne', sans-serif;
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    color: #2d2d2d;
    margin: 0 0 50px 0;
    line-height: 1.2;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */

.neighborhood-grid {
    display: grid;
    gap: 30px;
}

/* 2 Columns */
.neighborhood-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* 3 Columns (Default) */
.neighborhood-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* 4 Columns */
.neighborhood-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================================================
   Neighborhood Cards
   ========================================================================== */

.neighborhood-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.neighborhood-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(218, 165, 32, 0.3);
}

.neighborhood-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Image Section
   ========================================================================== */

.neighborhood-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.neighborhood-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.neighborhood-card:hover .neighborhood-image img {
    transform: scale(1.1);
}

/* Property Count Badge */
.property-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* ==========================================================================
   Info Section
   ========================================================================== */

.neighborhood-info {
    padding: 25px;
}

.neighborhood-name {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.neighborhood-city {
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    color: #888888;
    margin: 0 0 15px 0;
}

/* Explore Button */
.explore-btn {
    display: inline-block;
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.neighborhood-card:hover .explore-btn {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    transform: translateX(5px);
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.neighborhood-card.loading {
    opacity: 0.6;
}

.property-count.loading {
    background: #e0e0e0;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .neighborhood-grid-2,
    .neighborhood-grid-3,
    .neighborhood-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .zuri-neighborhood-showcase {
        padding: 40px 15px;
    }
    
    .neighborhood-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .neighborhood-grid-2,
    .neighborhood-grid-3,
    .neighborhood-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .neighborhood-image {
        height: 200px;
    }
    
    .neighborhood-name {
        font-size: 24px;
    }
    
    .neighborhood-info {
        padding: 20px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .explore-btn {
        display: none;
    }
    
    .property-count {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
}
