/* assets/css/style.css - Ter1.fr Professional Styles */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #2d3748;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #559e42;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4a8235;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h1 {
    color: #559e42;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #559e42;
    background-color: #f7fafc;
}

.nav-links span {
    color: #559e42;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Buttons */
.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: 2px solid transparent;
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary {
    background: #559e42;
    color: white;
    border-color: #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-color: #559e42;
}

.btn-secondary:hover {
    background: #559e42;
    color: white;
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-danger:hover {
    background: #c53030;
    border-color: #c53030;
}

.btn-outline {
    background: transparent;
    color: #4a5568;
    border-color: #e2e8f0;
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #559e42;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Ad Cards */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.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: 1.5rem;
    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;
    flex-wrap: wrap;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 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;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* 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);
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #559e42;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: #f8fafc;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #559e42; }
.text-secondary { color: #718096; }
.text-danger { color: #e53e3e; }
.text-success { color: #38a169; }

.bg-primary { background-color: #559e42; }
.bg-secondary { background-color: #f8fafc; }
.bg-white { background-color: white; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Footer */
/* footer {
    background: #2d3748;
    color: #e2e8f0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
} */

/* Responsive Design */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-form button {
        grid-column: span 2;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@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;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-actions {
        flex-direction: column;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-body,
    .classified-listing-content {
        padding: 1rem;
    }
}


/* Authentication Pages Styles - Add to assets/css/style.css */

/* Auth Container */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f8ec 20%, #ffffff 100%);
    padding: 2rem 1rem;
}

.auth-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    border-top: 4px solid #559e42;
}

.auth-form h1 {
    text-align: center;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.025em;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f9fafb;
    color: #374151;
}

.form-group input:focus {
    outline: none;
    border-color: #559e42;
    background: white;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: #d1d5db;
    background: white;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1rem 0;
}

.btn-primary {
    background: linear-gradient(135deg, #559e42 0%, #4a8235 100%);
    color: white;
    border: 2px solid #559e42;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4a8235 0%, #3d6b2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(85, 158, 66, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(85, 158, 66, 0.3);
}

/* Messages */
.error {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    color: #c53030;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #e53e3e;
    font-weight: 500;
    font-size: 0.9rem;
}

.success {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #2f855a;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #38a169;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Links */
.auth-form p {
    text-align: center;
    margin: 1rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.auth-form a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-form a:hover {
    color: #4a8235;
    text-decoration: underline;
}

/* Loading State */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Enhanced Form Styling */
.form-group {
    position: relative;
}

.form-group input:valid {
    border-color: #10b981;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-weak { 
    width: 33%; 
    background: #ef4444; 
}

.password-strength-medium { 
    width: 66%; 
    background: #f59e0b; 
}

.password-strength-strong { 
    width: 100%; 
    background: #10b981; 
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
        margin: 1rem 0;
    }
    
    .auth-form h1 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Additional Modern Touches */
.auth-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(90deg, #559e42, #4a8235, #559e42);
    border-radius: 16px 16px 0 0;
}

.auth-form {
    position: relative;
    overflow: hidden;
}

/* Focus trap for better accessibility */
.auth-form input:focus + label,
.auth-form input:not(:placeholder-shown) + label {
    transform: translateY(-0.5rem);
    font-size: 0.75rem;
    color: #559e42;
}

/* Floating Labels (if you want to implement them) */
.floating-label {
    position: relative;
}

.floating-label input {
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
}

.floating-label label {
    position: absolute;
    top: 0.875rem;
    left: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.25rem;
}

.floating-label input:focus ~ label,
.floating-label input:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #559e42;
}

/* Animation for form appearance */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: slideInUp 0.6s ease-out;
}

/* Hover effects for inputs */
.form-group input::placeholder {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.form-group input:focus::placeholder {
    color: #d1d5db;
}

/* Custom checkbox/radio styles (if needed) */
.custom-checkbox {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.custom-checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #559e42;
}

.custom-checkbox label {
    margin: 0;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Success page styling */
.auth-success {
    text-align: center;
    padding: 2rem 0;
}

.auth-success h2 {
    color: #059669;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.auth-success .success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Loading spinner */
.loading-spinner {
    border: 2px solid #f3f4f6;
    border-top: 2px solid #559e42;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* assets/css/style.css - Ter1.fr Professional Styles */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #2d3748;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #4a5568;
}

a {
    color: #559e42;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4a8235;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h1 {
    color: #559e42;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: fit-content;
}

.nav-links a:hover {
    color: #559e42;
    background-color: #f7fafc;
}

.nav-links span {
    color: #559e42;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Buttons */
.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: 2px solid transparent;
    cursor: pointer;
    line-height: 1.5;
}

.btn-primary {
    background: #559e42;
    color: white;
    border-color: #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-color: #559e42;
}

.btn-secondary:hover {
    background: #559e42;
    color: white;
}

.btn-danger {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.btn-danger:hover {
    background: #c53030;
    border-color: #c53030;
}

.btn-outline {
    background: transparent;
    color: #4a5568;
    border-color: #e2e8f0;
}

.btn-outline:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #559e42;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Ad Cards */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.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: 1.5rem;
    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;
    flex-wrap: wrap;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* 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;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* 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);
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #559e42;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #718096;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f8fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover {
    background: #f8fafc;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #559e42; }
.text-secondary { color: #718096; }
.text-danger { color: #e53e3e; }
.text-success { color: #38a169; }

.bg-primary { background-color: #559e42; }
.bg-secondary { background-color: #f8fafc; }
.bg-white { background-color: white; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* Footer */
/* footer {
    background: #2d3748;
    color: #e2e8f0;
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
} */

/* Responsive Design */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-form button {
        grid-column: span 2;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@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;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-actions {
        flex-direction: column;
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-body,
    .classified-listing-content {
        padding: 1rem;
    }
}

/* Search Listings Improvements - Add to your style.css */

/* Listings Section */
.listings-section {
    padding: 3rem 0;
    background: #ffffff;
    min-height: 60vh;
}

.listings-section h2 {
    color: #2d3748;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.listings-section h2 .search-term {
    color: #559e42;
    font-style: italic;
}

.listings-section .no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
    font-size: 1.125rem;
}

.listings-section .no-results::before {
    content: "🔍";
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Enhanced Ads Grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
}

/* Enhanced Listing Cards */
.listing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: #559e42;
}

.listing-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover img {
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.pagination-link:hover {
    border-color: #559e42;
    color: #559e42;
    background: #f7fafc;
    transform: translateY(-1px);
}

.pagination-link.active {
    background: #559e42;
    border-color: #559e42;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(85, 158, 66, 0.3);
}

.pagination-link.active:hover {
    background: #4a8235;
    border-color: #4a8235;
}

/* Enhanced Search Form */
.search-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #559e42, #4a8235, #559e42);
    border-radius: 16px 16px 0 0;
}

.search-form input,
.search-form select {
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.search-form input:focus,
.search-form select:focus {
    outline: none;
    border-color: #559e42;
    background: white;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
    transform: translateY(-1px);
}

.search-form button {
    white-space: nowrap;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Results Count Styling */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-count {
    color: #718096;
    font-size: 0.95rem;
    font-weight: 500;
}

.results-count .count-number {
    color: #559e42;
    font-weight: 700;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 1024px) {
    .search-form {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }
    
    .search-form button {
        grid-column: span 3;
        margin-top: 0.5rem;
    }
    
    .listing-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .search-form button {
        grid-column: span 1;
        margin-top: 0.5rem;
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .listings-section h2 {
        font-size: 1.5rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    
    .pagination {
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .listings-section {
        padding: 2rem 0;
    }
    
    .search-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .listings-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .pagination {
        margin-top: 2rem;
        padding: 1rem 0;
    }
}

/* Loading State for Search Results */
.search-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    color: #718096;
}

.search-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #559e42;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Filters Toggle for Mobile */
.search-filters-toggle {
    display: none;
    background: #559e42;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 768px) {
    .search-filters-toggle {
        display: block;
    }
    
    .search-form.collapsed {
        display: none;
    }
}


/* Enhanced Classified Ads Card Styles */

/* Container Layouts */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.ads-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.category-section {
    margin-bottom: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
}

.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;
}

/* Card Styles */
.listing-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

.listing-card.list-view {
    flex-direction: row;
    max-height: 200px;
}

/* Source Badge */
.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);
}

/* Image Section */
.ad-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.listing-card.list-view .ad-image-container {
    width: 250px;
    height: 100%;
    flex-shrink: 0;
}

.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;
}

/* Content Section */
.ad-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.listing-card.list-view .ad-content {
    padding: 1rem;
}

/* Title */
.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 */
.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 */
.ad-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Details */
.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 */
.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;
}

/* Actions */
.ad-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
}

.listing-card.list-view .ad-actions {
    flex-direction: column;
    gap: 0.5rem;
}

/* Buttons */
.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-primary {
    background: #3b82f6;
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    color: #374151;
}

.btn-icon {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .listing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .listing-card.list-view {
        flex-direction: column;
        max-height: none;
    }
    
    .listing-card.list-view .ad-image-container {
        width: 100%;
        height: 200px;
    }
    
    .ad-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .category-stats {
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ad-content {
        padding: 1rem;
    }
    
    .ad-actions {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .source-badge {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* 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;
}

.no-categories-message {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0.5rem;
}

/* Loading Animation */
.ads-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 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); }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

/* Search Result Highlighting */
.search-highlight {
    background: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Accessibility */
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.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;
        margin-bottom: 1rem;
    }
    
    .ad-image {
        max-height: 150px;
    }
}

body > header > nav > div > div.nav-links > a.btn.btn-primary{
    color:white;
}

body > header > nav > div > div.nav-links > a.btn.btn-primary:hover{
    color:rgb(0, 0, 0);
}





















/* Styling pour les titres des annonces */
.ad-title {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.ad-title-link {
    display: block;
    background: #559E42;
    color: white !important;
    padding: 10px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.ad-title-link:hover {
    background: #4a8839;
    color: white !important;
    text-decoration: none;
}

.ad-title-link:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Ajustements pour les différentes vues */
.listing-card.grid-view .ad-title-link {
    font-size: 1rem;
    padding: 8px 10px;
}

.listing-card.list-view .ad-title-link {
    font-size: 1.1rem;
    padding: 12px 15px;
}

/* Amélioration de la hiérarchie visuelle pour les autres éléments */
.ad-location .location-label,
.ad-category .category-label,
.detail-item .detail-label,
.ad-contact .contact-label,
.ad-date .date-label {
    font-weight: 600;
    color: #333;
    margin-right: 6px;
}

.ad-location,
.ad-category,
.ad-contact,
.ad-date {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.ad-details {
    margin: 12px 0;
}

.detail-item {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-text {
    color: #444;
}

.price {
    font-weight: 600;
    color: #559E42;
}

/* Amélioration de la description */
.ad-description {
    margin: 12px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #559E42;
}

/* Espacement des actions */
.ad-actions {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

/* Badges source */
.source-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.flux-badge {
    background: #2196F3;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.professional-badge {
    background: #559E42;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Partner badge dans le contact */
.partner-badge {
    background: #2196F3;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    margin-left: 6px;
    font-weight: 500;
}


/* body > footer > div > p{
    color:white;
} */











































/* Styles pour la section contact dans ad.php */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.contact-seller-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
}

.contact-header h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.seller-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #559e42;
}

.seller-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.ad-posted-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea:focus {
    outline: none;
    border-color: #559e42;
    box-shadow: 0 0 0 3px rgba(85, 158, 66, 0.1);
}

.contact-form textarea::placeholder {
    color: #9ca3af;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn-primary {
    background-color: #559e42;
    color: white;
}

.btn-primary:hover {
    background-color: #4a8639;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(85, 158, 66, 0.3);
}

.btn-primary:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 0.5rem;
}

.owner-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.owner-notice p {
    margin-bottom: 1rem;
    color: #92400e;
    font-weight: 500;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #d1d5db;
}

.login-prompt p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1.1rem;
    font-weight: 500;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-buttons .btn {
    flex: 1;
    max-width: 150px;
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-seller-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .auth-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Focus states for accessibility */
.btn:focus,
.contact-form textarea:focus {
    outline: 2px solid #559e42;
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}





.source-info{
    display:none;
}









































/* ===========================
   BOOSTED/FEATURED ADS STYLES
   =========================== */

/* Main boosted card styling */
.listing-card.boosted {
    position: relative;
    border: 2px solid #559e42 !important;
    box-shadow: 0 8px 16px rgba(85, 158, 66, 0.2) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fdf6 100%);
    transform: scale(1.02); /* Slightly larger than normal cards */
    z-index: 2; /* Ensure boosted cards appear above others */
}

/* Diagonal "FEATURED" ribbon */
.listing-card.boosted::before {
    content: "À la une";
    position: absolute;
    top: 20px;
    left: -30px;
    background: linear-gradient(45deg, #559e42, #4a8b38);
    color: white;
    padding: 8px 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Enhanced hover effect for boosted cards */
.listing-card.boosted:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 32px rgba(85, 158, 66, 0.3) !important;
    border-color: #4a8b38;
}

/* Boosted card glow effect */
.listing-card.boosted::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #559e42, #4a8b38);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.1;
}

/* List view specific styling */
.listing-card.list-view.boosted {
    border-left: 5px solid #559e42 !important;
    background: linear-gradient(90deg, #f8fdf6 0%, #ffffff 50%);
    transform: scale(1.01); /* Slightly smaller scale for list view */
}

.listing-card.list-view.boosted::before {
    top: 15px;
    left: -25px;
    padding: 6px 35px;
    font-size: 10px;
}

/* Boosted ad title enhancement */
.listing-card.boosted .ad-title {
    color: #2d5a1f;
    font-weight: 600;
}

.listing-card.boosted .ad-title-link {
    color: #2d5a1f;
}

.listing-card.boosted .ad-title-link:hover {
    color: #559e42;
}

/* Price overlay enhancement for boosted ads */
.listing-card.boosted .price-overlay {
    background: linear-gradient(45deg, #559e42, #4a8b38);
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.listing-card.boosted .price-text {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Enhanced buttons for boosted ads */
.listing-card.boosted .btn-primary {
    background: linear-gradient(45deg, #559e42, #4a8b38);
    border-color: #4a8b38;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(85, 158, 66, 0.3);
}

.listing-card.boosted .btn-primary:hover {
    background: linear-gradient(45deg, #4a8b38, #3d7230);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(85, 158, 66, 0.4);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .listing-card.boosted {
        transform: scale(1.01); /* Smaller scale on mobile */
    }
    
    .listing-card.boosted::before {
        top: 15px;
        left: -25px;
        padding: 6px 30px;
        font-size: 10px;
    }
    
    .listing-card.list-view.boosted::before {
        top: 10px;
        left: -20px;
        padding: 4px 25px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .listing-card.boosted::before {
        top: 12px;
        left: -20px;
        padding: 4px 25px;
        font-size: 9px;
    }
}

/* Animation for featured ribbon */
@keyframes featuredPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.listing-card.boosted::before {
    animation: featuredPulse 2s ease-in-out infinite;
}

/* Ensure proper stacking for boosted cards in grid */
.listing-grid .listing-card.boosted {
    order: -1; /* This ensures boosted cards appear first in flexbox/grid layouts */
}













.private-announce {
  color:#fff000;
}































.ad-top-item.one{
    background:url("/uploads/ad_space/boisilea_fr-Boisilea _ Maison et studio de jardin ossature bois.webp") no-repeat center;
    background-size: cover;
}