/* EnergyBlast — stores: lokalizator „Gdzie kupić”, mapa i klastry.
   Generowane z assets/css/main.css przez tools/split-css.php — nie edytować ręcznie. */
.stores-page {
  background: #FFFFFF;
}
.stores-page__hero {
  background: #0A0A0A;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stores-page__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(228, 0, 124, 0.04) 40px, rgba(228, 0, 124, 0.04) 41px);
  pointer-events: none;
}
.stores-page__hero-eyebrow {
  font-family: "Anton", Impact, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #E4007C;
  margin: 0 0 0.75rem;
}
.stores-page__hero-title {
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 0.9;
  margin: 0 0 1rem;
}
.stores-page__hero-title span {
  color: #C8FF00;
}
.stores-page__hero-lead {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}
.stores-page__locator {
  padding: 2rem 0;
}
@media (min-width: 1024px) {
  .stores-page__locator {
    padding: 3rem 0;
  }
}
.stores-page__locator-inner {
  width: 100%;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .stores-page__locator-inner {
    padding-inline: 2rem;
  }
}
@media (min-width: 1280px) {
  .stores-page__locator-inner {
    padding-inline: 3rem;
  }
}
.stores-page__locator-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 1024px) {
  .stores-page__locator-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}
.stores-page__sidebar {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .stores-page__sidebar {
    width: 390px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    padding-right: 0.5rem;
  }
}
.stores-page__sidebar-label {
  margin: 0 0 0.75rem;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  color: #0A0A0A;
}
.stores-page__sidebar-copy {
  margin: 0 0 1.5rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #444444;
}
.stores-page__search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.stores-page__search-wrap {
  position: relative;
}
.stores-page__search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #FFFFFF;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  box-sizing: border-box;
}
.stores-page__search-input:focus {
  outline: none;
  border-color: #E4007C;
  box-shadow: 3px 3px 0 #E4007C;
}
.stores-page__search-input::placeholder {
  color: #777777;
}
/* Podpowiedzi w przepływie dokumentu: rozsuwają formularz zamiast
   przykrywać przycisk „Szukaj” (na mobile blokowały kliknięcie). */
.stores-page__suggestions {
  position: relative;
  margin-top: 4px;
  z-index: 50;
  display: none;
  border: 2px solid #0A0A0A;
  background: #FFFFFF;
  box-shadow: 4px 4px 0 #0A0A0A;
  max-height: 220px;
  overflow-y: auto;
}
.stores-page__suggestion {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 1px solid #F0F0F0;
  background: #FFFFFF;
  text-align: left;
  cursor: pointer;
}
.stores-page__suggestion:hover {
  background: #F0F0F0;
}
.stores-page__suggestion-name {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0A0A0A;
}
.stores-page__suggestion-full {
  margin-top: 2px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.75rem;
  color: #777777;
}
.stores-page__search-btn {
  padding: 1rem 1.5rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 3px 3px 0 #E4007C;
}
.stores-page__search-btn:hover {
  background: #E4007C;
  border-color: #E4007C;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0A0A0A;
}
.stores-page__geo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 3px 3px 0 #0A0A0A;
}
.stores-page__geo-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}
.stores-page__geo-btn:hover {
  background: #C8FF00;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0A0A0A;
}
.stores-page__chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #C8F000;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  color: #0A0A0A;
}
.stores-page__chain-clear {
  margin-left: auto;
  color: #0A0A0A;
  font-weight: 700;
  text-decoration: underline;
}
.stores-page__list-count {
  margin-bottom: 0.75rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  color: #777777;
}
.stores-page__error {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #E4007C;
  background: #fff;
  border: 2px solid #E4007C;
  border-radius: 4px;
}
.stores-page__error[hidden] {
  display: none;
}
.stores-page__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .stores-page__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: #BBBBBB transparent;
  }
  .stores-page__list::-webkit-scrollbar {
    width: 4px;
  }
  .stores-page__list::-webkit-scrollbar-track {
    background: transparent;
  }
  .stores-page__list::-webkit-scrollbar-thumb {
    background: #BBBBBB;
    border-radius: 4px;
  }
}
.stores-page__store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #F8F8F8;
  box-shadow: 3px 3px 0 #0A0A0A;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.stores-page__store-card:hover {
  background: #F0F0F0;
}
.stores-page__store-card.is-highlighted {
  background: rgba(200, 255, 0, 0.28);
}
.stores-page__store-info {
  flex: 1;
  min-width: 0;
}
.stores-page__store-name {
  margin: 0 0 4px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0A0A0A;
}
.stores-page__store-address {
  margin: 0 0 4px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #444444;
}
.stores-page__store-meta {
  margin: 0 0 4px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444444;
}
.stores-page__store-note {
  margin: 0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #777777;
}
.stores-page__show-btn {
  flex-shrink: 0;
  min-width: 112px;
  padding: 0.5rem 1rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #C8FF00;
  color: #0A0A0A;
  font-family: "Anton", Impact, sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 2px 2px 0 #0A0A0A;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease, background 150ms ease;
}
.stores-page__show-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #0A0A0A;
}
.stores-page__show-btn.is-disabled, .stores-page__show-btn:disabled {
  background: #F0F0F0;
  color: #777777;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
}
.stores-page__load-more {
  width: 100%;
  flex-shrink: 0;
  margin-top: 1rem;
  padding: 0.75rem;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: "Anton", Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 3px 3px 0 #0A0A0A;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.stores-page__load-more:hover {
  background: #F0F0F0;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #0A0A0A;
}
.stores-page__map-wrap {
  flex: 1;
  min-width: 0;
}
.stores-page__map {
  width: 100%;
  height: 62vw;
  min-height: 380px;
  max-height: 700px;
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #0A0A0A;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .stores-page__map {
    height: 75vh;
    position: sticky;
    top: 80px;
  }
}
.stores-page__popup {
  min-width: 180px;
  font-family: "Roboto", Arial, sans-serif;
}
.stores-page__popup-title {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #0A0A0A;
}
.stores-page__popup-address {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #444444;
}
.stores-page__popup-note {
  font-size: 12px;
  line-height: 1.45;
  color: #777777;
}
.stores-page .leaflet-popup-content-wrapper {
  border: 2px solid #0A0A0A;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #0A0A0A;
}
.stores-page .leaflet-popup-tip {
  background: #FFFFFF;
}

/* Skeleton mapy — kontener ma docelową wysokość z .stores-page__map,
   więc podmiana na Leaflet nie przesuwa układu strony. */
.stores-page__map-skeleton {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(135deg, #F4F4F4 0 18px, #ECECEC 18px 36px);
  animation: eb-map-skeleton 1.4s ease-in-out infinite;
}
@keyframes eb-map-skeleton {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
  .stores-page__map-skeleton { animation: none; }
}

/* Przycisk ponowienia przy komunikacie o błędzie pobierania listy. */
.stores-page__retry {
  margin-left: 0.5rem;
  padding: 0.15rem 0.6rem;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Geometria klastrów. Klastry liczy teraz serwer i rysujemy je własnym
   divIcon-em, więc arkusz MarkerCluster.Default.css nie jest już pobierany —
   poniższe reguły odtwarzają jego wygląd 1:1. */
.stores-page .marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}
.stores-page .marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font-size: 12px;
}
.stores-page .marker-cluster span {
  line-height: 30px;
}

.stores-page .marker-cluster-small,
.stores-page .marker-cluster-medium,
.stores-page .marker-cluster-large,
.stores-page .marker-cluster {
  background: rgba(228, 0, 124, 0.24);
  background-color: rgba(228, 0, 124, 0.24);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, box-shadow 0.24s ease;
}

.stores-page .marker-cluster-small div,
.stores-page .marker-cluster-medium div,
.stores-page .marker-cluster-large div,
.stores-page .marker-cluster div {
  background: rgb(228, 0, 124);
  background-color: rgb(228, 0, 124);
  color: #FFFFFF;
  font-family: "Anton", Impact, sans-serif;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, box-shadow 0.24s ease;
}

.stores-page .marker-cluster:hover,
.stores-page .marker-cluster:hover div {
  transform: translateY(-2px) scale(1.05);
}

.leaflet-cluster-anim .marker-cluster,
.leaflet-cluster-anim .marker-cluster div,
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.leaflet-cluster-spider-leg {
  transition: stroke-opacity 0.24s ease;
}

