/*
 * JACUZZI / Dealer locator 1.2.1
 * Scoped styles: no Elementor/global overrides, no box shadows and no blue hover.
 * Brand tokens follow jacuzzi-spa.se's existing 2026 design variables.
 */
.jdl {
  --jdl-ink: var(--jz-black, #222423);
  --jdl-blue: var(--jz-blue, #465D7B);
  --jdl-light: var(--jz-light, #F5F4F2);
  --jdl-border: var(--jz-border, #D6D3D2);
  --jdl-white: #FFFFFF;
  --jdl-muted: #646a6a;
  --jdl-hover: #383c3b;
  --jdl-map: #f0f3f2;
  display: grid;
  grid-template-columns: minmax(0, 53%) minmax(0, 47%);
  width: 100%;
  max-width: 1700px;
  min-height: 740px;
  margin: 0 auto;
  padding: 0;
  color: var(--jdl-ink);
  background: var(--jdl-white);
  font-family: "Post Grotesk", Arial, sans-serif;
  isolation: isolate;
}
.jdl, .jdl * { box-sizing: border-box; }
.jdl__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(26px, 3.6vw, 62px);
  background: var(--jdl-white);
}
.jdl__eyebrow {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 0 0 22px;
  color: var(--jdl-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  line-height: 1.5;
}
.jdl__eyebrow span { width: 34px; height: 1px; background: var(--jdl-ink); }
.jdl .jdl__heading {
  margin: 0 0 16px;
  padding: 0;
  color: var(--jdl-ink);
  font-family: "Post Grotesk", Arial, sans-serif;
  font-size: clamp(30px, 3.2vw, 49px);
  font-weight: 500;
  letter-spacing: -.028em;
  line-height: 1.12;
  text-transform: none;
}
.jdl .jdl__lead {
  max-width: 580px;
  margin: 0 0 28px;
  color: var(--jdl-muted);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}
.jdl__search {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  gap: 12px;
  border: 1px solid var(--jdl-border);
  border-radius: 33px;
  color: var(--jdl-ink);
  background: #fff;
  transition: border-color .18s ease;
}
.jdl__search:hover, .jdl__search:focus-within { border-color: var(--jdl-ink); }
.jdl__search svg { display: block; flex: 0 0 auto; }
.jdl input.jdl__search-input,
.jdl input.jdl__search-input:focus,
.jdl input.jdl__search-input:hover {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 52px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  color: var(--jdl-ink);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}
.jdl input.jdl__search-input::placeholder { color: #777c7d; opacity: 1; }
.jdl__filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 12px; }
.jdl button.jdl__filter,
.jdl button.jdl__filter:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
  margin: 0;
  padding: 7px 19px;
  border: 1px solid var(--jdl-border);
  border-radius: 33px;
  box-shadow: none;
  color: var(--jdl-ink);
  background: var(--jdl-white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.jdl button.jdl__filter:hover,
.jdl button.jdl__filter.is-active,
.jdl button.jdl__filter.is-active:hover {
  border-color: var(--jdl-ink);
  color: #fff;
  background: var(--jdl-ink);
}
.jdl button.jdl__filter:focus-visible,
.jdl button.jdl__dealer:focus-visible,
.jdl button.jdl__reset:focus-visible,
.jdl .jdl-popup__actions a:focus-visible { outline: 2px solid var(--jdl-blue); outline-offset: 3px; }
.jdl__list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 27px 0 7px;
  color: var(--jdl-muted);
  font-size: 12px;
  line-height: 1.5;
}
.jdl__count { font-weight: 600; color: var(--jdl-ink); }
.jdl__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 200px;
  max-height: 470px;
  padding: 0 4px 0 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #c7ccca transparent;
}
.jdl__list::-webkit-scrollbar { width: 5px; }
.jdl__list::-webkit-scrollbar-thumb { background: #c7ccca; border-radius: 6px; }
.jdl button.jdl__dealer,
.jdl button.jdl__dealer:focus {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 15px;
  width: 100%;
  min-height: 105px;
  padding: 13px 11px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #e8e8e6;
  border-radius: 0;
  box-shadow: none;
  color: var(--jdl-ink);
  background: var(--jdl-white);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background .18s ease;
}
.jdl button.jdl__dealer:hover { color: var(--jdl-ink); background: #f8f8f6; }
.jdl button.jdl__dealer.is-selected,
.jdl button.jdl__dealer.is-selected:hover {
  color: var(--jdl-ink);
  background: var(--jdl-light);
  border-bottom-color: var(--jdl-light);
  border-radius: 8px;
}
.jdl__thumb {
  display: block;
  width: 98px;
  height: 79px;
  flex: 0 0 98px;
  overflow: hidden;
  border-radius: 7px;
  background: #e8e9e6;
}
.jdl__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jdl__thumb-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: #999f9d;
  font-size: 36px;
  font-weight: 400;
}
.jdl__dealer-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  align-items: flex-start;
}
.jdl .jdl__dealer-name {
  color: var(--jdl-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.jdl__dealer-city { margin-top: 6px; color: var(--jdl-muted); font-size: 13px; line-height: 1.4; }
.jdl__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jdl__tag { padding: 4px 11px; border-radius: 33px; font-size: 11px; line-height: 1.2; color: var(--jdl-ink); background: #e8e9e6; }
.jdl__arrow { margin-left: auto; padding-right: 5px; flex: 0 0 auto; color: var(--jdl-ink); font-size: 23px; font-weight: 300; transition: transform .2s; }
.jdl button.jdl__dealer:hover .jdl__arrow { transform: translateX(3px); }
.jdl__empty { padding: 22px 10px; margin: 0; color: var(--jdl-muted); font-size: 14px; line-height: 1.5; }
.jdl__smallprint { margin: 18px 0 0; color: var(--jdl-muted); font-size: 12px; line-height: 1.5; }

/* Map panel */
.jdl__map-wrap {
  position: relative;
  min-width: 0;
  min-height: 740px;
  overflow: hidden;
  background: var(--jdl-map);
}
.jdl__map { position: absolute; inset: 0; z-index: 0; }
.jdl .leaflet-container { font-family: "Post Grotesk", Arial, sans-serif; background: var(--jdl-map); }
/* Gentle neutral basemap treatment. Restrict filter to raster tiles only. */
.jdl .leaflet-layer.jdl__base-tile .leaflet-tile { filter: saturate(.52) contrast(.94) brightness(1.06); }

.jdl__map-toolbar {
  position: absolute;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  top: 24px;
  left: 22px;
  right: 22px;
  pointer-events: none;
}
.jdl__map-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid #e2e4e2;
  border-radius: 33px;
  color: var(--jdl-ink);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.25;
}
.jdl__map-label-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jdl-ink); }
.jdl button.jdl__reset,
.jdl button.jdl__reset:focus {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid #e2e4e2;
  border-radius: 33px;
  box-shadow: none;
  color: var(--jdl-ink);
  background: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  pointer-events: auto;
  transition: background .18s, color .18s, border-color .18s;
}
.jdl button.jdl__reset:hover { color: #fff; background: var(--jdl-ink); border-color: var(--jdl-ink); }
.jdl__map-status {
  position: absolute;
  z-index: 600;
  right: 18px;
  bottom: 50px;
  left: 18px;
  max-width: 380px;
  padding: 14px 17px;
  border: 1px solid var(--jdl-border);
  border-radius: 8px;
  color: var(--jdl-ink);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
}
.jdl__map-status[hidden] { display: none; }
.jdl .leaflet-control-zoom { border: 0; border-radius: 9px; overflow: hidden; box-shadow: none; }
.jdl .leaflet-control-zoom a,
.jdl .leaflet-control-zoom a:hover {
  width: 38px;
  height: 38px;
  line-height: 38px;
  border-color: #e2e4e2;
  color: var(--jdl-ink);
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 19px;
  text-decoration: none;
}
.jdl .leaflet-control-zoom a:hover { color: #fff; background: var(--jdl-ink); }
.jdl .leaflet-control-attribution { padding: 2px 6px; background: rgba(255,255,255,.85); font-size: 10px; }
.jdl .leaflet-control-attribution a,
.jdl .leaflet-control-attribution a:hover { color: #555; }
.jdl .leaflet-popup-content-wrapper {
  padding: 0;
  overflow: hidden;
  border: 1px solid #e1e3df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 18px rgba(20,30,26,.06);
}
.jdl .leaflet-popup-content { width: auto; margin: 0; }
.jdl .leaflet-popup-tip { box-shadow: none; background: #fff; }
.jdl .leaflet-popup-close-button,
.jdl .leaflet-popup-close-button:hover {
  z-index: 2;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border-radius: 50%;
  color: var(--jdl-ink);
  background: #fff;
  font-size: 19px;
  text-decoration: none;
}
.jdl .leaflet-popup-close-button:hover { color: #fff; background: var(--jdl-ink); }
.jdl-map-icon { border: 0; background: none; }
.jdl-map-icon__ring {
  position: absolute;
  top: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 100%;
  background: var(--jdl-blue, #465D7B);
  box-shadow: 0 0 0 1px rgba(33,48,56,.19);
  transition: transform .18s, background .18s;
}
.jdl-map-icon__core { display: block; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.jdl-map-icon.is-selected .jdl-map-icon__ring {
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-width: 3px;
  background: var(--jdl-ink, #222423);
  box-shadow: 0 0 0 5px rgba(34,36,35,.12);
}
.jdl-map-icon.is-selected .jdl-map-icon__core { width: 6px; height: 6px; }

/* Contact popup */
.jdl .jdl-popup {
  min-width: 250px;
  max-width: 340px;
  margin: 0;
  padding: 0;
  color: var(--jdl-ink);
  background: #fff;
  font-family: "Post Grotesk", Arial, sans-serif;
}
.jdl-popup__cover { height: 125px; overflow: hidden; background: var(--jdl-light); }
.jdl-popup__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jdl-popup__body { padding: 22px 21px 20px; }
.jdl .jdl-popup__eyebrow {
  margin: 0 24px 7px 0;
  color: #6a7070;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  line-height: 1.4;
}
.jdl .jdl-popup__title {
  margin: 0 12px 17px 0;
  color: var(--jdl-ink);
  font-family: inherit;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.28;
  text-transform: none;
}
.jdl-popup__info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; margin: 0 0 12px; }
.jdl-popup__label { color: #838785; font-size: 10px; font-weight: 600; letter-spacing: .09em; line-height: 1.5; }
.jdl-popup__value { color: var(--jdl-ink); font-size: 13px; font-weight: 400; line-height: 1.5; }
.jdl .jdl-popup__contact-link,
.jdl .jdl-popup__contact-link:visited,
.jdl .jdl-popup__contact-link:hover {
  color: var(--jdl-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--jdl-border);
  overflow-wrap: anywhere;
}
.jdl .jdl-popup__contact-link:hover { border-bottom-color: var(--jdl-ink); }
.jdl-popup__actions { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.jdl .jdl-popup__actions a,
.jdl .jdl-popup__actions a:visited,
.jdl .jdl-popup__actions a:focus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--jdl-ink);
  border-radius: 33px;
  box-shadow: none;
  color: #fff;
  background: var(--jdl-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background .18s, color .18s, border-color .18s;
}
.jdl .jdl-popup__actions a:hover { background: var(--jdl-hover); border-color: var(--jdl-hover); color: #fff; }
.jdl .jdl-popup__actions a.jdl-popup__secondary,
.jdl .jdl-popup__actions a.jdl-popup__secondary:visited,
.jdl .jdl-popup__actions a.jdl-popup__secondary:focus {
  background: #fff;
  color: var(--jdl-ink);
  border-color: var(--jdl-border);
}
.jdl .jdl-popup__actions a.jdl-popup__secondary:hover {
  background: var(--jdl-light);
  color: var(--jdl-ink);
  border-color: var(--jdl-ink);
}
@media (max-width: 1024px) {
  .jdl { grid-template-columns: minmax(0, 55%) minmax(0, 45%); }
  .jdl__panel { padding: 28px 24px; }
  .jdl__thumb { width: 78px; height: 72px; flex-basis: 78px; }
  .jdl button.jdl__dealer { gap: 11px; }
  .jdl .jdl__dealer-name { font-size: 14px; }
  .jdl__map-toolbar { left: 12px; right: 12px; top: 13px; }
}
@media (max-width: 767px) {
  .jdl { display: flex; flex-direction: column; min-height: 0; }
  .jdl__panel { padding: 30px 16px 24px; }
  .jdl .jdl__heading { font-size: clamp(30px, 8.5vw, 40px); }
  .jdl .jdl__lead { margin-bottom: 23px; font-size: 14px; }
  .jdl__list-heading { margin-top: 24px; }
  .jdl__list { min-height: 140px; max-height: 340px; }
  .jdl button.jdl__dealer { min-height: 91px; padding: 11px 8px; }
  .jdl__thumb { width: 80px; height: 68px; flex-basis: 80px; }
  .jdl__dealer-city { font-size: 12px; }
  .jdl__map-wrap { height: 470px; min-height: 470px; }
  .jdl__map-toolbar { gap: 5px; }
  .jdl__map-label, .jdl button.jdl__reset { font-size: 10px; padding: 8px 9px; }
  .jdl .leaflet-popup-content { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .jdl__search, .jdl__filter, .jdl__dealer, .jdl__arrow, .jdl__reset, .jdl .jdl-popup__actions a { transition: none; }
}
