document.getElementById("show-map").addEventListener("click", function () {
    const lat = document.getElementById("latitude").value;
    const lng = document.getElementById("longitude").value;
    
    if (lat && lng) {
        const mapUrl = `https://www.google.com/maps?q=${lat},${lng}&output=embed`;
        document.getElementById("google-map").src = mapUrl;
    } else {
        alert("Please enter valid coordinates.");
    }
});
