/* Dealer Locator (scoped, no collisions) */
  #dealerLocator {
    display: flex;
    gap: 0;
    height: clamp(800px, 86vh, 1200px);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }
  #dealerSidebar {
    width: 420px;
    max-width: 100%;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #dealerToolbar {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }
  #dealerToolbar h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .2px; color: #000000;}
  #dealerSearchBar { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #727373; }
  #dealerSearchBar input[type="text"] {
    flex: 1; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px;
  }
  #dealerSearchBar button, #dealerToolbar button {
    padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; background: #fff; cursor: pointer;
  }
  #dealerList { overflow: auto; padding: 8px; flex: 1; }
  .dl-card {
    border: 1px solid #000000; border-radius: 14px; padding: 12px; margin: 8px 4px; background: #fff;
    transition: box-shadow .15s, border-color .15s; cursor: pointer;
  }
  .dl-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.06); border-color: #d1d5db; }
  .dl-name { font-weight: 700; margin-bottom: 6px; color: #000000;}
  .dl-meta { font-size: 13px; color: #6b7280; line-height: 1.4; }
  .dl-meta a { color: inherit; text-decoration: none; border-bottom: 1px dotted #cbd5e1; }
  .dl-badge { display: inline-block; font-size: 11px; padding: 4px 8px; background: #f3f4f6; border-radius: 999px; margin-left: 8px; color: #374151; }
  #dealerMap { flex: 1; min-width: 0; height: 100%; } /* Let Leaflet fill remaining space */

  @media (max-width: 980px) {
    #dealerLocator { flex-direction: column; height: auto; }
    #dealerSidebar { width: 100%; max-height: 50vh; }
    #dealerMap { height: 50vh; }
  }
