.kl-page {
  --kl-map-height: min(70svh, 48rem);
}

.kl-page-head h1 {
  max-width: 48rem;
}

.kl-tools {
  min-height: 6rem;
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto auto;
  align-items: center;
  gap: 1.5rem;
  border-bottom: 1px solid var(--kp-line);
  padding: 1rem 0;
}

.kl-search {
  max-width: 34rem;
  display: grid;
  grid-template-columns: auto minmax(8rem, 1fr);
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #aeb3bb;
  color: var(--kp-muted);
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.kl-search input {
  min-width: 0;
  height: 3rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--kp-ink);
  font-size: 0.9rem;
}

.kl-search:focus-within {
  border-color: var(--kp-violet);
}

.kl-filters {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.kl-nearby {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--kp-ink);
  border-radius: 2px;
  padding: 0.65rem 0.9rem;
  background: transparent;
  color: var(--kp-ink);
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kl-nearby i {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.2rem var(--kp-surface);
  background: currentColor;
}

.kl-nearby:hover,
.kl-nearby:focus-visible {
  background: var(--kp-ink);
  color: var(--kp-white);
}

.kl-nearby:disabled {
  cursor: wait;
  opacity: 0.55;
}

.kl-nearby.is-loading i {
  animation: kl-location-pulse 900ms ease infinite alternate;
}

.kl-location-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--kp-muted);
  font-size: 0.68rem;
}

.kl-location-status[hidden] {
  display: none;
}

.kl-filters button {
  min-height: 2.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.55rem 0.85rem;
  background: transparent;
  color: var(--kp-muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 750;
}

.kl-filters button:hover,
.kl-filters button:focus-visible,
.kl-filters button.is-active {
  border-color: var(--kp-ink);
  background: var(--kp-ink);
  color: var(--kp-white);
}

.kl-filters button:focus-visible,
.kl-distributor__head button:focus-visible {
  outline: 2px solid var(--kp-cyan);
  outline-offset: 2px;
}

.kl-count {
  margin: 0;
  color: var(--kp-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.kl-count strong {
  margin-right: 0.2rem;
  color: var(--kp-ink);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.kl-network-launch {
  min-height: 34rem;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.75fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
  margin-top: 2rem;
  border: 1px solid var(--kp-line);
  padding: clamp(2rem, 6vw, 6rem);
  background:
    linear-gradient(120deg, rgba(54, 199, 220, 0.08), transparent 46%),
    var(--kp-white);
}

.kl-network-launch h2 {
  max-width: 52rem;
  margin: 0;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: 0.94;
  text-transform: uppercase;
}

.kl-network-launch p:not(.kp-kicker) {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: var(--kp-muted);
  line-height: 1.7;
}

.kl-network-launch__actions {
  display: grid;
  gap: 0.65rem;
}

.kl-network-launch__actions .kp-button {
  width: 100%;
}

.kl-locator {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(21rem, 0.65fr);
  border-bottom: 1px solid var(--kp-line);
}

.kl-map-shell {
  position: relative;
  min-width: 0;
  height: var(--kl-map-height);
  border-right: 1px solid var(--kp-line);
  background: #dfe5e8;
}

.kl-map {
  width: 100%;
  height: 100%;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.kl-map.is-unavailable {
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--kp-muted);
}

.kl-map-key {
  position: absolute;
  z-index: 500;
  left: 1.2rem;
  bottom: 1.2rem;
  min-height: 2.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  padding: 0.65rem 0.8rem;
  background: rgba(7, 9, 13, 0.9);
  color: var(--kp-white);
  font-size: 0.6rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.kl-map-key i {
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--kp-white);
  border-radius: 50%;
  background: var(--kp-violet);
  box-shadow: 0 0 0 4px rgba(54, 199, 220, 0.25);
}

.kl-results {
  height: var(--kl-map-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--kp-white);
}

.kl-distributor {
  border-bottom: 1px solid var(--kp-line);
  padding: 1.5rem;
  background: var(--kp-white);
  transition: background 180ms ease;
}

.kl-distributor:hover {
  background: #f8f9fa;
}

.kl-distributor[hidden] {
  display: none !important;
}

.kl-distributor__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.kl-distributor__head p {
  margin: 0 0 0.25rem;
  color: var(--kp-violet);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kl-distributor__head p span {
  color: var(--kp-cyan);
}

.kl-distributor__head h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 650;
  line-height: 1.2;
}

.kl-distributor__head button {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--kp-line);
  border-radius: 2px;
  background: transparent;
  color: var(--kp-ink);
  cursor: pointer;
}

.kl-distributor__head button i {
  position: relative;
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.kl-distributor__head button i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.kl-distributor__description {
  margin: 0.9rem 0 0;
  color: var(--kp-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.kl-distributor address {
  margin-top: 1rem;
  color: #3c424a;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.55;
}

.kl-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.kl-services li {
  border: 1px solid #d7dbe0;
  border-radius: 2px;
  padding: 0.3rem 0.45rem;
  color: var(--kp-muted);
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
}

.kl-distributor__detail {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  margin: 1rem 0 0;
  border-top: 1px solid var(--kp-line);
  padding-top: 0.75rem;
  color: var(--kp-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.kl-distributor__detail span {
  color: var(--kp-violet);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kl-distributor__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.2rem;
}

.kl-distributor__links a {
  color: var(--kp-ink);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration-color: var(--kp-cyan);
  text-underline-offset: 0.25rem;
  text-transform: uppercase;
}

.kl-distributor__links a.is-primary {
  border: 1px solid var(--kp-ink);
  border-radius: 2px;
  padding: 0.55rem 0.7rem;
  background: var(--kp-ink);
  color: var(--kp-white);
  text-decoration: none;
}

.kl-empty {
  min-height: 100%;
  display: grid;
  align-content: center;
  padding: clamp(2rem, 4vw, 4rem);
}

.kl-empty[hidden] {
  display: none !important;
}

.kl-empty h2 {
  margin: 0;
  font-size: 2.6rem;
  font-weight: 520;
  line-height: 1.05;
  text-transform: uppercase;
}

.kl-empty > p:not(.kp-kicker) {
  margin: 1rem 0 1.5rem;
  color: var(--kp-muted);
}

.kl-help-band {
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: 4rem;
  padding: 3rem;
  background: var(--kp-ink);
  color: var(--kp-white);
}

.kl-help-band h2 {
  max-width: 45rem;
  margin: 0;
  font-size: 3.8rem;
  font-weight: 500;
  line-height: 0.98;
  text-transform: uppercase;
}

.kl-marker-wrap {
  background: transparent;
  border: 0;
}

.kl-marker {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: var(--kp-black);
  box-shadow: 0 0 0 7px rgba(54, 199, 220, 0.27), 0 0.4rem 1.4rem rgba(7, 9, 13, 0.25);
}

.kl-marker i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--kp-violet);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  border-radius: 2px;
  background: var(--kp-black);
  color: var(--kp-white);
  box-shadow: 0 1rem 3rem rgba(7, 9, 13, 0.25);
}

.leaflet-popup-content {
  min-width: 12rem;
  margin: 1rem;
}

.kl-popup p {
  margin: 0 0 0.3rem;
  color: var(--kp-cyan);
  font-size: 0.56rem;
  font-weight: 800;
}

.kl-popup strong {
  display: block;
  font-size: 0.92rem;
}

.kl-popup address {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.45;
}

.leaflet-control-zoom a {
  color: var(--kp-black);
}

@keyframes kl-location-pulse {
  to { transform: scale(1.35); opacity: 0.55; }
}

@media (max-width: 1100px) {
  .kl-network-launch {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .kl-tools {
    grid-template-columns: 1fr auto;
    padding: 1rem 0;
  }

  .kl-search {
    max-width: none;
  }

  .kl-filters {
    grid-column: 1 / -1;
  }

  .kl-locator {
    grid-template-columns: minmax(0, 1.3fr) minmax(19rem, 0.7fr);
  }
}

@media (max-width: 760px) {
  .kl-network-launch {
    min-height: 0;
    margin-top: 1rem;
    padding: 2rem 1.25rem;
  }

  .kl-network-launch h2 {
    font-size: 2.5rem;
  }

  .kl-page {
    --kl-map-height: 28rem;
  }

  .kl-empty h2 {
    font-size: 2.15rem;
  }

  .kl-help-band h2 {
    font-size: 2.5rem;
  }

  .kl-tools {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kl-search {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kl-filters {
    grid-column: auto;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .kl-filters button {
    flex: 0 0 auto;
  }

  .kl-count {
    order: 4;
  }

  .kl-nearby {
    justify-content: center;
  }

  .kl-location-status {
    grid-column: auto;
    order: 5;
  }

  .kl-locator {
    grid-template-columns: 1fr;
  }

  .kl-map-shell {
    border-right: 0;
    border-bottom: 1px solid var(--kp-line);
  }

  .kl-results {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .kl-help-band {
    min-height: 20rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
  }
}
