{"id":6456,"date":"2025-05-06T01:33:16","date_gmt":"2025-05-05T22:33:16","guid":{"rendered":"https:\/\/gcard.website\/listing\/"},"modified":"2026-01-12T13:54:09","modified_gmt":"2026-01-12T11:54:09","slug":"listing","status":"publish","type":"page","link":"https:\/\/mthpm.com\/en\/listings\/listing\/","title":{"rendered":"Property"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row row top-row wpb_custom_034b39d9bc6c6b310d69e39f0ccf274f\"><div class=\"vc_column_container col-md-12\"><div class=\"wpb_wrapper vc_column-inner\">\r\n\t<div class=\"wpb_text_column wpb_content_element wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><strong><div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/strong><\/h2>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_row wpb_row row top-row porto_stretch_css stretch_row_content_css wpb_custom_034b39d9bc6c6b310d69e39f0ccf274f\"><div class=\"vc_column_container col-md-12\"><div class=\"wpb_wrapper vc_column-inner\">\r\n\t<div class=\"wpb_text_column wpb_content_element wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"hfy-wrap hfy-theme1 nopad\">No listing ID<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_row wpb_row row top-row wpb_custom_034b39d9bc6c6b310d69e39f0ccf274f\"><div class=\"vc_column_container col-md-3\"><div class=\"vc_column-inner\" data-plugin-sticky data-plugin-options=\"{&quot;containerSelector&quot;:&quot;.vc_row&quot;,&quot;minWidth&quot;:768,&quot;padding&quot;:{&quot;top&quot;:110,&quot;bottom&quot;:0},&quot;activeClass&quot;:&quot;sticky-active&quot;}\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column wpb_content_element wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h3><span style=\"color: #b2824b;\">Reservation<\/span><\/h3>\n<p>Specify dates for current price<\/p>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_column_container col-md-9\"><div class=\"wpb_wrapper vc_column-inner\">\r\n\t<div class=\"wpb_text_column wpb_content_element wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p style=\"padding-left: 40px;\">    <div id=\"sld-listing-display\"><\/div>\n    \n    <script type=\"text\/javascript\">\n    document.addEventListener('DOMContentLoaded', function() {\n        console.log('SLD Plugin: Starting to search for listing_id...');\n        \n        let found = false;\n        const maxAttempts = 50;\n        let attempts = 0;\n        \n        function searchForListingId() {\n            attempts++;\n            \n            \/\/ \u0420\u0430\u0437\u043b\u0438\u0447\u043d\u0438 \u043d\u0430\u0447\u0438\u043d\u0438 \u0434\u0430 \u043d\u0430\u043c\u0435\u0440\u0438\u043c listing_id\n            const possibleSelectors = [\n                'input[name=\"listing_id\"]',\n                'input[type=\"hidden\"][name=\"listing_id\"]',\n                '[name=\"listing_id\"]',\n                '#listing_id',\n                'input[value][name*=\"listing\"]',\n                'input[type=\"hidden\"][value][name*=\"id\"]',\n                'form input[type=\"hidden\"]'\n            ];\n            \n            for (let selector of possibleSelectors) {\n                const elements = document.querySelectorAll(selector);\n                console.log(`SLD: Checking selector \"${selector}\" - found ${elements.length} elements`);\n                \n                for (let element of elements) {\n                    if (element.value && element.value.length > 0) {\n                        console.log('SLD: Found element with value:', element.value);\n                        displayListingId(element.value);\n                        found = true;\n                        return;\n                    }\n                }\n            }\n            \n            \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u043c\u0435 \u0432\u0441\u0438\u0447\u043a\u0438 hidden inputs\n            const allHiddenInputs = document.querySelectorAll('input[type=\"hidden\"]');\n            console.log(`SLD: Total hidden inputs found: ${allHiddenInputs.length}`);\n            \n            for (let input of allHiddenInputs) {\n                if (input.name && input.name.toLowerCase().includes('listing') && input.value) {\n                    console.log('SLD: Found listing in hidden input:', input.name, input.value);\n                    displayListingId(input.value);\n                    found = true;\n                    return;\n                }\n            }\n            \n            \/\/ \u0410\u043a\u043e \u043d\u0435 \u0441\u043c\u0435 \u043d\u0430\u043c\u0435\u0440\u0438\u043b\u0438 \u0438 \u0432\u0441\u0435 \u043e\u0449\u0435 \u043d\u0435 \u0441\u043c\u0435 \u043d\u0430\u0434\u0432\u0438\u0448\u0438\u043b\u0438 \u043e\u043f\u0438\u0442\u0438\u0442\u0435, \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0430\u0432\u0430\u043c\u0435\n            if (!found && attempts < maxAttempts) {\n                setTimeout(searchForListingId, 200);\n            } else if (!found) {\n                console.log('SLD: Could not find listing_id after', maxAttempts, 'attempts');\n                document.getElementById('sld-listing-display').innerHTML = \n                    '<div style=\"color: red;\">ID \u043d\u0430 \u0438\u043c\u043e\u0442\u0430: \u041d\u0435 \u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043e<\/div>';\n            }\n        }\n        \n        function displayListingId(id) {\n            console.log('SLD: Displaying listing ID:', id);\n            document.getElementById('sld-listing-display').innerHTML = `\n                <div class=\"listing-id-box\">\n                    <span class=\"label\">ID \u043d\u0430 \u0438\u043c\u043e\u0442\u0430:<\/span> \n                    <span class=\"value\">${id}<\/span>\n                <\/div>\n            `;\n        }\n        \n        \/\/ \u0417\u0430\u043f\u043e\u0447\u0432\u0430\u043c\u0435 \u0442\u044a\u0440\u0441\u0435\u043d\u0435\u0442\u043e\n        searchForListingId();\n        \n        \/\/ \u0414\u043e\u0431\u0430\u0432\u044f\u043c\u0435 observer \u0437\u0430 \u043f\u0440\u043e\u043c\u0435\u043d\u0438 \u0432 DOM\n        const observer = new MutationObserver(function(mutations) {\n            if (!found) {\n                console.log('SLD: DOM changed, searching again...');\n                searchForListingId();\n            }\n        });\n        \n        observer.observe(document.body, {\n            childList: true,\n            subtree: true,\n            attributes: true,\n            attributeFilter: ['value', 'name']\n        });\n        \n        \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0432\u0430\u043c\u0435 \u0438 \u043f\u0440\u0438 \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043d\u0435 \u043d\u0430 window\n        window.addEventListener('load', function() {\n            console.log('SLD: Window loaded, searching again...');\n            if (!found) {\n                searchForListingId();\n            }\n        });\n    });\n    <\/script>\n    \n    <style>\n        .listing-id-box {\n            display: inline-block !important;\n            padding: 8px 12px !important;\n            border: 1px solid #ddd !important;\n            border-radius: 6px !important;\n            background: #f9f9f9 !important;\n            color: #333 !important;\n            font-size: 15px !important;\n            font-weight: 500 !important;\n            margin-left: 30px !important;\n        }\n        .listing-id-box .label {\n            color: #666 !important;\n            margin-right: 6px !important;\n        }\n        .listing-id-box .value {\n            font-weight: 700 !important;\n            color: #000 !important;\n        }\n    <\/style>\n    <\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1747209056953 wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"wrap-overview wrap-style\">\n<h3>Briefly:<\/h3>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1747209268210 wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"wrap-overview wrap-style\">\n<h3>It has:<\/h3>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1747209251570 wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"wrap-overview wrap-style\">\n<h3>Description:<\/h3>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1747209233321 wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"wrap-overview wrap-style\">\n<h3>Reviews:<\/h3>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\t<div class=\"wpb_text_column wpb_content_element vc_custom_1767968315607 wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<div class=\"wrap-overview wrap-style\">\n<div class=\"wrap-overview wrap-style\">\n<h3>Address:<\/h3>\n<div class=\"hfy-wrap hfy-theme1\">No listing ID<\/div><\/div>\n<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><div class=\"vc_row wpb_row row top-row wpb_custom_034b39d9bc6c6b310d69e39f0ccf274f\"><div class=\"vc_column_container col-md-12\"><div class=\"wpb_wrapper vc_column-inner\">\r\n\t<div class=\"wpb_text_column wpb_content_element wpb_custom_7c91d232724f73626cc933bd95b25ff0\" >\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"No listing ID No listing ID No listing ID Booking Indicate dates for current price No listing ID Briefly: No listing ID Has: No listing ID Description: No listing ID Reviews: No listing ID Address: No listing ID","protected":false},"author":1,"featured_media":0,"parent":6457,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6456","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/pages\/6456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/comments?post=6456"}],"version-history":[{"count":0,"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/pages\/6456\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/pages\/6457"}],"wp:attachment":[{"href":"https:\/\/mthpm.com\/en\/wp-json\/wp\/v2\/media?parent=6456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}