/*
 * The shared pin picker. Mobile first: every target is 48px or more, the primary action sits above
 * the map where a thumb reaches it without scrolling, and the whole thing degrades to two working
 * methods if the map never loads.
 */
.pp-status{
  font:400 .88rem/1.45 var(--body); color:var(--ink-soft);
  background:var(--paper-warm); border:1px solid var(--rule); border-radius:3px;
  padding:.6rem .75rem; margin-bottom:.7rem;
}
.pp-status.set{ color:var(--ink) }
.pp-coord{ font-family:var(--mono); font-size:.88em; letter-spacing:.02em }
.pp-meta{ color:var(--ink-soft) }
.pp-warn{ display:block; margin-top:.35rem; color:var(--trail-deep); font-weight:500 }

.pp-locate{
  display:block; width:100%; min-height:56px; padding:.65rem 1rem;
  font:500 1rem/1.2 var(--body); color:#000;
  background:var(--trail); border:1px solid var(--trail-deep); border-radius:3px; cursor:pointer;
}
.pp-locate:hover{ background:var(--trail-deep) }
.pp-locate[disabled]{ opacity:.6; cursor:not-allowed }
.pp-locate small{ display:block; margin-top:.15rem; font:400 .75rem/1.2 var(--body); opacity:.88 }

.pp-mapwrap{ margin-top:.8rem }
.pp-map{ height:280px; border:1px solid var(--rule); border-radius:3px; background:var(--paper-deep) }
.pp-fallback{ padding:1rem; border:1px dashed var(--rule); border-radius:3px;
  background:var(--paper-warm) }
.pp-fallback p{ margin:0 0 .4rem; font:400 .86rem/1.5 var(--body); color:var(--ink-soft) }
.pp-fallback p:last-child{ margin-bottom:0; color:var(--ink) }

.pp-styles{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.5rem }
.pp-chip{
  min-height:44px; padding:.4rem .85rem; border-radius:999px; cursor:pointer;
  font:500 .8rem/1 var(--body); color:var(--ink-soft);
  background:var(--paper-warm); border:1px solid var(--rule);
}
.pp-chip.on{ background:var(--ink); border-color:var(--ink); color:var(--paper) }

.pp-paste{ display:block; margin-top:1rem }
.pp-paste-label{
  display:block; margin-bottom:.4rem;
  font:500 .78rem/1.2 var(--body); letter-spacing:.06em; text-transform:uppercase; color:var(--ink);
}
.pp-paste-row{ display:flex; gap:.5rem }
.pp-input{
  flex:1 1 auto; min-width:0; min-height:52px; padding:.7rem .75rem; box-sizing:border-box;
  /* 1rem floor: iOS Safari zooms the page on focus below 16px. */
  font:400 1rem/1.4 var(--body); color:var(--ink);
  background:var(--paper-warm); border:1px solid var(--rule); border-radius:3px;
}
.pp-input:focus{ outline:2px solid var(--trail); outline-offset:1px; border-color:var(--trail) }
.pp-set{
  flex:0 0 auto; min-height:52px; padding:0 1.15rem; cursor:pointer;
  font:500 .95rem/1 var(--body); color:var(--ink);
  background:var(--paper-warm); border:1px solid var(--rule); border-radius:3px;
}
.pp-hint{ display:block; margin-top:.4rem; font:400 .8rem/1.45 var(--body); color:var(--ink-soft) }

/*
 * This pin is DRAGGED, so its target matters more than most.
 *
 * It measured 26x26 — well under the 44px floor — on the one control an organizer moves with a
 * thumb while standing in a car park. It went unmeasured for weeks because the site-wide walk
 * happened to open the wizard on a step with no map; changing which step it opens on put the picker
 * on screen and the walk found it immediately.
 *
 * Same split as the trail map's pins: the TARGET is 44px, the drawn teardrop stays 26px, and the
 * teardrop is offset so it sits on exactly the pixel it did before. Growing the drawing instead
 * would put a marker the size of a thumb over the very spot it is meant to identify.
 */
.pp-hit{ width:44px; height:44px; position:relative }
.pp-hit>.pp-marker{ position:absolute; left:9px; top:9px }
.pp-marker{
  width:26px; height:26px; border-radius:50% 50% 50% 0; transform:rotate(-45deg);
  background:var(--trail); border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.leaflet-container{ font-family:var(--ui, system-ui, sans-serif) }
.leaflet-control-zoom a{ width:44px!important; height:44px!important; line-height:44px!important }
.leaflet-control-attribution{ font-size:.65rem }
