/**
 * PROFESSIONAL STATISTICS DESIGN - PIXEL PERFECT
 * Beautiful statistics section for mobile and desktop
 * Date: August 17, 2025
 */

/* ===== PROFESSIONAL STATISTICS CONTAINER ===== */
.property-statistics {
    /* Perfect mathematical dimensions */
    max-width: 1280px !important; /* 8px grid: 160 * 8 */
    width: calc(100% - 32px) !important; /* Perfect responsive constraint */
    margin: 32px auto !important; /* 8px grid: 4 * 8 */
    
    /* Modern glassmorphism design */
    background: linear-gradient(135deg, 
        rgba(243, 159, 27, 0.08) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(243, 159, 27, 0.06) 100%) !important;
    backdrop-filter: blur(24px) saturate(140%) !important;
    
    /* Perfect border and shadow */
    border: 2px solid rgba(243, 159, 27, 0.3) !important;
    border-radius: 20px !important; /* Enhanced radius */
    box-shadow: 
        0 8px 32px rgba(243, 159, 27, 0.15),
        0 16px 64px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    
    /* Perfect layout */
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 24px !important; /* 8px grid: 3 * 8 */
    
    /* Perfect spacing */
    padding: 24px 32px !important; /* 8px grid: 3*8 4*8 */
    
    /* Professional typography */
    font-family: 'Inter', system-ui, sans-serif !important;
    line-height: 1.4 !important;
    
    /* Perfect visibility */
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* ===== PROFESSIONAL STAT ELEMENTS ===== */
.stat-number {
    /* Beautiful large numbers */
    font-size: 36px !important; /* Even larger for impact */
    font-weight: 800 !important; /* Extra bold */
    color: #F39F1B !important;
    
    /* Enhanced text effects */
    text-shadow: 
        0 2px 8px rgba(243, 159, 27, 0.4),
        0 4px 16px rgba(243, 159, 27, 0.2) !important;
    filter: drop-shadow(0 2px 4px rgba(243, 159, 27, 0.3)) !important;
    
    /* Perfect spacing */
    display: inline-block !important;
    margin: 0 8px 0 0 !important; /* 8px grid */
    
    /* Professional animation */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.stat-label {
    /* Professional label text */
    font-size: 16px !important; /* 8px grid: 2 * 8 */
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 16px 0 0 !important; /* 8px grid: 2 * 8 */
    letter-spacing: 0.02em !important;
}

.stat-suffix {
    /* Professional suffix */
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 24px 0 0 !important; /* 8px grid: 3 * 8 */
}

.stat-separator {
    /* Beautiful separator */
    color: rgba(243, 159, 27, 0.6) !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    margin: 0 16px !important; /* 8px grid: 2 * 8 */
}

.stat-icon {
    /* Enhanced icons */
    font-size: 20px !important;
    margin-right: 8px !important; /* 8px grid */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
    vertical-align: middle !important;
}

.stat-text {
    /* Professional category text */
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 4px 0 0 !important;
    white-space: nowrap !important;
}

.stat-count {
    /* Category count numbers */
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #F39F1B !important;
    margin-left: 6px !important;
    text-shadow: 0 1px 3px rgba(243, 159, 27, 0.4) !important;
}

/* ===== ENHANCED MOBILE DESIGN ===== */
@media (max-width: 768px) {
    .property-statistics {
        /* Perfect mobile layout */
        margin: 24px 16px !important; /* 8px grid: 3*8 2*8 */
        padding: 20px 16px !important; /* 8px grid compliant */
        gap: 16px !important; /* 8px grid: 2 * 8 */
        
        /* Enhanced mobile grid */
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
        text-align: center !important;
        
        /* Mobile glassmorphism enhancement */
        background: linear-gradient(135deg, 
            rgba(243, 159, 27, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(243, 159, 27, 0.08) 100%) !important;
        backdrop-filter: blur(20px) saturate(150%) !important;
        
        /* Enhanced mobile border */
        border: 3px solid rgba(243, 159, 27, 0.4) !important;
        border-radius: 16px !important;
        
        /* Mobile shadow enhancement */
        box-shadow: 
            0 12px 40px rgba(243, 159, 27, 0.2),
            0 6px 20px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Mobile stat elements */
    .stat-number {
        font-size: 28px !important; /* Still impactful on mobile */
        display: block !important;
        margin-bottom: 4px !important;
    }
    
    .stat-label {
        font-size: 14px !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .stat-suffix {
        font-size: 12px !important;
        display: block !important;
        margin: 0 !important;
        margin-top: 2px !important;
    }
    
    .stat-separator {
        display: none !important; /* Hide on mobile */
    }
    
    /* Mobile category stats */
    .stat-icon {
        font-size: 18px !important;
        display: block !important;
        margin: 0 auto 4px auto !important;
    }
    
    .stat-text {
        font-size: 12px !important;
        display: block !important;
        margin: 0 0 2px 0 !important;
        white-space: normal !important;
    }
    
    .stat-count {
        font-size: 18px !important;
        display: block !important;
        margin: 0 !important;
    }
}

/* ===== ENHANCED DESKTOP DESIGN ===== */
@media (min-width: 769px) {
    .property-statistics {
        /* Perfect desktop enhancements */
        border-radius: 24px !important;
        padding: 32px 48px !important; /* 8px grid: 4*8 6*8 */
        
        /* Desktop glassmorphism perfection */
        background: linear-gradient(135deg, 
            rgba(243, 159, 27, 0.06) 0%,
            rgba(255, 255, 255, 0.04) 30%,
            rgba(243, 159, 27, 0.08) 70%,
            rgba(255, 140, 0, 0.05) 100%) !important;
        backdrop-filter: blur(28px) saturate(130%) !important;
        
        /* Enhanced desktop effects */
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* Desktop glow effect */
    .property-statistics::before {
        content: '' !important;
        position: absolute !important;
        top: -2px !important;
        left: -2px !important;
        right: -2px !important;
        bottom: -2px !important;
        background: linear-gradient(45deg, 
            transparent, 
            rgba(243, 159, 27, 0.1), 
            transparent, 
            rgba(243, 159, 27, 0.1), 
            transparent) !important;
        border-radius: 26px !important;
        z-index: -1 !important;
        animation: statistics-glow 3s ease-in-out infinite !important;
    }
    
    /* Desktop stat number enhancement */
    .stat-number {
        font-size: 42px !important; /* Desktop impact */
        background: linear-gradient(135deg, #F39F1B 0%, #ff8c00 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
    }
}

/* ===== PROFESSIONAL ANIMATIONS ===== */
@keyframes statistics-glow {
    0%, 100% { 
        opacity: 0.3;
        background-position: -200% 0;
    }
    50% { 
        opacity: 0.8;
        background-position: 200% 0;
    }
}

/* Counter animation */
@keyframes count-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stat-number {
    animation: count-up 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* Hover enhancement */
.property-statistics:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 12px 48px rgba(243, 159, 27, 0.2),
        0 24px 80px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(243, 159, 27, 0.5) !important;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 480px) {
    .property-statistics {
        margin: 16px 12px !important;
        padding: 16px 12px !important;
        gap: 12px !important;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        border-radius: 12px !important;
    }
    
    .stat-number {
        font-size: 24px !important;
    }
    
    .stat-text {
        font-size: 11px !important;
    }
    
    .stat-count {
        font-size: 16px !important;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
.property-statistics:focus-within {
    outline: 3px solid rgba(243, 159, 27, 0.8) !important;
    outline-offset: 2px !important;
}

/* Screen reader optimization */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}