:root {
  color-scheme: light;
  --landing-pulse-duration: 2s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.leaflet-control-attribution {
  background: rgba(9, 37, 59, 0.64) !important;
  color: #e8f5ff !important;
  border-radius: 9px 0 0 0;
  padding: 2px 7px !important;
  font-size: 10px !important;
  line-height: 1.35;
}

.leaflet-control-attribution a {
  color: #cde8fb !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #d8e9f6;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.landing-map-body {
  position: relative;
}

.landing-preview-map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #d8e9f6;
}

.landing-controls-shell {
  position: fixed;
  bottom: 0.58rem;
  left: 0.58rem;
  z-index: 610;
}

.landing-controls-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(9, 37, 59, 0.52);
  color: #eff8ff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 5px 16px rgba(5, 20, 36, 0.24);
}

.landing-controls-toggle:hover {
  background: rgba(9, 37, 59, 0.66);
}

.landing-controls-toggle-icon {
  line-height: 1;
  transform-origin: center;
  transition: transform 0.16s ease;
}

.landing-controls-shell.is-expanded .landing-controls-toggle-icon {
  transform: rotate(16deg);
}

.landing-controls {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.34rem);
  display: grid;
  gap: 0.36rem;
  padding: 0.4rem;
  width: min(74vw, 214px);
  max-height: min(62vh, 360px);
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(9, 37, 59, 0.52);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 26px rgba(5, 20, 36, 0.28);
}

.landing-controls[hidden] {
  display: none !important;
}

.landing-control {
  display: grid;
  gap: 0.16rem;
}

.landing-control > span {
  color: #e8f5ff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing-control select,
.landing-control input {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #13344c;
  font: inherit;
  font-size: 0.7rem;
  padding: 0.28rem 0.36rem;
}

.landing-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.34rem;
}

.landing-range-row input[type="range"] {
  padding: 0;
  height: 1.35rem;
  background: transparent;
}

.landing-range-value {
  min-width: 2.5rem;
  text-align: right;
  color: #eff8ff;
  font-size: 0.66rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.landing-control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.26rem;
  margin-top: 0.06rem;
}

.landing-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: #eff8ff;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.28rem 0.3rem;
  cursor: pointer;
}

.landing-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.landing-legend-shell {
  position: fixed;
  top: 0.58rem;
  right: 0.58rem;
  z-index: 610;
  max-width: min(92vw, 280px);
}

.landing-legend {
  display: grid;
  gap: 0.32rem;
  padding: 0.46rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: rgba(9, 37, 59, 0.43);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 24px rgba(7, 23, 38, 0.27);
}

.landing-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.26rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
  color: #f1f9ff;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.landing-legend-label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.landing-legend-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14) inset;
}

.landing-div-icon {
  background: transparent;
  border: 0;
}

.landing-pin {
  position: relative;
  display: block;
}

.landing-pin--ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid var(--pin-color, #1f77b4);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.landing-pin--dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pin-color, #1f77b4);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.42);
}

.landing-pin--pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--pin-color, #1f77b4);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 3px 7px rgba(0, 0, 0, 0.4);
}

.landing-pin--pin::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  background: rgba(255, 255, 255, 0.86);
}

.landing-pin.is-pulse {
  animation: landing-pin-pulse var(--landing-pulse-duration, 2s) cubic-bezier(0.22, 0.8, 0.24, 1);
}

@keyframes landing-pin-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  }
  38% {
    transform: scale(1.58);
    box-shadow:
      0 0 0 10px rgba(255, 255, 255, 0.34),
      0 0 0 20px rgba(255, 255, 255, 0.16),
      0 0 26px 8px rgba(255, 255, 255, 0.24);
  }
  72% {
    transform: scale(1.2);
    box-shadow:
      0 0 0 5px rgba(255, 255, 255, 0.19),
      0 0 0 12px rgba(255, 255, 255, 0.08),
      0 0 14px 3px rgba(255, 255, 255, 0.12);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.landing-cluster {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.44), var(--cluster-color, #2f6897));
  color: #f7fcff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.landing-cluster.is-pulse {
  animation: landing-cluster-pulse var(--landing-pulse-duration, 2s) cubic-bezier(0.2, 0.76, 0.24, 1);
}

@keyframes landing-cluster-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 10px rgba(0, 0, 0, 0.35);
  }
  44% {
    transform: scale(1.36);
    box-shadow:
      0 0 0 14px rgba(255, 255, 255, 0.3),
      0 0 0 26px rgba(255, 255, 255, 0.14),
      0 6px 16px rgba(0, 0, 0, 0.36);
  }
  74% {
    transform: scale(1.16);
    box-shadow:
      0 0 0 7px rgba(255, 255, 255, 0.16),
      0 0 0 14px rgba(255, 255, 255, 0.08),
      0 5px 12px rgba(0, 0, 0, 0.35);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 4px 10px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 860px) {
  .landing-controls-shell {
    bottom: 0.38rem;
    left: 0.38rem;
  }

  .landing-legend-shell {
    top: auto;
    right: 0.38rem;
    bottom: 0.38rem;
    max-width: min(94vw, 250px);
  }

  .landing-controls {
    width: min(90vw, 192px);
    padding: 0.34rem;
  }

  .landing-control > span {
    font-size: 0.54rem;
  }

  .landing-control select,
  .landing-control input {
    font-size: 0.66rem;
    padding: 0.24rem 0.3rem;
  }

  .landing-btn {
    font-size: 0.6rem;
  }
}
