/* Map + tracing styles, shared by / and /field. Uses the page's CSS variables. */
.mapbox { position: relative; }
#map { height: clamp(340px, 62vh, 560px); border-radius: 10px; background: #dfe7ee; cursor: crosshair; }
.area-pill { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 500; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; padding: 7px 16px; border-radius: 999px; font-size: 15px; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.trace-tools { display: flex; gap: 8px; margin-top: 8px; }
.tool { flex: 1; font: inherit; font-size: 14px; font-weight: 600; padding: 11px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); cursor: pointer; }
.tool:disabled { opacity: .45; cursor: default; }
/* corner dot: small to see, big to grab (36px touch target) */
.pt-hit { width: 36px; height: 36px; display: grid; place-items: center; }
.pt-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.leaflet-marker-dragging .pt-icon, .pt-hit:active .pt-icon { transform: scale(1.35); }
.edge-len { background: rgba(9,18,27,.82); color: #fff; font: 700 12px/1 var(--font); padding: 4px 6px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; pointer-events: none; }
.map-full-btn { position: absolute; top: 10px; right: 10px; z-index: 600; font: 600 13px var(--font); background: #fff; color: var(--brand); border: 0; border-radius: 8px; padding: 8px 10px; box-shadow: 0 1px 5px rgba(0,0,0,.4); cursor: pointer; }
.map-done { display: none; }
/* full-screen tracing */
.mapbox.full { position: fixed; inset: 0; z-index: 2000; background: #000; }
.mapbox.full #map { height: 100%; border-radius: 0; }
.mapbox.full .area-pill { bottom: 84px; }
.mapbox.full .map-done { display: block; position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 600; width: auto; }
.mapbox.full .map-tools-full { display: flex; }
.map-tools-full { display: none; position: absolute; top: 10px; left: 56px; z-index: 600; gap: 6px; }
.map-tools-full .tool { flex: none; padding: 8px 12px; box-shadow: 0 1px 5px rgba(0,0,0,.4); border: 0; }
body.no-scroll { overflow: hidden; }
