<?xml version="1.0" encoding="UTF-8"?>
<!--
  SITEMAP MAINTENANCE INSTRUCTIONS
  =================================
  When to update this file:
    - New public page added to the app routing
    - A public page is removed or redirected
    - A route's URL slug changes
    - At minimum: review before each production release

  Dynamic pages (property listings, agent profiles) cannot be enumerated here
  statically. When you have enough content, generate them from the backend:
    - Property pages: GET /api/properties?status=ready&fields=publicId,updatedAt
    - Agent pages:    GET /api/profile-cards?fields=publicId,updatedAt
  and append <url> entries programmatically (e.g. a Node script or NestJS endpoint
  that writes sitemap.xml to S3/Netlify during each deploy).

  Format for each entry:
    <loc>        — full canonical URL (always https://homido.pl/...)
    <lastmod>    — ISO 8601 date of last content change (YYYY-MM-DD)
    <changefreq> — how often crawlers should revisit (always/hourly/daily/weekly/monthly/yearly/never)
    <priority>   — 0.0–1.0, relative importance hint for crawlers
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- ===== STATIC PUBLIC ROUTES ===== -->

  <url>
    <loc>https://homido.pl/</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>weekly</changefreq>
    <priority>1.0</priority>
  </url>

  <url>
    <loc>https://homido.pl/szukaj</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>

  <url>
    <loc>https://homido.pl/szukaj/nieruchomosci/dojazd</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <url>
    <loc>https://homido.pl/agenci</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>

  <url>
    <loc>https://homido.pl/sprzedaj</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <url>
    <loc>https://homido.pl/sprzedaj/opcje</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <url>
    <loc>https://homido.pl/raport-nieruchomosci</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <url>
    <loc>https://homido.pl/blog</loc>
    <lastmod>2026-05-26</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.6</priority>
  </url>

  <!--
    TODO: generate dynamic entries for property and agent pages from the backend.
    Example entry format:

    <url>
      <loc>https://homido.pl/nieruchomosci/mieszkanie-krakow-ab3xy7z</loc>
      <lastmod>2026-05-20</lastmod>
      <changefreq>weekly</changefreq>
      <priority>0.5</priority>
    </url>

    <url>
      <loc>https://homido.pl/agent/jan-kowalski-a7k92p</loc>
      <lastmod>2026-05-20</lastmod>
      <changefreq>monthly</changefreq>
      <priority>0.5</priority>
    </url>
  -->

</urlset>
