/* TorgAI Landing Page - 2025 Clean Design */
:root {
    /* Colors - 2025 Warm Palette */
    --primary-orange: #D2691E;
    --primary-dark: #30312D;
    --secondary-gray: #71674F;
    --bg-dark: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #8a8a8a;
    --accent-green: #4ade80;
    --accent-blue: #3b82f6;
    --gradient-primary: linear-gradient(135deg, #D2691E 0%, #CD853F 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    
    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation - ENABLED FOR UNIFIED HEADER */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 15px 20px !important; /* Better padding like detail page */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary-orange);
}

.phone-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 14px;
}

.phone-link:hover {
    color: var(--primary-orange);
}

/* NAVBAR STYLES MOVED TO unified-navbar.css */

/* COMPACT STATISTICS - USER OPTIMIZED */
.property-statistics {
    padding: 16px 24px !important; /* Compact padding */
    margin: 20px 0 !important; /* Reduced margins */
    font-size: 14px !important; /* Smaller base font */
}

#total-count {
    font-size: 22px !important; /* Bigger than category numbers but not huge */
    font-weight: 700 !important;
}

.stat-number {
    font-size: 22px !important; /* Balanced size */
    font-weight: 700 !important;
}

.stat-count {
    font-size: 18px !important; /* Smaller than main number */
    font-weight: 600 !important;
}


/* CLEAN TICKER - TOP POSITION (navbar removed) */
.live-ticker {
    position: fixed !important;
    top: 0 !important; /* Top of page (navbar removed) */
    left: 72px !important; /* After sidebar */
    right: 0 !important;
    height: 50px !important;
    background: transparent !important; /* Transparent as requested */
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 12px 24px !important;
    z-index: 1000 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border: none !important; /* NO borders */
}

/* DYNAMIC: Ticker position states */
.live-ticker.menu-closed {
    left: 72px; /* Start after rail when menu closed */
}

/* DUPLICATE RULE REMOVED - CONSOLIDATED ABOVE */

.ticker-content {
    display: flex;
    animation: ticker-scroll 60s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin-right: 3rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.ticker-badge {
    background: var(--primary-orange);
    color: var(--text-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    margin-right: 8px;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Load More Button */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 159, 27, 0.4);
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-load-more.loading .btn-text {
    display: none;
}

.btn-load-more.loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Photo Modal */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: 5% auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: var(--primary-orange);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition-smooth);
}

.photo-modal-close:hover {
    background: rgba(243, 159, 27, 0.8);
    transform: scale(1.1);
}

.photo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(243, 159, 27, 0.8);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.photo-prev {
    left: 20px;
}

.photo-next {
    right: 20px;
}

.photo-nav-btn:hover {
    background: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

/* Property Results */
.property-results {
    padding: 32px 0 80px 0; /* Compact top, normal bottom */
    background: var(--bg-card);
}


.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 12px 20px; /* OPTIMIZED: Better proportion */
    background: rgba(255, 255, 255, 0.03); /* ADDED: Subtle background */
    border: 1px solid rgba(255, 255, 255, 0.15); /* IMPROVED: Thinner, more elegant border */
    border-radius: 8px; /* CONSISTENT: 8px grid */
    color: rgba(255, 255, 255, 0.8); /* IMPROVED: Better readability */
    font-size: 14px;
    font-weight: 600; /* IMPROVED: Professional weight */
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* ENHANCED: Professional easing */
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* FOR pseudo-elements */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* ADDED: Subtle depth */
}

.filter-btn:hover {
    border-color: rgba(243, 159, 27, 0.6);
    color: rgba(243, 159, 27, 0.9);
    background: rgba(243, 159, 27, 0.05); /* SUBTLE: Light hover background */
    transform: translateY(-1px); /* ADDED: Subtle lift */
    box-shadow: 0 3px 8px rgba(243, 159, 27, 0.15); /* ENHANCED: Orange glow */
}

.filter-btn.active {
    border-color: var(--primary-orange);
    color: #ffffff; /* IMPROVED: Better contrast for active */
    background: linear-gradient(135deg, #FF8C00, #FFA500); /* ENHANCED: Gradient for active state */
    box-shadow: 0 4px 12px rgba(243, 159, 27, 0.3); /* STRONG: Active state shadow */
    font-weight: 700; /* EMPHASIZED: Bold for active */
}

.view-toggle {
    display: none !important; /* REMOVED: Cleaner interface as requested */
}

.view-btn {
    width: 40px; /* Consistent 40px size */
    height: 40px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px; /* 8px grid: match filter buttons */
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active,
.view-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: rgba(243, 159, 27, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Property Grid (legacy support) */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(243, 159, 27, 0.1);
    transition: var(--transition-smooth);
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 40px rgba(243, 159, 27, 0.2);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 40px 0;
    border-top: 1px solid rgba(243, 159, 27, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 40px;
    align-items: center;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.footer-contact h4 {
    color: var(--primary-orange);
    font-size: 16px;
    margin-bottom: 8px;
}

.footer-contact a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-legal p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .results-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Fix navbar alignment in mobile - seamless integration */
    .navbar {
        left: 0; /* Full width on mobile */
        background: rgba(26, 26, 26, 0.98);
    }
    
    .nav-container {
        padding: 10px 15px 10px 75px; /* Mobile sidebar space */
    }
    
    /* Adjust live ticker for mobile - seamless integration */
    .live-ticker {
        padding: 8px 15px 8px 75px; /* RESPONSIVE: Mobile sidebar space */
        top: 0; /* Align with navbar removal */
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
}