/* Plumbear Store Locator */
.pbl {
  --pbl-bg: var(--pb-ink-2, #11151A);
  --pbl-surface: var(--pb-ink-3, #1A2027);
  --pbl-line: var(--pb-line, rgba(233, 238, 242, .12));
  --pbl-text: var(--pb-text, #E9EEF2);
  --pbl-muted: var(--pb-muted, #9AA7B3);
  --pbl-blue: var(--pb-blue, #8BBAD3);
  --pbl-volt: var(--pb-volt, #D7FF3A);
  --pbl-ink: var(--pb-ink, #0A0C0F);
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  height: 680px;
  border: 1px solid var(--pbl-line);
  border-radius: 0;
  overflow: hidden;
  background: var(--pbl-bg);
  font-family: var(--pb-font-body, 'Barlow'), system-ui, sans-serif;
  color: var(--pbl-text);
}
.pbl *, .pbl *::before, .pbl *::after { box-sizing: border-box; }
.pbl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pbl-panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--pbl-line); }
.pbl-search { display: flex; gap: 8px; padding: 20px 20px 12px; }
.pbl-q {
  flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--pbl-text);
  background: var(--pbl-ink); border: 1px solid var(--pbl-line); border-radius: 0; outline: none;
  transition: border-color .2s ease;
}
.pbl-q::placeholder { color: var(--pbl-muted); }
.pbl-q:focus { border-color: var(--pbl-volt); }
.pbl-near {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px;
  font-family: var(--pb-font-display, 'Barlow Condensed'), sans-serif; font-weight: 800; font-style: normal;
  font-size: 16px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: var(--pbl-ink); background: var(--pbl-volt); border: 0; border-radius: 0; cursor: pointer;
  transition: background-color .2s ease;
}
.pbl-near:hover { background: #fff; }
.pbl-near:focus-visible, .pbl-chip:focus-visible, .pbl-item:focus-visible { outline: 3px solid var(--pbl-blue); outline-offset: 2px; }
.pbl-near.is-busy svg { animation: pbl-spin 1s linear infinite; }
@keyframes pbl-spin { to { transform: rotate(360deg); } }
.pbl-filters { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 14px; border-bottom: 1px solid var(--pbl-line); }
.pbl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pbl-chip {
  padding: 6px 12px; font: inherit; font-family: var(--pb-font-mono, 'JetBrains Mono'), monospace; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pbl-muted); background: transparent; border: 1px solid var(--pbl-line); border-radius: 0; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.pbl-chip:hover { color: var(--pbl-text); border-color: var(--pbl-muted); }
.pbl-chip.is-on { color: var(--pbl-ink); background: var(--pbl-blue); border-color: var(--pbl-blue); }
.pbl-count { margin: 0; padding: 12px 20px; font-family: var(--pb-font-mono, 'JetBrains Mono'), monospace; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--pbl-muted); }
.pbl-list { list-style: none; margin: 0; padding: 0 12px 16px; overflow-y: auto; flex: 1 1 auto; min-height: 0; position: relative; scrollbar-width: thin; scrollbar-color: var(--pbl-line) transparent; }
.pbl-item {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; margin-bottom: 6px;
  background: var(--pbl-surface); border: 1px solid transparent; border-left: 3px solid transparent; border-radius: 0; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.pbl-item:hover { border-color: var(--pbl-line); }
.pbl-item.is-active { border-color: var(--pbl-line); border-left-color: var(--pbl-volt); background: #202832; }
.pbl-item-top { display: flex; justify-content: space-between; gap: 12px; }
.pbl-item-retailer { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pbl-blue); }
.pbl-item-dist { font-family: var(--pb-font-display, 'Barlow Condensed'), sans-serif; font-weight: 800; font-style: normal; font-size: 17px; color: var(--pbl-volt); }
.pbl-item-badge { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pbl-ink); background: var(--pbl-blue); padding: 2px 8px; border-radius: 3px; }
.pbl-item-name { font-family: var(--pb-font-display, 'Barlow Condensed'), sans-serif; font-weight: 800; font-style: normal; font-size: 22px; line-height: 1.1; text-transform: uppercase; color: var(--pbl-text); }
.pbl-item-addr { font-size: 15px; color: var(--pbl-muted); }
.pbl-item-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pbl-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pbl-text); border: 1px solid var(--pbl-line); padding: 2px 8px; border-radius: 3px; }
.pbl-item-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.pbl-item-link { font-size: 14px; font-weight: 700; color: var(--pbl-volt); text-decoration: none; }
.pbl-item-link:hover { color: #fff; text-decoration: underline; }
.pbl-empty { padding: 20px 16px; font-size: 15px; line-height: 1.5; color: var(--pbl-muted); }
.pbl-map-wrap { position: relative; min-height: 0; }
.pbl-map { position: absolute; inset: 0; background: #1b2228; }
.pbl-map .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.88) saturate(.55); }
.pbl-map .leaflet-control-attribution { background: rgba(10, 12, 15, .75); color: var(--pbl-muted); }
.pbl-map .leaflet-control-attribution a { color: var(--pbl-blue); }
.pbl-map .leaflet-bar a { background: var(--pbl-surface); color: var(--pbl-text); border-color: var(--pbl-line); }
.pbl-map .leaflet-bar a:hover { background: var(--pbl-ink); color: var(--pbl-volt); }
.pbl-pin span {
  display: block; width: 28px; height: 28px; background: var(--pbl-volt);
  border: 3px solid var(--pbl-ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 1px var(--pbl-blue), 0 4px 10px rgba(0, 0, 0, .45);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.pbl-you span {
  display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--pbl-blue);
  border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(139, 186, 211, .35);
}
.pbl-cluster {
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--pbl-volt); color: var(--pbl-ink); box-shadow: 0 0 0 6px rgba(139, 186, 211, .25);
  font-family: var(--pb-font-display, 'Barlow Condensed'), sans-serif; font-weight: 800; font-style: normal; font-size: 17px;
}
.pbl-map .leaflet-popup-content-wrapper { background: var(--pbl-surface); color: var(--pbl-text); border-radius: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.pbl-map .leaflet-popup-tip { background: var(--pbl-surface); }
.pbl-map .leaflet-popup-close-button { color: var(--pbl-muted); }
.pbl-pop { display: flex; flex-direction: column; gap: 4px; min-width: 200px; font-family: var(--pb-font-body, 'Barlow'), sans-serif; }
.pbl-pop-retailer { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pbl-blue); }
.pbl-pop-name { font-family: var(--pb-font-display, 'Barlow Condensed'), sans-serif; font-style: normal; font-size: 20px; text-transform: uppercase; color: var(--pbl-text); }
.pbl-pop-addr { font-size: 14px; color: var(--pbl-muted); }
.pbl-pop-links { display: flex; gap: 14px; margin-top: 6px; }
.pbl-map .pbl-pop-link { font-weight: 700; font-size: 14px; color: var(--pbl-volt); text-decoration: none; }
.pbl-map .pbl-pop-link:hover { color: #fff; }
.pbl-note { margin: 14px 0 0; font-size: 14px; color: var(--pb-muted, #9AA7B3); }

@media (max-width: 1023px) {
  .pbl { grid-template-columns: minmax(0, 1fr); grid-template-rows: 380px auto; height: auto; }
  .pbl-map-wrap { order: -1; min-height: 380px; border-bottom: 1px solid var(--pbl-line); }
  .pbl-panel { border-right: 0; }
  .pbl-list { max-height: 560px; }
}
@media (max-width: 479px) {
  .pbl { grid-template-rows: 300px auto; }
  .pbl-map-wrap { min-height: 300px; }
  .pbl-search { flex-wrap: wrap; padding: 16px 14px 10px; }
  .pbl-near { flex: 1 1 100%; justify-content: center; }
  .pbl-filters { padding: 0 14px 12px; }
  .pbl-count { padding: 10px 14px; }
  .pbl-list { padding: 0 8px 12px; }
}
