:root {
  --ink: #172023;
  --muted: #667075;
  --line: #dfe4e2;
  --surface: #f4f6f5;
  --surface-strong: #e9eeec;
  --white: #fff;
  --brand: #009932;
  --brand-dark: #007a28;
  --navy: #102a2b;
  --navy-soft: #183738;
  --gold: #d2ae68;
  --shadow: 0 16px 40px rgba(24, 45, 44, 0.1);
  --radius: 12px;
  --font-ja: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

.dealer-page { overflow: hidden; }
.section-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.toast-stack { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 14px 16px; border-radius: 12px; background: #ffffff; color: #1f2a29; box-shadow: 0 12px 34px rgba(15, 34, 32, 0.18); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; pointer-events: auto; opacity: 0; transform: translateY(12px); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--brand); -webkit-mask: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); mask: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.toast--error::before { background: var(--brand); -webkit-mask: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E"); mask: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-2h2zm0-4h-2V7h2z'/%3E%3C/svg%3E"); }
.toast__text { flex: 1; }
.toast__close { flex: none; margin: -4px -6px -4px 0; padding: 4px 8px; border: 0; background: transparent; color: #8a9997; font-size: 18px; line-height: 1; cursor: pointer; border-radius: 6px; }
.toast__close:hover { background: #f1f4f3; color: #45524f; }
@media (max-width: 640px) { .toast-stack { bottom: 88px; } }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.eyebrow--gold { color: var(--gold); }
.keep-together { white-space: nowrap; }

.intro-section {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
  padding-block: 92px 82px;
}

.intro-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.045em;
}

.intro-lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.trust-points { display: grid; gap: 3px; }
.trust-point {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px 20px;
  background: var(--surface);
}

.trust-point:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.trust-point:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.trust-icon {
  display: grid;
  flex: 0 0 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #c9d1ce;
  border-radius: 50%;
  color: var(--brand);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.trust-point div { display: grid; gap: 4px; }
.trust-point strong { font-size: 15px; }
.trust-point span:last-child { color: var(--muted); font-size: 13px; }

.featured-section {
  position: relative;
  padding-block: 88px 80px;
  color: var(--ink);
  background: var(--surface);
}

.featured-section::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 10%, rgba(16,42,43,.04), transparent 28%), linear-gradient(115deg, transparent 45%, rgba(16,42,43,.02) 45% 46%, transparent 46%);
  background-size: auto, 90px 90px;
  content: "";
  pointer-events: none;
}

.featured-section .section-wrap { position: relative; }

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.3; letter-spacing: -.035em; }
.section-heading > p { max-width: 510px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.section-heading--light > p { color: var(--muted); }

.featured-grid { display: flex; flex-direction: column; gap: 20px; }
.featured-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 25px rgba(19,45,45,.05);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.featured-card:hover { transform: translateY(-4px); border-color: rgba(0,153,50,.45); box-shadow: 0 16px 34px rgba(19,45,45,.1); }

/* Media (logo / photo slot) */
.featured-card__media { position: relative; background: var(--surface-strong); }
.featured-card--standard .featured-card__media { height: 150px; }
.featured-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 22px; display: block; }
.featured-card--hero .featured-logo { padding: 30px; }
.featured-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; color: #fff; background: var(--brand); font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 4px 12px rgba(0,153,50,.32); }
.featured-badge::before { content: "★"; font-size: 10px; }

/* Body */
.featured-card__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 26px; }
.featured-card__head h3 { margin: 0 0 5px; font-size: 21px; line-height: 1.4; letter-spacing: -.01em; }
.featured-card__area { margin: 0; color: var(--muted); font-size: 12.5px; }
.featured-card__slogan { margin: 0; color: var(--brand); font-size: 15px; font-weight: 700; line-height: 1.6; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-tag { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid rgba(0,153,50,.28); border-radius: 6px; color: var(--brand); font-size: 11px; font-weight: 700; }
.featured-card__summary { margin: 0; color: #3b4749; font-size: 12.5px; line-height: 1.85; }

/* Case study block */
.featured-case { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 8px; background: var(--surface); }
.featured-case__label { display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 5px; color: #fff; background: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.featured-case__title { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.featured-case__text { margin: 0 0 10px; color: #4a5658; font-size: 12px; line-height: 1.75; }
.featured-case__link { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: none; }
.featured-case__link:hover { text-decoration: underline; }

/* Actions */
.featured-actions { display: flex; gap: 10px; align-items: center; margin-top: auto; padding-top: 4px; }
.featured-consult { display: inline-flex; flex: 1; gap: 7px; justify-content: center; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 8px; color: #fff; background: var(--brand); text-decoration: none; font-size: 13.5px; font-weight: 700; transition: background .2s ease; }
.featured-consult:hover { background: var(--brand-dark); }
.featured-consult span { transition: transform .2s ease; }
.featured-consult:hover span { transform: translateX(4px); }
.featured-map-link { flex: none; display: inline-flex; gap: 6px; align-items: center; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; font-size: 12.5px; font-weight: 700; }
.featured-map-link:hover { border-color: var(--brand); color: var(--brand); }
.featured-map-link b { color: var(--brand); }

/* Hero (flagship dealer) */
.featured-card--hero { flex-direction: row; }
.featured-card--hero .featured-card__media { flex: none; width: 340px; }
.featured-card--hero .featured-card__body { padding: 34px 36px; gap: 16px; }
.featured-card--hero .featured-card__head h3 { font-size: 27px; }
.featured-card--hero .featured-card__slogan { font-size: 18px; }
.featured-card--hero .featured-case { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "label title" "label text" "label link"; column-gap: 16px; align-items: start; }
.featured-card--hero .featured-case__label { grid-area: label; align-self: center; }
.featured-card--hero .featured-case__title { grid-area: title; }
.featured-card--hero .featured-case__text { grid-area: text; }
.featured-card--hero .featured-case__link { grid-area: link; }

.featured-secondary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sample-notice { margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.locator-section { padding-block: 100px 90px; }
.locator-section--first { padding-top: 34px; }
.locator-heading { margin-bottom: 26px; }
.locator-heading > p { max-width: 540px; }
.search-panel {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 25px rgba(19,45,45,.05);
}
.quick-search { position: relative; display: flex; min-width: 0; }
.quick-search input { width: 100%; min-height: 48px; padding: 0 100px 0 44px; border: 1px solid #cbd2d0; border-radius: 8px; outline: none; background: #fff; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.quick-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,153,50,.1); }
.search-icon { position: absolute; top: 50%; left: 18px; width: 15px; height: 15px; border: 2px solid #485255; border-radius: 50%; transform: translateY(-60%); }
.search-icon::after { position: absolute; right: -5px; bottom: -4px; width: 7px; height: 2px; background: #485255; content: ""; transform: rotate(45deg); }
.primary-button { position: absolute; top: 6px; right: 6px; bottom: 6px; min-width: 84px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s; }
.primary-button:hover { background: var(--brand-dark); }
.postal-search { position: relative; display: flex; min-width: 0; }
.postal-search input { width: 100%; min-height: 48px; padding: 0 158px 0 42px; border: 1px solid #cbd2d0; border-radius: 8px; outline: none; background: #fff; font-size: 13px; transition: border-color .2s, box-shadow .2s; }
.postal-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,153,50,.1); }
.postal-mark { position: absolute; z-index: 1; top: 50%; left: 16px; color: var(--brand); font-family: Arial, sans-serif; font-size: 16px; font-weight: 800; transform: translateY(-50%); }
.postal-search #postal-search-button { position: absolute; top: 6px; right: 6px; bottom: 6px; min-width: 116px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); cursor: pointer; font-size: 12px; font-weight: 700; transition: background .2s; }
.postal-search #postal-search-button:hover { background: var(--brand-dark); }
.postal-search #postal-search-button:disabled { cursor: wait; opacity: .58; }
.postal-clear-button { position: absolute; z-index: 2; top: 50%; right: 139px; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #647071; background: #eef1f0; cursor: pointer; font-size: 17px; line-height: 1; transform: translateY(-50%); }
.postal-clear-button:hover { color: #fff; background: var(--brand); }
.postal-clear-button[hidden] { display: none !important; }
.detail-filter-toggle { display: none; }
.mobile-filter-actions { display: none; }
.advanced-filters { display: flex; grid-column: 1 / -1; gap: 16px; align-items: end; padding-top: 12px; border-top: 1px solid var(--line); }
.region-filter { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; }
.region-filter legend, .select-field > span { display: block; margin: 0 0 7px; color: #4d585b; font-size: 11px; font-weight: 700; }
.region-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.region-chip { flex: 1 1 auto; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; font-size: 12px; white-space: nowrap; }
.region-chip.is-active { border-color: var(--navy); color: #fff; background: var(--navy); }
.select-field select { min-width: 145px; height: 34px; padding: 0 30px 0 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 11px; }
.reset-button { display: inline-flex; flex: 0 0 auto; gap: 5px; justify-content: center; align-items: center; min-width: 112px; height: 36px; padding: 0 12px; border: 1px solid rgba(0,153,50,.42); border-radius: 6px; color: var(--brand); background: #fff6f7; cursor: pointer; font-size: 11px; font-weight: 700; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.reset-button:hover { border-color: var(--brand); color: #fff; background: var(--brand); }
.reset-button--mobile { display: none; }
.postal-status { grid-column: 1 / -1; margin: 2px 2px 0; color: #51605e; font-size: 14px; line-height: 1.7; }
.postal-status:empty { display: none; }
.postal-status.is-error { color: var(--brand); font-size: 14px; }
.postal-status__key { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.postal-status__key--warn { background: #fdecec; }

.mobile-view-switch { display: none; }
.locator-workspace { display: grid; grid-template-columns: minmax(320px, 35%) 1fr; grid-template-rows: minmax(0, 1fr); height: 720px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.results-panel { display: flex; min-width: 0; min-height: 0; flex-direction: column; border-right: 1px solid var(--line); background: #fff; overflow: hidden; }
.results-head { display: flex; flex-shrink: 0; justify-content: space-between; gap: 12px; align-items: center; height: 62px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.results-head [hidden] { display: none !important; }
.results-kicker { color: var(--brand); font-family: Arial, sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.results-head h2 { margin: 0; font-size: 15px; }
.detail-back-button { display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0; border: 0; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.detail-back-button span { font-size: 22px; font-weight: 400; line-height: 1; }
.detail-back-button:hover { color: var(--brand); }
.location-button { display: inline-flex; gap: 7px; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); cursor: pointer; font-size: 10px; white-space: nowrap; }
.location-button:hover { border-color: var(--brand); color: var(--brand); }
.location-arrow { display: inline-block; width: 0; height: 0; border-right: 5px solid transparent; border-bottom: 12px solid currentColor; border-left: 5px solid transparent; transform: rotate(42deg); }
.dealer-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #bbc5c2 transparent; }
.dealer-card { position: relative; padding: 21px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .2s; }
.dealer-card:hover, .dealer-card.is-selected { background: #f6f8f7; }
.dealer-card.is-selected::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--brand); content: ""; }
.dealer-card__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.dealer-badge { padding: 4px 9px; border-radius: 3px; color: #52605f; background: #e9eeec; font-size: 11px; font-weight: 700; }
.dealer-badge--featured { color: #72551d; background: #f2e8d1; }
.dealer-card h3 { margin: 0; font-size: 17px; line-height: 1.6; }
.dealer-card__description { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dealer-card__meta { display: flex; gap: 8px; align-items: center; margin-top: 12px; color: #4f5d5c; font-size: 12px; }
.dealer-card__distance { color: var(--brand); font-weight: 700; }
.dealer-card__actions { display: flex; gap: 7px; margin-top: 13px; }
.dealer-card__actions a, .dealer-card__actions button { display: inline-flex; justify-content: center; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid #ccd3d1; border-radius: 4px; color: var(--ink); background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; text-decoration: none; }
.dealer-card__actions a:hover, .dealer-card__actions button:hover { border-color: var(--brand); color: var(--brand); }
.results-panel.is-detail-mode .results-head { min-height: 66px; justify-content: flex-start; padding-block: 15px; }
.results-panel.is-detail-mode .dealer-list { overflow-y: auto; }
.dealer-detail { padding: 26px 22px 34px; }
.dealer-detail h3 { margin: 0; font-size: 21px; line-height: 1.55; }
.dealer-detail__region { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.dealer-detail__section { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.dealer-detail__section-title { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; color: #4d585b; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.dealer-detail__section-title i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: var(--brand); background: #e3f3e8; font-style: normal; font-size: 11px; line-height: 1; text-align: center; }
.dealer-detail__description { margin: 0; color: #354244; font-size: 15px; line-height: 1.85; white-space: pre-line; }
.dealer-detail__contact { display: grid; gap: 7px; }
.dealer-detail__contact a { color: var(--ink); font-size: 17px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.dealer-detail__contact a:hover { color: var(--brand); }
.dealer-detail__coordinates { color: var(--muted); font-family: Arial, sans-serif; font-size: 10px; }
.dealer-detail__map-link { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-top: 24px; padding: 0 16px; border: 1px solid #c8d0ce; border-radius: 5px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
.dealer-detail__map-link:hover { border-color: var(--brand); color: var(--brand); }
.empty-state { display: grid; min-height: 360px; padding: 40px 24px; place-content: center; text-align: center; }
.empty-state__icon { display: grid; width: 60px; height: 60px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: #93a09d; background: var(--surface); font-size: 26px; }
.empty-state strong { font-size: 15px; }
.empty-state p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.map-stage { position: relative; min-width: 0; min-height: 0; height: 100%; overflow: hidden; background: #dae5e1; }
#dealer-map { width: 100%; height: 100%; }
.leaflet-container { font-family: var(--font-ja); background: #dae5e1; }
.leaflet-control-attribution { font-size: 9px; }
.leaflet-top.leaflet-right { top: 50%; bottom: auto; transform: translateY(calc(-50% - 60px)); }
.leaflet-top.leaflet-right .leaflet-control-zoom { margin: 0 12px 0 0; }
.leaflet-popup-content-wrapper { border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.leaflet-popup-content { margin: 17px 18px; }
.map-popup { min-width: 210px; }
.map-popup__label { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.map-popup h3 { margin: 5px 0 6px; font-size: 14px; }
.map-popup p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.map-popup a { display: inline-block; margin-top: 10px; color: var(--brand); font-size: 10px; font-weight: 700; text-decoration: none; }
.dealer-marker { position: relative; width: 28px; height: 36px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.24)); }
.dealer-marker::before { position: absolute; top: 1px; left: 3px; width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--brand); content: ""; transform: rotate(-45deg); }
.dealer-marker::after { position: absolute; top: 9px; left: 11px; width: 6px; height: 6px; border-radius: 50%; background: #fff; content: ""; }
.dealer-cluster { border-radius: 50%; background: rgba(0,153,50,.16); }
.dealer-cluster div { display: grid; width: calc(100% - 10px); height: calc(100% - 10px); margin: 5px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--brand); box-shadow: 0 3px 10px rgba(40,20,20,.26); }
.dealer-cluster span { font-family: Arial, sans-serif; font-size: 12px; font-weight: 800; }
.dealer-cluster--medium span { font-size: 13px; }
.dealer-cluster--large span { font-size: 14px; }
.user-marker { width: 18px; height: 18px; border: 4px solid #fff; border-radius: 50%; background: #246cc8; box-shadow: 0 0 0 8px rgba(36,108,200,.18), 0 2px 6px rgba(0,0,0,.25); }
.user-marker--postal { display: grid; width: 24px; height: 24px; padding: 0; place-items: center; color: #fff; font-family: Arial, sans-serif; font-size: 10px; font-weight: 800; }
.map-toolbar { display: none; }
.map-fallback { position: absolute; z-index: 600; inset: 0; flex-direction: column; gap: 8px; align-items: center; justify-content: center; padding: 30px; background: var(--surface); text-align: center; }
.map-fallback:not([hidden]) { display: flex; }
.map-fallback span { color: var(--muted); font-size: 12px; }
.mobile-dealer-sheet { display: none; }
.mobile-dealer-sheet[hidden] { display: none !important; }
.map-source-note { margin: 13px 2px 0; color: #7b8587; font-size: 10px; line-height: 1.7; }

.help-section { display: flex; justify-content: space-between; gap: 40px; align-items: center; margin-top: 90px; margin-bottom: 90px; padding: 42px 46px; border-left: 4px solid var(--brand); background: var(--surface); }
.help-section h2 { margin: 0; font-size: 24px; }
.help-section p:last-child { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.outline-button { display: inline-flex; flex: 0 0 auto; justify-content: space-between; gap: 26px; align-items: center; min-width: 230px; min-height: 54px; padding: 0 20px; border: 1px solid var(--ink); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; transition: color .2s, background .2s; }
.outline-button:hover { color: #fff; background: var(--ink); }

/* Collapse panel header (desktop overlay only) */
.panel-bar { display: none; }
.panel-bar__title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--ink); }
.panel-collapse { display: none; flex: none; width: 30px; height: 30px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.panel-collapse:hover { border-color: var(--brand); }
.panel-chevron { width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-135deg); transition: transform .2s ease; }
.panel-collapse[aria-expanded="false"] .panel-chevron { transform: rotate(45deg); }

/* Compact collapse toggle for the search / filter panel (≈ reset-button size) */
.panel-toggle { display: flex; align-items: center; justify-content: center; gap: 7px; width: fit-content; min-width: 112px; min-height: 40px; margin-left: auto; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
.panel-toggle:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.panel-toggle__chevron { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg); transition: transform .2s ease; }
.panel-toggle[aria-expanded="false"] .panel-toggle__chevron { transform: rotate(45deg); }
.panel-toggle__txt--open { display: none; }
.panel-toggle[aria-expanded="false"] .panel-toggle__txt--open { display: inline; }
.panel-toggle[aria-expanded="false"] .panel-toggle__txt--close { display: none; }

/* Bottom-sheet chrome (mobile only) */
.sheet-handle { display: none; }
.sheet-close { display: none; }

/* ===== Full-screen map with collapsible overlays (desktop) ===== */
@media (min-width: 821px) {
  .locator-section--map { position: relative; width: 100%; height: 100vh; min-height: 660px; margin: 0; padding: 0; overflow: hidden; }
  .locator-section--map .locator-workspace { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .locator-section--map .map-stage { position: absolute; inset: 0; height: 100%; border-radius: 0; }
  .locator-section--map #dealer-map { width: 100%; height: 100%; }
  .locator-section--map .map-source-note { display: none; }

  /* Search / filter overlay — top */
  .locator-section--map .search-panel { position: absolute; z-index: 1000; top: 18px; left: 404px; right: 18px; margin: 0; max-height: calc(100vh - 36px); overflow: auto; box-shadow: 0 14px 36px rgba(15,34,32,.16); }
  .locator-section--map .search-panel { display: grid; grid-template-columns: 1fr 1fr auto; }
  .locator-section--map .search-panel .panel-toggle { grid-column: 3; grid-row: 1; align-self: stretch; min-height: 48px; margin: 0; }
  .locator-section--map .search-panel.is-collapsed { display: block; right: auto; width: auto; max-height: none; padding: 8px; overflow: visible; }
  .locator-section--map .search-panel.is-collapsed > :not(#search-collapse) { display: none; }
  .locator-section--map .search-panel.is-collapsed .panel-toggle { align-self: auto; width: fit-content; min-height: 44px; padding: 0 20px; border: 0; background: #fff; }

  /* Results list overlay — left */
  .locator-section--map .results-panel { position: absolute; z-index: 1001; top: 18px; left: 18px; bottom: 18px; width: 372px; display: flex; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 36px rgba(15,34,32,.18); background: #fff; overflow: hidden; }
  .locator-section--map .results-panel .panel-collapse { display: inline-flex; }
  .locator-section--map .results-panel.is-collapsed { bottom: auto; max-height: none; }
  .locator-section--map .results-panel.is-collapsed .dealer-list,
  .locator-section--map .results-panel.is-collapsed .search-status { display: none; }
}

@media (max-width: 820px) {
  .search-panel .panel-toggle { display: none; }
}

@media (max-width: 1080px) {
  .search-panel { display: block; }
  .postal-search { margin-top: 10px; }
  .advanced-filters { justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
  .postal-status { margin-top: 8px; }
  .region-chip { padding-inline: 9px; }
}

@media (max-width: 820px) {
  .section-wrap { width: min(100% - 32px, 680px); }
  .desktop-only { display: none; }
  .intro-section { display: block; padding-block: 60px 58px; }
  .intro-copy h1 { font-size: clamp(34px, 10vw, 48px); }
  .intro-lead { margin-top: 22px; font-size: 14px; line-height: 1.9; }
  .trust-points { grid-template-columns: repeat(3, 1fr); margin-top: 36px; }
  .trust-point { display: grid; gap: 10px; align-content: start; min-height: 142px; padding: 16px 12px; border-radius: 8px !important; text-align: center; }
  .trust-icon { width: 46px; height: 46px; margin: auto; }
  .trust-point strong { font-size: 13px; }
  .trust-point span:last-child { font-size: 10px; line-height: 1.5; }
  .featured-section { padding-block: 65px 58px; }
  .section-heading { display: block; margin-bottom: 25px; }
  .section-heading h1, .section-heading h2 { font-size: 30px; }
  .section-heading > p { margin-top: 15px; font-size: 12px; }
  .featured-grid { display: flex; flex-direction: column; gap: 16px; }
  .featured-card--hero { flex-direction: column; }
  .featured-card--hero .featured-card__media { width: auto; height: 160px; }
  .featured-card--hero .featured-card__body { padding: 24px; }
  .featured-card--hero .featured-card__head h3 { font-size: 23px; }
  .featured-card--hero .featured-case { display: block; }
  .featured-secondary { grid-template-columns: 1fr; gap: 16px; }
  .featured-card:hover { transform: none; }

  .locator-section { width: 100%; padding-block: 70px 66px; }
  .locator-section--first { padding-top: 28px; }
  .locator-section--map { width: 100%; height: 100vh; min-height: 560px; padding: 0; overflow: hidden; }
  .locator-section > .section-heading { width: calc(100% - 32px); margin-inline: auto; }
  .search-panel { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; margin: 0; padding: 46px 16px max(18px, env(safe-area-inset-bottom)); border: 0; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 34px rgba(17,38,37,.24); transform: translateY(calc(100% + 24px)); transition: transform .3s cubic-bezier(.22,.75,.28,1); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .search-panel.is-open { transform: translateY(0); }
  .search-panel .sheet-handle { display: block; position: absolute; top: 12px; left: 50%; z-index: 3; width: 42px; height: 5px; border-radius: 4px; background: #cbd2d0; transform: translateX(-50%); }
  .search-panel .sheet-close { display: grid; position: absolute; top: 7px; right: 12px; z-index: 3; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #4e5b5d; background: #eef1f0; cursor: pointer; font-size: 19px; line-height: 1; }
  .quick-search input { min-height: 50px; padding-right: 88px; padding-left: 43px; font-size: 14px; }
  .primary-button { min-width: 74px; }
  .postal-search { margin-top: 8px; }
  .postal-search input { min-height: 50px; padding-right: 158px; font-size: 13px; }
  .postal-search #postal-search-button { min-width: 108px; font-size: 11px; }
  .postal-clear-button { right: 121px; width: 27px; height: 27px; }
  .mobile-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
  .detail-filter-toggle { display: flex; gap: 8px; justify-content: center; align-items: center; width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 700; }
  .detail-filter-toggle::after { display: none; }
  .reset-button--mobile { display: inline-flex; width: 100%; min-width: 0; height: 42px; }
  .reset-button--desktop { display: none; }
  .filter-icon { position: relative; display: inline-block; width: 15px; height: 12px; border-top: 2px solid currentColor; }
  .filter-icon::before, .filter-icon::after { position: absolute; left: 2px; width: 11px; border-top: 2px solid currentColor; content: ""; }
  .filter-icon::before { top: 3px; }
  .filter-icon::after { top: 8px; width: 7px; }
  .advanced-filters { display: none; align-items: stretch; margin: 0; padding: 14px 0 6px; }
  .advanced-filters.is-open { display: grid; grid-template-columns: 1fr; gap: 18px; }
  .region-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .region-filter { width: 100%; min-width: 0; }
  .select-field { width: 100%; min-width: 0; }
  .region-chip { min-height: 40px; }
  .select-field select { width: 100%; height: 44px; }

  .mobile-view-switch { display: none; }
  .view-button { min-height: 42px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
  .view-button.is-active { color: var(--brand); background: #fff; box-shadow: 0 2px 8px rgba(20,40,40,.08); }
  .locator-workspace { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .results-panel { position: fixed; z-index: 1200; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: 100%; max-height: 82vh; border: 0; border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 34px rgba(17,38,37,.24); transform: translateY(calc(100% + 24px)); transition: transform .3s cubic-bezier(.22,.75,.28,1); overflow: hidden; }
  .results-panel.is-open { transform: translateY(0); }
  .results-panel .sheet-handle { display: block; position: absolute; top: 9px; left: 50%; z-index: 3; width: 42px; height: 5px; border-radius: 4px; background: #cbd2d0; transform: translateX(-50%); }
  .results-panel .sheet-close { display: grid; position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #4e5b5d; background: #eef1f0; cursor: pointer; font-size: 20px; line-height: 1; }
  .results-panel .dealer-list { flex: 1; min-height: 0; }
  .results-head { padding: 22px 16px 14px; }
  .dealer-detail { padding: 24px 18px 36px; }
  .dealer-detail h3 { font-size: 20px; }
  .location-button--desktop { display: none; }
  .dealer-card { padding-inline: 18px; }
  .map-stage { position: absolute; inset: 0; height: 100%; }
  .map-toolbar { position: absolute; z-index: 800; right: 12px; bottom: 18px; left: 12px; display: grid; grid-template-columns: 1fr 1fr 1.22fr; gap: 7px; padding: 7px; border: 1px solid rgba(26,41,41,.16); border-radius: 9px; background: rgba(255,255,255,.95); box-shadow: 0 8px 26px rgba(0,0,0,.18); backdrop-filter: blur(10px); transition: opacity .2s ease, transform .2s ease; }
  .map-toolbar button { display: flex; gap: 6px; justify-content: center; align-items: center; min-height: 42px; border: 0; border-radius: 6px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; }
  .map-toolbar button + button { border-left: 1px solid var(--line); border-radius: 0; }
  .map-toolbar .map-toolbar__filter { border-left: 0; border-radius: 6px; color: #fff; background: var(--brand); }
  .map-toolbar b { display: grid; min-width: 19px; height: 19px; padding: 0 4px; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font-family: Arial, sans-serif; font-size: 9px; }
  .map-stage.has-open-sheet .map-toolbar { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .mobile-dealer-sheet { position: absolute; z-index: 950; right: 8px; bottom: 8px; left: 8px; display: flex; max-height: 58%; min-height: 270px; flex-direction: column; overflow: hidden; border: 1px solid rgba(28,47,46,.12); border-radius: 18px 18px 12px 12px; background: #fff; box-shadow: 0 -8px 32px rgba(17,38,37,.22); transform: translateY(calc(100% + 20px)); transition: transform .26s cubic-bezier(.22,.75,.28,1); }
  .mobile-dealer-sheet.is-open { transform: translateY(0); }
  .mobile-dealer-sheet__handle { position: absolute; z-index: 2; top: 9px; left: 50%; width: 42px; height: 5px; border-radius: 4px; background: #cbd2d0; transform: translateX(-50%); }
  .mobile-dealer-sheet__close { position: absolute; z-index: 3; top: 12px; right: 14px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #4e5b5d; background: #eef1f0; cursor: pointer; font-size: 20px; line-height: 1; }
  .mobile-dealer-sheet__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .mobile-dealer-sheet .dealer-detail { padding: 38px 20px max(28px, env(safe-area-inset-bottom)); }
  .mobile-dealer-sheet .dealer-detail h3 { padding-right: 38px; font-size: 20px; }
  .mobile-dealer-sheet .dealer-detail__section { margin-top: 18px; padding-top: 16px; }
  .mobile-dealer-sheet .dealer-detail__description { font-size: 14px; line-height: 1.75; }
  .leaflet-top.leaflet-right { top: 0; transform: none; }
  .leaflet-control-zoom { margin: 96px 12px 0 0 !important; }
  .help-section { display: block; width: calc(100% - 32px); margin-top: 60px; margin-bottom: 60px; padding: 30px 24px; }
  .help-section h2 { font-size: 21px; line-height: 1.5; }
  .help-section p:last-child { line-height: 1.8; }
  .outline-button { width: 100%; margin-top: 22px; }
}

@media (max-width: 390px) {
  .section-wrap { width: calc(100% - 28px); }
  .intro-copy h1 { font-size: 33px; }
  .trust-point { padding-inline: 7px; }
  .trust-point span:last-child { display: none; }
  .locator-section > .section-heading, .search-panel, .mobile-view-switch, .help-section { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
