/* Featured Dealers Section */
.featured-dealers {
    padding: 40px 0;
    background: #fff;
}

.dealers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.dealers-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.see-all-link {
    font-size: 1rem;
    font-weight: 600;
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s;
}

.see-all-link:hover {
    color: #c0392b;
}

.dealers-scroll-container {
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.dealers-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.dealers-scroll-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.dealers-scroll-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.dealers-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 10px;
}

.dealer-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.dealer-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.dealer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.56rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.badge-icon {
    font-size: 0.88rem;
}

.badge-text {
    white-space: nowrap;
}

.dealer-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dealer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.dealer-name-section {
    flex: 1;
}

.dealer-label {
    display: block;
    font-size: 0.75rem;
    color: #1e90ff;
    font-weight: 600;
    margin-bottom: 2px;
}

.dealer-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.dealer-company {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 4px;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.company-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.69rem;
    color: #6b7280;
    line-height: 1.4;
}

.company-meta strong {
    color: #1a1a1a;
    font-weight: 700;
}

.company-meta .divider {
    color: #d1d5db;
}

.dealer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.81rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dealers-grid {
        grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
}

@media (max-width: 980px) {
    .dealers-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .dealers-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .dealers-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .dealers-header {
        padding: 0 16px;
    }

    .dealers-scroll-container {
        padding: 0 16px;
    }

    .dealers-title {
        font-size: 1.12rem;
    }

    .see-all-link {
        font-size: 0.88rem;
    }
}
