    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #2d3748;
            background: #ffffff;
        }

        /* Navigation */
        .navbar {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .navbar .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
        }

        .nav-brand a {
            text-decoration: none;
            color: inherit;
        }

        .nav-brand h1 {
            color: #559e42;
            font-size: 1.75rem;
            font-weight: 700;
            letter-spacing: -0.025em;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #4a5568;
            font-weight: 500;
            font-size: 0.95rem;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.2s ease;
            position: relative;
        }

        .nav-links a:hover {
            color: #559e42;
            background-color: #f7fafc;
        }

        .nav-links span {
            color: #559e42;
            font-weight: 600;
            font-size: 0.95rem;
        }

        .btn {
            display: inline-block;
            padding: 0.625rem 1.25rem;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.875rem;
            text-align: center;
            transition: all 0.2s ease;
            border: none;
            cursor: pointer;
            line-height: 1.5;
        }

        .btn-primary {
            background: #559e42;
            color: white;
            border: 2px solid #559e42;
        }

        .btn-primary:hover {
            background: #4a8235;
            border-color: #4a8235;
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(85, 158, 66, 0.3);
        }

        .btn-secondary {
            background: transparent;
            color: #559e42;
            border: 2px solid #559e42;
        }

        .btn-secondary:hover {
            background: #559e42;
            color: white;
        }

        /* Container */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #559e42 0%, #4a8235 100%);
            color: white;
            text-align: center;
            padding: 5rem 0;
            position: relative;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.1);
        }

        .hero .container {
            position: relative;
            z-index: 1;
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            line-height: 1.2;
            letter-spacing: -0.025em;
        }

        .hero p {
            font-size: 1.25rem;
            margin-bottom: 2.5rem;
            opacity: 0.95;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero .btn {
            font-size: 1.1rem;
            padding: 1rem 2rem;
            background: white;
            color: #559e42;
            border: 2px solid white;
        }

        .hero .btn:hover {
            background: transparent;
            color: white;
            border-color: white;
        }

        /* Stats in Hero */
        .hero-stats {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
            gap: 3rem;
            flex-wrap: wrap;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-number {
            font-size: 2rem;
            font-weight: 700;
            display: block;
        }

        .hero-stat-label {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* Search Section */
        .search-section {
            background: #f8fafc;
            padding: 3rem 0;
            border-bottom: 1px solid #e2e8f0;
        }

        .search-form {
            display: grid;
            grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr auto;
            gap: 1rem;
            align-items: center;
            background: white;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .search-form input,
        .search-form select {
            padding: 0.75rem 1rem;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            font-size: 0.95rem;
            transition: border-color 0.2s ease;
            background: white;
        }

        .search-form input:focus,
        .search-form select:focus {
            outline: none;
            border-color: #559e42;
            box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
        }

        .search-form button {
            white-space: nowrap;
        }

        /* Listings Section */
        .listings-section {
            padding: 4rem 0;
            background: white;
        }

        .listings-section h2 {
            text-align: center;
            margin-bottom: 3rem;
            color: #2d3748;
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -0.025em;
        }

        .listing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .listing-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
            position: relative;
        }

        .listing-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        }

        .listing-card img {
            width: 100%;
            height: 220px;
            object-fit: cover;
        }

        .listing-placeholder {
            width: 100%;
            height: 220px;
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #a0aec0;
            font-size: 2rem;
            font-weight: 300;
        }

        .classified-listing-content {
            padding: 1.5rem;
        }

        .classified-listing-content h3 {
            margin-bottom: 0.75rem;
            color: #2d3748;
            font-size: 1.2rem;
            font-weight: 600;
            line-height: 1.4;
        }

        .listing-location {
            color: #718096;
            font-size: 0.875rem;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .listing-category {
            color: #559e42;
            font-size: 0.875rem;
            margin-bottom: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .listing-surface {
            color: #4a5568;
            font-size: 0.95rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .listing-price {
            color: #559e42;
            font-weight: 700;
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            letter-spacing: -0.025em;
        }

        .listing-actions {
            display: flex;
            gap: 0.75rem;
        }

        /* Source badges */
        .source-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            z-index: 10;
        }

        .flux-badge {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }

        .professional-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
            background: #f8fafc;
            border-radius: 16px;
            margin: 2rem 0;
            border: 2px dashed #cbd5e0;
        }

        .empty-state h3 {
            color: #4a5568;
            margin-bottom: 1rem;
            font-size: 1.5rem;
            font-weight: 600;
        }

        .empty-state p {
            color: #718096;
            margin-bottom: 2rem;
            font-size: 1.1rem;
        }

        /* Footer */
        /* footer {
            background: #2d3748;
            color: #e2e8f0;
            text-align: center;
            padding: 3rem 0;
            margin-top: 4rem;
        }

        footer p {
            font-size: 0.95rem;
        } */

        /* Category sections */
        .category-section {
            margin-bottom: 4rem;
            padding: 2rem 0;
        }

        .category-section:nth-child(even) {
            background-color: #f8fafc;
            margin-left: -1.5rem;
            margin-right: -1.5rem;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            border-radius: 12px;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #559e42;
        }

        .category-title {
            font-size: 2rem;
            font-weight: 700;
            color: #2d3748;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .category-count {
            background: #559e42;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .category-meta {
            font-size: 0.8rem;
            color: #718096;
            margin-top: 0.5rem;
        }

        .view-all-btn {
            background: transparent;
            color: #559e42;
            border: 2px solid #559e42;
            padding: 0.75rem 1.5rem;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .view-all-btn:hover {
            background: #559e42;
            color: white;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .navbar .container {
                flex-direction: column;
                height: auto;
                padding: 1rem 1.5rem;
                gap: 1rem;
            }

            .nav-links {
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero {
                padding: 3rem 0;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1.1rem;
            }

            .hero-stats {
                gap: 1.5rem;
            }

            .search-form {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .listing-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .listings-section h2 {
                font-size: 2rem;
            }

            .category-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .category-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 1024px) {
            .search-form {
                grid-template-columns: 1fr 1fr;
            }

            .search-form button {
                grid-column: span 2;
            }
        }

        /* ========================================
   Enhanced Classified Ads Card Styles
   Add these styles to your existing homepage.css
   ======================================== */

/* Source Badge Styles */
.source-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.flux-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
}

.professional-badge {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

/* Enhanced Image Container */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .ad-image {
    transform: scale(1.05);
}

.ad-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.placeholder-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Price Overlay */
.price-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
}

.price-text {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Enhanced Card Content */
.ad-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ad-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.ad-title-link {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ad-title-link:hover {
    color: #3b82f6;
}

/* Location Styling */
.ad-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.location-icon {
    font-size: 1rem;
}

.region-separator {
    margin: 0 0.25rem;
}

.postal-code {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Category Styling */
.ad-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Details Grid */
.ad-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.5rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.detail-icon {
    font-size: 1rem;
}

.price-item .detail-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #059669;
}

/* Description */
.ad-description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

/* Contact Info */
.ad-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

.partner-badge {
    background: #fef3c7;
    color: #d97706;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Date */
.ad-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.8rem;
}

/* Enhanced Actions */
.ad-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: wrap;
}

/* Button Enhancements */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-icon {
    font-size: 1rem;
}

/* Debug Info Styling */
.debug-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* No Ads Message */
.no-ads-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-ads-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-ads-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Category Stats Enhancement */
.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.local-count {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.flux-count {
    background: #fef3c7;
    color: #d97706;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

/* Favorite Button Animation */
.favorite-btn.active {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.favorite-btn.active .btn-icon {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .ad-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-stats {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .source-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .ad-content {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
}

/* Accessibility */
.btn:focus,
.ad-title-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Print Styles */
@media print {
    .source-badge,
    .ad-actions {
        display: none !important;
    }
    
    .listing-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
        break-inside: avoid;
    }
}















/* Responsive Search Form CSS */
.search-section {
    background: #f8fafc;
    padding: 2rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
    background: white;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: #559e42;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
}

.search-form input[type="text"] {
    min-width: 250px;
}

.search-form select {
    min-width: 200px;
    cursor: pointer;
}

.search-form input[type="number"] {
    min-width: 140px;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #559e42, #4a8235);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 120px;
    height: fit-content;
}

.search-form .btn:hover {
    background: linear-gradient(135deg, #4a8235, #3d6b2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(85, 158, 66, 0.3);
}

.search-form .btn-primary {
    background: linear-gradient(135deg, #559e42, #4a8235);
}

.search-form .btn-primary:hover {
    background: linear-gradient(135deg, #4a8235, #3d6b2a);
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
        padding: 1.25rem;
    }
    
    .search-form input[type="text"] {
        min-width: 180px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 1.5rem 0;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-form input,
    .search-form select {
        min-width: unset;
        width: 100%;
    }
    
    .search-form .btn {
        width: 100%;
        min-width: unset;
        padding: 1rem;
        font-size: 1.1rem;
        margin-top: 0.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .search-section {
        padding: 1rem 0;
    }
    
    .search-form {
        margin: 0 1rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .search-form input,
    .search-form select {
        padding: 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Container fixes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
}


