"""Create suppliers table with FTS5 full-text search and seed directory data."""

import re
import unicodedata


def _slugify(text):
    text = unicodedata.normalize("NFKD", text).encode("ascii", "ignore").decode()
    text = re.sub(r"[^\w\s-]", "", text.lower())
    return re.sub(r"[-\s]+", "-", text).strip("-")


_REGION = {
    "DE": "Europe", "ES": "Europe", "IT": "Europe", "FR": "Europe",
    "PT": "Europe", "GB": "Europe", "NL": "Europe", "BE": "Europe",
    "SE": "Europe", "DK": "Europe", "FI": "Europe", "NO": "Europe",
    "AT": "Europe", "SI": "Europe", "IS": "Europe", "CH": "Europe",
    "US": "North America", "CA": "North America",
    "MX": "Latin America", "BR": "Latin America", "AR": "Latin America",
    "AE": "Middle East", "SA": "Middle East", "TR": "Middle East",
    "CN": "Asia Pacific", "IN": "Asia Pacific", "SG": "Asia Pacific",
    "ID": "Asia Pacific", "TH": "Asia Pacific", "AU": "Asia Pacific",
    "ZA": "Africa", "EG": "Africa",
}

# (name, country_code, city, website, description, category, contact)
_SUPPLIERS = [
    # ---- Germany: Court Manufacturers (1.1) ----
    ("artec Sportgeräte GmbH", "DE", "Melle", "artec-sportgeraete.de",
     "30+ years sports equipment. 12mm laminated safety glass, DIN-standard statics, customizable colors. Indoor & outdoor.", "manufacturer", None),
    ("PADELWERK Court GmbH", "DE", "Dortmund", "padelwerk.de",
     "Germany's first padel court manufacturer (est. 2021). All components made in Germany. LED lighting, roofing, financing consulting.", "manufacturer", "+49 172 54 60 150"),
    ("Vindico Sport GmbH", "DE", None, "vindico-sport.de",
     "Serie B and Pano models. Carbon-steel S235JRH, 10-12mm tempered glass, 9-stage corrosion coating, WPT-standard entrances.", "manufacturer", None),
    ("Kübler Sport GmbH", "DE", "Backnang", "kuebler-sport.de",
     "Major sports supplier. CLASSIC and PANORAMA courts with steel structure, tempered glass, wire mesh, artificial turf, 8 LED elements.", "manufacturer", "info@kuebler-sport.de"),
    ("Padello GmbH", "DE", "Troisdorf", "padello.de",
     "Full-service builder with own metalworking shop. Steel construction up to 5mm adapted to regional wind loads. DIN-compliant, DEKRA-certified.", "manufacturer", None),
    ("LOB Sport", "DE", "Nuremberg", "lobsport.de",
     "40+ years in tennis equipment, now padel. Edge and Infinity models. Foundation-free option for converting sand courts. Part of BECO Bermüller group.", "manufacturer", "+49 911 64200-0"),
    ("Brako Padel GmbH", "DE", "Berlin", "brakopadel.com",
     "Padel specialist since 2013. 15-year corrosion warranty. Indoor, outdoor, panoramic, and portable courts. No-foundation portable options.", "manufacturer", None),
    ("Padel Concept", "DE", None, "padelconcept.de",
     "Production in Baltic states, serves DACH/Scandinavia/BeNeLux. Own assembly teams. Innovative mobile floor plate solution.", "manufacturer", None),
    ("Padelsportanlagenbau", "DE", None, "padelsportanlagenbau.de",
     "Manufacturer & turnkey builder, active in 18+ countries.", "manufacturer", None),

    # ---- Germany: Turnkey & Consultants (1.2) ----
    ("The Court Company", "DE", "Cologne", "courtcompany.de",
     "Germany's most experienced padel construction expert. 40+ courts in 2021. Licensed partner of AFP Courts, RedSport, adidas courts. Full service plus leasing.", "turnkey", "+49 2237 6034685"),
    ("Real Padel GmbH", "DE", "Schönebeck", "realpadel.de",
     "Premium courts and full-service club consulting. Booking systems, automation, equipment, sponsor connections. DACH broker.", "turnkey", None),
    ("Padel4U", "DE", None, "padel4u.de",
     "German distributor for Manzasport. Full range including standard, panoramic, and custom courts. ~1,000 courts/year through partnership.", "turnkey", None),
    ("Trendsport Rummenigge", "DE", None, "trendsport-rummenigge.de",
     "Turnkey solutions from concept to completion. Guidance on German funding programs (Sportstättenförderung).", "turnkey", None),
    ("PadelCity", "DE", None, "padelcity.de",
     "Germany's largest padel operator (20 facilities, 100+ courts). DTB partner. Proprietary booking app. Franchise model.", "franchise", None),
    ("padelBOX", "DE", None, "padelbox.de",
     "Major German padel operator and consultant.", "turnkey", "r.stroehl@padelbox.de"),
    ("Padel Solution", "DE", None, "padelsolution.de",
     "Supplier, planner, autonomous club solutions.", "turnkey", None),
    ("Best World Padel", "DK", None, None,
     "Official MejorSet distributor for Germany and Denmark.", "turnkey", None),

    # ---- Germany: Hall & Building Constructors (1.3) ----
    ("SMC2 Bau", "DE", None, "smc2-bau.de",
     "Textile membrane sport halls — glass court walls serve as lower facade with membrane roof above. Meets German building norms. 10-year guarantee.", "hall_builder", None),
    ("Padberg Projektbau", "DE", None, "padberg-projektbau.de",
     "Turnkey padel hall specialist. Expertise in minimum 6-7m ceiling height, glass wall statics, LED lighting. Assists with permits and grant funding.", "hall_builder", None),
    ("BORGA", "SE", None, "borga.at",
     "45+ years building steel halls. 3 standardized padel hall solutions plus custom. Sandwich panels, mezzanine floors, court layout optimization.", "hall_builder", None),

    # ---- Germany: International Manufacturers with DE Presence (1.4) — unique entries only ----
    ("Padelcreations", "ES", None, "padelcreations.com",
     "24+ courts in DACH region. 10 court models. Certified Spanish assembly teams.", "manufacturer", "+34 965 049 221"),
    ("Courtwall", "AT", "Vienna", "padelcourt.biz",
     "Building courts since 1984 (squash) and padel since 2007. 1,200+ courts worldwide. ISO-certified.", "manufacturer", None),
    ("Unix Padel", "TR", "Istanbul", "unixpadel.com",
     "7,800+ courts globally. FIP-standard, KIWA-tested. Up to 12 courts/day production. TÜV-tested components.", "manufacturer", None),
    ("The Padel Lab", "NL", None, "thepadellab.com",
     "HD Vision courts, tournament-grade panoramic, modular steel frame technology. Claims 40% reduction in construction time.", "manufacturer", None),

    # ---- Germany: Turf, Lighting, Software (1.5) — unique entries only ----
    ("BECO Bermüller", "DE", "Nuremberg", "beco-bermueller.de",
     "German synthetic turf and sports field materials. 40+ years. Parent of LOB Sport.", "turf", "+49 911 64200-0"),
    ("Polytan GmbH", "DE", None, "polytan.com",
     "Since 1969. Sports surfaces development and production. Active in padel turf across Europe.", "turf", None),
    ("Primaflor", "DE", None, "primaflor.de",
     "Artificial turf supplier for padel courts.", "turf", None),
    ("bookaball", "DE", None, "bookaball.com",
     "Booking software for racket sport clubs. Used by German market leaders. €30M+ bookings processed.", "software", None),
    ("AS LED Lighting", "DE", "Upper Bavaria", None,
     "Upper Bavaria-based LED specialist for padel.", "lighting", None),

    # ---- Spain: Court Manufacturers (2.1) ----
    ("MejorSet", "ES", "Crevillente", "mejorset.com",
     "Official court of Premier Padel & FIP. 10,000+ courts in 70+ countries. Part of LeDap group. Pioneer of panoramic design.", "manufacturer", "+34 966 374 289"),
    ("Padel Galis", "ES", "Valencia", "padelgalis.com",
     "10,000+ courts, 75+ countries. Partnership with Wilson and Fernando Belasteguín. Official WPT/Premier Padel supplier.", "manufacturer", None),
    ("Portico Sport", "ES", "Villafranca de los Barros", "porticosport.com",
     "15+ years, 35+ countries, 4,000+ courts. Only manufacturer also building sports canopies. 110,000+ sqft factory.", "manufacturer", None),
    ("Padel10", "ES", "Rubí", "padel10.com",
     "Exclusively padel since 2008. 4,500+ courts. Former WPT official supplier. 15-day production. Mondo and ACT turf systems.", "manufacturer", None),
    ("Manzasport", "ES", "Beniparrell", "manzasport.com",
     "Top-4 global builder since 2003, 4 factories in Valencia. 100% Spanish manufacturing, FIP and NIDE 2021 compliant.", "manufacturer", "+34 963 217 472"),
    ("Maxpeed", "ES", "Viladecans", "maxpeed.com",
     "Manufacturer, builder, equipment supplier.", "manufacturer", "+34 936 593 961"),
    ("AFP Courts", "ES", None, "afpcourts.com",
     "Official adidas licensee. 15+ years, 33+ exclusive distribution centers. Official PPL court. 2,150+ courts under RedSport brand.", "manufacturer", None),
    ("Jubo Padel", "ES", None, "jubopadel.com",
     "Family-owned, 25+ years, 6,000+ courts. FIP official. Comprehensive alliance partner network. Court configurator.", "manufacturer", None),
    ("Padel Courts Deluxe", "ES", "Alicante", "padelcourtsdeluxe.es",
     "100% Spanish, premium courts. Robotic welding, carbon fibre courts. Partnership with Greenset for surfaces.", "manufacturer", "info@padelcourtsdeluxe.com"),
    ("SportBS", "ES", "Extremadura", "sportbs.es",
     "100% Spanish materials. 360° service including courts, lighting, turf, software.", "manufacturer", None),
    ("Ingode Padel Courts", "ES", "Crevillente", "ingodepadel.com",
     "ISO 14001 & 9001. Galvanized steel with epoxy paint. 20+ years.", "manufacturer", None),
    ("SkyPadel", "ES", None, "skypadel.com",
     "1,500+ courts in 40+ countries. EUROCODE compliant. Featured at WPT events globally. Subsidiaries in India/Brazil/Mexico.", "manufacturer", None),
    ("PadelMagic", "ES", "Valladolid", "padelmagic.es",
     "400+ courts/year, 80% exported. FIP-certified.", "manufacturer", None),
    ("Padel Hispania", "ES", None, "padelhispania.com",
     "Federation-approved specialist in Spain and Portugal.", "manufacturer", None),
    ("VerdePadel", "ES", None, "verdepadel.com",
     "Building since 2004. 2,000+ courts, 40,000+ m² of artificial grass installed.", "manufacturer", None),
    ("J'hayber Padel", "ES", None, "jhayberinstalaciones.com",
     "Manufacturer & lighting specialist since 1972.", "manufacturer", None),
    ("PadelFan Valencia", "ES", "Alaquàs", "padelfanvalencia.com",
     "10+ years, 800+ customers. Also provides turf replacement.", "manufacturer", "+34 661 320 398"),
    ("TMPadel", "ES", "Valencia", "tmpadel.com",
     "Kiwa certified, exports to 6+ EU countries.", "manufacturer", None),
    ("Niberma", "ES", None, "niberma.es",
     "700+ courts.", "manufacturer", None),
    ("Grupo Pineda", "ES", "Griñón", "grupopineda.eu",
     "Proprietary turf & pavement.", "manufacturer", None),
    ("MR Instalaciones", "ES", "Madrid", "mrinstalaciones.es",
     "20+ years, turnkey.", "manufacturer", None),
    ("X-Treme Group", "ES", "Alcalá de Henares", "x-tremegroup.com",
     "18+ years, 6,000 m² facility.", "manufacturer", None),
    ("MTR Padel", "ES", None, "mtrpadel.com",
     "Methacrylate glass, turnkey.", "manufacturer", None),
    ("GimPadel", "ES", "León", "gimpadel.com",
     "800+ installations. Built in Netherlands, Belgium, Italy, Kuwait, Portugal, Kenya.", "manufacturer", None),
    ("EE Padel", "ES", None, "eepadel.com",
     "2021 merger of Eljoi Padel, EcoNatura, Swedish investors. Aluminum courts. Ships to US/Canada/ME.", "manufacturer", None),
    ("Greencourt", "ES", None, "greencourt.es",
     "Galvanized/aluminum/precast options.", "manufacturer", None),
    ("ExtremaAdel", "ES", "Extremadura", None,
     "Aluminum model innovation.", "manufacturer", None),
    ("Padelgest", "ES", None, None,
     "Urban/sustainability focus.", "manufacturer", None),
    ("Iberopadel", "ES", None, "iberopadel.com",
     "FEP approved, Joma/Maxpeed partner.", "manufacturer", None),
    ("Padel Alba", "ES", "Granja de Rocamora", "padelalba.com",
     "25+ years, FIP-compliant.", "manufacturer", None),
    ("Pistas-Padel.es", "ES", None, "pistas-padel.es",
     "All court types.", "manufacturer", None),

    # ---- Spain: Turf/Surface (2.2) ----
    ("Realturf", "ES", None, "realturf.com",
     "Official USPA sponsor. Drive Pro, Match Play, fibrillated lines. FEP-compliant.", "turf", None),
    ("Act Sports", "ES", None, "act.sport",
     "Global padel turf leader, 10,000+ fields.", "turf", None),
    ("Eurocesped", "ES", None, "eurocesped.com",
     "ITF parameters.", "turf", None),
    ("Allgrass", "ES", None, "allgrass.es",
     "FEP compliant.", "turf", None),
    ("Albergrass", "ES", "Pilar de la Horadada", "albergrass.com",
     "Artificial turf for padel courts.", "turf", None),

    # ---- Spain: Lighting (2.3) ----
    ("Led Projects", "ES", None, "ledprojects.es",
     "World leader in padel lighting, 5,000+ courts, WPT/Premier Padel official.", "lighting", None),
    ("Óptima LED", "ES", None, "optimaled.es",
     "ProTour padel spotlights, anti-glare.", "lighting", None),
    ("PlazaLED", "ES", "Madrid", "plazaled.es",
     "Sports LED projectors & scoreboards.", "lighting", None),
    ("Ellite LED Padel", "ES", None, "ledpadel.com",
     "30+ years R&D. 360° perimeter system. 10-year warranty. Integration with booking apps.", "lighting", None),
    ("Ledkia", "ES", None, "ledkia.com",
     "LED padel court floodlight solutions, 50W-1,250W.", "lighting", None),

    # ---- Italy (3) ----
    ("Mondo S.p.A.", "IT", "Alba", "mondoworldwide.com",
     "World's leading padel turf manufacturer. Official FIP/Premier Padel turf partner. 13,000+ courts globally.", "turf", None),
    ("Italgreen", "IT", None, "italgreen.org",
     "40+ years. Patented fiberglass structure. FIP sponsor. Iron, Full Panoramic, V-PRO courts. Own padel turf lines.", "manufacturer", None),
    ("Limonta Sport", "IT", None, "limontasport.com",
     "Premium padel turf, FEP approved, CONI partner.", "turf", None),
    ("Padel Factory SRL", "IT", "Near Rome", "padelfactorysrl.com",
     "1,000+ courts. Innovative hybrid wood-steel design. 10+ European countries.", "manufacturer", None),
    ("Padel Corporation", "IT", None, "padelcorporation.com",
     "10+ years, 20+ countries. 100% made in Italy, ITF compliant. Full turnkey.", "manufacturer", "+39 339 731 2152"),
    ("Italian Padel", "IT", None, "italianpadel.it",
     "3,000+ courts in 28 countries. Up to 180 courts/month. CE certified.", "manufacturer", "info@italianpadel.it"),
    ("Italia Team Padel", "IT", "Pesaro-Urbino", "italiateampadel.com",
     "Supplied first court at Foro Italico. Basic, Vision Pro, Full Vision models.", "manufacturer", "+39 0721 571 588"),
    ("Campidapadel.it", "IT", "Lesmo", "campidapadel.it",
     "Design, supply, installation, plus financial and marketing consultancy.", "manufacturer", None),
    ("Favaretti Padel", "IT", "Bagnoli di Sopra", "favarettipadel.it",
     "Turnkey, official Dunlop partner.", "manufacturer", None),
    ("WIP Padel", "IT", None, "wippadel.it",
     "CE marked, 40+ years in sports.", "manufacturer", None),
    ("Merli Sport", "IT", "Ravenna", "merlisport.com",
     "500+ courts, 'The Wall' showroom.", "manufacturer", None),
    ("NXPadel", "IT", None, "nxpadel.com",
     "Patented fiberglass technology.", "manufacturer", None),
    ("Edil Padel S.R.L.", "IT", None, "edilpadel.it",
     "Construction/installation, wood/steel.", "manufacturer", None),
    ("Durocem Italia", "IT", None, "durocem.it",
     "Civil works & court installation, Padel Technologies distributor.", "manufacturer", None),
    ("Top Padel Italia", "IT", None, "toppadelitalia.it",
     "Turnkey, from €15,800.", "manufacturer", None),
    ("Toro Padel", "IT", None, "toro-padel.it",
     "100+ courts since 2019, patented lighting.", "manufacturer", None),

    # ---- France (4) ----
    ("EPS Concept", "FR", "Moutiers", "eps-concept.com",
     "French manufacturer, 2,000+ courts, FFT PQP certified.", "manufacturer", "+33 2 99 96 42 61"),
    ("Padel 360", "FR", "Bischheim", "padel360.fr",
     "FFT PQP certified. Turnkey with 10-year warranty. Automated club solutions and video scoring.", "manufacturer", "+33 7 80 91 69 43"),
    ("France Padel", "FR", "Paris", "france-padel.fr",
     "Only French company 100% padel-dedicated. Premium, innovation-focused.", "manufacturer", "+33 5 35 45 55 00"),
    ("100% Padel", "FR", None, "centpourcentpadel.fr",
     "Family company managed by pro player Jérémy Scatena. French-manufactured.", "manufacturer", "+33 6 69 78 18 47"),
    ("Constructeur Padel", "FR", None, "constructeur-padel.fr",
     "10+ years, 100+ clubs. Turnkey FIP-compliant courts. French/ecological materials.", "manufacturer", "+33 1 59 30 28 24"),
    ("Le Padel Français", "FR", None, "lepadelfrancais.fr",
     "100% made in France, eco-responsible. Qualisteelcoat C5 protection. Hydro'Way permeable flooring.", "manufacturer", None),
    ("Metal Padel", "FR", "Rousset", "padel.metal-laser.com",
     "First French padel manufacturer. FFT approved. Installs in France, Sweden, UK, Mauritius.", "manufacturer", None),
    ("SMC2 Construction", "FR", "Mornant", "smc2-construction.com",
     "Covered halls specialist, wood & textile membrane. Largest athletics hall in Southern Europe.", "hall_builder", "+33 4 78 67 60 56"),
    ("Univers Construction", "FR", "Bouc-Bel-Air", "universconstruction.com",
     "French manufacturer/installer. Showcase center with 9 courts. 20+ years.", "manufacturer", "+33 6 69 02 08 09"),
    ("3S Sport Systems", "FR", "Montpellier", "sportsystems.fr",
     "3mm steel, Saint-Gobain Securit glass. 20-year structure warranty.", "manufacturer", None),
    ("WeOui Padel", "FR", "Valence", "terrain-padel.com",
     "High-end courts, FFT compliant. Custom furniture, decoration, accessories, maintenance.", "manufacturer", None),
    ("KIP Sport", "FR", None, "kipsport.fr",
     "FFT Qualisport, 30 years sports infra.", "manufacturer", None),
    ("Storkeo", "FR", None, "storkeo.com",
     "Turnkey including real estate & financing.", "turnkey", None),
    ("VW Sports Padel", "FR", "Noisy-le-Grand", "vwsports.fr",
     "Historic tennis company, now padel, French manufacturing.", "manufacturer", "+33 1 48 45 04 29"),
    ("Lauralu Industrie", "FR", None, "lauralu.com",
     "Padel court covers/halls specialist, FFT certified, 20+ years.", "hall_builder", None),
    ("ACS Production", "FR", "Near Nantes", None,
     "Court construction & coverage, 20+ years, 25-yr membrane warranty.", "manufacturer", "+33 2 40 45 94 94"),
    ("Concasport", "FR", None, None,
     "French manufacturer, custom designs.", "manufacturer", None),
    ("FieldTurf", "FR", None, "fieldturf.com",
     "25+ years synthetic turf for tennis/padel. 1,000,000+ m² installed. FIFA Preferred Producer. Part of Tarkett.", "turf", None),
    ("Losberger De Boer", "DE", None, "losbergerdeboer.com",
     "Semi-permanent modular padel structures. Aluminum/wood frames with canvas roofing.", "hall_builder", None),
    ("Infinite Padel Courts", "FR", None, "infinitepadelcourts.com",
     "Custom courts, height-adjustable, manufactured in Alicante.", "manufacturer", "infinitepadelcourts@gmail.com"),

    # ---- Portugal (5) ----
    ("inCourts Padel", "PT", "Lisbon", "incourtspadel.com",
     "Robotic manufacturing, factory in North Portugal.", "manufacturer", None),
    ("Greenpark", "PT", None, "greenpark.com.pt",
     "First Portuguese-made padel court manufacturer.", "manufacturer", None),
    ("Sports Evolution", "PT", None, "sports-evolution.pt",
     "Builder/installer, also manufactures covers.", "manufacturer", None),
    ("Sports Partner", "PT", None, "sportspartner.pt",
     "Equipment supplier, multi-sport.", "manufacturer", None),

    # ---- United Kingdom (6) ----
    ("PRO Padel Courts", "GB", None, "propadelcourts.com",
     "Times 100 Ones to Watch 2025. Italian-engineered, patented anti-noise system. 50-year lifespan. MejorSet master distributor UK.", "manufacturer", None),
    ("Padel Tech", "GB", None, "padeltech.co.uk",
     "Leading UK supplier/installer. Exclusive AFP Courts/adidas UK distributor. 150+ courts.", "turnkey", None),
    ("Hexa Padel", "GB", "Woodford Green", "hexapadel.co.uk",
     "One of UK's largest builders. Courts, canopies, booking software, maintenance, academy.", "manufacturer", None),
    ("SG Padel", "GB", None, "sgpadel.co.uk",
     "Turnkey, MejorSet distributor, SAPCA approved.", "turnkey", None),
    ("SIS Pitches", "GB", None, "sispitches.com",
     "25+ years elite sports surfaces. UK-based turf manufacturer. Design, manufacture, install, maintain. 65 years.", "turf", None),
    ("Padel Magic UK", "GB", None, "padelmagic.co.uk",
     "Proprietary Magic Base for uneven terrain. Custom covers/canopies. Nationwide.", "manufacturer", None),
    ("Padel Build UK", "GB", "North Lincolnshire", "padelbuilduk.com",
     "UK manufacturer, hot-dip galvanizing.", "manufacturer", None),
    ("Padel Systems", "GB", None, "padelsystems.co.uk",
     "Bespoke builder, partners with Italian Padel. Sister company: CopriSystems.", "manufacturer", None),
    ("Red Raven Solutions", "GB", None, "redravensolutions.co.uk",
     "Exclusive PadelCreations UK distributor, 500+ courts.", "turnkey", None),
    ("Padel Works UK", "GB", "Whitchurch", "padelworks.co.uk",
     "FIP-approved courts. 10-year warranty on court and surface.", "manufacturer", None),
    ("Padel Galis UK", "GB", "Coventry", "padelgalis.uk",
     "Exclusive UK supplier of Padel Galis.", "turnkey", "info@padelgalis.uk"),
    ("S&C Slatter", "GB", None, "slattersportsconstruction.com",
     "30+ years sports construction. Partners with FieldTurf. In-house civil engineering.", "turnkey", None),
    ("Fordingbridge", "GB", "West Sussex", "fordingbridge.co.uk",
     "UK's leading padel canopy specialist, 60+ years, 25-yr guarantee.", "hall_builder", "info@fordingbridge.co.uk"),
    ("Collinson Tensile", "GB", None, "collinsontensile.co.uk",
     "20+ years tensile buildings. Exclusive UK partner for Best-Hall Finland. ISO 9001/45001.", "hall_builder", None),
    ("Rubb UK", "GB", "Gateshead", "rubbuk.com",
     "Fabric building specialists. Thermohall insulation. Modular, relocatable.", "hall_builder", None),
    ("J & J Carter", "GB", None, "jjcarter.com",
     "Tensile sports halls, inflatable halls, frame/fabric structures.", "hall_builder", None),
    # ---- Netherlands (7) ----
    ("Allesvoorpadel", "NL", "Biddinghuizen", "allesvoorpadel.nl",
     "Leading Dutch builder, 10+ years, NK Padel official rink builder. AFP Courts partner. Philips lighting.", "manufacturer", "info@allesvoorpadel.nl"),
    ("Padel Nederland B.V.", "NL", "Monster", "padelnederland.nl",
     "Durable aluminum courts, 15-year warranty. KIWA/KNLTB certified. Solar canopy options, acoustic solutions.", "manufacturer", "info@padelnederland.nl"),
    ("I-Padel", "NL", None, "i-padel.nl",
     "Dutch manufacturer, in-house production. KIWA ISA Sport / NOC*NSF certified. 15-year warranty. Also offers Ping-Pong Padel.", "manufacturer", None),
    ("SkyPadel NL", "NL", "Zuid-Holland", "skypadel.nl",
     "1,800+ courts, Babolat official, since 2002.", "turnkey", "info@skypadel.nl"),
    ("Padel.nl", "NL", None, "padel.nl",
     "Since 2003, KNLTB/KIWA certified, proprietary foundations.", "manufacturer", None),
    ("Orange Padel International", "NL", None, "orangepadel.nl",
     "Premium Dutch-designed courts. 30 years experience. FEMEPA certification.", "manufacturer", None),
    ("Padel Solution NL", "NL", None, "padelsolution.nl",
     "3,000+ installed courts in 30+ countries. Full project support.", "turnkey", None),
    ("World Padel NL", "NL", None, "worldpadel.nl",
     "Court supplier.", "manufacturer", None),
    ("Lumosa", "NL", None, "lumosa.eu",
     "Dutch LED sports lighting manufacturer. Custom lighting plans, up to 80% energy savings.", "lighting", None),
    ("Frisomat", "BE", None, "frisomat.com",
     "Nearly 50 years steel construction. Cold-formed galvanized padel canopies/roofs. Modular, demountable.", "hall_builder", None),

    # ---- Belgium (8) ----
    ("Padel Projects", "BE", None, "padelprojects.eu",
     "Court construction, 10+ years, 3,000+ courts, patented lighting.", "manufacturer", None),
    ("JM Padel", "BE", "Province of Liège", "jmpadel.be",
     "Installer, consultant, club management, IT/video.", "turnkey", None),
    ("YoPadel SPRL", "BE", None, "yopadel.be",
     "Belgian manufacturer, Belgian materials, Lano Sports turf partner.", "manufacturer", None),
    ("Domo Sports Grass", "BE", None, None,
     "Global artificial grass expert. Certified by major sports federations.", "turf", None),

    # ---- Scandinavia (9) ----
    ("Padeltotal", "SE", None, "padeltotal.se",
     "Largest Nordic supplier. 1,600+ courts since 2013. Galvanized for Nordic conditions, 12mm glass. Duruss partnership.", "manufacturer", None),
    ("Padel Global", "SE", "Jönköping", "padel-global.com",
     "Manufacturer, own factory.", "manufacturer", None),
    ("Scandinavian Padel AB", "SE", "Malmö", "scandinavianpadel.co",
     "25+ years in steel/glass for Nordic climate. C3 oil rig grade steel. Own ScanTurf turf.", "manufacturer", "info@scandinavianpadel.co"),
    ("Sweden Padel Master", "SE", None, "swedenpadelmaster.se",
     "SPM Grass Court Cut technology.", "manufacturer", None),
    ("Acenta Group", "SE", None, "acenta.group",
     "Major Scandinavian company, courts/service/digital/equipment. Fiberglass courts expanding to AU/NZ.", "manufacturer", None),
    ("Instantpadel", "SE", None, "instantcourts.com",
     "World-unique mobile court, setup in <4 hours. 150+ courts, 17 countries. Installations at Gleneagles, Soho Club London.", "manufacturer", None),
    ("Hallgruppen", "SE", None, "hallgruppen.com",
     "Padel hall structures. Self-supporting steel frames (50-year lifespan). Rental, leasing, purchase. CE approved.", "hall_builder", None),
    ("Best-Hall", "FI", None, None,
     "5,500+ buildings worldwide. 40+ years. Fabric structures for sports halls.", "hall_builder", None),
    ("ViPadel", "DK", None, "vipadel.dk",
     "Total supplier, official Mondo dealer DK/FI.", "turnkey", None),
    ("A-Sport", "DK", None, "a-sport.dk",
     "Supplier/installer, 250+ courts.", "manufacturer", None),
    ("Tiebreak International", "DK", "Glostrup", "padeltotal.dk",
     "PadelTotal concept for Denmark, 200+ courts.", "turnkey", "info@tiebreakinternational.com"),
    ("Unisport", "FI", None, "unisport.com",
     "Court manufacturer, Saltex Tempo turf.", "manufacturer", None),

    # ---- Other European (10) — unique entries only ----
    ("DUOL", "SI", None, "duol.eu",
     "Air-supported and fabric sports buildings. Nearly 30 years. Online configurator.", "hall_builder", None),

    # ---- USA: Manufacturers & Builders (11.1) ----
    ("Absolute Padel", "US", "Mohnton, PA", "absolutepadelusa.com",
     "Only North America-based manufacturer. 100+ projects. 50%+ of US courts. Unique Pickleball & Padel combo court.", "manufacturer", "+1 717 445 5036"),
    ("The Padel Box", "US", None, "thepadelbox.com",
     "US pioneer since 2012, licensed in 15+ states. Official MejorSet US/Canada distributor. Hurricane-rated to 180 mph.", "manufacturer", "info@padelbox.com"),
    ("Sportsfield Specialties", "US", "Delhi, NY", "sportsfield.com",
     "USPA-endorsed manufacturer, 100% Made in USA, PaDelhi courts.", "manufacturer", "+1 607 746 8911"),
    ("USA Padel Center", "US", "Houston, TX", "usapadel.com",
     "Manufacturer/consultant since 2007.", "manufacturer", "+1 713 539 3110"),
    ("Padel One Courts", "US", "Florida", "padelonecourts.com",
     "Premium American-made courts. C5 anti-rust coating. Trusted by Pro Padel League and SVB Mouratoglou Academy.", "manufacturer", None),
    ("Bounce Padel Courts", "CA", None, "bouncepadelcourts.com",
     "Premier North American provider. SGCC/ANSI-certified glass. Hurricane-class anchoring. Converts tennis courts and ice rinks.", "manufacturer", None),
    ("Northeast Padel", "US", "Pocasset, MA", "northeastpadel.com",
     "Division of Cape & Island Tennis & Track, most-awarded US court builder. 50+ facility awards from ASBA.", "manufacturer", "+1 508 759 5636"),
    ("Mondo Padel US", "US", "West Palm Beach, FL", "mondopadel.com",
     "150+ years combined team experience. FL licensed. Builds from ground up or converts tennis courts.", "manufacturer", "+1 888 423 1120"),
    ("Keystone Sports Construction", "US", None, "keystonesportsconstruction.com",
     "Full-service turnkey padel from design to installation. Sportsfield Specialties partner.", "turnkey", None),
    ("MTJ Sports", "US", "Chicago", "mtjsports.com",
     "20+ years sports courts. Padel, pickleball, soccer, tennis. Turnkey for clubs, hotels, municipalities.", "turnkey", None),
    ("Capas Padel", "US", None, "capaspadel.com",
     "Builder/consultant, GreenSet surfaces, Smart Padel Club.", "turnkey", None),
    ("All Racquet Sports", "US", "Sandy, UT", "allracquetsports.com",
     "Official adidas/AFP US distributor, 700+ courts network.", "turnkey", "info@allracquetsports.com"),

    # ---- USA: Franchises & Operators (11.3) ----
    ("Conquer Padel Club", "US", "Lehi, UT", "conquerpadel.com",
     "First US padel franchise, $1.1M-$3M+ investment.", "franchise", None),
    ("Park Padel", "US", "San Francisco", "parkpadel.com",
     "Franchise, pop-up courts, community-focused.", "franchise", "hello@parkpadel.com"),
    ("Jungle Padel", "US", None, "junglepadel.com",
     "Franchise, premium Mondo turf, academy.", "franchise", None),

    # ---- USA: Turf (11.4) — unique entries only ----
    ("WinterGreen Synthetic Grass", "US", "Dallas, TX", "wintergreengrass.com",
     "Pro-grade padel turf in DFW. Padel Pro surface (same as WPT).", "turf", None),
    ("Laykold", "US", None, "laykold.com",
     "Padel Turf Pro surface. US Open official surface brand. Part of Sport Group.", "turf", None),

    # ---- USA: Lighting (11.5) ----
    ("LED Lighting Supply", "US", None, "ledlightingsupply.com",
     "15+ years, 25,000+ projects. 150W LED fixtures. Free photometric plans. 5-year warranty.", "lighting", None),
    ("Tweener USA", "US", None, "tweenerusa.com",
     "Patented LED on existing fencing — no poles needed. Minimal light pollution. Dimmable.", "lighting", None),
    ("Brite Court", "US", None, "britecourt.com",
     "40+ years racquet sports lighting. 600+ facilities. 18+ fixture designs. Samsung LEDs. 10-year warranty.", "lighting", None),
    ("AEON LED Lighting", "US", None, "aeonledlighting.com",
     "Patented luminaires. UGR below 19 (glare-free). 100,000-hour lifespan. DLC Premium listed.", "lighting", None),
    ("AGC Lighting", "CN", None, "agcled.com",
     "SP11 linear sports light for padel. Smart controls (DALI 2, DMX). Supports 4K broadcasting.", "lighting", None),

    # ---- Mexico (12) ----
    ("American Padel", "MX", "Mexico City", "americanpadel.com.mx",
     "FIP-compliant, 25 yrs metalwork.", "manufacturer", "+52 55 5891 3350"),
    ("Padel Center México", "MX", "Aguascalientes", "padelcenter.mx",
     "FIP-certified. Clásica, Semipanorámica, Pro models. 20-30 day delivery.", "manufacturer", None),
    ("MG Canchas", "MX", "Monterrey", "mgcanchas.com",
     "Pioneer manufacturer in Monterrey. Also supplies synthetic turf.", "manufacturer", None),
    ("SicaSport", "MX", None, "sicasport.com",
     "Manufacturer/builder/installer.", "manufacturer", None),
    ("Gott Padel", "MX", None, "gottpadel.com",
     "Design, installation, construction. Also sells rackets and balls.", "manufacturer", None),
    ("AFP Courts México", "MX", None, "afpcourts.mx",
     "Official adidas licensee for Mexico.", "turnkey", None),
    ("CanchasdePadel.com", "MX", None, "canchasdepadel.com",
     "FIP-certified. WPT-certified curly turf.", "manufacturer", None),
    ("Padel Works MX", "MX", None, "padelworks.com.mx",
     "High-quality custom courts. Full support from civil works to club growth.", "manufacturer", None),
    ("PadelStore.mx", "MX", None, "padelstore.mx",
     "Court accessories: fencing, nets, posts, turf, sand, LED, protective pads.", "manufacturer", None),

    # ---- Middle East (13) ----
    ("Padel Factory ME", "AE", "Dubai", "padelfactory.me",
     "Top manufacturer/supplier. Super Panoramic, Panoramic, Challenger, Portable. 400+ courts across UAE/KSA/Kuwait/Bahrain/Oman.", "manufacturer", "info@padelfactory.me"),
    ("RedLine Padel", "AE", "Dubai", "redlinepadel.com",
     "Spanish manufacturer based in Dubai. 48-hour delivery across ME. UNE EN 1090.", "manufacturer", None),
    ("Cypex Group", "AE", None, "cypex-group.com",
     "Represents Padel Factory ME. Exclusive LANO GRASS Belgium distributor for GCC.", "turnkey", None),
    ("APW Pools", "AE", "Dubai", "apw-pools.com",
     "Padel supplier/installer, smart lighting, advanced materials.", "manufacturer", "+971 50 852 1161"),
    ("Mister Shade ME", "AE", "Dubai", "mistershademe.com",
     "20+ years in flooring. Artificial turf and acrylic padel courts. All UAE emirates.", "manufacturer", None),
    ("Gebal Group", "AE", "Dubai", "gebalgroup.com",
     "Turnkey builder across GCC (6 countries). FIP-compliant.", "turnkey", None),
    ("Empower Sport Services", "AE", None, "empowersportservices.com",
     "2,500+ installations, FEP certified.", "manufacturer", None),
    ("Shades Galaxy", "AE", "Dubai", "shadesgalaxy.com",
     "Manufacturer/supplier, all UAE emirates.", "manufacturer", None),
    ("Fab Floorings", "AE", "Dubai", "fabfloorings.ae",
     "Turnkey: flooring/glass/lighting/branding.", "turnkey", None),
    ("Al Mustaqbal Alsarea", "AE", None, "almustaqbalalsarea.com",
     "Gulf countries leader.", "manufacturer", "+971 50 247 5749"),
    ("PFS Gulf", "SA", None, "pfsgulf.com",
     "Infrastructure company. Padel courts across KSA (Riyadh, Jeddah, Dammam, Mecca, Medina).", "manufacturer", None),

    # ---- Turkey (14) ----
    ("Mediterra Padel", "TR", "Antalya", "mediterrapadel.com",
     "Turkey's largest, 35+ countries. Active in Kenya, SA, Sierra Leone, Morocco, Nigeria.", "manufacturer", "info@mediterrapadel.com"),
    ("Integral Grass", "TR", "Istanbul", "integralgrass.com",
     "11 models, 70+ countries.", "manufacturer", "info@integralgrass.com"),

    # ---- China (15) ----
    ("Legend Sports", "CN", "Yanshan", "legendsports.com",
     "One of China's largest. 220+ employees, 32 engineers. 5,000+ courts in 60+ countries. 66,000 m² factory.", "manufacturer", None),
    ("Fortune Padel", "CN", None, "fortunepadel.com",
     "ISO 9001:2015. 20+ models including electric roof. Ships to 50+ countries within 20 days.", "manufacturer", None),
    ("China Youngman Padel", "CN", "Hefei", "youngpadel.com",
     "China's largest since 2010. SGS, CE, ISO9001. 8 models. Also produces roof covers.", "manufacturer", None),
    ("Wanhe Padel", "CN", "Huaian", "wanhesport.com",
     "Follows FIP regulations. Courts, 12mm turf, LED lighting. Also padel rackets.", "manufacturer", None),
    ("Shengshi Sports Tech", "CN", "Tianjin", None,
     "20+ years sports equipment. 10,000+ m² facility near Tianjin port.", "manufacturer", None),
    ("PadelCourt10", "CN", "Hebei", "padelcourt10.com",
     "1,000 sets/year capacity. 25+ countries. 5-year warranty. DDU door-to-door service.", "manufacturer", None),
    ("Shanghai Super Power", "CN", "Shanghai", "padelcourtfactory.cn",
     "200+ employees. 350 courts/month capacity. Aluminum frames for coastal regions.", "manufacturer", None),
    ("UNIPADEL", "CN", "Guangzhou", "gzunipadel.com",
     "5,000+ courts worldwide. Panoramic, classic, portable, roofed. Active in Indonesia, ME, Africa, LATAM.", "manufacturer", None),
    ("ArtPadel", "CN", None, "artpadel.com",
     "Panoramic/classic courts, patented technology.", "manufacturer", None),
    ("LDK China", "CN", "Shenzhen", "ldkchina.com",
     "Manufacturer/exporter.", "manufacturer", "info@ldkchina.com"),
    ("SANJING Group", "CN", "Linqu", "sanjingcourt.com",
     "Glass specialist, 27 years, 300+ employees, 40+ countries.", "manufacturer", None),
    ("Luckin Padel", "CN", None, "luckinpadel.com",
     "FIP-certified standards, educational focus.", "manufacturer", None),
    ("Saintyol Sports", "CN", None, None,
     "15+ years. Specializes in padel turf and structures. 10,000+ m² facility.", "manufacturer", None),
    ("Nanjing Padelworker", "CN", "Nanjing", None,
     "67% client reorder rate. Courts, squash equipment, glass fittings, turf.", "manufacturer", None),
    ("Hebei Aohe Teaching Equipment", "CN", "Hebei", None,
     "Est. 2012. 80% repeat business. Also aluminum frame sports tents.", "manufacturer", None),
    ("Shandong Century Star", "CN", "Shandong", None,
     "Large facility. Steel structure courts, panoramic models.", "manufacturer", None),
    ("CCGrass", "CN", None, "ccgrass.com",
     "Three factories. FEP-compliant. FastPro and YEII products. Also complete court packages.", "turf", None),
    ("JCTurf", "CN", None, "jcturf.com",
     "In-house fiber extrusion. FIP/FEP compliant. Also complete court solutions.", "turf", None),
    ("MightyGrass", "CN", None, "mightygrass.com",
     "Professional padel turf, FEP-level. Factory direct pricing.", "turf", None),

    # ---- India (16) ----
    ("Asian Flooring India", "IN", "Mumbai", "afipadel.com",
     "India's largest padel manufacturer. FIP-standard. Standard, Panoramic, Ultra Panoramic, Kids. 25-day delivery.", "manufacturer", None),
    ("Apex Sport Surfaces", "IN", "Mumbai", "apexsportsurfaces.in",
     "FIP-compliant manufacturer/exporter.", "manufacturer", None),
    ("Sky Padel India", "IN", "Mumbai", "skypadel.in",
     "Local manufacturing, subsidiary of Spanish Sky Padel.", "manufacturer", None),
    ("PFS Sport India", "IN", None, "pfs.sport",
     "Turf & surface manufacturer.", "turf", None),
    ("PadelHaus India", "IN", None, "padelhaus.in",
     "Courts for every budget.", "manufacturer", None),

    # ---- Asia Other (17) ----
    ("SmartPadel", "SG", None, "smartpadel.asia",
     "Regional leader in SE Asia. Video recording, automated scoring. Part of SEARA Sports.", "manufacturer", None),
    ("Olympia Courts", "AU", None, "olympiacourts.com",
     "Premium courts. European know-how, Asian manufacturing. Partners with Asia Pacific Padel Tour.", "manufacturer", None),
    ("Indo Padel", "ID", "Bali", "indopadel.com",
     "Spanish-Indonesian team. Courts manufactured in Indonesia. Active in Thailand, India.", "manufacturer", None),
    ("Padel Asia", "TH", "Bangkok", "padelasia.org",
     "Courts meeting international standards. Also sells rackets, clothing. Operates courts in Bangkok.", "manufacturer", None),

    # ---- Brazil (18.1) ----
    ("Padel Master Brasil", "BR", None, "padelmaster.com.br",
     "1,500+ courts in 10+ countries. Official Pala Tour/WPT Americas court. 10-year warranty.", "manufacturer", None),
    ("Sky Padel Brasil", "BR", None, "skypadel.com.br",
     "10+ years. FEP/FIP certified. VP PRO 2.0, SP PRO, Full View, rental, mobile. 15-day production.", "manufacturer", None),
    ("Smart Padel BR", "BR", None, "smart-padel.com",
     "IoT-connected courts. Online monitoring, strategic management software. FIP/FEP certified.", "manufacturer", None),
    ("Flores Pádel", "BR", None, "florespadel.com.br",
     "Community-based manufacturer. 10+ years. Turf certified by Spanish federation. Founded by national team athletes.", "manufacturer", None),
    ("FC Quadras", "BR", "São Paulo", "fcquadras.com.br",
     "Distributes Padelgest courts. Turnkey from terrain prep to finishing.", "turnkey", None),
    ("Padel Prime", "BR", None, "padelprime.com.br",
     "European-standard manufacturing. Co-founded by ex-footballer Edmílson.", "manufacturer", None),
    ("F4 Quadras", "BR", None, None,
     "Manufacturer/installer.", "manufacturer", None),

    # ---- Argentina (18.2) ----
    ("Padel Courts Master", "AR", None, "padelcourtsmaster.ar",
     "1,500+ courts delivered worldwide, 8+ countries. Robotic welding. FIP-standard.", "manufacturer", None),
    ("MS Pádel", "AR", None, "metalurgicametalser.com",
     "Professional panoramic courts. Full package: structure, glass, LED, turf.", "manufacturer", "+54 2314 407746"),
    ("World Padel Court", "AR", None, "worldpadelcourt.com.ar",
     "Led by Visión Deportiva. Top-quality courts. Portable court rental.", "manufacturer", None),
    ("Blue Court", "AR", None, "bluecourt.com.ar",
     "15+ years manufacturing. Established Argentine brand.", "manufacturer", None),
    ("Slavon Césped Sintético", "AR", None, "slavoncespedsintetico.com",
     "Panoramic and full panoramic courts. Also provides synthetic turf.", "manufacturer", None),

    # ---- Africa (19) ----
    ("Padel Nation", "ZA", None, "padelnation.co.za",
     "SA's leading manufacturer. 150+ courts. Local hot-dip galvanized manufacturing. 4-week lead times. Up to 10-year warranty.", "manufacturer", None),
    ("Padel Build SA", "ZA", None, "padelbuild.co.za",
     "Premier turnkey builder. Partnered with Spain's Padel Galis. First FlexiPadel Base in Africa.", "turnkey", None),
    ("Techno Padel", "ZA", None, "technopadel.co.za",
     "Premier supplier/installer. 5-7 day installation.", "manufacturer", None),
    ("Padel Solutions SA", "ZA", None, "padelsolutions.co.za",
     "Proudly SA. Design, manufacture, install. Turnkey.", "manufacturer", None),
    ("Padel Quip", "ZA", None, "padelquip.co.za",
     "Local manufacturer. Basic to Premium Plus models. Partnership and financial assistance.", "manufacturer", None),
    ("Padel Projects SA", "ZA", None, "padelprojects.co.za",
     "Designed for local conditions.", "manufacturer", None),
    ("Trompie Sport", "ZA", None, "trompiesport.co.za",
     "Builder, imported & local courts.", "manufacturer", None),
    ("Belgotex Sport", "ZA", "Pietermaritzburg", "belgotexsport.co.za",
     "SA-based turf manufacturer. UNE 147301:2018 compliant. 220+ installations.", "turf", None),
    ("Africa Padel", "ZA", None, "africapadel.com",
     "Largest club group in Africa. 21+ clubs across SA. Founded 2021. Events, corporate leagues.", "franchise", None),
    ("Technotrade Sports", "EG", None, "technotradesports.com",
     "Contractor, one of the best in Arab world.", "manufacturer", None),
    ("Turkan Company", "EG", None, "turkan-eg.com",
     "Manufacturer, one of first in Egypt.", "manufacturer", None),

    # ---- Australia & Oceania (20) ----
    ("APT Asia Pacific", "AU", "Melbourne", "aptasiapacific.com.au",
     "Asia Pacific's largest sports surfaces company. Australian-made turf. Aluminium 6061-T6 frames. AS/NZS certified. Pop-up courts.", "manufacturer", None),
    ("Synthetic Padel Courts", "AU", None, "syntheticpadelcourts.com.au",
     "Built the first padel court in Australia. Preferred installer for Indoor Padel Australia, Sydney Racquet Club.", "turnkey", None),
    ("Padel in One Australia", "AU", None, "padelinone.com.au",
     "Turnkey specialist. 8+ years. Management, marketing, operations consulting.", "turnkey", None),
    ("PadelVolt", "AU", None, "padelvolt.com",
     "End-to-end premium service. MejorSet distributor across Oceania and Pacific Islands. Extreme weather designs.", "manufacturer", None),
    ("Padel 360 Australia", "AU", None, "padel360.com.au",
     "Developer/builder/manager, Gimpadel partner.", "turnkey", None),
    ("AS Lodge Tennis Courts", "AU", "Melbourne", "asltenniscourts.com.au",
     "Builder, $90K-$130K per court.", "manufacturer", None),
    ("All Sport Projects", "AU", None, "allsportprojects.com.au",
     "Non-rust aluminum courts, 7-15 yr warranties.", "manufacturer", None),
    # ---- Software & Technology (21) ----
    ("Playtomic", "ES", "Madrid", "playtomic.com",
     "World's largest racket sports platform. 6,700+ clubs, 4M+ players, 52+ countries. €56M raised.", "software", None),
    ("MATCHi", "SE", None, "tpcmatchpoint.com",
     "1,600+ venues. Multi-sport booking, memberships, leagues, coaching.", "software", None),
    ("Padel Mates", "NL", None, None,
     "All-in-one platform. Won Rocket Padel (Europe's largest indoor chain). Gamification features.", "software", None),
    ("SmashClub", "NL", None, "smashclub.cloud",
     "Padel CRM and club management. Integrates with Playtomic, MATCHi, Padel Mates.", "software", None),
    ("Taykus", "ES", None, None,
     "Software specifically for padel clubs. Online booking, payment, communication automation.", "software", None),
    ("Playbypoint", "US", None, "playbypoint.com",
     "Official tech partner of 2025 US Open Padel. Custom branded app per club.", "software", None),
    ("CourtReserve", "US", None, None,
     "Leading US booking platform alongside Playbypoint and Playtomic.", "software", None),
    ("360Player", "IS", None, "en-us.360player.com",
     "Club management with website builder, video analysis, player development tools.", "software", None),
    ("Booklux", "EE", None, "booklux.com",
     "Customizable booking system. Stripe payments. Google Analytics integration.", "software", None),
    ("SetTime", "US", None, "settime.io",
     "Free padel booking software. Google/Apple Calendar sync. Analytics for utilization.", "software", None),
    ("ProPadelKit", "GB", None, "propadelkit.com",
     "Turnkey court solutions, Classic & Fusion models.", "manufacturer", None),
]


def up(conn):
    # Table, indexes, FTS, and triggers are created by schema.sql (IF NOT EXISTS).
    # This migration only needs to seed data.
    row = conn.execute("SELECT COUNT(*) FROM suppliers").fetchone()
    if row[0] > 0:
        return

    # Seed suppliers
    seen_slugs = set()
    for name, cc, city, website, desc, cat, contact in _SUPPLIERS:
        slug = _slugify(name)
        if slug in seen_slugs:
            i = 2
            while f"{slug}-{i}" in seen_slugs:
                i += 1
            slug = f"{slug}-{i}"
        seen_slugs.add(slug)

        region = _REGION.get(cc, "Other")
        conn.execute(
            "INSERT INTO suppliers"
            " (name, slug, country_code, city, region, website, description, category, contact)"
            " VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)",
            (name, slug, cc, city, region, website, desc, cat, contact),
        )
