/* Generated from site/src/styles/pages/dealers.css by wordpress/tools/sync-theme-assets.mjs – edit the source, not this copy. */
/* Dealers page – prototype/Dealers.dc.html. Form fields: components/forms.css.
   The prototype had no box-sizing reset; sizes below are the rendered
   (border-box) values, noted where they differ from the prototype source. */

/* Intro + search ---------------------------------------------------------- */
.dealers-intro { max-width: var(--container-outer); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 0; }
.dealers-intro .breadcrumb { margin-bottom: 20px; }
.dealers-title { margin: 0 0 12px; font: 700 clamp(2.25rem, 4.5vw, 4rem)/1 var(--font); }
.dealers-lead { margin-bottom: clamp(24px, 3vw, 40px); max-width: 64ch; }
.dealers-search {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: end;
  background: var(--bg-soft); padding: clamp(16px, 2vw, 24px);
}
.dealers-search__q { grid-column: span 2; }
.dealers-search__submit { height: 52px; padding: 0 36px; }

/* Map + results ----------------------------------------------------------- */
.dealers-finder {
  max-width: calc(var(--container-outer) + 2px); /* + borders */
  margin: clamp(24px, 3vw, 40px) auto 0; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; border: 1px solid var(--line);
}
.dealers-map { position: relative; flex: 2 1 480px; min-width: 0; min-height: clamp(360px, 48vw, 640px); background: #e9ecef; overflow: hidden; }
.dealers-map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.35); opacity: .9; }

/* Pin: 44px hit area, teardrop marker; red and larger when selected. */
.dealers-pin {
  position: absolute; transform: translate(-50%, -100%);
  width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
}
.dealers-pin__marker {
  display: block; width: 26px; height: 26px; /* 20px + 3px borders */
  background: var(--dark); border: 3px solid var(--white); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.dealers-pin[aria-pressed="true"] .dealers-pin__marker { width: 32px; height: 32px; background: var(--red); }

.dealers-map__note {
  position: absolute; left: 16px; bottom: 16px; max-width: 350px; /* 320px + padding + borders */
  margin: 0; padding: 10px 14px; background: rgba(255, 255, 255, .95); border: 1px dashed #9a9a9a;
  font: 400 .75rem/1.4 ui-monospace, Menlo, monospace; color: var(--text);
}
.dealers-map__zoom { position: absolute; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.dealers-map__zoom button { width: 44px; height: 44px; background: var(--white); border: 1px solid var(--border); font: 700 1.375rem/1 var(--font); cursor: pointer; }

.dealers-results {
  flex: 1 1 320px; min-width: 0; max-height: 641px; /* 640px + border */
  background: var(--white); border-top: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.dealers-results__head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dealers-results__title { margin: 0; font: 700 1.25rem/1 var(--font); letter-spacing: .06em; }
.dealers-results__sort { font: 400 .8125rem/1 var(--font); color: var(--muted); }
.dealers-results__note { margin: 0; padding: 14px 22px; font: 400 .75rem/1.5 ui-monospace, Menlo, monospace; color: var(--muted); border-top: 1px dashed var(--border); background: #fafafa; }

.dealers-list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.dealers-row { border-bottom: 1px solid #eee; background: var(--white); }
.dealers-row:has(> [aria-pressed="true"]) { background: #fdf2f3; }
.dealers-row__btn {
  width: 100%; text-align: left; background: none; border: 0; border-left: 4px solid transparent;
  padding: 18px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-family: var(--font);
}
.dealers-row__btn[aria-pressed="true"] { border-left-color: var(--red); }
.dealers-row__top { display: flex; justify-content: space-between; gap: 12px; width: 100%; }
.dealers-row__name { font: 700 1.25rem/1.1 var(--font); color: var(--ink); }
.dealers-row__dist { font: 700 .8125rem/1.2 var(--font); color: var(--red); white-space: nowrap; }
.dealers-row__addr { font: 400 var(--fs-small)/1.5 var(--font); color: var(--muted); }
.dealers-row__services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dealers-row__service { font: 700 .6875rem/1 var(--font); letter-spacing: .06em; color: var(--text); border: 1px solid var(--border); padding: 5px 8px; }
.dealers-row__actions { padding: 0 22px 18px 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.dealers-row__actions[hidden] { display: none; }
a.dealers-row__details,
a.dealers-row__directions {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 700 .8125rem/1 var(--font); letter-spacing: .06em; text-decoration: none;
}
a.dealers-row__details { background: var(--red); color: var(--white); padding: 13px 16px; }
a.dealers-row__details:hover { background: var(--red-dark); color: var(--white); }
a.dealers-row__directions { border: 2px solid var(--ink); color: var(--ink); padding: 11px 16px; }
a.dealers-row__directions:hover { background: var(--ink); color: var(--white); }

/* "Can't find a dealer" --------------------------------------------------- */
.dealers-help { --col-min: 320px; --grid-gap: clamp(24px, 3vw, 40px); align-items: center; }
.dealers-help__title { margin: 0 0 14px; font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--font); }
.dealers-help__text { margin-bottom: 24px; }
.dealers-help__address { border-left: 3px solid var(--red); padding-left: clamp(20px, 2.5vw, 32px); }
.dealers-help__name { margin: 0 0 6px; font: 700 var(--fs-ui)/1 var(--font); letter-spacing: .1em; color: var(--red); }
.dealers-help__street { margin: 0 0 12px; font: 400 var(--fs-body)/1.6 var(--font); color: var(--text); }
.dealers-help__phone { margin: 0; font: 700 1.375rem/1.3 var(--font); }
.dealers-help__email { margin: 4px 0 0; font: 400 var(--fs-body)/1.6 var(--font); }
.dealers-help__address a { color: var(--ink); text-decoration: none; }
