<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
        http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

  <!-- Homepage -->
  <url>
    <loc>https://gw2homestead.com/</loc>
    <lastmod>2025-10-28</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- Browse/Gallery Page -->
  <url>
    <loc>https://gw2homestead.com/browse</loc>
    <lastmod>2025-10-28</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.9</priority>
  </url>

  <!-- Privacy Policy - Recently updated with Google requirements -->
  <url>
    <loc>https://gw2homestead.com/privacy</loc>
    <lastmod>2025-10-28</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

  <!-- Terms of Service -->
  <url>
    <loc>https://gw2homestead.com/terms</loc>
    <lastmod>2025-10-28</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>

  <!--
    Note: The following pages are excluded from the sitemap:
    - /login, /register (authentication pages, not content pages)
    - /upload (requires authentication)
    - /profile/* (requires authentication)
    - /admin/* (requires admin role)

    Dynamic design pages (/design/:id) and public user profiles (/user/:userId)
    should be added dynamically through a sitemap generation script or API endpoint
    to keep the sitemap up-to-date as new content is created.

    For dynamic sitemap generation, consider:
    1. Creating a server endpoint that queries your designs table
    2. Generating sitemap entries for each public design
    3. Setting up a cron job to regenerate the sitemap periodically
    4. Or use a sitemap index file pointing to multiple sitemaps

    Example dynamic entry:
    <url>
      <loc>https://gw2homestead.com/design/abc-123</loc>
      <lastmod>2025-10-28</lastmod>
      <changefreq>weekly</changefreq>
      <priority>0.8</priority>
      <image:image>
        <image:loc>https://storage.example.com/design-image.jpg</image:loc>
        <image:title>Amazing Homestead Design</image:title>
      </image:image>
    </url>
  -->

</urlset>
