@scope (#legacy-atlas) {
.atlas-section {
  position: relative;
  transition: background 320ms ease, color 220ms ease;
}

.atlas-heading {
  position: relative;
}

/* Przełączanie regionu odbywa się przez zakładki Polska / Europa. */
.atlas-map-topline button {
  display: none;
}

/* Wyszukiwanie wdrożeń w atlasie */
.atlas-region-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 26px;
  position: relative;
  margin: 32px 0 22px;
}

.atlas-live-search {
  order: 1;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex: 0 0 100%;
  margin-left: 0;
  color: #77736c;
  font: 650 0.88rem/1 "Reddit Sans", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: none;
}

.atlas-live-search-label {
  flex-shrink: 0;
  font-size: 0.82rem;
}

.atlas-live-search-field {
  position: relative;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.atlas-live-search-field::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: translateY(-62%);
  pointer-events: none;
  opacity: 0.82;
}

.atlas-live-search-field::after {
  content: "";
  position: absolute;
  top: calc(50% + 3px);
  left: 18px;
  width: 5px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
  opacity: 0.82;
}

.atlas-live-search input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 29px;
  border: 1px solid rgba(21, 21, 21, 0.28);
  border-radius: 2px;
  outline: none;
  color: var(--atlas-black);
  background: rgba(247, 250, 249, 0.55);
  font: 560 0.78rem/1 "Reddit Sans", Arial, sans-serif;
  letter-spacing: 0.02em;
  transition: border-color 180ms ease, background 180ms ease,
    box-shadow 180ms ease;
}

.atlas-live-search input::placeholder {
  color: currentColor;
  opacity: 0.42;
}

.atlas-live-search input:focus {
  border-color: var(--atlas-blue-deep);
  background: rgba(247, 250, 249, 0.86);
  box-shadow: 0 0 0 2px rgba(43, 170, 225, 0.12);
}

.atlas-list-item[hidden] {
  display: none;
}

.atlas-map-marker.is-search-hidden,
.atlas-polish-cluster.is-search-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .atlas-section {
    transition: none;
  }
}

}

@scope (#legacy-atlas) {
  .atlas-section {
    background: linear-gradient(135deg, #fff 0%, #fff 55%, #e8f2ff 100%);
  }
  @media (min-width: 821px) {
    .atlas-section { grid-template-columns: 360px minmax(0, 1fr); }
    .atlas-list-panel { width: 360px; min-width: 360px; max-width: 360px; box-sizing: border-box; padding-left: 34px; padding-right: 26px; }
    .atlas-heading h2 { font-size: clamp(2rem, 2.6vw, 2.75rem); }
    .atlas-region-switch { margin-top: 36px; }
  }
}

@scope (#legacy-atlas) {
  .atlas-section { background: transparent; }
  .atlas-section { height: calc((100svh - 78px) * .8); min-height: 512px; }
  @media (max-width: 820px) {
    .atlas-section { height: auto; min-height: 0; }
    .atlas-list-panel { padding-top: 42px; padding-bottom: 20px; }
    .atlas-deployment-list { max-height: 264px; }
    .atlas-map-panel { min-height: 57.6svh; padding-top: 20px; padding-bottom: 20px; }
    .atlas-map-viewport { min-height: 448px; }
  }
  @media (max-width: 520px) {
    .atlas-map-panel { min-height: 496px; padding-top: 18px; padding-bottom: 14px; }
    .atlas-map-viewport { min-height: 416px; }
  }
}

@scope (#legacy-atlas) {
  .atlas-heading h2 { font-size: calc(clamp(2rem, 3.825vw, 3.9rem) - 6pt); }
  @media (min-width: 821px) {
    .atlas-heading h2 { font-size: calc(clamp(2rem, 2.6vw, 2.75rem) - 6pt); }
  }
  @media (max-width: 520px) {
    .atlas-heading h2 { font-size: calc(2.25rem - 6pt); }
  }
}

@scope (#legacy-atlas) {
  .atlas-list-panel { padding-top: 24px; }
  .atlas-map-panel { padding-top: 12px; }
  @media (max-width: 820px) {
    .atlas-list-panel { padding-top: 24px; }
    .atlas-map-panel { padding-top: 12px; }
  }
}

@scope (#legacy-atlas) {
  .atlas-selection-readout strong { display: block; line-height: 1.2; }
  .atlas-selection-readout > .atlas-selection-action,
  .atlas-selection-readout > small {
    margin-top: 5px;
    font-size: .67rem;
    line-height: 1.2;
    font-weight: 760;
    letter-spacing: .12em;
  }
}
