.pz-map-compare { margin: 22px 0; }
.pz-map-compare h2 { margin-bottom: 6px; }
.pz-map-compare .pz-map-compare-note { opacity: .7; font-size: .9em; margin: 0 0 12px; }

.pz-map-compare-stage {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1c1e20;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
}
.pz-map-compare-stage.dragging { cursor: grabbing; }

.pz-map-compare-stage img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* The second image sits exactly on the first, so the clip is the only thing
   deciding what you see. Both renders share a cell grid, so they align. */
.pz-map-compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.pz-map-compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.45);
  pointer-events: none;
}
.pz-map-compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.pz-map-compare-labels {
  display: flex;
  justify-content: space-between;
  font-size: .85em;
  opacity: .75;
  margin-top: 8px;
}

/* Visible and operable: the slider is the keyboard path to the same control. */
.pz-map-compare input[type="range"] {
  width: 100%;
  margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .pz-map-compare-after { transition: none; }
}
