/**handles:dealer-listing-style**/
@font-face {
    font-family: 'Raleway';
    src: url('/wp-content/themes/hello-elementor/assets/fonts/raleway-regular.woff2') format('woff2'),
         url('/wp-content/themes/hello-elementor/assets/fonts/raleway-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ========================================
   Dealer Listing Styles - Figma Design
   ======================================== */

/* Main Wrapper */
.dealer-listing-wrapper {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Filter Section
   ======================================== */
.dealer-filter-section {
    background: #ffffff;
    padding: 40px 30px 60px 30px;
    /*border-radius: 12px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
    /*margin-bottom: 40px;*/
}

.filter-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.12);
    padding: 16px 36px;
    width: min-content;
    margin: 0 auto;
}

.filter-field {
    display: flex;
    flex-direction: column;
}

.filter-field label {
    display: none;
    /* Hide labels as per Figma */
}

.filter-field select {
    min-width: 180px;
    padding: 12px 40px 12px 16px;
    /*font-size: 14px;*/
    font-size: 16px;
    border: 0;
    /*border-radius: 8px;*/
    background-color: #f5f5f5;
    color: #0D0D0D;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    font-family: 'Raleway';
}

.filter-field select:hover {
    border-color: #999;
}

.filter-field select:focus {
    outline: none;
    border-color: #E31E24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

.filter-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.search-button {
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #E31E24;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
    white-space: nowrap;
    text-transform: capitalize;
    font-family: 'Raleway';
}

.search-button:hover {
    background: #C01A1F;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(227, 30, 36, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

/* ========================================
   Loading Spinner
   ======================================== */
.dealer-loading {
    text-align: center;
    padding: 40px 0;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E31E24;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================
   Dealer Grid - Figma Design
   ======================================== */
.dealer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    /*margin-bottom: 40px;*/
    margin: 60px 0 20px;
}

/* ========================================
   Dealer Card - Figma Exact Match
   ======================================== */
.dealer-card {
    background: linear-gradient(180deg, #308DD8 0%, #1A4B74 100%) !important;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    box-shadow: 0 6px 14px 0 rgba(0, 0, 0, 0.12) !important;
    font-family: 'Raleway' !important;
}

.dealer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #1A4B74 !important;
}

.dealer-title {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 0 6px 0;
    line-height: 1.3;
    font-family: 'Raleway' !important;
}

.dealer-make {
    /*font-size: 18px;*/
    font-size: 14px;
    color: #FFF !important;
    text-transform: uppercase;
    margin-top: 16px;
    font-weight: 600;
    letter-spacing: 2.437px;
    font-family: 'Raleway';
}

/* ========================================
   No Results Message
   ======================================== */
.no-dealers-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 20px 0;
}

.no-dealers-found p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ========================================
   Animation
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .dealer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .filter-container {
        flex-wrap: wrap;
    }

    .filter-field select {
        min-width: 160px;
    }

    .search-button {
        padding: 12px 35px;
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    .dealer-listing-wrapper {
        padding: 20px 15px;
    }

    .dealer-filter-section {
        padding: 20px;
        margin-bottom: 30px;
    }

    .filter-container {
        /*flex-direction: column;*/
        flex-direction: row;
        gap: 12px;
        width: 100%;
        flex-wrap: nowrap;
        padding: 15px;
    }

    .filter-field {
        width: 100%;
    }

    .filter-field select {
        width: 100%;
        min-width: 100%;
    }

    .search-button {
        width: 100%;
        padding: 10px;
    }

    .dealer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 0;
    }

    .dealer-card {
        padding: 28px 20px;
        min-height: 95px;
    }

    .dealer-title {
        font-size: 17px;
    }

    .dealer-make {
        font-size: 11px;
    }
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .dealer-listing-wrapper {
        padding: 15px 10px;
    }

    .dealer-filter-section {
        padding: 15px;
    }

    .filter-field select {
        padding: 10px 35px 10px 14px;
        font-size: 13px;
    }

    .search-button {
        font-size: 14px;
    }

    .dealer-card {
        padding: 25px 15px;
        min-height: 90px;
    }

    .dealer-title {
        font-size: 16px;
    }

    .dealer-make {
        font-size: 11px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {

    .dealer-filter-section,
    .dealer-loading {
        display: none;
    }

    .dealer-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}