/* WhereTooEat — desktop map zoom rail (2026-10-04)
   One vertical zoom control beside the existing map controls cluster.
   Desktop >= 901px only; mobile/tablet keep the existing architecture. */
@media (min-width: 901px) {
  #mapShell .wte-zoom-rail {
    position: absolute;
    z-index: 6;
    /* ZOOMFIX 2026-10-06 (P2-1): stacked directly above the ⌂ Reset box (same column) as ONE control
       group, instead of a separate box 54px further into the map (it hid 13 markers at z8). */
    left: calc(clamp(255px, 15vw, 285px) + 36px);
    bottom: calc(clamp(100px, 12vh, 150px) + 28px + 46px + 8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 46px;
    height: 222px;
    border-radius: 14px;
    background: rgba(7, 15, 18, 0.72);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
  }
  #mapShell .wte-zoom-rail .wte-zr-btn {
    flex: 0 0 44px; /* ZOOMFIX P1-5: 44px targets */
    width: 100%;
    border: 0;
    background: transparent;
    color: #eaf1f5;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  #mapShell .wte-zoom-rail .wte-zr-btn:hover {
    background: rgba(242, 195, 90, 0.10);
    color: #ffe199;
  }
  #mapShell .wte-zoom-rail .wte-zr-btn:active { background: rgba(242, 195, 90, 0.16); }
  #mapShell .wte-zoom-rail .wte-zr-track {
    flex: 1 1 auto;
    width: 100%;
    position: relative;
    cursor: pointer;
    touch-action: none;
  }
  /* the thin guide line */
  #mapShell .wte-zoom-rail .wte-zr-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    bottom: 10px;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.16);
  }
  #mapShell .wte-zoom-rail .wte-zr-thumb {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle at 35% 30%, #ffe9b0, #f2c35a 70%);
    border: 2px solid rgba(9, 20, 28, 0.9);
    box-shadow: 0 0 0 1px rgba(242, 195, 90, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45);
    pointer-events: none;
  }
  #mapShell .wte-zoom-rail.is-dragging .wte-zr-thumb {
    box-shadow: 0 0 0 1px rgba(242, 195, 90, 0.9), 0 0 12px rgba(242, 195, 90, 0.5);
  }
}

/* ZOOMFIX 2026-10-06 (all widths): dots that sit under a photo pin are lifted into this layer,
   painted ABOVE .markers-layer (same z-index, later in the DOM) so they stay visible and tappable. */
#mapShell .spots-layer--top { z-index: 4; }

/* ZOOMFIX 2026-10-06 final ------------------------------------------------------------------------- */
/* P1-5: phone/tablet + − ⌂ ⌾ were 42x40 scaled to 0.9 (38x36). Real 44x44 targets, no scale. */
@media (max-width: 900px) {
  #mapShell .controls { transform: none !important; }
  #mapShell .controls button { width: 44px !important; height: 44px !important; }
}
/* P2-2: the floating card no longer slides under the right-hand control column (12px + 44px + 8px) */
@media (max-width: 768px) {
  #mapShell #preview.preview.show,
  #mapShell #preview.preview.show.is-sheet { left: 12px !important; right: 64px !important; }
}
/* P1-5 (desktop): the ⌂ Reset box matches the rail: 44x44 target, 46px column */
@media (min-width: 901px) {
  #mapShell .controls button { width: 44px; height: 44px; }
}
/* P2-6: visible limit state + keyboard focus on the slider */
#mapShell .controls button[aria-disabled="true"],
#mapShell .wte-zoom-rail .wte-zr-btn[aria-disabled="true"] { opacity: 0.38; cursor: default; }
#mapShell .wte-zoom-rail .wte-zr-track:focus-visible { outline: 2px solid #f2c35a; outline-offset: -4px; border-radius: 10px; }
/* P2-3: regional count bubbles are tappable (zoom into their kitchens). Only a 30px core takes the tap,
   so drags that start on the rest of a big bubble still pan the map. */
#mapShell .spot-cluster { cursor: pointer; }
#mapShell .spot-cluster::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: auto;
}
#mapShell.is-pinching .spot-cluster::after { pointer-events: none; }
#mapShell .spot-cluster:focus-visible { outline: 2px solid #f2c35a; outline-offset: 2px; }
/* P2-4: leader line from a decluttered pin back to its true point (drawn by map.js applyPinDisplacement) */
#mapShell .pin > .pin-leader {
  position: absolute; left: 50%; top: 50%; height: 2px; margin-top: -1px; transform-origin: 0 50%;
  background: rgba(242, 195, 90, 0.8); box-shadow: 0 0 2px rgba(0, 0, 0, 0.7);
  pointer-events: none; z-index: -1; border-radius: 1px;
}
#mapShell .pin > .pin-leader::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: #f2c35a; border: 1px solid rgba(0, 0, 0, 0.55);
}
#mapShell .pin > .pin-leader[hidden] { display: none; }
