import 'package:latlong2/latlong.dart';

const Map<String, LatLng> kColoniasCoordinates = {
  'Zona Centro': LatLng(20.52254, -100.81153),
  'Las Arboledas': LatLng(20.51422, -100.82793),
  'San Juanico': LatLng(20.54066, -100.83831),
  'Los Olivos': LatLng(20.54621, -100.77274),
  'Rancho Seco': LatLng(20.49110, -100.81080),
  'Las Insurgentes': LatLng(20.52427, -100.79548),
  'Trojes': LatLng(20.50899, -100.77167),
};

/// Lookup case-insensitive y sin espacios extras.
LatLng kColoniaCenter(String colonia) {
  final key = colonia.trim().toLowerCase();
  for (final e in kColoniasCoordinates.entries) {
    if (e.key.toLowerCase() == key) return e.value;
  }
  return const LatLng(20.52254, -100.81153); // fallback: Zona Centro
}
