
/* set elsewhere: leaflet- (Leaflet's script sets them) */
.ui-pindrop { position: relative; isolation: isolate; box-sizing: border-box; display: flex; flex-direction: column; height: 100%; min-height: 320px; container-type: size; overflow: hidden; background: var(--ui-subtle); color: var(--ui-fg); font: 15px/1.35 var(--ui-font); }
.ui-pindrop-in { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ui-pindrop-stage { position: relative; flex: 1; min-height: 0; outline: none; touch-action: none; -webkit-touch-callout: none; user-select: none; }
.ui-pindrop-stage:focus-visible { box-shadow: inset var(--ui-focus); }
.ui-pindrop-map { position: absolute; inset: 0; }
.ui-pindrop .leaflet-container { background: var(--ui-subtle); font: 11px/1.4 var(--ui-font); }
/* The pin's tip is the middle of the map. It takes no touches: they go to the map. */
.ui-pindrop-pin { position: absolute; left: 50%; top: 50%; z-index: 500; width: 40px; height: 52px; margin: -52px 0 0 -20px; pointer-events: none; color: var(--ui-accent); filter: drop-shadow(0 2px 3px rgb(0 0 0 / .4)); transition: transform .15s; }
.ui-pindrop-pin svg { display: block; width: 40px; height: 52px; }
.ui-pindrop-shadow { position: absolute; left: 50%; top: 50%; z-index: 499; width: 12px; height: 5px; margin: -2px 0 0 -6px; border-radius: 50%; background: rgb(0 0 0 / .4); pointer-events: none; transition: transform .15s, opacity .15s; }
.ui-pindrop[data-moving] .ui-pindrop-pin { transform: translateY(-12px); }
.ui-pindrop[data-moving] .ui-pindrop-shadow { transform: scale(.6); opacity: .6; }
.ui-pindrop-side { position: absolute; right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); z-index: 600; display: grid; gap: 6px; }
.ui-pindrop-btn {
  box-sizing: border-box; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ui-border); border-radius: var(--ui-radius-sm); background: var(--ui-surface); color: var(--ui-fg);
  font: 600 20px/1 var(--ui-font); cursor: pointer; box-shadow: var(--ui-shadow); -webkit-tap-highlight-color: transparent;
}
.ui-pindrop-btn:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-pindrop-btn:disabled { opacity: .45; cursor: default; }
.ui-pindrop-btn svg { width: 22px; height: 22px; }
.ui-pindrop-panel { flex: none; display: grid; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--ui-border); background: var(--ui-surface); }
.ui-pindrop-where { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.ui-pindrop-coords { font: 600 16px/1.3 var(--ui-mono); font-variant-numeric: tabular-nums; }
.ui-pindrop-near { color: var(--ui-muted); font-size: 13px; }
.ui-pindrop-pad { display: grid; grid-template-columns: repeat(4, 44px); justify-content: center; gap: 8px; }
.ui-pindrop-go {
  box-sizing: border-box; min-height: 48px; padding: 0 16px; border: 0; border-radius: var(--ui-radius); background: var(--ui-accent); color: var(--ui-accent-fg); font: 600 16px/1 var(--ui-font); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ui-pindrop-go:focus-visible { outline: none; box-shadow: var(--ui-focus); }
.ui-pindrop-say { margin: 0; color: var(--ui-muted); font-size: 13px; }
.ui-pindrop-say:empty { display: none; }
/* Their room is kept, so that a word here does not resize the map under the pin. */
.ui-pindrop-notes { min-height: 36px; }
.ui-pindrop-picked { margin: 0; font-size: 13px; font-weight: 600; }
/* With the room, the controls stand beside the map and leave it all its height. */
@container (min-width: 600px) {
  .ui-pindrop-in { flex-direction: row; }
  .ui-pindrop-panel { flex: 0 0 280px; align-content: start; padding: 16px; border-top: 0; border-left: 1px solid var(--ui-border); }
  .ui-pindrop-where { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .ui-pindrop-pin, .ui-pindrop-shadow { transition: none; } }

