/**
 * PROFESSIONAL STATISTICS DESIGN - PIXEL PERFECT
 * Beautiful statistics section for mobile and desktop
 * Date: August 17, 2025
 */

/* ===== PROFESSIONAL STATISTICS CONTAINER ===== */
.property-statistics {
    /* Fix z-index to not overlap dropdown */
    position: relative !important;
    z-index: 1 !important;

    /* Perfect mathematical dimensions - EXACT FIGMA SPECS */
    max-width: 987px !important; /* EXACT: Figma node 8:23 width */
    width: 987px !important; /* EXACT: Figma Statistics_Container+Shadow+BackgroundColor */
    margin: 60px auto 32px calc((100vw - 1296px) / 2 + 149px) !important; /* FUNDAMENTAL: Container offset + Figma 149px */
    
    /* Clean moderate design */
    background: rgba(43, 43, 43, 0.7) !important;
    border: 1px solid rgba(228, 169, 96, 0.25) !important;
    border-radius: 12px !important;
    overflow: visible !important;
    
    /* Perfect layout - EXACT FIGMA ALIGNMENT */
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important; /* EXACT: Figma left-aligned, green dot at 18px */
    gap: 6px !important; /* Very compact gap for single line */

    /* Moderate spacing - EXACT FIGMA: green dot at 18px from left */
    padding: 8px 18px 8px 18px !important; /* EXACT: 18px left padding = green dot at 18px offset */
    
    /* 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 {
    /* Moderate compact numbers */
    font-size: 22px !important; /* Readable but not huge */
    font-weight: 700 !important;
    color: rgb(228, 169, 96) !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: 12px !important; /* Unified size */
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0 4px 0 0 !important; /* Compact for single line */
    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(228, 169, 96, 0.6) !important;
    font-size: 16px !important;
    font-weight: 300 !important;
    margin: 0 4px !important; /* Compact separator */
}

.stat-icon {
    /* Compact icons for single line */
    font-size: 12px !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
}

/* ===== GREEN ANIMATED PULSE DOT ===== */
.counter-pulse {
    width: 8px !important;
    height: 8px !important;
    background: #00FF00 !important;  /* Bright green */
    border-radius: 50% !important;
    animation: pulse-live 2s ease-in-out infinite !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

@keyframes pulse-live {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.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 {
    /* Unified count numbers */
    font-size: 12px !important;
    font-weight: 700 !important;
    color: rgb(228, 169, 96) !important;
    margin-left: 2px !important;
}

/* ===== ENHANCED MOBILE DESIGN ===== */
@media (max-width: 768px) {
    .property-statistics {
        /* Compact mobile layout */
        margin: 16px 8px !important;
        padding: 12px 16px !important;
        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(228, 169, 96, 0.12) 0%,
            rgba(255, 255, 255, 0.06) 50%,
            rgba(228, 169, 96, 0.08) 100%) !important;
        backdrop-filter: blur(20px) saturate(150%) !important;
        
        /* Enhanced mobile border */
        border: 3px solid rgba(228, 169, 96, 0.4) !important;
        border-radius: 16px !important;
        
        /* Mobile shadow enhancement */
        box-shadow: 
            0 12px 40px rgba(228, 169, 96, 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 {
        /* Single line desktop layout */
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 6px !important; /* Very compact for single line */
        padding: 8px 12px !important; /* Compact padding */
        border-radius: 12px !important;
    }
    
    /* Desktop uses base styles */
}

/* Animations removed */

/* Counter animation */
/* Animations removed for performance */

/* Hover effects removed */

/* ===== 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(228, 169, 96, 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;
}