/* Frontend Mapy Zabłocia. Struktura komponentu i warstwy popupów są opisane w TECHNICAL.md. */
.zablocie-map-component {
  display: flow-root;
  position: relative;
  clear: both;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  --zablocie-control-fg: #222;
  --zablocie-control-border: #dedede;
}

.zablocie-map-component,
.zablocie-map-component * {
  box-sizing: border-box;
}

.zablocie-map-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 6px;
  padding: 1px 0 3px;
  overflow: visible;
}

.zablocie-map-filter--all {
  flex: 0 0 auto;
}

.zablocie-map-filters__categories {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
}

.zablocie-map-filters__scroller {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.zablocie-map-filters__scroller::-webkit-scrollbar {
  display: none;
}

.zablocie-map-filters__scroller:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 999px;
}

.zablocie-map-filters__track {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-width: 100%;
  padding: 0 36px 0 0;
}

.zablocie-map-filter-scroll {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--zablocie-control-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  color: inherit;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 140ms ease, opacity 140ms ease;
}

.zablocie-map-filter-scroll[hidden] {
  display: none;
}

.zablocie-map-filter-scroll:hover {
  background: #f4f4f4;
}

.zablocie-map-filter-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.zablocie-map-filter-scroll svg {
  width: 18px;
  height: 18px;
}

.zablocie-map-filter-scroll--prev {
  left: 4px;
}

.zablocie-map-filter-scroll--next {
  right: 4px;
}

.zablocie-map-filters__categories::before,
.zablocie-map-filters__categories::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 42px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 140ms ease;
}

.zablocie-map-filters__categories::before {
  left: 0;
  background: linear-gradient(to right, #fff 20%, rgba(255,255,255,0));
}

.zablocie-map-filters__categories::after {
  right: 0;
  background: linear-gradient(to left, #fff 20%, rgba(255,255,255,0));
}

.zablocie-map-filters__categories.has-prev::before,
.zablocie-map-filters__categories.has-next::after {
  opacity: 1;
}

.zablocie-map-filter {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--zablocie-control-border);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: .92em;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.zablocie-map-filter:hover {
  background: #f7f7f7;
}

.zablocie-map-filter.is-active,
.zablocie-map-filter[aria-pressed="true"] {
  border-color: #9c9c9c;
  background: #ececec;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.zablocie-map-filter:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.zablocie-map-filter__icon {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  opacity: .72;
}

.zablocie-map-status-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 10px;
  padding: 0 0 3px;
  overflow: visible;
}

.zablocie-map-status-filter--all {
  flex: 0 0 auto;
}

.zablocie-map-status-filters__scroller {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.zablocie-map-status-filters__scroller::-webkit-scrollbar {
  display: none;
}

.zablocie-map-status-filters__track {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-width: 100%;
}

.zablocie-map-status-filter__pin {
  display: block;
  width: 17px;
  height: 21px;
  flex: 0 0 17px;
  color: var(--zablocie-status-filter-color, #757575);
}

.zablocie-map-status-filter__pin svg {
  display: block;
  width: 17px;
  height: 21px;
  overflow: visible;
}

.zablocie-map-status-filter__pin path {
  fill: currentColor;
  stroke: rgba(0, 0, 0, .16);
  stroke-width: .7;
}

.zablocie-map-status-filter__pin circle {
  fill: #fff;
  stroke: none;
}


.zablocie-map-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.zablocie-map-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: auto;
}

.zablocie-map-control {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--zablocie-control-border);
  border-radius: 8px;
  background: rgba(240, 240, 240, .96);
  color: var(--zablocie-control-fg);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .13);
  font: inherit;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.zablocie-map-control:hover,
.zablocie-map-control:focus-visible {
  filter: brightness(.96);
}

.zablocie-map-control:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.zablocie-map-shell {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4015 / 2173;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  overscroll-behavior: contain;
  isolation: isolate;
  contain: paint;
}

.zablocie-map-shell[aria-busy="true"]::before {
  content: "Ładowanie mapy…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
  color: #555;
  font: inherit;
}

.zablocie-map {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: grab;
  outline: none;
}

.zablocie-map.is-dragging {
  cursor: grabbing;
}

.zablocie-map:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -2px;
}

/* Wyłącza kosztowne hit-testy na tysiącach statycznych ścieżek. */
.zablocie-map .map-page,
.zablocie-map .map-layer:not(.map-layer--interactive) {
  pointer-events: none;
}

.zablocie-map .map-layer--interactive,
.zablocie-map .map-marker,
.zablocie-map .map-cluster {
  pointer-events: auto;
}

.zablocie-map .map-marker {
  cursor: pointer;
  opacity: 1;
  transition: opacity 210ms ease;
}

.zablocie-map .map-marker.is-filtered-out,
.zablocie-map .map-marker.is-clustered-out {
  opacity: 0;
}

.zablocie-map .map-marker.is-filtered-out,
.zablocie-map .map-marker.is-filtered-out *,
.zablocie-map .map-marker.is-clustered-out,
.zablocie-map .map-marker.is-clustered-out * {
  pointer-events: none !important;
}

.zablocie-map .map-marker__hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.zablocie-map .map-marker__dot {
  fill: var(--zablocie-marker-color, #3f3f3f);
  stroke: var(--zablocie-marker-outline, #fff);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.zablocie-map .map-marker:focus-visible .map-marker__dot,
.zablocie-map .map-marker:hover .map-marker__dot {
  stroke-width: 3.5;
}

.zablocie-map-error {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 0;
  padding: 24px;
  background: #f7f7f7;
  color: #7a1f1f;
  text-align: center;
}

/*
 * Telefon i tablet w pionie: kwadratowy viewport mapy. SVG nie jest
 * rozciągane — JavaScript dobiera kwadratowy wycinek oryginalnego kadru.
 */
@media (max-width: 1024px) and (orientation: portrait) {
  .zablocie-map-shell {
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 600px) {
  .zablocie-map-filters {
    gap: 6px;
    margin-bottom: 8px;
  }

  .zablocie-map-filters__track {
    gap: 6px;
    padding-right: 34px;
  }

  .zablocie-map-filter-scroll {
    width: 30px;
    height: 30px;
  }

  .zablocie-map-filter {
    min-height: 35px;
    padding: 7px 10px;
    font-size: .9em;
  }

  .zablocie-map-controls {
    top: 9px;
    left: 9px;
  }

  .zablocie-map-control {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zablocie-map-filter,
  .zablocie-map .map-marker,
  .zablocie-map .map-cluster {
    transition: none !important;
  }
}

/* Warstwa „Sprawy” – frontend danych z WordPressa (0.3.0). */

.zablocie-map .map-marker__halo {
  fill: var(--zablocie-marker-color, #757575);
  stroke: none;
  opacity: .18;
  pointer-events: none;
}

.zablocie-map .map-marker__pin {
  fill: var(--zablocie-marker-color, #757575);
  stroke: var(--zablocie-marker-outline, #fff);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .24));
}

.zablocie-map .map-marker__dot {
  fill: var(--zablocie-marker-outline, #fff);
  stroke: none;
}

.zablocie-map .map-marker:focus-visible .map-marker__pin,
.zablocie-map .map-marker:hover .map-marker__pin {
  stroke-width: 3.5;
}

.zablocie-map .map-marker:focus-visible .map-marker__halo,
.zablocie-map .map-marker:hover .map-marker__halo {
  opacity: .26;
}

/* Clustry są liczone w pikselach ekranu, więc mają stały rozmiar niezależnie
 * od zoomu. Neutralny kolor celowo nie sugeruje żadnego statusu Spraw. */
.zablocie-map .map-cluster {
  cursor: pointer;
}

.zablocie-map .map-cluster__hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.zablocie-map .map-cluster__halo {
  fill: #4d5963;
  opacity: .18;
  pointer-events: none;
}

.zablocie-map .map-cluster__body {
  fill: #4d5963;
  stroke: #fff;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .22));
}

.zablocie-map .map-cluster__label {
  fill: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.zablocie-map .map-cluster:hover .map-cluster__body,
.zablocie-map .map-cluster:focus-visible .map-cluster__body {
  stroke-width: 3.5;
}

.zablocie-map .map-cluster:hover .map-cluster__halo,
.zablocie-map .map-cluster:focus-visible .map-cluster__halo {
  opacity: .28;
}

.zablocie-map .map-spider-line {
  stroke: #66717a;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  opacity: .7;
  pointer-events: none;
}

.zablocie-map-popup {
  position: fixed;
  z-index: 2147482990;
  width: min(330px, calc(100vw - 20px));
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 28px));
  transition: opacity 160ms ease;
  font: inherit;
  font-family: inherit;
  line-height: 1.4;
  max-height: none;
  overflow: visible;
}

.zablocie-map-popup[hidden],
.zablocie-map-detail-backdrop[hidden] {
  display: none;
}

.zablocie-map-popup.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zablocie-map-popup.is-below {
  transform: translate(-50%, 26px);
}

.zablocie-map-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.zablocie-map-popup.is-below::after {
  top: -8px;
  bottom: auto;
  border: 0;
  border-left: 1px solid #dedede;
  border-top: 1px solid #dedede;
}

.zablocie-map-popup__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background: #ededed;
}

.zablocie-map-popup__image-wrap[hidden],
.zablocie-map-detail__image-wrap[hidden] {
  display: none;
}

.zablocie-map-popup__image,
.zablocie-map-detail__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zablocie-map-popup__body {
  padding: 13px 16px 15px;
}

.zablocie-map-popup__close,
.zablocie-map-detail__close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  background: #fff !important;
  background-image: none !important;
  color: #222;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  font-family: inherit;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .14);
}

.zablocie-map-popup__close {
  top: -16px;
  right: -16px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.zablocie-map-detail__close {
  top: -18px;
  right: -18px;
  width: 48px;
  height: 48px;
  font-size: 34px;
}

.zablocie-map-popup__close:hover,
.zablocie-map-popup__close:focus-visible,
.zablocie-map-detail__close:hover,
.zablocie-map-detail__close:focus-visible {
  background: #f1f1f1 !important;
}


.zablocie-map-popup__meta,
.zablocie-map-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 7px;
}

.zablocie-map-popup__status,
.zablocie-map-detail__status {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ededed;
  color: #444;
  font-size: .78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.zablocie-map-popup__status[data-status="done"],
.zablocie-map-detail__status[data-status="done"] {
  background: #e7f3e8;
  color: #256729;
}

.zablocie-map-popup__status[data-status="in-progress"],
.zablocie-map-detail__status[data-status="in-progress"] {
  background: #fff3ca;
  color: #755700;
}

.zablocie-map-popup__status[data-status="impossible"],
.zablocie-map-detail__status[data-status="impossible"] {
  background: #f8e5e4;
  color: #9e211d;
}

.zablocie-map-popup__year,
.zablocie-map-detail__year {
  color: #737373;
  font-size: .78em;
  font-weight: 600;
  line-height: 1.2;
}

.zablocie-map-popup__year[hidden],
.zablocie-map-detail__year[hidden],
.zablocie-map-detail__updated[hidden] {
  display: none;
}

.zablocie-map-popup__title {
  margin: 0;
  padding-right: 4px;
  font-weight: 700;
}

.zablocie-map-popup__excerpt {
  margin: 7px 0 11px;
}

.zablocie-map-popup__more {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.zablocie-map-popup__more-icon {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.zablocie-map-tooltip {
  position: fixed;
  z-index: 2147482985;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px 9px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .97);
  color: #222;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(-4px);
  transition: opacity 90ms ease, transform 110ms ease;
  font: inherit;
  font-family: inherit;
  font-size: .86em;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.zablocie-map-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(-8px);
}

.zablocie-map-tooltip.is-below {
  transform: translate(-50%, 0) translateY(4px);
}

.zablocie-map-tooltip.is-below.is-visible {
  transform: translate(-50%, 0) translateY(8px);
}

.zablocie-map-tooltip[hidden] {
  display: none;
}

.zablocie-map-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.zablocie-map-detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zablocie-map-detail {
  position: relative;
  width: min(900px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: visible;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  background: #fff;
  color: #222;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(5px) scale(.992);
  transition: opacity 180ms ease, transform 200ms ease;
  font: inherit;
  font-family: inherit;
  line-height: 1.5;
}

.zablocie-map-detail-backdrop.is-open .zablocie-map-detail {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.zablocie-map-detail__scroll {
  max-height: calc(100dvh - 48px);
  border-radius: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.zablocie-map-detail__body {
  padding: 28px 32px 32px;
}

.zablocie-map-detail__title {
  margin: 0 64px 0 0;
  font: inherit;
  font-size: 1.45em;
  font-weight: 700;
  line-height: 1.2;
}

.zablocie-map-detail__image-wrap {
  width: 68%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  margin: 22px auto 24px;
  overflow: hidden;
  border-radius: 12px;
  background: #ededed;
}

.zablocie-map-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 68%;
  max-width: 680px;
  margin: -10px auto 24px;
}

.zablocie-map-detail__image-wrap[hidden] + .zablocie-map-detail__tags {
  width: 100%;
  max-width: none;
  margin: 18px 0 24px;
}

.zablocie-map-detail__tags[hidden] {
  display: none;
}

.zablocie-map-detail__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #f6f6f6;
  color: #4c4c4c;
  font-size: .82em;
  font-weight: 600;
  line-height: 1.2;
}

.zablocie-map-detail__tag-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.zablocie-map-detail__tag-icon svg,
.zablocie-map-detail__tag-icon img {
  display: block;
  width: 16px;
  height: 16px;
}

.zablocie-map-detail__tag-icon img {
  opacity: .78;
}

.zablocie-map-detail__content {
  margin: 0;
}

.zablocie-map-detail__content p {
  margin: 0 0 1em;
}

.zablocie-map-detail__content p:last-child {
  margin-bottom: 0;
}

.zablocie-map-detail__content img {
  max-width: 100%;
  height: auto;
}

.zablocie-map-detail__content ul,
.zablocie-map-detail__content ol {
  margin-top: .7em;
  margin-bottom: 1em;
}

.zablocie-map-detail__updated {
  margin-top: 26px;
  color: #7a7a7a;
  font-size: .78em;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .zablocie-map-popup {
    width: min(320px, calc(100vw - 16px));
  }

  .zablocie-map-popup__body {
    padding: 12px 14px 14px;
  }

  .zablocie-map-detail-backdrop {
    padding: 10px;
  }

  .zablocie-map-detail {
    max-height: calc(100dvh - 20px);
  }

  .zablocie-map-detail__scroll {
    max-height: calc(100dvh - 20px);
  }

  .zablocie-map-detail__body {
    padding: 18px 17px 20px;
  }

  .zablocie-map-detail__title {
    margin-right: 48px;
    font-size: 1.25em;
  }

  .zablocie-map-detail__image-wrap {
    width: 100%;
    max-width: none;
    margin: 18px auto 20px;
    border-radius: 10px;
  }

  .zablocie-map-detail__tags {
    width: 100%;
    max-width: none;
    margin: -8px auto 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zablocie-map-popup,
  .zablocie-map-tooltip,
  .zablocie-map-detail-backdrop,
  .zablocie-map-detail {
    transition: none !important;
  }
}

/* Atrybucja danych OpenStreetMap – stale widoczna przy mapie. */
.zablocie-map-attribution {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 22;
  display: inline-block;
  max-width: calc(100% - 12px);
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .88);
  color: #4b4f53;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.zablocie-map-attribution:hover,
.zablocie-map-attribution:focus-visible {
  color: #1d2327;
  text-decoration: underline;
}

.zablocie-map-attribution:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .zablocie-map-attribution {
    right: 4px;
    bottom: 4px;
    font-size: 10px;
  }
}

/* Udostępnianie konkretnej Sprawy – pod opisem, przed datą aktualizacji. */
.zablocie-map-detail__share {
  display: flex;
  margin-top: 22px;
}

.zablocie-map-detail__copy-link {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #f7f7f7;
  color: #3f3f3f;
  font: inherit;
  font-size: .88em;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  will-change: width, background-color, border-color, color;
  transition: width 280ms cubic-bezier(.2,.8,.2,1), background-color 280ms ease, border-color 280ms ease, color 280ms ease !important;
}

.zablocie-map-detail__copy-link:hover,
.zablocie-map-detail__copy-link:focus-visible {
  border-color: #b8b8b8;
  background: #f0f0f0;
}

.zablocie-map-detail__copy-link.is-copied {
  border-color: #b9ddc1 !important;
  background: #edf8ef !important;
  color: #2f5f3a !important;
}

.zablocie-map-detail__copy-link.is-error {
  border-color: #d7c98a;
  background: #fff9e6;
}

.zablocie-map-detail__copy-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.zablocie-map-detail__copy-text {
  display: inline-block;
  opacity: 1;
  transition: opacity 130ms ease;
}

.zablocie-map-detail__copy-link.is-label-hidden .zablocie-map-detail__copy-text {
  opacity: 0;
}

.zablocie-map-detail__share + .zablocie-map-detail__updated {
  margin-top: 14px;
}

/* 0.10.0 – subtelne animacje markerów i clusterów. */
.zablocie-map .map-marker__halo,
.zablocie-map .map-marker__pin,
.zablocie-map .map-marker__dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 210ms ease, opacity 210ms ease;
}

.zablocie-map .map-marker.is-filtered-out .map-marker__halo,
.zablocie-map .map-marker.is-filtered-out .map-marker__pin,
.zablocie-map .map-marker.is-filtered-out .map-marker__dot,
.zablocie-map .map-marker.is-clustered-out .map-marker__halo,
.zablocie-map .map-marker.is-clustered-out .map-marker__pin,
.zablocie-map .map-marker.is-clustered-out .map-marker__dot {
  transform: scale(.78);
}

@keyframes zablocie-marker-pulse {
  0%, 100% { opacity: .18; transform: scale(1); }
  18% { opacity: .34; transform: scale(1.22); }
  36% { opacity: .18; transform: scale(1); }
  54% { opacity: .32; transform: scale(1.18); }
  74% { opacity: .18; transform: scale(1); }
}

.zablocie-map .map-marker.is-pulsing .map-marker__halo {
  animation: zablocie-marker-pulse 1.35s ease-out both;
}

.zablocie-map .map-cluster {
  opacity: 1;
  transition: opacity 190ms ease;
}

.zablocie-map .map-cluster__halo,
.zablocie-map .map-cluster__body,
.zablocie-map .map-cluster__label {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 190ms ease, opacity 190ms ease;
}

.zablocie-map .map-cluster.is-entering,
.zablocie-map .map-cluster.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.zablocie-map .map-cluster.is-entering .map-cluster__halo,
.zablocie-map .map-cluster.is-entering .map-cluster__body,
.zablocie-map .map-cluster.is-entering .map-cluster__label,
.zablocie-map .map-cluster.is-leaving .map-cluster__halo,
.zablocie-map .map-cluster.is-leaving .map-cluster__body,
.zablocie-map .map-cluster.is-leaving .map-cluster__label {
  transform: scale(.78);
}

/* Popup ma osobny scroll, dzięki czemu krzyżyk może częściowo wystawać poza kartę. */
.zablocie-map-popup__scroll {
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border-radius: inherit;
}

/* PRZED / PO w stylu stories. */
.zablocie-map-story {
  position: relative;
  isolation: isolate;
}

.zablocie-map-story > img {
  transition: opacity 160ms ease;
}

.zablocie-map-story > img.is-changing {
  opacity: .82;
}

.zablocie-map-story__nav {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 28, .58);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(-50%) scale(.96);
  transition: opacity 170ms ease, transform 170ms ease, background-color 170ms ease;
  cursor: pointer;
}

.zablocie-map-story__nav--prev { left: 10px; }
.zablocie-map-story__nav--next { right: 10px; }

.zablocie-map-story__nav svg {
  display: block !important;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zablocie-map-story:hover .zablocie-map-story__nav:not([hidden]),
.zablocie-map-story__nav:focus-visible {
  opacity: .92;
  transform: translateY(-50%) scale(1);
}

.zablocie-map-story__nav:hover,
.zablocie-map-story__nav:focus-visible {
  background: rgba(20, 24, 28, .72);
  color: #fff !important;
  transform: translateY(-50%) scale(1.18);
}


.zablocie-map-story__progress {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  opacity: 1;
  transition: opacity 800ms ease;
  pointer-events: none;
}

.zablocie-map-story__progress[hidden] {
  display: none !important;
}

.zablocie-map-story__progress.is-finished {
  opacity: 0;
}

.zablocie-map-story__progress > span {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  box-shadow: 0 1px 5px rgba(0, 0, 0, .5), 0 0 1px rgba(0, 0, 0, .7);
}

.zablocie-map-story__progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  box-shadow: 0 0 4px rgba(0, 0, 0, .34);
}

@media (hover: none), (pointer: coarse) {
  .zablocie-map-story__nav:not([hidden]) {
    opacity: .78;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 600px) {
  .zablocie-map-popup__close {
    top: -11px;
    right: -7px;
  }

  .zablocie-map-detail__close {
    top: -10px;
    right: -6px;
  }

  .zablocie-map-story__nav {
    width: 31px;
    height: 31px;
  }

  .zablocie-map-story__progress {
    bottom: 10px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zablocie-map .map-marker,
  .zablocie-map .map-marker__halo,
  .zablocie-map .map-marker__pin,
  .zablocie-map .map-marker__dot,
  .zablocie-map .map-cluster,
  .zablocie-map .map-cluster__halo,
  .zablocie-map .map-cluster__body,
  .zablocie-map .map-cluster__label,
  .zablocie-map-story > img,
  .zablocie-map-story__nav,
  .zablocie-map-story__progress,
  .zablocie-map-detail__copy-link {
    transition: none !important;
    animation: none !important;
  }
}

/* 0.10.2 – feedback kopiowania jak w Interaktywnych Mapach + wyraźniejszy hover PRZED/PO. */
@media (prefers-reduced-motion: reduce) {
  .zablocie-map-detail__copy-link,
  .zablocie-map-detail__copy-text {
    transition: none !important;
  }
}
