/* Suggest a place: side panel on wide screens, bottom sheet on phones; a gold pin marks the spot. */
.suggest-panel { position:fixed; z-index:1250; left:14px; top:64px; width:min(330px,calc(100vw - 28px)); max-height:calc(100dvh - 120px); overflow-y:auto; padding:14px 14px 12px; background:var(--hd-surface); color:var(--hd-text); border:1px solid var(--hd-line); border-radius:9px; box-shadow:0 3px 18px #0004; font:12px/1.45 system-ui,sans-serif; }
.suggest-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.suggest-head h2 { margin:0; font:650 15px system-ui,sans-serif; }
.suggest-close { width:30px; height:30px; min-height:0; margin:-4px -4px 0 0; padding:0; border:0; border-radius:6px; background:transparent; color:var(--hd-muted); font:22px/1 system-ui,sans-serif; cursor:pointer; }
.suggest-panel .suggest-close:hover, .suggest-panel .suggest-close:focus-visible { background:var(--hd-soft); color:var(--hd-text); }
.suggest-intro { margin:6px 0 8px; color:var(--hd-muted); }
.suggest-where { margin:0 0 10px; padding:7px 9px; border-radius:6px; background:var(--hd-soft); color:var(--hd-text); }
.suggest-coords { color:var(--hd-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.suggest-field { display:grid; gap:4px; margin:0 0 10px; }
.suggest-label { font:600 12px system-ui,sans-serif; }
.suggest-optional { color:var(--hd-muted); font-weight:400; }
.suggest-hint { color:var(--hd-muted); font-size:11px; }
.suggest-field input, .suggest-field textarea { width:100%; min-height:38px; padding:8px 9px; border:1px solid var(--hd-line); border-radius:6px; background:var(--hd-surface); color:var(--hd-text); font:14px/1.4 system-ui,sans-serif; box-sizing:border-box; }
.suggest-field textarea { min-height:86px; resize:vertical; }
.suggest-field input:focus-visible, .suggest-field textarea:focus-visible { outline:2px solid var(--hd-ink); outline-offset:0; border-color:transparent; }
.suggest-trap { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.suggest-actions { display:flex; gap:8px; margin-top:4px; }
.suggest-panel .suggest-send, .suggest-panel .suggest-cancel { min-height:38px; padding:8px 14px; border-radius:7px; font:600 13px system-ui,sans-serif; cursor:pointer; }
.suggest-panel .suggest-send, .suggest-panel .suggest-send:hover { border:1px solid transparent; background:var(--hd-text); color:var(--hd-surface); }
.suggest-panel .suggest-send:hover:not(:disabled) { filter:brightness(1.12); }
.suggest-panel .suggest-send:disabled { opacity:.55; cursor:default; }
.suggest-panel .suggest-cancel { border:1px solid var(--hd-line); background:transparent; color:var(--hd-text); }
.suggest-panel .suggest-cancel:hover, .suggest-panel .suggest-cancel:focus-visible { background:var(--hd-soft); }
.suggest-status { margin:8px 0 0; min-height:1em; color:var(--hd-muted); }
.suggest-status:empty { display:none; }
.suggest-status.is-error { color:light-dark(#9b2c1f,#f0a093); }
.suggest-status.is-done { color:light-dark(#1f6b3a,#9ad7a8); font-weight:600; }
.suggest-pin span { position:absolute; left:3px; top:0; width:22px; height:22px; border:2px solid #fff; border-radius:50% 50% 50% 0; background:#d9a520; box-shadow:0 2px 6px #0007; transform:rotate(-45deg); }
.suggest-pin span::after { content:''; position:absolute; left:6px; top:6px; width:6px; height:6px; border-radius:50%; background:#fff; }
/* Photo popup buttons: gold "Suggest a place here" (the pin's colour), quiet "Original scan" beside it. */
.leaflet-popup-content .photo-popup-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:8px; margin-top:10px; white-space:nowrap; }
.leaflet-popup-content .suggest-place-link { display:inline-flex; align-items:center; gap:7px; min-height:34px; margin:0; padding:6px 14px 6px 12px; border:0; border-radius:999px; background:#d9a520; color:#1d1606; font:650 12.5px/1.2 system-ui,sans-serif; cursor:pointer; box-shadow:0 1px 2px #0005; transition:background-color .15s ease, transform .1s ease; }
.leaflet-popup-content .suggest-place-link:hover { background:#e8b935; }
.leaflet-popup-content .suggest-place-link:active { transform:translateY(1px); }
.leaflet-popup-content .suggest-place-link:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.suggest-place-pin { position:relative; flex:0 0 auto; width:10px; height:10px; margin-top:-2px; border:2px solid currentColor; border-radius:50% 50% 50% 0; transform:rotate(-45deg); }
.leaflet-container .leaflet-popup-content a.photo-popup-scan { display:inline-flex; align-items:center; min-height:34px; padding:6px 13px; border:1px solid #506459; border-radius:999px; color:#e3eee3; font:600 12.5px/1.2 system-ui,sans-serif; text-decoration:none; transition:background-color .15s ease, border-color .15s ease; }
.leaflet-container .leaflet-popup-content a.photo-popup-scan::after { content:'↗'; margin-left:5px; opacity:.7; }
.leaflet-container .leaflet-popup-content a.photo-popup-scan:hover { background:#2a4031; border-color:#6d8576; }
.leaflet-container .leaflet-popup-content a.photo-popup-scan:focus-visible { outline:2px solid #fff; outline-offset:2px; }

/* Opening and closing: the panel slides in, the pin drops onto the spot. */
.suggest-panel { transition:opacity .2s ease, transform .22s cubic-bezier(.2,.8,.2,1); }
.suggest-panel:focus { outline:none; }
.suggest-panel.is-entering { opacity:0; transform:translateX(-16px); }
.suggest-panel.is-leaving { opacity:0; transform:translateX(-10px); transition-duration:.16s; pointer-events:none; }
.suggest-pin.is-dropping span { animation:suggest-pin-drop .38s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes suggest-pin-drop { from { opacity:0; transform:translateY(-18px) rotate(-45deg); } to { opacity:1; transform:rotate(-45deg); } }
@media(max-width:540px) {
  .suggest-panel.is-entering { transform:translateY(28px); }
  .suggest-panel.is-leaving { transform:translateY(20px); }
}
@media(prefers-reduced-motion:reduce) {
  .suggest-panel { transition:none; }
  .suggest-pin.is-dropping span { animation:none; }
}
.layer-menu .suggest-open { justify-self:start; min-height:34px; padding:6px 12px; border:1px solid var(--hd-line); border-radius:7px; background:var(--hd-surface); color:var(--hd-text); font:600 12px system-ui,sans-serif; cursor:pointer; }
.layer-menu .suggest-open:hover, .layer-menu .suggest-open:focus-visible { background:var(--hd-soft); }
@media(max-width:540px) {
  .suggest-panel { left:0; right:0; top:auto; bottom:0; width:auto; max-height:62dvh; border-radius:12px 12px 0 0; padding:12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .suggest-intro { display:none; }
}
