    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Container */
    .container {
        max-width: 1280px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Colors */
    :root {

        --text-secondary: #666;
        --gray-400: #9CA3AF;
        --card-bg: #fff;
        --shadow: rgba(0, 0, 0, 0.1);
        --input-bg: #f5f5f5;
        --input-border: #e0e0e0;
        --input-focus: #FFC107;
    }

    /* Typography */
    .logo-font {
        font-family: 'Arial Black', sans-serif;
    }

    .text-primary-yellow {
        color: var(--first-color);
        cursor: pointer;
    }

    .text-primary-yellow:hover {
        color: var(--first-color-alt);
    }

    .text-text-secondary {
        color: var(--text-secondary);
    }

    /* Buttons */
    .primary-btn {
        background-color: var(--first-color);
        color: #000;
        text-decoration: none;
        transition: background-color 0.3s ease;
        display: inline-block;
        width: 90px;
    }

    .primary-btn:hover {
        background-color: var(--first-color-alt);
    }

    /* Car Card (Grid Layout) */
    .car-card {
        background: var(--body-color);
        transition: transform 0.3s ease;
        width: 300px;
        height: 450px;
        margin: 0 auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 10px;
    }

    .car-card:hover {
        transform: translateY(-5px);
    }

    .image-container {
        width: 100%;
        height: 200px; /* Fixed height for image area */
        position: relative;
        overflow: hidden;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
    }

    .car-image {
        width: 100%;
        height: 200px;
        object-fit: cover; /* Ensures all images fill the area and are cropped if needed */
        display: block;
    }
    .car-image-placeholder {
        width: 100%;
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
    }

    .content-container {
        flex: 1; /* Take remaining space */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 1rem;
        min-height: 0; /* Allow shrinking if needed */
    }

    .status-badge {
        background-color: var(--primary-yellow);
        color: #000;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
    }

    /* Search and Filter Styles */
    .search-container {
        box-shadow: 0 2px 10px #cec9f4;
        margin-top: 5px;
        width: 100%;
        background: #fff;
        border-radius: 10px;
        padding: 1rem;
    }

    .search-filter-wrapper {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .search-wrapper {
        position: relative;
        flex: 1 1 100%;
        min-width: 240px;
    }

    .search-icon {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }

    .search-input {
        width: 100%;
        height: 46px;
        padding: 10px 16px 10px 40px;
        border: 1px solid var(--first-color);
        border-radius: 8px;
        font-size: 14px;
        background-color: var(--body-color);
        transition: all 0.2s ease;
        color: #000;
    }

    .search-input:focus {
        border-color: var(--first-color-alt);
        box-shadow: 0 0 0 3px var(--header);
        outline: none;
    }

    .filter-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        width: 100%;
    }

    .filter-input {
        height: 46px;
        padding: 10px 16px;
        border: 1px solid var(--first-color);
        border-radius: 8px;
        background-color: var(--body-color);
        font-size: 14px;
        width: 100%;
        transition: all 0.2s ease;
        color: #000;
    }

    .filter-input:focus {
        border-color: var(--black);
        box-shadow: 0 0 0 3px var(--header);
        outline: none;
        color: #000;
    }

    .sort-select {
        height: 46px;
        padding: 10px 16px;
        border: 1px solid var(--first-color);
        border-radius: 8px;
        background-color: var(--body-color);
        font-size: 14px;
        width: 100%;
        transition: all 0.2s ease;
        color: #000;
    }

    .sort-select:focus {
        border-color: var(--first-color-alt);
        box-shadow: 0 0 0 3px var(--header);
        color: #000;
        outline: none;
    }

    .search-button {
        height: 46px;
        padding: 10px 20px;
        background-color: var(--first-color);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .search-button:hover {
        background-color: var(--first-color-alt);
        color: #fff;
    }

    .reset-button {
        height: 46px;
        padding: 10px 20px;
        background-color: var(--first-color);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .reset-button:hover {
        background-color: var(--first-color-alt);
    }

    /* Gallery Grid Styles */
    .car-gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
        padding: 2rem 0;
    }

    .car-item {
        display: flex;
        justify-content: center;
    }

    /* Pagination Styles */
    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    .pagination a {
        padding: 8px 16px;
        text-decoration: none;
        color: #000;
        background-color: #f1f1f1;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .pagination a:hover {
        background-color: var(--first-color-alt);
        color: #fff;
    }

    .pagination .current {
        padding: 8px 16px;
        color: #fff;
        background-color: var(--first-color);
        border-radius: 4px;
    }

    /* Responsive styles */
    @media (min-width: 768px) and (max-width: 1200px) {
        .search-wrapper { flex: 1 1 100%; margin-bottom: 10px; }
        .filter-wrapper { grid-template-columns: repeat(2, 1fr); }
        .reset-button { grid-column: span 2; }
        .search-container { margin-top: 5px; }
    }

    @media (min-width: 1024px) and (max-width: 1200px) {
        .filter-wrapper { grid-template-columns: repeat(4, 1fr); }
        .reset-button { grid-column: span 1; }
        .search-container { margin-top: 5px; }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
        .search-container { margin-top: 5px; padding: 20px; }
        .car-gallery { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 767px) {
        .search-container { margin-top: 5px; padding: 15px; }
        .filter-wrapper { grid-template-columns: 1fr; }
        .reset-button { margin-top: 5px; }
        .car-gallery { grid-template-columns: 1fr; }
    }

    /* Responsive Grid Adjustments */
    @media (min-width: 481px) and (max-width: 768px) {
        .car-card { width: 100%; height: auto; /* Allow height to adjust */ }
        .image-container { max-height: 180px; }
        .car-image { max-height: 180px; }
        .car-image-placeholder { height: 180px; }
    }

    @media (min-width: 769px) and (max-width: 1024px) {
        .car-card { width: 100%; height: auto; /* Allow height to adjust */ }
        .image-container { max-height: 180px; }
        .car-image { max-height: 180px; }
        .car-image-placeholder { height: 180px; }
    }

    @media (min-width: 1025px) {
        .car-card { width: 300px; height: 450px; }
        .image-container { max-height: 200px; }
        .car-image { max-height: 200px; }
        .car-image-placeholder { height: 200px; }
    }

    /* General spacing and utility classes */
    .mb-16 { margin-bottom: 4rem; }
    .mb-6 { margin-bottom: 1.5rem; }
    .mt-6 { margin-top: 1.5rem; }
    .p-6 { padding: 1.5rem; }
    .px-4 { padding-left: 1rem; padding-right: 1rem; }
    .py-2 { padding: 15px; width:auto; border-radius:20px; }
    .rounded-lg { border-radius: 0.5rem; }
    .rounded-xl { border-radius: 0.75rem; }
    .flex { display: flex; }
    .gap-4 { gap: 1rem; }
    .items-center { align-items: center; }
    .text-sm { font-size: 0.875rem; }
    .font-semibold { font-weight: 600; }
    .font-bold { font-weight: 700; }
    .text-center { text-align: center; }
    .relative { position: relative; }
    .absolute { position: absolute; }
    .overflow-hidden { overflow: hidden; }

    /* New styles for distance display */
    .distance-info { margin-top: 4px; color: #666; }

    /* Added styles for error messages and loading states */
    .distance-error { color: #e3342f; font-style: italic; }

    .loading-spinner {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid var(--primary-yellow);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-left: 5px;
    }

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

    /* New styles for city search input */
    .city-search {
        height: 46px;
        padding: 10px 16px;
        border: 1px solid var(--first-color);
        border-radius: 8px;
        background-color: var(--body-color);
        font-size: 14px;
        width: 100%;
        transition: all 0.2s ease;
        color: #000;
    }

    .city-search:focus {
        border-color: var(--first-color-alt);
        box-shadow: 0 0 0 3px var(--header);
        color: var(---black);
        outline: none;
    }

    /* Span styles for home section */
    .span:hover { color: var(--first-color-alt); cursor: pointer; }
    .span {
        position: relative;
        display: inline-block;
        font-size: 1.2rem;
        font-family: Arial, sans-serif;
        color: #f8b720;
        font-weight: 600;
    }

    .span::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        height: 6px;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:%23333;stop-opacity:1" /><stop offset="100%" style="stop-color:%23333;stop-opacity:0.3" /></linearGradient></defs><path fill="none" stroke="url(%23grad)" stroke-width="2.5" d="M0,8 Q50,0 100,8"/></svg>');
        background-size: 100% 100%;
    }
      .warranty-badge-small:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(67,176,74,0.35);
        animation: none; /* Stop animation on hover */
    } /* Warranty Badge for Car Cards */
    .warranty-badge-small {
        position: absolute;
        top: 12px;
        right: 12px;
        background: linear-gradient(135deg, #3aa042, #4fc55e);
        color: white;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 16px;
        z-index: 10;
        display: flex;
        align-items: center;
        box-shadow: 0 3px 8px rgba(67,176,74,0.3);
        border: 1px solid rgba(255,255,255,0.4);
        transition: all 0.3s ease;
        animation: pulse 2s infinite ease-in-out;
        cursor: pointer;
    }

    /* Pulse Animation */
    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }
        50% {
            transform: scale(1.05);
            opacity: 0.8;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

     @media (max-width: 480px) { 

        .warranty-badge-small {
            font-size: 0.65rem !important;
            padding: 5px 10px !important;
        }
        
     }
      @media (min-width: 481px) and (max-width: 767px) {
         .warranty-badge-small {
            font-size: 0.7rem !important;
            padding: 5px 11px !important;
        }
      }

      @media (min-width: 768px) and (max-width: 1024px) {
.warranty-badge-small {
            font-size: 0.75rem !important;
            padding: 6px 12px !important;
        }

         @media (min-width: 1025px) {

             .warranty-badge-small {
            font-size: 0.75rem !important;
            padding: 6px 12px !important;
        }
         }

      }