<?xml version="1.0" encoding="UTF-8"?>
<!--
  Rotas publicas estaticas da SPA. Referenciadas pelo sitemap.xml (sitemapindex).

  Convencoes de URL (vide app.js linhas ~1218-1235):
    /                           home
    /index.html?c=<slug>        home filtrada por categoria (top-tab/scope)
    /category/<slug>            apelido com rewrite Vercel para /index.html?c=<slug>
    /produto/<slug>             apelido com rewrite Vercel para /index.html?p=<slug>
    /index.html?p=<slug>        produto (gerado dinamicamente em sitemap-products.xml)
    /index.html?vaga=<id>       vaga (id, nao indexamos por enquanto)
    /index.html?sv=<id>         servico (id, nao indexamos por enquanto)
    /index.html?page=<route>    paginas estaticas e privadas

  Privadas (login, perfil, meus-pedidos, etc.) ficam em robots.txt como Disallow.
  NAO incluir aqui: ?page=login, register, forgot-password, password-reset,
  profile, my-products, my-orders, my-coupons, my-service-requests, favorites,
  cart, checkout-success, checkout-cancel, new-product, edit-product, chat.

  IMPORTANTE: protocolo sitemap exige URLs ABSOLUTAS em <loc> (ver
  https://www.sitemaps.org/protocol.html). Caminhos relativos quebram a
  validacao no Search Console com erro "URL invalido".
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <!-- Home -->
  <url>
    <loc>https://www.compravenda.com.br/</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>

  <!-- Top-level scopes (categorias raiz com landing dedicada) -->
  <url>
    <loc>https://www.compravenda.com.br/category/imoveis</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/category/autos</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/category/vaga-emprego</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/category/busca-emprego</loc>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- Listagens publicas -->
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=services</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=coupons</loc>
    <changefreq>daily</changefreq>
    <priority>0.7</priority>
  </url>

  <!-- Onboarding de vendedor -->
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=become-seller</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <!-- Mapa do site (humano) -->
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=sitemap</loc>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>

  <!-- Institucional -->
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=about</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=terms</loc>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=privacy</loc>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=help</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=how-to-buy</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=how-to-sell</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=contact</loc>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
  </url>
  <url>
    <loc>https://www.compravenda.com.br/index.html?page=social</loc>
    <changefreq>monthly</changefreq>
    <priority>0.3</priority>
  </url>
</urlset>
