// src/app/ui/shared/components/map/map.component.scss

.map-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);

  .map {
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;

    .spinner {
      width: 40px;
      height: 40px;
      border: 4px solid #f3f4f6;
      border-top-color: #6366f1;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    p {
      margin-top: 16px;
      color: #6b7280;
      font-size: 14px;
    }
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

// Styles globaux pour les popups Leaflet
:host ::ng-deep {
  .leaflet-popup-content {
    .map-popup {
      strong {
        display: block;
        margin-bottom: 4px;
        color: #111827;
        font-size: 14px;
      }

      p {
        margin: 0;
        color: #6b7280;
        font-size: 12px;
      }
    }
  }

  .leaflet-container {
    font-family: inherit;
  }
}
