.split-rail {
  position: absolute;
  top: calc(var(--safe-top) + 18px);
  left: 0;
  z-index: 760;

  width: 30px;
  height: 86px;

  display: none;
  place-items: center;

  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 18px 18px 0;

  background: var(--surface);
  color: var(--color-text);

  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: 0 20px 70px var(--shadow-color);

  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;

  pointer-events: auto;
  transition: transform .34s cubic-bezier(.2,.9,.2,1), background .22s ease, opacity .22s ease, color .22s ease;
}

.split-rail:hover {
  transform: translateX(2px);
  background: var(--color-white-06);
}

.split-rail:active {
  transform: translateX(1px) scale(0.98);
}

.layout.split-view .split-rail {
  background: var(--surface-strong);
}

.layout.layout-split .split-rail {
  display: grid;
}

.leaflet-top.leaflet-right {
  top: calc(var(--safe-top) + 4px);
  right: 10px;
}

.leaflet-control-zoom,
.leaflet-control-attribution,
.leaflet-control.custom-layer-toggle {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a,
.leaflet-control-attribution,
.leaflet-control.custom-layer-toggle a {
  background: var(--surface-strong) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-white-12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.leaflet-control.custom-layer-toggle a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}

.leaflet-control.custom-layer-toggle a.is-satellite {
  background: var(--gradient-accent) !important;
  color: var(--color-text-strong) !important;
}

.marker-wrap {
  position: relative;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.marker-core {
  width: 18px;
  height: 18px;
  background: var(--gradient-accent);
  border: 2px solid var(--color-white-95);
  border-radius: 999px;
  box-shadow: 0 0 0 10px var(--pin-ring), 0 10px 30px rgba(0,0,0,.22);
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.marker-ring {
  position: absolute;
  inset: -8px;
  border-radius: 999px;
  border: 2px solid transparent;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .22s ease, transform .3s ease, border-color .22s ease;
  pointer-events: none;
}

.marker-wrap.is-selected .marker-core {
  transform: scale(1.16);
  box-shadow: 0 0 0 10px var(--pin-ring), 0 0 0 18px var(--pin-ring-2), 0 10px 30px rgba(0,0,0,.24);
  filter: saturate(1.18) brightness(1.06);
}

.marker-wrap.is-selected .marker-ring {
  opacity: 1;
  transform: scale(1);
  border-color: var(--color-white-95);
  animation: markerPulse .9s ease-out 1;
}

@keyframes markerPulse {
  0% { opacity: .8; transform: scale(.45); }
  75% { opacity: .16; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(1.35); }
}
