/* 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;
}

/* ── Sidebar dealer card (dc-* components, used in property-listing & agents sidebars) ── */
.dealer-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
}

.dc-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.dc-avatar-initials {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ede9fe;
  color: #7c3aed;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.dc-identity {
  flex: 1;
  min-width: 0;
}

.dc-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.dc-name {
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-premium-tag {
  font-size: 10px;
  font-weight: 700;
  color: #f59e0b;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}

.dc-company,
.dc-location {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-company i,
.dc-location i {
  color: #7c3aed;
  margin-right: 4px;
  font-size: 10px;
}

.dc-stats {
  display: flex;
  align-items: center;
  margin: 6px 12px 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px;
  gap: 0;
}

.dc-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dc-stars {
  display: flex;
  gap: 2px;
}

.dc-rating-val,
.dc-listings-val {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.dc-divider {
  width: 1px;
  height: 16px;
  background: #e2e8f0;
  margin: 0 4px;
}

.dc-actions {
  display: flex;
  gap: 8px;
}

.dc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.dc-btn-call {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.dc-btn-call:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.dc-btn-profile {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.dc-btn-profile:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.dealer-empty {
  color: #94a3b8;
  font-size: 13px;
  text-align: center;
  padding: 16px 0;
}

/* 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;
    }
}
