<?xml version="1.0" encoding="UTF-8"?>
<!--
  Static sitemap — core / operator / tool / legal pages only.
  ==========================================================
  <lastmod> is intentionally OMITTED here. Google only benefits from lastmod
  when it is accurate; a hand-maintained static file inevitably drifts to a
  stale (or worse, always-"today") value, which Google treats as a no-signal
  and may distrust. Omitting it is the documented best practice when you can't
  keep it truthful — Google falls back to its own crawl signals for this small,
  stable URL set. Truthful, data-driven freshness lives where it can be
  computed: the dynamic sitemaps served from api.ownedeals.com
  (/sitemap-cpo.xml, /sitemap-private.xml, /sitemap-hubs.xml), where <lastmod>
  is derived from cars.updated_at and market_insights.updated_at. The five
  model hubs below also appear in /sitemap-hubs.xml with those real dates, so
  Google uses the truthful value regardless.

  Individual /car/* listing URLs are NOT listed here — they are emitted by the
  backend dynamic sitemap index (GET https://api.ownedeals.com/sitemap.xml).
-->
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

  <!-- ── Core pages ──────────────────────────────────────────────────────── -->
  <url>
    <loc>https://ownedeals.com/</loc>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/browse</loc>
    <changefreq>hourly</changefreq>
    <priority>0.9</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/create-listing</loc>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>

  <!-- ── Site-operator pages (required by AdSense + E-E-A-T) ─────────────── -->
  <url>
    <loc>https://ownedeals.com/about</loc>
    <changefreq>monthly</changefreq>
    <priority>0.7</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/contact</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>

  <!-- ── Legal & informational ───────────────────────────────────────────── -->
  <url>
    <loc>https://ownedeals.com/safety</loc>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
  </url>


  <!-- ── Used Tesla "market hub" landing pages (per-model SEO/GEO centerpiece).
       SSR'd by Cloudflare Pages Functions (functions/used-tesla-*.js); content
       refreshes from live inventory + a daily AI market-insight blob
       (market_insights table), so changefreq=daily, high priority. These URLs
       also appear in the dynamic /sitemap-hubs.xml with a truthful, data-driven
       <lastmod>; Google uses that real date. ────────────────────────────── -->
  <url>
    <loc>https://ownedeals.com/used-tesla-model-3</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://ownedeals.com/used-tesla-model-y</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://ownedeals.com/used-tesla-model-s</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://ownedeals.com/used-tesla-model-x</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>
  <url>
    <loc>https://ownedeals.com/used-tesla-cybertruck</loc>
    <changefreq>daily</changefreq>
    <priority>0.9</priority>
  </url>

  <!-- ── Free Tools (SEO + AdSense surfaces) ─────────────────────────────── -->
  <url>
    <loc>https://ownedeals.com/tools</loc>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/tools/tesla-vin-decoder</loc>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/tools/tesla-battery-health-calculator</loc>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
  </url>


  <url>
    <loc>https://ownedeals.com/privacy-policy</loc>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>

  <url>
    <loc>https://ownedeals.com/terms-of-service</loc>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
  </url>

  <!--
    ── Individual car listings ─────────────────────────────────────────────
    Car detail pages are generated dynamically by the backend sitemap endpoint
    and appended to the main sitemap index. The backend endpoint lives at:
      GET https://api.ownedeals.com/sitemap.xml   (dynamic sitemap index)

    URL pattern:  https://ownedeals.com/car/{year}-tesla-{model}-{trim}-{vin}
    Example:      https://ownedeals.com/car/2023-tesla-model-y-long-range-awd-5YJYGDEE9PF123456
  -->

</urlset>
