When a custom Element marker's rotation exceeds ±90°, normalize the
rotation into the upright range and apply scaleX(-1) to the inner
element. This keeps side-view icons (ships, vehicles) right-side up
regardless of heading direction.
Use a wrapper div for custom elements so MapLibre rotates the container
while the inner SVG can be independently flipped.