// 1. Homepage Master Organization & Furniture Service Schema (With Miami, FL)
    if ( is_front_page() || is_home() ) {
        echo '<script type="application/ld+json">
        {
          "@context": "https://schema.org",
          "@graph": [
            {
              "@type": ["LocalBusiness", "HomeAndConstructionBusiness"],
              "@id": "https://www.drsofa.com/#organization",
              "name": "Dr. Sofa",
              "alternateName": "The Furniture Surgeon",
              "url": "https://www.drsofa.com",
              "telephone": "+1-888-837-7632",
              "priceRange": "$$$",
              "description": "Professional on-site furniture disassembly, couch frame modification, sectional reassembly, and custom luxury reupholstery services.",
              "disambiguatingDescription": "Specialized residential and commercial furniture disassembly, repair, and upholstery service operating across NY, NJ, CT, MA, DC, IL, and FL.",
              "knowsAbout": [
                "Furniture Disassembly",
                "Couch Reassembly",
                "Sofa Frame Repair",
                "Custom Reupholstery",
                "Tight Space Furniture Moving"
              ],
              "address": {
                "@type": "PostalAddress",
                "streetAddress": "148 71st St",
                "addressLocality": "Guttenberg",
                "addressRegion": "NJ",
                "postalCode": "07093",
                "addressCountry": "US"
              },
              "areaServed": [
                { "@type": "AdministrativeArea", "name": "New York" },
                { "@type": "AdministrativeArea", "name": "New Jersey" },
                { "@type": "AdministrativeArea", "name": "Connecticut" },
                { "@type": "AdministrativeArea", "name": "Massachusetts" },
                { "@type": "AdministrativeArea", "name": "District of Columbia" },
                { "@type": "AdministrativeArea", "name": "Illinois" },
                { "@type": "AdministrativeArea", "name": "Florida" },
                { "@type": "City", "name": "Miami" }
              ],
              "hasOfferCatalog": {
                "@type": "OfferCatalog",
                "name": "Furniture Services",
                "itemListElement": [
                  {
                    "@type": "Offer",
                    "itemOffered": {
                      "@type": "Service",
                      "name": "Furniture Disassembly & Reassembly",
                      "description": "Professional taking apart and reassembling of sofas, sectionals, and large furniture to fit through tight doors, stairwells, and elevators."
                    }
                  },
                  {
                    "@type": "Offer",
                    "itemOffered": {
                      "@type": "Service",
                      "name": "Custom Reupholstery & Repair",
                      "description": "Full structural repair, fabric restoration, tufting, and leather care for residential and luxury commercial furniture."
                    }
                  }
                ]
              }
            }
          ]
        }
        </script>' . "\n";
    }

    if ( is_page('drsofa-helping-tips-php') || is_page('tips-and-tricks') ) {
        echo '<script type="application/ld+json">
        {
          "@context": "https://schema.org",

/**
 * Agent 2: Master Authority Schema (SEO / AEO / GEO - Including Miami, FL)
 */
function drsofa_inject_schema_authority() {
    if ( is_front_page() || is_home() ) {
        echo '<script type="application/ld+json">
        {
          "@context": "https://schema.org",
          "@graph": [
            {
              "@type": ["LocalBusiness", "HomeAndConstructionBusiness"],
              "@id": "https://www.drsofa.com/#organization",
              "name": "Dr. Sofa",
              "alternateName": "The Furniture Surgeon",
              "url": "https://www.drsofa.com",
              "telephone": "+1-888-837-7632",
              "priceRange": "$$$",
              "description": "Professional on-site furniture disassembly, couch frame modification, sectional reassembly, and custom luxury reupholstery services.",
              "disambiguatingDescription": "Specialized residential and commercial furniture disassembly, repair, and upholstery service operating across NY, NJ, CT, MA, DC, IL, and FL.",
              "knowsAbout": [
                "Furniture Disassembly",
                "Couch Reassembly",
                "Sofa Frame Repair",
                "Custom Reupholstery",
                "Tight Space Furniture Moving"
              ],
              "address": {
                "@type": "PostalAddress",
                "streetAddress": "148 71st St",
                "addressLocality": "Guttenberg",
                "addressRegion": "NJ",
                "postalCode": "07093",
                "addressCountry": "US"
              },
              "areaServed": [
                { "@type": "AdministrativeArea", "name": "New York" },
                { "@type": "AdministrativeArea", "name": "New Jersey" },
                { "@type": "AdministrativeArea", "name": "Connecticut" },
                { "@type": "AdministrativeArea", "name": "Massachusetts" },
                { "@type": "AdministrativeArea", "name": "District of Columbia" },
                { "@type": "AdministrativeArea", "name": "Illinois" },
                { "@type": "AdministrativeArea", "name": "Florida" },
                { "@type": "City", "name": "Miami" }
              ],
              "hasOfferCatalog": {
                "@type": "OfferCatalog",
                "name": "Furniture Services",
                "itemListElement": [
                  {
                    "@type": "Offer",
                    "itemOffered": {
                      "@type": "Service",
                      "name": "Furniture Disassembly & Reassembly",
                      "description": "Professional taking apart and reassembling of sofas, sectionals, and large furniture to fit through tight doors, stairwells, and elevators."
                    }
                  },
                  {
                    "@type": "Offer",
                    "itemOffered": {
                      "@type": "Service",
                      "name": "Custom Reupholstery & Repair",
                      "description": "Full structural repair, fabric restoration, tufting, and leather care for residential and luxury commercial furniture."
                    }
                  }
                ]
              }
            }
          ]
        }
        </script>' . "\n";
    }

    if ( is_page('drsofa-helping-tips-php') || is_page('tips-and-tricks') ) {
        echo '<script type="application/ld+json">
        {
          "@context": "https://schema.org",
          "@type": "FAQPage",
          "mainEntity": [
            {
              "@type": "Question",
              "name": "Will a 40-inch sofa fit through a standard 36-inch doorway?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "A standard 40-inch deep sofa will generally not fit through a 36-inch doorway horizontally without removing legs or pivoting. If diagonal depth and doorway height do not allow clearance, professional furniture disassembly by Dr. Sofa can dismantle the frame and reassemble it inside without damage."
              }
            },
            {
              "@type": "Question",
              "name": "Can a couch be disassembled and put back together safely?",
              "acceptedAnswer": {
                "@type": "Answer",
                "text": "Yes. Furniture surgeons detach upholstery at original factory seams, dismantle the inner structural frame, move the components through tight spaces, and rebuild the piece to factory structural strength."
              }
            }
          ]
        }
        </script>' . "\n";
    }

    if ( is_single('furniture-disassembly-protect-furniture-move') || is_page('furniture-disassembly-protect-furniture-move') ) {
        echo '<script type="application/ld+json">
        {
          "@context": "https://schema.org",
          "@type": "HowTo",
          "name": "How to Protect Furniture During a Move With Professional Disassembly",
          "description": "Expert step-by-step checklist to disassemble, protect, and transport large sofas, sectionals, and luxury furniture through tight spaces.",
          "step": [
            {
              "@type": "HowToStep",
              "name": "Plan Ahead & Assess Dimensions",
              "text": "Measure doorways, hallways, stairwells, and elevators. Identify oversized items requiring frame dismantling."
            },
            {
              "@type": "HowToStep",
              "name": "Gather Tools & Label Hardware",
              "text": "Prepare screwdrivers, Allen wrenches, staple pullers, and plastic baggies labeled for every screw and bolt."
            },
            {
              "@type": "HowToStep",
              "name": "Remove Detachable Components",
              "text": "Remove couch cushions, unscrew legs, and detach modular sectional connectors carefully."
            },
            {
              "@type": "HowToStep",
              "name": "Dismantle Structural Frame & Unstitch Seams",
              "text": "For tight NYC access, unfasten upholstery at factory seams and unbolt structural wooden/metal framework."
            },
            {
              "@type": "HowToStep",
              "name": "Wrap Components & Transport",
              "text": "Wrap wooden frames and fabric components in heavy-duty moving blankets and shrink wrap."
            },
            {
              "@type": "HowToStep",
              "name": "Reassemble to Factory Strength",
              "text": "Rebuild the frame on site, re-tighten hardware, and re-stretch/fasten upholstery to restore original condition."
            }
          ]
        }
        </script>' . "\n";
    }
}
add_action('wp_head', 'drsofa_inject_schema_authority', 1);

/**
 * Agent 1: CRO Form Tracker, Cross-Domain Session Bridge & Mobile Capture
 */
function drsofa_cro_funnel_tracker() {
    echo '<script>
    document.addEventListener("DOMContentLoaded", function() {
        var targetDomains = ["booking.drsofa.com", "amazing.drsofa.com"];
        document.querySelectorAll("a").forEach(function(link) {
            if (link.href && targetDomains.some(function(d) { return link.href.indexOf(d) !== -1; })) {
                try {
                    var url = new URL(link.href);
                    var currentParams = new URLSearchParams(window.location.search);
                    ["utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "gclid"].forEach(function(param) {
                        if (currentParams.has(param) && !url.searchParams.has(param)) {
                            url.searchParams.set(param, currentParams.get(param));
                        }
                    });
                    link.href = url.toString();
                } catch(e) {}
            }
        });

        if (typeof window.dsqNextSection === "function") {
            var originalDsqNext = window.dsqNextSection;
            window.dsqNextSection = function(fromStep) {
                if (typeof gtag === "function") {
                    gtag("event", "form_step_completed", {
                        "form_name": "quote_questionnaire",
                        "step_number": fromStep,
                        "next_step": fromStep + 1
                    });
                }
                return originalDsqNext.apply(this, arguments);
            };
        }

        var fileInputs = document.querySelectorAll(\'input[type="file"]\');
        fileInputs.forEach(function(input) {
            input.setAttribute("accept", "image/*");
            if (!input.hasAttribute("capture")) {
                input.setAttribute("capture", "environment");
            }
        });
    });
    </script>' . "\n";
}
add_action('wp_footer', 'drsofa_cro_funnel_tracker', 20);
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//drsofa.com/main-sitemap.xsl"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
	<sitemap>
		<loc>https://drsofa.com/post-sitemap1.xml</loc>
		<lastmod>2026-08-14T08:27:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/post-sitemap2.xml</loc>
		<lastmod>2026-08-13T10:52:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/post-sitemap3.xml</loc>
		<lastmod>2026-08-12T16:32:32+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/post-sitemap4.xml</loc>
		<lastmod>2026-08-12T15:42:54+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/page-sitemap.xml</loc>
		<lastmod>2026-07-13T20:08:06+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/portfolio-sitemap.xml</loc>
		<lastmod>2026-01-19T08:01:35+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/testimonials-sitemap.xml</loc>
		<lastmod>2024-09-13T11:50:07+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/brands-sitemap.xml</loc>
		<lastmod>2024-09-12T11:44:44+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/services-sitemap.xml</loc>
		<lastmod>2026-07-29T20:38:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/locations-sitemap.xml</loc>
		<lastmod>2026-03-16T17:54:05+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/why-dr-sofa-sitemap.xml</loc>
		<lastmod>2026-02-10T13:02:40+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/article-sitemap.xml</loc>
		<lastmod>2026-03-18T00:41:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/jobs-sitemap.xml</loc>
		<lastmod>2024-09-13T11:05:37+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/trustedby-sitemap.xml</loc>
		<lastmod>2025-07-16T19:42:00+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/asseenas-sitemap.xml</loc>
		<lastmod>2026-02-16T20:12:53+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/howrepair-sitemap.xml</loc>
		<lastmod>2026-01-07T11:22:57+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/category-sitemap.xml</loc>
		<lastmod>2026-08-14T08:27:33+00:00</lastmod>
	</sitemap>
	<sitemap>
		<loc>https://drsofa.com/local-sitemap.xml</loc>
		<lastmod>2026-02-26T21:37:53+00:00</lastmod>
	</sitemap>
</sitemapindex>
<!-- XML Sitemap generated by Rank Math SEO Plugin (c) Rank Math - rankmath.com -->