/* Map layer extracted from service-directory.css */

/* Leaflet popup styling - keep it aligned with card styling */
.leaflet-popup-content-wrapper {
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-content .visd-leaflet-card {
  min-width: 265px;
  max-width: 320px;
}

/* Leaflet popup content area should not inject extra spacing around our card */
.leaflet-popup-content {
  padding: 0;
}

/* Ensure icon alignment inside Leaflet popups (Font Awesome / inline icons) */
.leaflet-popup-content .visd-leaflet-card i {
  width: 16px;
  display: inline-block;
  text-align: center;
}

.leaflet-container a.leaflet-popup-close-button {
  width: 30px;
  height: 30px;
  line-height: 28px;
  border-radius: 999px;
  margin: 8px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15, 23, 42, 0.12);
}
.leaflet-container a {
    color: #FFF;
}

.visd-map-shell {
  position: relative;
  overflow: hidden;
}

.visd-map-state {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(2px);
}

.visd-map-state[hidden] {
  display: none !important;
}

.visd-map-state-card {
  max-width: 22rem;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.visd-map-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.visd-map-state-copy {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #475569;
}

.visd-map-spinner {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  border-radius: 9999px;
  border: 3px solid #cbd5e1;
  border-top-color: #0ea5e9;
  animation: visd-spin 0.9s linear infinite;
}

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

#visd-services-list.visd-is-busy,
#visd-load-more-wrap.visd-is-busy,
#visd-map.visd-is-busy {
  opacity: .82;
}
