/* Mobile Safari Touch Fix - Extracted from inline styles */
/* Minimal iOS scroll fix - don't break scrolling! */
body {
    -webkit-overflow-scrolling: touch;
}

/* Prevent bouncing on all touch interactions */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Prevent bouncing and improve touch responsiveness on Safari */
.leaflet-popup-content {
    -webkit-overflow-scrolling: touch;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.leaflet-popup .action-btn {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    display: block !important;
    padding: 12px 16px !important;
    margin: 4px 0 !important;
    min-height: 44px !important; /* iOS recommended touch target */
    line-height: 1.2 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
}

.leaflet-popup .action-btn:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s !important;
}

/* Prevent page scroll when interacting with popup */
.leaflet-popup-pane {
    touch-action: none;
}