:root {
  --ads-accent: #42d6e8;
  --ads-bg: #050708;
  --ads-panel: #0b0f12;
  --ads-panel-soft: #10161a;
  --ads-text: #f5f7f8;
  --ads-muted: #a8b0b5;
  --ads-border: rgba(255,255,255,.12);
  --ads-header-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ads-detailer-locator-page {
  margin: 0;
  background: var(--ads-bg);
  color: var(--ads-text);
  font-family: "Public Sans", Arial, sans-serif;
  min-width: 320px;
}
body.ads-detailer-locator-page a { color: inherit; }
body.ads-detailer-locator-page button,
body.ads-detailer-locator-page input,
body.ads-detailer-locator-page select { font: inherit; }
.ads-detailer-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.ads-detailer-skip:focus {
  position: fixed !important;
  inset: 12px auto auto 12px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  clip: auto !important;
  padding: 12px 16px !important;
  z-index: 9999;
  background: var(--ads-accent);
  color: #001014;
  border-radius: 8px;
  font-weight: 700;
}

.ads-detailer-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--ads-header-h);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,7,8,.92);
  backdrop-filter: blur(14px);
}
.ads-detailer-header__inner,
.ads-detailer-container {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}
.ads-detailer-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ads-detailer-logo img { display: block; width: min(200px, 42vw); height: auto; }
.ads-detailer-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.ads-detailer-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ads-text);
  transition: color .2s ease;
}
.ads-detailer-nav a:hover,
.ads-detailer-nav a:focus-visible { color: var(--ads-accent); }
.ads-detailer-nav a[aria-current="page"] { color: var(--ads-accent); }
.ads-detailer-header__actions { display: flex; align-items: center; gap: 16px; }

/* Keep the language control identical to the main site: current language + dropdown. */
.ads-detailer-language-switcher {
  position: relative;
  flex: 0 0 auto;
  z-index: 130;
}
.ads-detailer-language-switcher__button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--ads-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.ads-detailer-language-switcher__button svg {
  flex: 0 0 auto;
  transition: transform .2s ease;
}
.ads-detailer-language-switcher__button[aria-expanded="true"] svg { transform: rotate(180deg); }
.ads-detailer-language-switcher__button:hover,
.ads-detailer-language-switcher__button:focus-visible { color: var(--ads-accent); }
.ads-detailer-language-switcher__button:focus-visible {
  outline: 2px solid var(--ads-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.ads-detailer-language-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  z-index: 140;
  min-width: 96px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: #050708;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.ads-detailer-language-switcher__menu[hidden] { display: none !important; }
.ads-detailer-language-switcher__menu a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  color: var(--ads-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.ads-detailer-language-switcher__menu a:hover,
.ads-detailer-language-switcher__menu a:focus-visible {
  background: rgba(255,255,255,.08);
  color: var(--ads-accent);
  outline: none;
}
.ads-detailer-language-switcher__menu a[aria-selected="true"] { color: var(--ads-accent); }
.ads-detailer-language-switcher--mobile .ads-detailer-language-switcher__button {
  min-width: 68px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
}
.ads-detailer-language-switcher--mobile .ads-detailer-language-switcher__menu {
  right: auto;
  left: 0;
}
.ads-detailer-buy,
.ads-detailer-primary,
.ads-detailer-secondary,
.ads-detailer-ghost {
  min-height: 44px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ads-detailer-buy,
.ads-detailer-primary { border: 1px solid var(--ads-accent); background: var(--ads-accent); color: #001014 !important; }
.ads-detailer-buy:hover,
.ads-detailer-primary:hover { background: #fff; border-color: #fff; }
.ads-detailer-secondary { border: 1px solid var(--ads-border); background: rgba(255,255,255,.04); color: var(--ads-text); }
.ads-detailer-secondary:hover { border-color: var(--ads-accent); color: var(--ads-accent); }
.ads-detailer-ghost { border: 0; background: transparent; color: var(--ads-muted); padding-inline: 8px; }
.ads-detailer-ghost:hover { color: var(--ads-accent); }
.ads-detailer-menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; padding: 10px; cursor: pointer; }
.ads-detailer-menu-toggle span { display: block; height: 1px; background: currentColor; margin: 6px 0; }
.ads-detailer-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: rgba(5,7,8,.985);
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}
.ads-detailer-mobile-menu.is-open { display: flex; flex-direction: column; }
.ads-detailer-mobile-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ads-detailer-mobile-menu__logo { display: inline-flex; min-width: 0; }
.ads-detailer-mobile-menu__logo img { display: block; width: min(200px, 60vw); height: auto; }
.ads-detailer-mobile-menu__close { flex: 0 0 auto; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.ads-detailer-mobile-menu__languages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 30px; }
.ads-detailer-mobile-menu__languages a { display: flex; min-height: 48px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; text-decoration: none; font-weight: 800; }
.ads-detailer-mobile-menu__languages a:hover,
.ads-detailer-mobile-menu__languages a:focus-visible,
.ads-detailer-mobile-menu__languages a[aria-current="true"] { border-color: var(--ads-accent); color: var(--ads-accent); outline: none; }
.ads-detailer-mobile-menu nav { display: flex; flex-direction: column; gap: 20px; margin: auto 0; }
.ads-detailer-mobile-menu nav a { font-family: "ADS Display", "Public Sans", sans-serif; text-decoration: none; font-size: clamp(28px, 8vw, 48px); }
.ads-detailer-mobile-menu__bottom { display: flex; flex-direction: column; gap: 16px; }
body.ads-menu-open { overflow: hidden; }

.ads-detailer-main { padding-top: var(--ads-header-h); }
.ads-detailer-hero {
  padding: 92px 0 54px;
  background:
    radial-gradient(circle at 83% 20%, rgba(66,214,232,.16), transparent 34%),
    linear-gradient(180deg, #080b0d 0%, #050708 100%);
}
.ads-detailer-eyebrow {
  margin: 0 0 14px;
  color: var(--ads-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ads-detailer-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "ADS Display", "Public Sans", sans-serif;
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: .98;
  font-weight: 400;
  text-wrap: balance;
}
.ads-detailer-hero__intro {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--ads-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}
.ads-detailer-status-note { margin: 18px 0 0; color: #cdd4d8; font-size: 13px; }

.ads-detailer-controls-wrap { padding: 28px 0; border-block: 1px solid rgba(255,255,255,.08); background: #070a0c; position: sticky; top: var(--ads-header-h); z-index: 45; }
.ads-detailer-controls { display: grid; grid-template-columns: minmax(220px, 1.5fr) minmax(150px,.7fr) minmax(150px,.7fr) auto auto; gap: 12px; align-items: end; }
.ads-detailer-field { display: flex; flex-direction: column; gap: 7px; }
.ads-detailer-field label { color: var(--ads-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ads-detailer-field input,
.ads-detailer-field select {
  width: 100%;
  height: 46px;
  border-radius: 7px;
  border: 1px solid var(--ads-border);
  background: #0c1114;
  color: var(--ads-text);
  padding: 0 14px;
  outline: none;
}
.ads-detailer-field input:focus,
.ads-detailer-field select:focus { border-color: var(--ads-accent); box-shadow: 0 0 0 3px rgba(66,214,232,.13); }
.ads-detailer-location-button { white-space: nowrap; }
.ads-detailer-results-line { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; color: var(--ads-muted); font-size: 14px; }
.ads-detailer-location-status { color: var(--ads-accent); }
.ads-detailer-location-status.is-error { color: #ff9f9f; }

.ads-detailer-content { padding: 44px 0 88px; }
.ads-detailer-view-toggle { display: none; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.ads-detailer-view-toggle button { min-height: 44px; border: 1px solid var(--ads-border); background: #0c1114; color: var(--ads-text); border-radius: 7px; cursor: pointer; }
.ads-detailer-view-toggle button.is-active { border-color: var(--ads-accent); color: #001014; background: var(--ads-accent); font-weight: 800; }
.ads-detailer-layout { display: grid; grid-template-columns: minmax(330px, 42%) minmax(0, 58%); gap: 24px; align-items: start; }
.ads-detailer-list-panel {
  min-width: 0;
  max-height: clamp(580px, 68vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(66,214,232,.55) rgba(255,255,255,.05);
  padding-right: 6px;
}
.ads-detailer-list-panel::-webkit-scrollbar { width: 9px; }
.ads-detailer-list-panel::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 999px; }
.ads-detailer-list-panel::-webkit-scrollbar-thumb { background: rgba(66,214,232,.55); border-radius: 999px; border: 2px solid #080b0d; }
.ads-detailer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ads-detailer-card {
  border: 1px solid var(--ads-border);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  padding: 20px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ads-detailer-card:hover { border-color: rgba(66,214,232,.5); }
.ads-detailer-card.is-selected { border-color: var(--ads-accent); background: rgba(66,214,232,.065); }
.ads-detailer-card.is-nearest { box-shadow: inset 3px 0 0 var(--ads-accent); }
.ads-detailer-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ads-detailer-card h2 { margin: 0; font-family: "ADS Display", "Public Sans", sans-serif; font-size: 26px; font-weight: 400; line-height: 1.1; }
.ads-detailer-card__place { margin: 7px 0 0; color: var(--ads-accent); font-size: 13px; font-weight: 700; }
.ads-detailer-certified { flex: 0 0 auto; border: 1px solid rgba(66,214,232,.45); border-radius: 999px; color: var(--ads-accent); padding: 5px 9px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ads-detailer-card__address { margin: 16px 0 0; color: var(--ads-muted); line-height: 1.55; font-size: 14px; }
.ads-detailer-distance { margin: 11px 0 0; color: #fff; font-weight: 750; font-size: 14px; }
.ads-detailer-distance:empty { display: none; }
.ads-detailer-contact-reveal { margin-top: 16px; display: grid; gap: 10px; }
.ads-detailer-contact-button { width: fit-content; min-width: 170px; }
.ads-detailer-contact-button:disabled { cursor: wait; opacity: .72; }
.ads-detailer-contact-result { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 14px; border: 1px solid rgba(66,214,232,.32); border-radius: 8px; background: rgba(66,214,232,.06); }
.ads-detailer-contact-result[hidden] { display: none !important; }
.ads-detailer-contact-result a,
.ads-detailer-contact-result span { color: var(--ads-text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.ads-detailer-contact-result a { text-decoration: none; }
.ads-detailer-contact-result a:hover { color: var(--ads-accent); }
.ads-detailer-contact-result .is-error { color: #ffb0b0; }
.ads-detailer-contact-list { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 16px 0 0; }
.ads-detailer-contact-list a { color: var(--ads-muted); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.ads-detailer-contact-list a:hover { color: var(--ads-accent); }
.ads-detailer-card__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ads-detailer-card__actions .ads-detailer-primary,
.ads-detailer-card__actions .ads-detailer-secondary { min-height: 40px; padding: 9px 13px; font-size: 13px; }
.ads-detailer-no-results { display: none; border: 1px dashed var(--ads-border); border-radius: 12px; padding: 44px 24px; text-align: center; color: var(--ads-muted); }
.ads-detailer-no-results.is-visible { display: block; }

.ads-detailer-map-panel { position: sticky; top: calc(var(--ads-header-h) + 132px); min-width: 0; }
.ads-detailer-map-shell { position: relative; height: clamp(580px, 68vh, 760px); border-radius: 14px; overflow: hidden; border: 1px solid var(--ads-border); background: #0b1013; }
#ads-detailer-map { width: 100%; height: 100%; }
.ads-detailer-map-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--ads-muted); background: #0b1013; }
.ads-detailer-map-fallback.is-visible { display: flex; }
.ads-detailer-map-note { margin: 12px 2px 0; color: var(--ads-muted); font-size: 12px; line-height: 1.5; }
.ads-detailer-marker { width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50% 50% 50% 8px; background: var(--ads-accent); box-shadow: 0 6px 18px rgba(0,0,0,.45); transform: rotate(-45deg); cursor: pointer; }
.ads-detailer-marker::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #001014; left: 11px; top: 11px; }
.ads-detailer-marker:hover,
.ads-detailer-marker:focus-visible,
.ads-detailer-marker.is-selected { background: #fff; border-color: var(--ads-accent); outline: none; }
.ads-detailer-user-marker { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--ads-accent); box-shadow: 0 0 0 7px rgba(66,214,232,.22); }
.ads-detailer-popup { color: #101418; min-width: 210px; }
.ads-detailer-popup h3 { margin: 0 0 5px; font-size: 17px; }
.ads-detailer-popup p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.ads-detailer-popup a { color: #006778; font-weight: 800; }
.maplibregl-popup-content { border-radius: 10px; padding: 16px; }
.maplibregl-ctrl-attrib { font-size: 10px; }

.ads-detailer-footer { border-top: 2px solid var(--ads-accent); background: #050708; color: var(--ads-muted); }
.ads-detailer-footer__grid { padding: 58px 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; }
.ads-detailer-footer img { width: 200px; height: auto; display: block; }
.ads-detailer-footer p { max-width: 330px; font-size: 14px; line-height: 1.6; }
.ads-detailer-footer h3 { margin: 0 0 14px; color: var(--ads-text); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.ads-detailer-footer nav { display: flex; flex-direction: column; gap: 10px; }
.ads-detailer-footer nav a { text-decoration: none; font-size: 14px; }
.ads-detailer-footer nav a:hover { color: var(--ads-accent); }
.ads-detailer-footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }

@media (max-width: 1279px) {
  .ads-detailer-nav,
  .ads-detailer-header__actions { display: none; }
  .ads-detailer-menu-toggle { display: block; margin-left: auto; }
  .ads-detailer-layout { grid-template-columns: minmax(300px, 43%) minmax(0, 57%); }
  .ads-detailer-controls { grid-template-columns: 1.3fr .7fr .7fr auto; }
  .ads-detailer-controls .ads-detailer-reset { grid-column: 4; }
}

@media (max-width: 900px) {
  .ads-detailer-header__inner,
  .ads-detailer-container { width: min(100% - 32px, 1280px); }
  .ads-detailer-hero { padding: 68px 0 42px; }
  .ads-detailer-controls-wrap { position: static; }
  .ads-detailer-controls { grid-template-columns: 1fr 1fr; }
  .ads-detailer-controls .ads-detailer-field:first-child { grid-column: 1 / -1; }
  .ads-detailer-controls .ads-detailer-location-button,
  .ads-detailer-controls .ads-detailer-reset { grid-column: auto; width: 100%; }
  .ads-detailer-view-toggle { display: grid; }
  .ads-detailer-layout { display: block; }
  .ads-detailer-map-panel { position: static; display: none; }
  .ads-detailer-map-panel.is-mobile-visible { display: block; }
  .ads-detailer-list-panel { max-height: none; overflow: visible; padding-right: 0; }
  .ads-detailer-list-panel.is-mobile-hidden { display: none; }
  .ads-detailer-map-shell { height: min(70vh, 650px); min-height: 500px; }
  .ads-detailer-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --ads-header-h: 72px; }
  .ads-detailer-header__inner,
  .ads-detailer-container { width: min(100% - 28px, 1280px); }
  .ads-detailer-logo img { max-width: 182px; }
  .ads-detailer-hero { padding: 54px 0 36px; }
  .ads-detailer-hero h1 { font-size: clamp(38px, 13vw, 58px); }
  .ads-detailer-hero__intro { font-size: 16px; margin-top: 20px; }
  .ads-detailer-controls-wrap { padding: 20px 0; }
  .ads-detailer-controls { grid-template-columns: 1fr; }
  .ads-detailer-controls .ads-detailer-field:first-child { grid-column: auto; }
  .ads-detailer-results-line { align-items: flex-start; flex-direction: column; gap: 7px; }
  .ads-detailer-content { padding: 28px 0 64px; }
  .ads-detailer-card { padding: 17px; }
  .ads-detailer-card__top { display: block; }
  .ads-detailer-certified { display: inline-block; margin-top: 12px; }
  .ads-detailer-card h2 { font-size: 24px; }
  .ads-detailer-card__actions > * { flex: 1 1 calc(50% - 9px); }
  .ads-detailer-contact-button { width: 100%; }
  .ads-detailer-map-shell { height: calc(100vh - 190px); min-height: 470px; }
  .ads-detailer-footer__grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .ads-detailer-footer__bottom { flex-direction: column; }
}

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


/* Global installer network trust signal */
.ads-detailer-global-network {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(91, 200, 222, 0.2);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(91, 200, 222, 0.08), rgba(255, 255, 255, 0.02));
}
.ads-detailer-global-network__copy { max-width: 52rem; }
.ads-detailer-global-network__eyebrow {
  display: block;
  margin-bottom: .45rem;
  color: var(--ads-accent, #5bc8de);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ads-detailer-global-network h2 {
  margin: 0 0 .55rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}
.ads-detailer-global-network p {
  margin: 0;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}
.ads-detailer-global-network__link {
  flex: 0 0 auto;
  color: var(--ads-accent, #5bc8de);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.ads-detailer-global-network__link:hover,
.ads-detailer-global-network__link:focus-visible { text-decoration: underline; }
@media (max-width: 760px) {
  .ads-detailer-global-network { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .ads-detailer-global-network__link { white-space: normal; }
}


/* Defer rendering of supporting content below the primary locator interface. */
@supports (content-visibility: auto) {
  .ads-detailer-global-network,
  .ads-detailer-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }
}
