<?xml version="1.0" encoding="UTF-8"?>
<!--
  ╔══════════════════════════════════════════════════════════════════════════════╗
  ║  RENTAL MX — sitemap.xml                                                    ║
  ║  Dominio: https://www.rentalmx.com                                          ║
  ║  Generado: 2026-03-30                                                        ║
  ║                                                                              ║
  ║  INSTRUCCIONES DE MANTENIMIENTO:                                             ║
  ║  • Las URLs /properties/:id deben generarse DINÁMICAMENTE desde tu API.     ║
  ║    En producción, reemplaza este bloque con un endpoint serverless           ║
  ║    (ej. AWS Lambda + CloudFront) que lea las propiedades activas de Aurora   ║
  ║    y devuelva el sitemap XML actualizado en tiempo real.                     ║
  ║  • Sube este archivo a la raíz de tu bucket S3 / CloudFront: /sitemap.xml   ║
  ║  • Registra la URL del sitemap en Google Search Console.                    ║
  ╚══════════════════════════════════════════════════════════════════════════════╝
-->
<urlset
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">

  <!-- ═══════════════════════════════════════════════════════════════
       PÁGINAS ESTÁTICAS PÚBLICAS
       Prioridad alta — Google las debe indexar primero.
       ═══════════════════════════════════════════════════════════════ -->

  <!-- Homepage — máxima prioridad, cambia con frecuencia (featured listings) -->
  <url>
    <loc>https://www.rentalmx.com/</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <!-- Señal de idioma para Google: contenido en español de México -->
    <xhtml:link
      rel="alternate"
      hreflang="es-MX"
      href="https://www.rentalmx.com/" />
  </url>

  <!-- Listado de propiedades — alta rotación, alta prioridad de crawl -->
  <url>
    <loc>https://www.rentalmx.com/properties</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.95</priority>
    <xhtml:link
      rel="alternate"
      hreflang="es-MX"
      href="https://www.rentalmx.com/properties" />
  </url>

  <!-- ═══════════════════════════════════════════════════════════════
       PÁGINAS DE DETALLE — PROPIEDADES INDIVIDUALES
       
       ⚠️  IMPORTANTE PARA PRODUCCIÓN:
       Este bloque debe generarse DINÁMICAMENTE. Ejemplo con Lambda:

         SELECT id, updated_at FROM properties
         WHERE status = 'available'
         ORDER BY updated_at DESC;

       Cada propiedad disponible se convierte en una <url> aquí.
       Las propiedades con status='rented' o 'pending' deben EXCLUIRSE
       del sitemap para evitar indexar páginas de baja conversión.
       ═══════════════════════════════════════════════════════════════ -->

  <url>
    <loc>https://www.rentalmx.com/properties/1</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/2</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/3</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/4</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/5</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/6</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/7</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/8</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/9</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/properties/10</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.85</priority>
  </url>

  <!-- ═══════════════════════════════════════════════════════════════
       PÁGINAS DE ATERRIZAJE POR COLONIA / TIPO (RECOMENDADAS)
       
       Estas URLs NO existen aún en tu app pero son CRÍTICAS para SEO.
       Las búsquedas locales como "departamentos en renta Polanco" tienen
       alto volumen en México. Crear rutas estáticas para estas páginas
       (ej. /propiedades/ciudad-de-mexico/polanco/departamentos)
       con contenido propio y meta tags únicos puede posicionarte para
       keywords de cola larga de alto valor comercial.
       
       Descomenta y activa cuando implementes esas rutas:

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/polanco/departamentos</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/condesa/lofts</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/roma-norte/departamentos</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/santa-fe/penthouses</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/coyoacan/casas</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>

  <url>
    <loc>https://www.rentalmx.com/propiedades/ciudad-de-mexico/del-valle/departamentos</loc>
    <lastmod>2026-03-30</lastmod>
    <changefreq>daily</changefreq>
    <priority>0.80</priority>
  </url>
  ═══════════════════════════════════════════════════════════════ -->

</urlset>
