<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <!-- 
    CertiNutra Sitemap Index
    This index references all individual sitemaps for the site.
    Static sitemaps are served from the public folder.
    Dynamic sitemaps are generated by the dynamic-sitemap edge function.
    
    Last updated: 2026-01-23
  -->
  
  <!-- Static pages sitemap (served from public folder) -->
  <sitemap>
    <loc>https://certinutra.it/sitemap-static.xml</loc>
    <lastmod>2026-01-23</lastmod>
  </sitemap>
  
  <!-- City landing pages sitemap (served from public folder) -->
  <sitemap>
    <loc>https://certinutra.it/sitemap-cities.xml</loc>
    <lastmod>2026-01-23</lastmod>
  </sitemap>
  
  <!-- Dynamic tenant pages sitemap (served by edge function) -->
  <sitemap>
    <loc>https://zlzwqpxarcnxxmjesgfx.supabase.co/functions/v1/dynamic-sitemap?type=tenants</loc>
    <lastmod>2026-01-23</lastmod>
  </sitemap>
  
  <!-- 
    Additional sitemaps can be added here as the site grows:
    - sitemap-posts-1.xml, sitemap-posts-2.xml (for blog posts when added)
    - sitemap-products-1.xml (for products when added)
    - Paginated sitemaps: ?type=tenants&page=2, etc.
    
    The edge function supports these query parameters:
    - type=index    : Returns a complete sitemap index generated dynamically
    - type=static   : Returns static pages sitemap
    - type=cities   : Returns city pages sitemap
    - type=tenants  : Returns tenant pages sitemap (supports &page=N for pagination)
    - type=combined : Returns all URLs in a single sitemap (backwards compatible)
  -->
</sitemapindex>
