/* Additional Custom Styles for Aloha Living Theme */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Print Styles */
@media print {

    .site-header,
    .site-footer,
    .main-navigation,
    .rets-filter-section,
    .btn {
        display: none !important;
    }

    .property-gallery img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Mobile Menu Toggle (if needed) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.5rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute !important;
        right: 1rem !important;
        top: 1.5rem !important;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-md);
        padding: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
    }
}

/* Market Statistics Section */
.market-stats-section {
    background: #f8f9fa;
}

.market-stats-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.stats-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: #f0f4f8;
    border-radius: 8px;
    padding: 4px;
    overflow-x: auto;
    flex-wrap: wrap;
}

.stats-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    white-space: nowrap;
}

.stats-tab:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stats-tab.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.stats-chart-container {
    height: 400px;
    margin-bottom: 2rem;
    position: relative;
    padding: 1rem;
}

.stats-summary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.stats-summary p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.stats-summary strong {
    font-weight: 700;
    color: #fff;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .stats-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .stats-tab {
        min-width: 100%;
        text-align: center;
    }

    .stats-chart-container {
        height: 300px;
        padding: 0.5rem;
    }

    .stats-summary {
        padding: 1rem 1.5rem;
    }

    .stats-summary p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .market-stats-container {
        padding: 1rem;
    }

    .stats-chart-container {
        height: 250px;
    }
}