<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
                            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

  <!-- Homepage / Explore Page (Guest mode landing page) -->
  <url>
    <loc>https://nekupuj.to/</loc>
    <lastmod>2025-10-04</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <mobile:mobile/>
  </url>

  <!-- About Page (Deep linkable, contains FAQ and app information) -->
  <url>
    <loc>https://nekupuj.to/about</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.85</priority>
    <mobile:mobile/>
  </url>

  <!-- Explore Page (Public listings, searchable content - MAIN DISCOVERY PAGE) -->
  <url>
    <loc>https://nekupuj.to/explore</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>hourly</changefreq>
    <priority>0.95</priority>
    <mobile:mobile/>
  </url>

  <!-- Login Page (Auth entry point - low SEO value) -->
  <url>
    <loc>https://nekupuj.to/login</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
    <mobile:mobile/>
  </url>

  <!-- Signup Page (User registration - low SEO value) -->
  <url>
    <loc>https://nekupuj.to/signup</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.4</priority>
    <mobile:mobile/>
  </url>

  <!-- Legal Documents - Primary URL (Privacy Policy & Terms of Use) -->
  <url>
    <loc>https://nekupuj.to/privacy_policy_and_terms_of_use</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.6</priority>
    <mobile:mobile/>
  </url>

  <!-- Legal Documents - Alternative URLs (All redirect to primary) -->
  <url>
    <loc>https://nekupuj.to/legal</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <mobile:mobile/>
  </url>

  <url>
    <loc>https://nekupuj.to/terms</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <mobile:mobile/>
  </url>

  <url>
    <loc>https://nekupuj.to/privacy</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <mobile:mobile/>
  </url>

  <url>
    <loc>https://nekupuj.to/terms-of-use</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <mobile:mobile/>
  </url>

  <url>
    <loc>https://nekupuj.to/privacy-policy</loc>
    <lastmod>2025-01-29</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <mobile:mobile/>
  </url>

  <!--
    ========================================
    DYNAMIC CONTENT - Path-Based Routing
    ========================================

    The following pages use path-based URLs (no hash fragments):

    1. Individual Post Pages:
       URL Pattern: https://nekupuj.to/post/{postId}
       Description: Shareable product listings
       Priority: 0.6-0.8 (based on post popularity)
       Change Frequency: weekly
       Mobile: Yes

       Example:
       <url>
         <loc>https://nekupuj.to/post/abc123xyz</loc>
         <lastmod>2025-01-29</lastmod>
         <changefreq>weekly</changefreq>
         <priority>0.7</priority>
         <mobile:mobile/>
       </url>

    2. User Profile Pages:
       URL Pattern: https://nekupuj.to/profile/{userId}
       Description: Public user profiles with reviews
       Priority: 0.5-0.6
       Change Frequency: weekly
       Mobile: Yes

       Example:
       <url>
         <loc>https://nekupuj.to/profile/user456def</loc>
         <lastmod>2025-01-28</lastmod>
         <changefreq>weekly</changefreq>
         <priority>0.5</priority>
         <mobile:mobile/>
       </url>

    3. Marketing Campaign Pages:
       URL Pattern: https://nekupuj.to/src/{slug}
       Description: Landing pages for marketing campaigns
       Priority: 0.7-0.9 (campaign specific)
       Change Frequency: monthly
       Mobile: Yes

       Example:
       <url>
         <loc>https://nekupuj.to/src/spring-2025</loc>
         <lastmod>2025-01-29</lastmod>
         <changefreq>monthly</changefreq>
         <priority>0.8</priority>
         <mobile:mobile/>
       </url>

    ========================================
    DYNAMIC SITEMAP GENERATION
    ========================================

    For production SEO optimization, consider implementing:

    1. Firebase Function to generate dynamic sitemap
       - Query active posts from Firestore
       - Include public user profiles
       - Add active marketing campaigns
       - Update sitemap.xml automatically

    2. Sitemap Index (for large sites with 50,000+ URLs)
       - sitemap-posts.xml (all post pages)
       - sitemap-profiles.xml (public profiles)
       - sitemap-campaigns.xml (marketing pages)
       - sitemap-static.xml (this file)

    3. URL Inclusion Criteria:
       - Posts: Public, active, not deleted
       - Profiles: Public visibility enabled
       - Campaigns: Active date range

    Example Firebase Function (pseudocode):
    ```javascript
    exports.generateSitemap = functions.https.onRequest(async (req, res) => {
      const posts = await db.collection('posts')
        .where('isPublic', '==', true)
        .where('isActive', '==', true)
        .limit(50000)
        .get();

      let xml = '<?xml version="1.0" encoding="UTF-8"?><urlset>...';
      posts.forEach(post => {
        xml += `<url>
          <loc>https://nekupuj.to/post/${post.id}</loc>
          <lastmod>${post.updatedAt}</lastmod>
          <priority>0.7</priority>
        </url>`;
      });
      xml += '</urlset>';

      res.set('Content-Type', 'application/xml');
      res.send(xml);
    });
    ```

    ========================================
    LEGACY HASH URLs - DEPRECATED
    ========================================

    Old hash-based URLs are automatically redirected:
    - https://nekupuj.to/#/post/123 → https://nekupuj.to/post/123
    - https://nekupuj.to/#/profile/456 → https://nekupuj.to/profile/456
    - https://nekupuj.to/#/about → https://nekupuj.to/about

    DO NOT add hash URLs to sitemap - they are deprecated.
    All new URLs use clean path-based routing.
  -->

</urlset>
