.salon-map-preview {
  --map-reveal: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(250px, 32vw, 430px);
  border-radius: 12px;
  background: #e8f1fc;
}
.salon-map-preview .rotation-pictures,
.salon-map-preview img,
.salon-map-layer,
.salon-map-layer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.salon-map-preview img { object-fit: cover; }
.salon-map-layer { clip-path: inset(0 calc(100% - var(--map-reveal)) 0 0); background: #e8f1fc; }
.salon-map-layer[inert], .salon-map-preview[data-map-dragging] .salon-map-layer { pointer-events: none; }

.salon-map-divider {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  inset-block: 0;
  left: var(--map-reveal);
  border-left: 2px solid #fff;
}
.salon-map-divider span {
  position: absolute;
  pointer-events: auto;
  cursor: ew-resize;
  touch-action: pan-y;
  top: 50%;
  left: 0;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff90;
  border-radius: 50%;
  background: #0a1930e8;
  color: #fff;
  font-size: 19px;
  font-weight: 700;
}
.salon-map-preview:has(.salon-map-scrubber[aria-valuetext="Yalnızca fotoğraf"]) .salon-map-divider span { left: 21px; }
.salon-map-preview[data-map-open] .salon-map-divider span { left: -21px; }
.salon-map-preview .salon-map-scrubber {
  appearance: none;
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
.salon-map-scrubber::-webkit-slider-thumb { appearance: none; width: 42px; height: 42px; }
.salon-map-scrubber::-moz-range-thumb { width: 42px; height: 42px; }
.salon-map-preview[data-map-open] .salon-map-scrubber { pointer-events: none; }
.salon-map-preview:has(.salon-map-scrubber:focus-visible) { outline: 3px solid #2866ce; outline-offset: 3px; }
