       /* Use Inter font */
       .ec-body {
        font-family: 'Inter', sans-serif;
        background-color: #f0f4f8; /* Light Blue/Gray */
    }

    /* --- Tab styling --- */
    .ec-tab-button {
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        padding: 0.5rem 0.7rem; text-align: center; font-weight: 500; font-size: 0.75rem;
        color: #4a5568; background-color: #e2e8f0;
        white-space: nowrap;
        border: 1px solid #cbd5e0;
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
        position: relative;
    }
    @media (min-width: 768px) { .ec-tab-button { font-size: 0.85rem; padding: 0.55rem 1rem; } }

    .ec-tab-button.ec-active {
        color: #1a202c; background-color: #ffffff; border-color: #cbd5e0;
        border-bottom-color: transparent;
        font-weight: 600; z-index: 10;
        margin-bottom: -1px;
    }
    .ec-tab-button:not(.ec-active):hover { color: #1a202c; background-color: #cbd5e0; }
    .ec-tab-button:focus { outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.5); }
    .ec-tab-content { display: none; }
    .ec-tab-content.ec-active { display: block; }
    /* --- End of Tab styling --- */


    /* --- Form styling --- */
    .ec-form-input, .ec-filter-input, .ec-filter-select {
        width: 95%; padding: 0.6rem 0.6rem; border: 1px solid #cbd5e0;
        border-radius: 0.375rem; background-color: #ffffff; color: #2d3748;
        box-shadow: inset 0 1px 1px rgba(0,0,0,0.05); font-size: 0.8rem; line-height: 1.2rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .ec-form-input::placeholder, .ec-filter-input::placeholder { color: #a0aec0; }
    .ec-form-input:focus, .ec-filter-input:focus, .ec-filter-select:focus { outline: none; border-color: #4299e1; box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3); }
    .ec-form-label, .ec-filter-label {
        display: block; font-size: 0.75rem;
        font-weight: 500; color: #4a5568; margin-bottom: 0.25rem;
    }
    .ec-search-button {
        width: 100%; background-color: #4299e1; color: white; font-weight: 600;
        padding: 0.6rem 0.8rem; border-radius: 0.375rem; box-shadow: 0 1px 1px rgba(0,0,0,0.05);
        transition: background-color 0.2s ease; font-size: 0.8rem; line-height: 1.2rem;
        border: 1px solid transparent;
    }
    .ec-search-button:hover { background-color: #3182ce; }
    .ec-search-button:focus { outline: none; box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); }
    
    /* Form grid spacing fixes */
    .ec-search-container .grid > div {
        min-width: 0; /* Prevent grid items from overflowing */
        display: flex;
        flex-direction: column;
    }
    
    .ec-search-container .grid .ec-form-label {
        margin-bottom: 0.5rem; /* Increase spacing between label and input */
    }
    
    .ec-search-container .grid .ec-form-input,
    .ec-search-container .grid .ec-search-button {
        margin-bottom: 0; /* Remove any bottom margin */
    }
    /* --- End of Form styling --- */

    /* --- Filter specific styling --- */
    .ec-filter-button-apply {
         width: 100%; background-color: #48bb78; color: white; font-weight: 600;
         padding: 0.5rem 0.8rem; border-radius: 0.375rem; box-shadow: 0 1px 1px rgba(0,0,0,0.05);
         transition: background-color 0.2s ease; font-size: 0.8rem; line-height: 1.2rem;
         border: 1px solid transparent; text-align: center;
    }
    .ec-filter-button-apply:hover { background-color: #38a169; }
    .ec-filter-button-apply:focus { outline: none; box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.5); }

    .ec-filter-button-reset {
         width: 100%; background-color: transparent; color: #4a5568; font-weight: 500;
         padding: 0.5rem 0.8rem; border-radius: 0.375rem;
         transition: color 0.2s ease; font-size: 0.8rem; line-height: 1.2rem;
         border: none; text-align: center; margin-top: 0.5rem;
    }
    .ec-filter-button-reset:hover { color: #2c5282; }
    .ec-filter-button-reset:focus { outline: none; text-decoration: underline; }
    /* --- End of Filter specific styling --- */


    /* --- Header styling --- */
    .ec-header { padding: 0.35rem 0; background-color: inherit; }
    .ec-header-container { padding-left: 1rem; padding-right: 1rem; }
    @media (min-width: 1280px) { .ec-header-container { padding-left: 0; padding-right: 0; } }
    .ec-header-logo {
         display: inline-flex; align-items: center; gap: 0.4rem;
         font-size: 1rem; font-weight: 700; color: #2c5282;
    }
    .ec-header-logo i { font-size: 1.1em; }
    .ec-header-logo .ec-flag-icon { font-size: 1.1em; line-height: 1; }
    @media (min-width: 768px) { .ec-header-logo { font-size: 1.2rem; } }
    .ec-header-button {
         display: inline-flex; align-items: center; background-color: #e2e8f0;
         color: #2c5282; padding: 0.3rem 0.6rem; border-radius: 0.375rem;
         font-weight: 500; font-size: 0.75rem; transition: background-color 0.2s ease, color 0.2s ease;
         white-space: nowrap; border: 1px solid #cbd5e0; text-decoration: none;
    }
     @media (min-width: 768px) { .ec-header-button { padding: 0.3rem 0.8rem; } }
    .ec-header-button:hover { background-color: #cbd5e0; text-decoration: none; }
    .ec-header-button i { margin-right: 0.35rem; font-size: 0.8em; width: 1em; text-align: center; }
    
    /* Remove underlines from all header links */
    .ec-header a, .ec-header-button, .ec-header-button:hover {
        text-decoration: none !important;
    }
    /* --- End of Header styling --- */

    /* Tagline styling */
    .ec-tagline { color: #4a5568; font-size: 0.8rem; margin-bottom: 1rem; }
    @media (min-width: 768px) { .ec-tagline { font-size: 0.9rem; } }


    /* --- Search container styling --- */
    .ec-search-container {
         background-color: #ffffff; padding: 0.6rem;
         padding-top: 0.5rem;
         border: 1px solid #cbd5e0;
         border-top-color: #cbd5e0;
         border-radius: 0.375rem;
         overflow: visible; /* Allow dropdowns to overflow */
    }
    @media (min-width: 768px) {
        .ec-search-container { padding: 0.8rem; padding-top: 0.75rem; }
    }
    /* --- End of Search container styling --- */


    /* --- Tab row styling --- */
    .ec-tabs-and-categories-row {
        display: flex; justify-content: space-between; align-items: flex-end;
        position: relative; padding-left: 0.6rem; padding-right: 0.6rem;
    }
     @media (min-width: 768px) { .ec-tabs-and-categories-row { padding-left: 0.8rem; padding-right: 0.8rem; } }

    .ec-tab-buttons-container { display: flex; gap: 0.25rem; }
     @media (min-width: 768px) { .ec-tab-buttons-container { gap: 0.375rem; } }
    /* --- End of Tab row styling --- */


    /* --- Category Icons Section Styling --- */
    .ec-category-section { align-self: flex-end; padding-bottom: 0px; }
    .ec-category-link {
        display: inline-flex; align-items: center; padding: 0.3rem 0.5rem;
        color: #4a5568; font-size: 0.75rem; font-weight: 500;
        transition: color 0.2s ease; text-decoration: none; border-radius: 0.25rem;
    }
    .ec-category-link:hover { color: #2c5282; background-color: rgba(226, 232, 240, 0.5); }
    .ec-category-link i { margin-right: 0.4rem; width: 1em; text-align: center; font-size: 0.9em; }
    /* --- End of Category Icons Section Styling --- */

    /* --- Ad Box Styling --- */
    .ec-ad-placeholder {
        border: 2px dashed #cbd5e0; background-color: #edf2f7; color: #a0aec0;
        display: flex; align-items: center; justify-content: center;
        height: 100px; border-radius: 0.375rem; font-size: 0.8rem;
    }
    /* --- End of Ad Box Styling --- */

    /* --- Car Thumbnail Card Styling (Smaller) --- */
    .ec-car-card {
        background-color: #ffffff; border-radius: 0.5rem; overflow: hidden;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0; transition: box-shadow 0.3s ease;
        text-decoration: none; /* Remove underline from link */
        display: block;
        position: relative;
    }
    .ec-car-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        text-decoration: none; /* Ensure no underline on hover */
    }
    .ec-car-card-image-container {
        position: relative !important;
        width: 100%;
        height: 180px; /* Larger image height for mobile */
        overflow: hidden;
    }
    .ec-car-card img {
        width: 100%;
        height: 180px; /* Larger image height for mobile */
        object-fit: cover;
    }

    /* Desktop: smaller card images */
    @media (min-width: 768px) {
        .ec-car-card-image-container {
            height: 120px;
        }
        .ec-car-card img {
            height: 120px;
        }
    }
    .ec-car-card-price-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6));
        color: #ffffff;
        padding: 8px 10px;
        font-size: 0.85rem;
        font-weight: 700;
        z-index: 10;
        text-align: center;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    .ec-car-card-content {
        padding: 1rem; /* Better padding for mobile */
        text-align: center; /* Center align the content */
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 70px; /* Ensure consistent height */
    }
    .ec-car-card-title {
        font-size: 1.1rem; /* Larger for mobile readability */
        font-weight: 600;
        color: #2d3748;
        margin: 0; /* Remove all margins */
        line-height: 1.3;
        text-decoration: none;
        text-align: center; /* Center the title */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; /* Keep title on single line */
    }

    /* Desktop: smaller card content */
    @media (min-width: 768px) {
        .ec-car-card-content {
            padding: 0.75rem;
            min-height: 50px;
        }
        .ec-car-card-title {
            font-size: 0.9rem;
        }
    }

    /* --- Premium Car Card Styling --- */
    .ec-car-card.premium-listing {
        border: 3px solid #fbbf24;
    }

    .ec-car-card.premium-listing:hover {
        border-color: #f59e0b;
    }

    .ec-car-card-price {
        font-size: 1.15rem; /* Larger for mobile */
        font-weight: 700;
        color: #2d3748;
        text-align: center;
        margin-top: 8px;
    }

    /* Desktop: smaller price */
    @media (min-width: 768px) {
        .ec-car-card-price {
            font-size: 1rem;
        }
    }
    /* --- End Premium Car Card Styling --- */
    /* --- End Car Thumbnail Card Styling --- */

    /* Helper class for consistent max-width and padding */
    .ec-content-container, .auth-container {
         max-width: 1152px; /* max-w-6xl */
         margin-left: auto; margin-right: auto;
    }

    /* --- Footer Styling --- */
    .footer-container {
        background-color: #2d3748; /* Dark gray background */
        color: #e2e8f0; /* Light text */
        padding: 2rem 0 1rem 0;
        margin-top: 3rem;
    }

    .footer-content {
        max-width: 1152px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 2rem;
    }

    @media (min-width: 640px) {
        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 1024px) {
        .footer-grid {
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        }
    }

    .footer-brand {
        grid-column: span 1;
    }

    @media (min-width: 1024px) {
        .footer-brand {
            grid-column: span 1;
        }
    }

    .footer-brand-logo {
        font-size: 1.5rem;
        font-weight: 700;
        color: #4299e1; /* Blue color matching header */
        margin-bottom: 0.75rem;
    }

    .footer-brand-text {
        font-size: 0.875rem;
        line-height: 1.5;
        color: #a0aec0;
        margin-bottom: 1rem;
    }

    .footer-social {
        display: flex;
        gap: 0.75rem;
    }

    .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        background-color: #4a5568;
        color: #e2e8f0;
        border-radius: 50%;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 600;
        transition: background-color 0.2s ease;
    }

    .social-icon:hover {
        background-color: #4299e1;
        color: #ffffff;
    }

    .footer-nav {
        display: flex;
        flex-direction: column;
    }

    .footer-title {
        font-size: 1rem;
        font-weight: 600;
        color: #e2e8f0;
        margin-bottom: 0.75rem;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.875rem;
        color: #a0aec0;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-links a:hover {
        color: #4299e1;
    }

    .footer-copyright {
        background-color: #1a202c; /* Darker background */
        color: #718096;
        text-align: center;
        padding: 1rem;
        font-size: 0.875rem;
        border-top: 1px solid #4a5568;
    }
    /* --- End Footer Styling --- */

    /* --- Auth Form Styling --- */
    .auth-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f0f4f8;
        padding: 1rem;
    }
    
    .auth-container .ec-content-container {
        width: 100%;
        max-width: 1200px; /* Match header max-width */
        margin: 0 auto;
    }

    .auth-card {
        background-color: #ffffff;
        border-radius: 0.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        overflow: hidden;
        width: 100%;
        max-width: 28rem; /* 448px */
    }

    .auth-grid {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr;
        background-color: #f0f4f8;
    }

    @media (min-width: 1024px) {
        .auth-grid {
            grid-template-columns: 1.2fr 0.8fr; /* Give more space to form, less to image */
        }
        
        .auth-card {
            max-width: none;
            border-radius: 0;
            box-shadow: none;
            height: 100vh;
        }
    }

    .auth-form-container {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    @media (min-width: 1024px) {
        .auth-form-container {
            padding: 3rem;
        }
    }
    
    .auth-info-container {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .info-image {
        max-width: 100%;
        height: auto;
        max-height: 200px; /* Constrain image height */
        object-fit: contain;
        margin-bottom: 1.5rem;
    }
    
    @media (min-width: 1024px) {
        .auth-info-container {
            padding: 3rem;
        }
        
        .info-image {
            max-height: 150px; /* Smaller image on larger screens */
        }
    }

    .text-heading {
        font-size: 1.875rem; /* 30px */
        font-weight: 800;
        color: #1a202c;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .text-subheading {
        font-size: 1rem;
        color: #4a5568;
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.25rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        background-color: #ffffff;
        font-size: 1rem;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .form-group input[type="text"]:focus,
    .form-group input[type="email"]:focus,
    .form-group input[type="password"]:focus {
        outline: none;
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

    .password-wrapper {
        position: relative;
        display: flex;
    }

    .password-toggle {
        position: absolute;
        right: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        font-size: 1rem;
        padding: 0.25rem;
    }

    .password-toggle:hover {
        color: #4a5568;
    }

    .auth-button {
        width: 100%;
        background-color: #4299e1;
        color: #ffffff;
        font-weight: 600;
        padding: 0.75rem 1rem;
        border-radius: 0.375rem;
        border: none;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.2s ease;
        margin-top: 1rem;
    }

    .auth-button:hover {
        background-color: #3182ce;
    }

    .auth-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
    }

    .auth-button:disabled {
        background-color: #a0aec0;
        cursor: not-allowed;
    }

    .error-message {
        background-color: #fed7d7;
        color: #c53030;
        padding: 0.75rem;
        border-radius: 0.375rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        border: 1px solid #feb2b2;
    }

    .success-message {
        background-color: #c6f6d5;
        color: #2f855a;
        padding: 0.75rem;
        border-radius: 0.375rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        border: 1px solid #9ae6b4;
    }

    .auth-link {
        color: #4299e1;
        text-decoration: none;
        font-weight: 500;
    }

    .auth-link:hover {
        color: #3182ce;
        text-decoration: underline;
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .checkbox-group input[type="checkbox"] {
        margin-right: 0.5rem;
        width: 1rem;
        height: 1rem;
    }

    .checkbox-group label {
        font-size: 0.875rem;
        color: #4a5568;
        margin-bottom: 0;
    }

    .auth-divider {
        text-align: center;
        margin: 1.5rem 0;
        position: relative;
        color: #6b7280;
        font-size: 0.875rem;
    }

    .auth-divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #e5e7eb;
        z-index: 1;
    }

    .auth-divider span {
        background-color: #ffffff;
        padding: 0 1rem;
        position: relative;
        z-index: 2;
    }

    /* Auth image/branding side */
    .auth-brand-side {
        background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        position: relative;
        overflow: hidden;
    }

    .auth-brand-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2h4v4H2zM8 8h4v4H8zM14 14h4v4h-4zM20 20h4v4h-4z' fill='rgba(255,255,255,0.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
        opacity: 0.3;
    }

    .auth-brand-content {
        text-align: center;
        color: #ffffff;
        position: relative;
        z-index: 1;
    }

    .auth-brand-logo {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .auth-brand-tagline {
        font-size: 1.125rem;
        opacity: 0.9;
        max-width: 24rem;
        line-height: 1.6;
    }

    /* Additional auth form elements */
    .auth-alt-option {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 0.875rem;
        color: #6b7280;
    }

    .auth-alt-link {
        color: #4299e1;
        text-decoration: none;
        font-weight: 500;
        margin-left: 0.25rem;
    }

    .auth-alt-link:hover {
        color: #3182ce;
        text-decoration: underline;
    }

    .form-text-link {
        color: #4299e1;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        margin-top: 0.25rem;
        display: inline-block;
    }

    .form-text-link:hover {
        color: #3182ce;
        text-decoration: underline;
    }

    .form-checkbox-group {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .form-checkbox {
        margin-right: 0.5rem;
        width: 1rem;
        height: 1rem;
        accent-color: #4299e1;
    }

    .checkbox-label {
        font-size: 0.875rem;
        color: #4a5568;
        margin-bottom: 0;
        cursor: pointer;
    }

    .checkbox-label a {
        color: #4299e1;
        text-decoration: none;
        font-weight: 500;
    }

    .checkbox-label a:hover {
        color: #3182ce;
        text-decoration: underline;
    }

    /* Spinner for loading states */
    .spinner {
        display: none;
        width: 1rem;
        height: 1rem;
        border: 2px solid transparent;
        border-top: 2px solid currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 0.5rem;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .auth-button.loading .spinner {
        display: inline-block;
    }

    .auth-button.loading .btn-text {
        opacity: 0.7;
    }
    /* --- End Auth Form Styling --- */

    /* --- Legacy Class Compatibility --- */
    /* These classes are used by JavaScript-generated content and need to be styled */
    .car-card {
        background-color: #ffffff;
        border-radius: 0.5rem;
        overflow: hidden;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
        transition: box-shadow 0.3s ease;
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .car-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        text-decoration: none;
        color: inherit;
    }
    
    /* Remove underlines from all car card links */
    .car-card, .car-card a, .car-card:hover, .car-card a:hover,
    .ec-car-card, .ec-car-card a, .ec-car-card:hover, .ec-car-card a:hover {
        text-decoration: none !important;
    }
    
    /* Remove underlines from all links in main content */
    .ec-content-container a, .ec-content-container a:hover,
    main a, main a:hover {
        text-decoration: none !important;
    }

    .car-image-container {
        position: relative;
        overflow: hidden;
    }

    .car-image {
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .car-badge {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background-color: #4299e1;
        color: #ffffff;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: 600;
    }

    .car-details {
        padding: 0.6rem;
    }

    .car-title {
        font-size: 0.85rem;
        font-weight: 600;
        color: #2d3748;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }

    .car-price {
        font-size: 0.8rem;
        font-weight: 600;
        color: #dd6b20;
        margin-bottom: 0.35rem;
    }

    .car-meta {
        margin-bottom: 0.15rem;
    }

    .meta-item {
        font-size: 0.7rem;
        color: #718096;
        display: flex;
        align-items: center;
        margin-bottom: 0.15rem;
    }

    .meta-icon {
        width: 1.1em;
        margin-right: 0.25rem;
        color: #a0aec0;
    }

    .car-location {
        font-size: 0.7rem;
        color: #718096;
        display: flex;
        align-items: center;
        margin-bottom: 0.15rem;
    }

    .loading-spinner {
        display: inline-block;
        width: 1rem;
        height: 1rem;
        border: 2px solid #f3f3f3;
        border-top: 2px solid #4299e1;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    .no-results {
        text-align: center;
        padding: 2rem;
        color: #4a5568;
    }

    .no-results h3 {
        font-size: 1.25rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #2d3748;
    }

    .no-results p {
        font-size: 1rem;
        color: #718096;
    }

    .page-link {
        display: inline-block;
        padding: 0.5rem 0.75rem;
        margin: 0 0.125rem;
        background-color: #ffffff;
        border: 1px solid #d1d5db;
        color: #374151;
        text-decoration: none;
        border-radius: 0.375rem;
        font-size: 0.875rem;
        transition: all 0.2s ease;
    }

    .page-link:hover {
        background-color: #f3f4f6;
        border-color: #9ca3af;
        color: #1f2937;
        text-decoration: none;
    }

    .page-link.active {
        background-color: #4299e1;
        border-color: #4299e1;
        color: #ffffff;
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        gap: 0.25rem;
    }

    .sort-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .results-count {
        font-size: 0.875rem;
        font-weight: 600;
        color: #4a5568;
    }

    .sort-options {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .sort-label {
        font-size: 0.875rem;
        color: #6b7280;
        white-space: nowrap;
    }

    .sort-dropdown select {
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        background-color: #ffffff;
        color: #374151;
        min-width: 180px;
    }

    .sort-dropdown select:focus {
        outline: none;
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

    @media (max-width: 768px) {
        .sort-container {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
        
        .sort-options {
            width: 100%;
            overflow-x: auto;
            padding-bottom: 0.5rem;
            -webkit-overflow-scrolling: touch;
        }
    }

    /* Additional utility classes */
    .save-search-link {
        display: inline-block;
        margin-left: 1rem;
        padding: 0.25rem 0.75rem;
        background-color: #f0f0f0;
        border-radius: 0.25rem;
        font-size: 0.875rem;
        color: #666;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .save-search-link:hover {
        background-color: #e0e0e0;
        color: #333;
        text-decoration: none;
    }

    /* Search group positioning */
    .search-group {
        position: relative;
    }

    /* Enhanced autocomplete suggestions */
    .autocomplete-suggestions {
        position: absolute;
        border: 1px solid #d1d5db;
        background-color: #ffffff;
        z-index: 9999;
        max-height: 200px;
        overflow-y: auto;
        width: calc(100% - 2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        margin-top: 2px;
        border-radius: 0.25rem;
        top: 100%;
        left: 0;
    }

    .autocomplete-suggestions div {
        padding: 0.5rem 0.75rem;
        cursor: pointer;
        font-size: 0.875rem;
        color: #374151;
        transition: background-color 0.2s ease;
    }

    .autocomplete-suggestions div:hover {
        background-color: #f3f4f6;
    }

    .autocomplete-suggestions .active {
        background-color: #e5e7eb;
    }
    /* --- End Legacy Class Compatibility --- */

    /* --- Legacy Auth Layout Support --- */
    /* Support for old .content-side layout used in register page */
    .content-side {
        margin-left: 32%; /* Adjusted to allow for the form width */
        padding-top: 1rem;
    }
    
    .content-heading {
        font-size: 1.75rem;
        font-weight: 600;
        color: #111827;
        margin-bottom: 1.5rem;
    }
    
    .content-text {
        font-size: 1rem;
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .benefits-list {
        margin-top: 2rem;
    }
    
    .benefit-item {
        display: flex;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    
    .benefit-icon {
        background-color: #4CAF50;
        color: white;
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        font-weight: bold;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    .benefit-text {
        flex: 1;
        font-size: 0.875rem;
        color: #4b5563;
        line-height: 1.5;
    }
    
    /* Mobile responsive for legacy layout */
    @media (max-width: 768px) {
        .content-side {
            margin-left: 0;
            margin-top: 2rem;
            clear: both;
        }
    }

    /* --- Container Styling --- */
    .container {
        max-width: 1152px;
        width: 100%;
        margin: 0 auto;
        padding: 2rem 1rem;
        background-color: #ffffff;
        border-radius: 0.5rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        border: 1px solid #e2e8f0;
        min-height: 70vh;
    }

    /* --- CRUD Page Styling --- */
    .crud-page {
        background-color: #f0f4f8;
        font-family: 'Inter', sans-serif;
        min-height: 100vh;
    }

    .page-header {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #e2e8f0;
    }

    .page-title {
        font-size: 1.875rem;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 0.5rem;
    }

    .actions {
        margin-bottom: 1.5rem;
        display: flex;
        gap: 1rem;
        align-items: center;
    }

    /* --- Form Styling --- */
    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.5rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        background-color: #ffffff;
        font-size: 0.875rem;
        color: #374151;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #4299e1;
        box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    }

    .form-group textarea {
        resize: vertical;
        min-height: 100px;
    }

    .form-group input[type="checkbox"] {
        width: 1rem;
        height: 1rem;
        margin-right: 0.5rem;
        accent-color: #4299e1;
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .checkbox-group label {
        margin-bottom: 0;
        cursor: pointer;
        font-size: 0.875rem;
        color: #4a5568;
    }

    /* --- Button Styling --- */
    .btn {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        border-radius: 0.375rem;
        border: none;
        cursor: pointer;
        text-decoration: none;
        text-align: center;
        transition: all 0.2s ease;
        line-height: 1;
    }

    .btn-primary, button[type="submit"] {
        background-color: #4299e1;
        color: #ffffff;
        border: 1px solid #4299e1;
    }

    .btn-primary:hover, button[type="submit"]:hover {
        background-color: #3182ce;
        border-color: #3182ce;
        text-decoration: none;
        color: #ffffff;
    }

    .btn-edit {
        background-color: #48bb78;
        color: #ffffff;
        border: 1px solid #48bb78;
    }

    .btn-edit:hover {
        background-color: #38a169;
        border-color: #38a169;
        text-decoration: none;
        color: #ffffff;
    }

    .btn-delete, .btn-danger {
        background-color: #f56565;
        color: #ffffff;
        border: 1px solid #f56565;
    }

    .btn-delete:hover, .btn-danger:hover {
        background-color: #e53e3e;
        border-color: #e53e3e;
        text-decoration: none;
        color: #ffffff;
    }

    .btn-secondary {
        background-color: #e2e8f0;
        color: #4a5568;
        border: 1px solid #cbd5e0;
    }

    .btn-secondary:hover {
        background-color: #cbd5e0;
        border-color: #a0aec0;
        text-decoration: none;
        color: #2d3748;
    }

    /* --- Alert Styling --- */
    .alert {
        padding: 1rem;
        border-radius: 0.375rem;
        margin-bottom: 1.5rem;
        border-width: 1px;
        border-style: solid;
    }

    .alert-success {
        background-color: #c6f6d5;
        color: #2f855a;
        border-color: #9ae6b4;
    }

    .alert-error {
        background-color: #fed7d7;
        color: #c53030;
        border-color: #feb2b2;
    }

    .alert-info {
        background-color: #bee3f8;
        color: #2c5282;
        border-color: #90cdf4;
    }

    .alert-warning {
        background-color: #faf089;
        color: #744210;
        border-color: #f6e05e;
    }

    /* --- Card Styling for Rental and Parts --- */
    .rental-card, .part-card {
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
        transition: box-shadow 0.3s ease;
    }

    .rental-card:hover, .part-card:hover {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .rental-card h3, .part-card h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1a202c;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .rental-details, .part-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .rental-details p, .part-details p {
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
        color: #4a5568;
    }

    .rental-details strong, .part-details strong {
        color: #2d3748;
        font-weight: 500;
    }

    .price-display {
        font-size: 1.125rem;
        font-weight: 700;
        color: #48bb78;
        margin-bottom: 1rem;
    }

    /* Status badges */
    .rental-status, .part-status {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .status-available {
        background-color: #c6f6d5;
        color: #2f855a;
    }

    .status-rented, .status-sold {
        background-color: #fed7d7;
        color: #c53030;
    }

    .status-reserved {
        background-color: #faf089;
        color: #744210;
    }

    .status-maintenance, .status-unavailable {
        background-color: #e2e8f0;
        color: #4a5568;
    }

    /* Condition badges */
    .condition-badge {
        display: inline-block;
        padding: 0.25rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        margin-left: 0.5rem;
    }

    .condition-new {
        background-color: #48bb78;
        color: #ffffff;
    }

    .condition-used {
        background-color: #4299e1;
        color: #ffffff;
    }

    .condition-refurbished {
        background-color: #ed8936;
        color: #ffffff;
    }

    /* Summary boxes for delete pages */
    .rental-summary, .part-summary {
        background-color: #f7fafc;
        border: 1px solid #e2e8f0;
        border-radius: 0.375rem;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .delete-confirmation {
        background-color: #fed7d7;
        border: 2px solid #f56565;
        border-radius: 0.375rem;
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .delete-confirmation h3 {
        color: #c53030;
        margin-bottom: 0.5rem;
    }

    .delete-confirmation p {
        color: #c53030;
        margin-bottom: 0;
    }

    /* Mobile responsive adjustments */
    @media (max-width: 768px) {
        .container {
            padding: 1rem;
        }

        .actions {
            flex-direction: column;
            align-items: stretch;
        }

        .actions .btn {
            text-align: center;
            margin-bottom: 0.5rem;
        }

        .rental-details, .part-details {
            grid-template-columns: 1fr;
        }

        .page-title {
            font-size: 1.5rem;
        }
    }

    /* --- Homepage Mobile Responsive Styles --- */
    /* Force single column on mobile - override Tailwind grid */
    @media (max-width: 767px) {
        /* Container full width on mobile */
        .ec-content-container {
            padding-left: 0.75rem !important;
            padding-right: 0.75rem !important;
            max-width: 100% !important;
        }

        /* Outer grid full width */
        .ec-content-container > .grid {
            width: 100% !important;
        }

        /* Make section take full width on mobile */
        .ec-content-container > .grid > section {
            width: 100% !important;
            max-width: 100% !important;
            grid-column: 1 / -1;
        }

        /* FORCE 1 column grid on mobile for car listings */
        .ec-content-container section .grid {
            grid-template-columns: 1fr !important;
            gap: 1.25rem;
            width: 100% !important;
        }

        /* Make car cards take full width on mobile */
        .ec-content-container section .grid .ec-car-card,
        .ec-content-container section .grid > a {
            width: 100% !important;
            max-width: 100% !important;
        }

        /* Hide category links (Sedan, SUV, etc.) on mobile */
        .ec-category-section {
            display: none !important;
        }

        /* Hide filter sidebar on mobile by default, show as collapsible */
        .ec-content-container aside {
            display: none;
        }

        /* Make the sort/results bar more mobile-friendly */
        .ec-content-container .flex.justify-between {
            flex-direction: column;
            gap: 0.75rem;
            align-items: flex-start;
        }

        /* Full-width sort dropdown on mobile */
        .ec-content-container #sort-select {
            width: 100%;
        }
    }

    /* Show a mobile filter toggle button */
    .mobile-filter-toggle {
        display: none;
        width: 100%;
        padding: 0.75rem;
        background-color: #4299e1;
        color: white;
        border: none;
        border-radius: 0.375rem;
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 1rem;
        cursor: pointer;
    }

    @media (max-width: 767px) {
        .mobile-filter-toggle {
            display: block;
        }

        /* When filters are shown on mobile */
        .ec-content-container aside.mobile-filters-visible {
            display: block;
            margin-bottom: 1.5rem;
        }
    }
    /* --- End Homepage Mobile Responsive Styles --- */