<div class="map-container">
  <div class="map-header">
    <h3>Dealer Locations</h3>
  </div>
  <div class="map-wrapper">
    <!-- Simple map representation with dealer markers -->
    <div class="map-placeholder">
      <div class="india-map">
        <!-- Simplified India map outline -->
        <div class="map-outline"></div>
        
        <!-- Dealer markers -->
        <div 
          *ngFor="let dealer of dealerLocations" 
          class="dealer-marker"
          [style.left]="dealer.lng * 0.8 + 10 + '%'"
          [style.top]="100 - (dealer.lat * 1.2) + '%'"
          [style.background-color]="getStatusColor(dealer.status)"
          (mouseenter)="onDealerHover(dealer)"
          (mouseleave)="onDealerLeave()"
          [attr.data-tooltip]="dealer.name + ' - ' + dealer.city + ' (' + getStatusLabel(dealer.status) + ')'">
        </div>
      </div>
      
      <!-- Legend -->
      <div class="map-legend">
        <div class="legend-item" *ngFor="let status of ['active', 'inactive', 'training', 'onboarding']">
          <div class="legend-color" [style.background-color]="getStatusColor(status)"></div>
          <div class="legend-label">{{ getStatusLabel(status) }}</div>
        </div>
      </div>
      
      <!-- Dealer info tooltip -->
      <div class="dealer-tooltip" *ngIf="hoveredDealer" [style.left]="hoveredDealer.lng * 0.8 + 12 + '%'" [style.top]="100 - (hoveredDealer.lat * 1.2) - 5 + '%'">
        <div class="tooltip-content">
          <div class="dealer-name">{{ hoveredDealer.name }}</div>
          <div class="dealer-location">{{ hoveredDealer.city }}, {{ hoveredDealer.state }}</div>
          <div class="dealer-status" [style.color]="getStatusColor(hoveredDealer.status)">{{ getStatusLabel(hoveredDealer.status) }}</div>
        </div>
      </div>
    </div>
  </div>
</div>