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

  <!--
    Static fallback for community URLs. The authoritative, always-fresh
    list is generated by the `generate-sitemap?type=communities` edge
    function which queries the database on every request and includes
    Google Image sitemap entries for the first photo of each community.

    URL pattern: /community/{uuid} — matches the React Router definition
    in src/App.tsx ("/community/:id") and the canonicalUrl emitted by
    src/pages/Community.tsx. Do NOT change to /{state}/{city}/{slug};
    that route does not exist and emitting it 404s the listing in
    Google's index.

    This static file is regenerated whenever a build runs and seeds the
    sitemap until the edge-function endpoint is registered with Search
    Console. As of last build there were only a handful of active
    listings; once the live count grows past ~50 we should ping the
    edge function as the canonical source from robots.txt.
  -->

  <!-- Search & discovery hubs -->
  <url>
    <loc>https://livingtrail.com/search</loc>
    <lastmod>2026-04-23</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.95</priority>
  </url>
  <url>
    <loc>https://livingtrail.com/compare</loc>
    <lastmod>2026-04-23</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.75</priority>
  </url>
  <url>
    <loc>https://livingtrail.com/request-tour</loc>
    <lastmod>2026-04-23</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.80</priority>
  </url>

  <!-- Active community detail pages -->
  <url>
    <loc>https://livingtrail.com/community/6a708141-02b0-4398-9021-5546aa9b08a3</loc>
    <lastmod>2026-01-12</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://livingtrail.com/community/4d3b2eba-16ba-4770-aa57-dbc6cb9b0e4f</loc>
    <lastmod>2026-01-07</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>

</urlset>
