/**
 * Rabino Move - Mobile Leaflet Map Guard
 * Evita che le mappe Leaflet di Salient blocchino lo scroll su mobile.
 */

@media (max-width: 768px) {
  .rb-mobile-map-guard {
    position: relative !important;
  }

  .rb-mobile-map-guard:not(.is-active) .nectar-leaflet-map,
  .rb-mobile-map-guard:not(.is-active) .leaflet-container,
  .rb-mobile-map-guard:not(.is-active) .leaflet-pane,
  .rb-mobile-map-guard:not(.is-active) .leaflet-control-container {
    pointer-events: none !important;
  }

  .rb-mobile-map-guard__overlay {
    position: absolute;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.08);
    cursor: pointer;
    text-align: center;
  }

  .rb-mobile-map-guard.is-active .rb-mobile-map-guard__overlay {
    display: none;
  }

  .rb-mobile-map-guard__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }
}