    <script>
    function hhmCopyShareUrl(url, btnElement) {
        if (!navigator.clipboard) {
            // Fallback for older browsers
            const input = document.createElement('textarea');
            input.value = url;
            document.body.appendChild(input);
            input.select();
            document.execCommand('copy');
            document.body.removeChild(input);
            hhmShowCopyFeedback(btnElement);
            return;
        }
        navigator.clipboard.writeText(url).then(function() {
            hhmShowCopyFeedback(btnElement);
        }).catch(function(err) {
            console.error('Could not copy text: ', err);
        });
    }

    function hhmShowCopyFeedback(btnElement) {
        const textSpan = btnElement.querySelector('.btn-text');
        const originalText = textSpan ? textSpan.innerText : '';
        const isEs = document.documentElement.lang === 'es';
        if (textSpan) {
            textSpan.innerText = isEs ? '¡Copiado! ✓' : 'Copied! ✓';
        }
        btnElement.classList.add('border-emerald-500', 'text-emerald-400', 'bg-emerald-950/30');

        // Show global floating toast
        hhmShowToast(isEs ? '✓ Enlace copiado al portapapeles' : '✓ Link copied to clipboard');

        setTimeout(function() {
            if (textSpan) textSpan.innerText = originalText;
            btnElement.classList.remove('border-emerald-500', 'text-emerald-400', 'bg-emerald-950/30');
        }, 2200);
    }

    function hhmNativeShare(url, title, text) {
        if (navigator.share) {
            navigator.share({
                title: title,
                text: text,
                url: url
            }).catch(function(err) {
                if (err.name !== 'AbortError') console.log('Share error:', err);
            });
        }
    }

    function hhmShowToast(message) {
        let toast = document.getElementById('hhm-share-toast');
        if (!toast) {
            toast = document.createElement('div');
            toast.id = 'hhm-share-toast';
            toast.className = 'fixed bottom-6 right-6 z-50 px-4 py-2.5 rounded-xl bg-slate-900/95 border border-emerald-500/60 text-emerald-300 text-xs font-semibold shadow-2xl backdrop-blur-md transform transition-all duration-300 translate-y-12 opacity-0 flex items-center gap-2';
            document.body.appendChild(toast);
        }
        toast.innerHTML = `<span class="w-2 h-2 rounded-full bg-emerald-400 animate-pulse"></span><span>${message}</span>`;
        toast.classList.remove('translate-y-12', 'opacity-0');
        toast.classList.add('translate-y-0', 'opacity-100');

        setTimeout(function() {
            toast.classList.remove('translate-y-0', 'opacity-100');
            toast.classList.add('translate-y-12', 'opacity-0');
        }, 2500);
    }

    // Auto-detect if browser supports native share and show button
    document.addEventListener('DOMContentLoaded', function() {
        if (navigator.share) {
            document.querySelectorAll('.hhm-native-share-btn').forEach(function(el) {
                el.classList.remove('hidden');
            });
        }
    });
    </script>
    BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Healthy Homes Magazine//Events Calendar//EN
BEGIN:VEVENT
UID:899675ec34c6cb62920aae80144ab3ef@healthyhomesmagazine.com
DTSTAMP:20261028T031753Z
DTSTART:20270125T100000
DTEND:20270127T180000
SUMMARY:AHR Expo 2027: The World’s Largest HVACR Marketplace
DESCRIPTION:Explore over 1\,800 exhibitors showcasing cutting-edge ERV/HRV energy recovery ventilators\, medical-grade HEPA purification\, and BACnet/HomeKit building automation systems.
LOCATION:McCormick Place\, Chicago\, IL
URL:https://healthyhomesmagazine.com/eventos.php?id=3
END:VEVENT
END:VCALENDAR
