', unsafe_allow_html=True)
st.pydeck_chart(deck, use_container_width=True, height=680)
st.markdown(
"""
Legend:
Low (1–9)
Amber (10–49)
Red (≥50)
No eggs
Hex height/color = total eggs in area
""",
unsafe_allow_html=True,
)
st.markdown('
', unsafe_allow_html=True)
else:
st.info("Add lat/lon columns to traps.csv and have counts for the selected week to view the map.")
# ---------- Footer ----------
st.markdown("