<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- Core marketing pages -->
  <url>
    <loc>https://gymschedule.co.uk/</loc>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>
  <!-- Pricing / plans -->
  <url>
    <loc>https://gymschedule.co.uk/plans/gym-owner</loc>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://gymschedule.co.uk/plans/trainer</loc>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://gymschedule.co.uk/plans/user</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <!-- Registration -->
  <url>
    <loc>https://gymschedule.co.uk/register/gym-owner/</loc>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- Help & FAQ -->
  <url>
    <loc>https://gymschedule.co.uk/faq</loc>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://gymschedule.co.uk/help</loc>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- Legal -->
  <url>
    <loc>https://gymschedule.co.uk/privacy</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>
  <url>
    <loc>https://gymschedule.co.uk/terms</loc>
    <changefreq>yearly</changefreq>
    <priority>0.3</priority>
  </url>

  <!--
    TODO: Dynamic public pages (trainer profiles and gym class pages) should be
    included via a backend-generated sitemap. Implement a Django management
    command or API endpoint (e.g. GET /api/sitemap/) that outputs XML for all
    active, public trainer usernames (/trainer/:username) and gym slugs
    (/gyms/:slug). Reference this as a separate sitemap via <sitemapindex> here.

    Example Django view pattern:
      from django.contrib.sitemaps import Sitemap
      class TrainerSitemap(Sitemap):
          def items(self): return Trainer.objects.filter(is_active=True, public_profile=True)
          def location(self, obj): return f'/trainer/{obj.username}'
  -->

</urlset>
