import Foundation
import CoreLocation

struct MapAirport: Codable, Identifiable, Hashable, Sendable {
    let iata: String
    let name: String
    let country: String
    let region: String  // ISO region e.g. "US-TX"
    let lat: Double
    let lng: Double

    var id: String { iata }

    var coordinate: CLLocationCoordinate2D {
        CLLocationCoordinate2D(latitude: lat, longitude: lng)
    }
}
