/* Community popup (Google Preferred Sources + Google Maps) */
/* White-out layer behind the popup */
.engage-backdrop {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}
.engage-backdrop.show { opacity: 0.45; visibility: visible; }

.engage-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(380px, calc(100% - 2.5rem));
    background: #ffffff;
    color: #1e293b;
    border-radius: 12px;
    border-top: 5px solid #facc15;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    padding: 1.4rem 1.3rem 1.2rem;
    z-index: 100000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -46%) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.engage-popup.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.engage-popup h2 { font-size: 1.1rem; color: #14532d; margin: 0 1.5rem 0.5rem 0; }
.engage-popup p { font-size: 0.92rem; line-height: 1.5; color: #475569; margin: 0 0 1rem; }
.engage-close {
    position: absolute; top: 0.5rem; right: 0.75rem;
    background: none; border: none; font-size: 1.6rem; line-height: 1;
    color: #64748b; cursor: pointer;
}
.engage-close:hover { color: #14532d; }
.engage-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.engage-btn {
    display: block; text-align: center; text-decoration: none;
    font-weight: 600; font-size: 0.92rem; padding: 0.7rem 1rem; border-radius: 8px;
    transition: filter 0.2s ease;
}
.engage-btn:hover { filter: brightness(1.08); }
.engage-pref { background: #14532d; color: #ffffff; }
.engage-maps { background: #facc15; color: #14532d; }
.engage-btn:focus-visible, .engage-close:focus-visible { outline: 3px solid #1e3a8a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .engage-popup, .engage-backdrop { transition: none; } }
@media print { .engage-popup, .engage-backdrop { display: none !important; } }
