{"id":397611,"date":"2026-02-03T12:46:48","date_gmt":"2026-02-03T11:46:48","guid":{"rendered":"https:\/\/optim.studio\/molar\/?page_id=397611"},"modified":"2026-02-20T12:30:47","modified_gmt":"2026-02-20T11:30:47","slug":"360-tour","status":"publish","type":"page","link":"https:\/\/elmolarturisme.cat\/en\/tour-360\/","title":{"rendered":"360\u00ba tour"},"content":{"rendered":"<p><div class=\"et_d4_element et_pb_section et_pb_section_0  et_pb_css_mix_blend_mode et_section_regular section_has_divider et_pb_bottom_divider et_pb_top_divider et_block_section\" >\n\t\t\t\t<div class=\"et_pb_top_inside_divider et-no-transition\"><\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_d4_element et_pb_row et_pb_row_0  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_0  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_0 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h1 class=\"et_pb_module_heading\">Ajuntament del Molar<\/h1><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_1 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_bottom_inside_divider et-no-transition\"><\/div>\n\t\t\t<\/div><div class=\"et_d4_element et_pb_section et_pb_section_1 et_pb_with_background  et_pb_css_mix_blend_mode et_section_regular et_block_section\" >\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<span class=\"et_pb_background_mask\"><\/span>\n\t\t\t\t\n\t\t\t\t<div class=\"et_d4_element et_pb_row et_pb_row_1 et_pb_equal_columns  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_1 1  et_pb_css_mix_blend_mode et_block_column\" id=\"1\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_2 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h2 class=\"et_pb_module_heading\">L\u2019Ajuntament<\/h2><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_0\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397574 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397574\" class=\"pano-wrap pano-left pano2397574\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397574\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397574\" class=\"pano-wrap pano-right pano397574\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397574\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397574\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397574\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397574\">\n            #pano397574 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397574 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397574 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397574 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397574 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397574 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397574 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397574.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397574.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397574.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397574.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397574 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397574 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397574 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397574\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"gWUFmeDO\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"gWUFmeDO\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Ajuntament-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397574;var panoshow2397574;function initWPVRViewer397574() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397574, 50); return; }panoshow397574 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397574;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397574 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397574.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397574.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397574();var response_duplicate = [{\"panoid\":\"pano397574\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"gWUFmeDO\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"gWUFmeDO\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Ajuntament-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397574 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397574.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397574.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397574.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397574.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397574 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397574 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397574 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397574 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397574\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397574\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397574\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397574.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397574 = null;\n                        var wpvrAutoRotateStopDelay397574 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397574 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397574);\n                            if (wpvrAutoRotateStopDelay397574 > 0) {\n                                wpvrAutoRotateTimer397574 = setTimeout(function () {\n                                    panoshow397574.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397574);\n                            } else {\n                                wpvrAutoRotateTimer397574 = setTimeout(function () {\n                                    panoshow397574.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397574.on(\"load\", wpvrScheduleAutoRotate397574);\n                        panoshow397574.on(\"scenechange\", wpvrScheduleAutoRotate397574);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397574 = document.getElementById(\"pano397574\");\n            if (wpvrHotspotRoot397574) {\n                wpvrHotspotRoot397574.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397574\",function() {\n                    jQuery(\"#explainer397574\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397574\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397574\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397574\",function() {\n                jQuery(\"#wpvr-floor-map397574\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397574\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397574\").hide();\n                      jQuery(\"#pano397574 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397574\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397574 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397574\",function() {\n\t\t            if (slide397574 == \"up\") {\n\t\t              jQuery(\".vrgctrl397574\").empty();\n\t\t              jQuery(\".vrgctrl397574\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397574 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397574\").empty();\n\t\t              jQuery(\".vrgctrl397574\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397574 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397574 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397574\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397574\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397574\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397574\") {\n                          jQuery(\"#pano397574\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397574\").children(\".pnlm-ui\").remove();\n                          panoshow397574 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397574;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397574 }\n                          }));\n                          jQuery(\"#pano397574\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397574.loadScene(\"gWUFmeDO\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397574\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397574\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397574\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397574\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397574\").children(\".pnlm-ui\").remove();\n              panoshow397574 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397574;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397574 }\n              }));\n              setTimeout(function() {\n                      panoshow397574.loadScene(\"gWUFmeDO\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397574\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397574\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397574\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397574\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397574 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397574 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397574\">\n            (function () {\n                var pano = document.getElementById(\"pano397574\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script> <\/div>\n\t\t\t<\/div>\n\t\t\t<\/div><div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_2 2  et_pb_css_mix_blend_mode et-last-child et_block_column\" id=\"2\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_3 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h2 class=\"et_pb_module_heading\">Carrer Major<\/h2><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_1\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397576 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397576\" class=\"pano-wrap pano-left pano2397576\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397576\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397576\" class=\"pano-wrap pano-right pano397576\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397576\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397576\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397576\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397576\">\n            #pano397576 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397576 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397576 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397576 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397576 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397576 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397576 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397576.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397576.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397576.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397576.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397576 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397576 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397576 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397576\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"R1BfgYQ5\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"R1BfgYQ5\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Carrer-Major-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397576;var panoshow2397576;function initWPVRViewer397576() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397576, 50); return; }panoshow397576 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397576;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397576 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397576.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397576.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397576();var response_duplicate = [{\"panoid\":\"pano397576\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"R1BfgYQ5\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"R1BfgYQ5\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Carrer-Major-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397576 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397576.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397576.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397576.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397576.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397576 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397576 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397576 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397576 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397576\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397576\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397576\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397576.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397576 = null;\n                        var wpvrAutoRotateStopDelay397576 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397576 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397576);\n                            if (wpvrAutoRotateStopDelay397576 > 0) {\n                                wpvrAutoRotateTimer397576 = setTimeout(function () {\n                                    panoshow397576.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397576);\n                            } else {\n                                wpvrAutoRotateTimer397576 = setTimeout(function () {\n                                    panoshow397576.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397576.on(\"load\", wpvrScheduleAutoRotate397576);\n                        panoshow397576.on(\"scenechange\", wpvrScheduleAutoRotate397576);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397576 = document.getElementById(\"pano397576\");\n            if (wpvrHotspotRoot397576) {\n                wpvrHotspotRoot397576.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397576\",function() {\n                    jQuery(\"#explainer397576\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397576\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397576\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397576\",function() {\n                jQuery(\"#wpvr-floor-map397576\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397576\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397576\").hide();\n                      jQuery(\"#pano397576 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397576\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397576 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397576\",function() {\n\t\t            if (slide397576 == \"up\") {\n\t\t              jQuery(\".vrgctrl397576\").empty();\n\t\t              jQuery(\".vrgctrl397576\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397576 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397576\").empty();\n\t\t              jQuery(\".vrgctrl397576\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397576 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397576 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397576\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397576\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397576\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397576\") {\n                          jQuery(\"#pano397576\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397576\").children(\".pnlm-ui\").remove();\n                          panoshow397576 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397576;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397576 }\n                          }));\n                          jQuery(\"#pano397576\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397576.loadScene(\"R1BfgYQ5\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397576\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397576\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397576\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397576\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397576\").children(\".pnlm-ui\").remove();\n              panoshow397576 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397576;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397576 }\n              }));\n              setTimeout(function() {\n                      panoshow397576.loadScene(\"R1BfgYQ5\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397576\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397576\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397576\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397576\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397576 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397576 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397576\">\n            (function () {\n                var pano = document.getElementById(\"pano397576\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_row et_pb_row_2 et_pb_equal_columns  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_3 2  et_pb_css_mix_blend_mode et_block_column\" id=\"2\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_4 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h2 class=\"et_pb_module_heading\">Els rentadors<\/h2><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_2\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano398313 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2398313\" class=\"pano-wrap pano-left pano2398313\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2398313\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano398313\" class=\"pano-wrap pano-right pano398313\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer398313\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"398313\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"398313\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano398313\">\n            #pano398313 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano398313 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano398313 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano398313 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano398313 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano398313 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano398313 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano398313.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano398313.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano398313.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano398313.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano398313 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano398313 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano398313 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano398313\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"PPIp57nr\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"PPIp57nr\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Rentadors-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow398313;var panoshow2398313;function initWPVRViewer398313() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer398313, 50); return; }panoshow398313 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow398313;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow398313 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow398313.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow398313.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer398313();var response_duplicate = [{\"panoid\":\"pano398313\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"PPIp57nr\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"PPIp57nr\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Rentadors-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano398313 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow398313.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow398313.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow398313.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow398313.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2398313 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano398313 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2398313 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano398313 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano398313\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls398313\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls398313\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow398313.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer398313 = null;\n                        var wpvrAutoRotateStopDelay398313 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate398313 = function () {\n                            clearTimeout(wpvrAutoRotateTimer398313);\n                            if (wpvrAutoRotateStopDelay398313 > 0) {\n                                wpvrAutoRotateTimer398313 = setTimeout(function () {\n                                    panoshow398313.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay398313);\n                            } else {\n                                wpvrAutoRotateTimer398313 = setTimeout(function () {\n                                    panoshow398313.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow398313.on(\"load\", wpvrScheduleAutoRotate398313);\n                        panoshow398313.on(\"scenechange\", wpvrScheduleAutoRotate398313);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot398313 = document.getElementById(\"pano398313\");\n            if (wpvrHotspotRoot398313) {\n                wpvrHotspotRoot398313.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_398313\",function() {\n                    jQuery(\"#explainer398313\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer398313\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano398313\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_398313\",function() {\n                jQuery(\"#wpvr-floor-map398313\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map398313\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols398313\").hide();\n                      jQuery(\"#pano398313 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl398313\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide398313 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols398313\",function() {\n\t\t            if (slide398313 == \"up\") {\n\t\t              jQuery(\".vrgctrl398313\").empty();\n\t\t              jQuery(\".vrgctrl398313\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide398313 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl398313\").empty();\n\t\t              jQuery(\".vrgctrl398313\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide398313 = \"up\";\n\t\t            }\n                    jQuery(\"#pano398313 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols398313\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols398313\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols398313\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano398313\") {\n                          jQuery(\"#pano398313\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano398313\").children(\".pnlm-ui\").remove();\n                          panoshow398313 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow398313;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow398313 }\n                          }));\n                          jQuery(\"#pano398313\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click to Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow398313.loadScene(\"PPIp57nr\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano398313\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls398313\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls398313\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano398313\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano398313\").children(\".pnlm-ui\").remove();\n              panoshow398313 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow398313;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow398313 }\n              }));\n              setTimeout(function() {\n                      panoshow398313.loadScene(\"PPIp57nr\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano398313\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls398313\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls398313\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano398313\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click to Load Panorama\")\n            jQuery(\"#pano398313 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano398313 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano398313\">\n            (function () {\n                var pano = document.getElementById(\"pano398313\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div><div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_4 2  et_pb_css_mix_blend_mode et-last-child et_block_column\" id=\"2\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_5 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h2 class=\"et_pb_module_heading\">Museu Mina Lussa<\/h2><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_3\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano398357 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2398357\" class=\"pano-wrap pano-left pano2398357\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2398357\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano398357\" class=\"pano-wrap pano-right pano398357\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer398357\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"398357\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"398357\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano398357\">\n            #pano398357 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano398357 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano398357 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano398357 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano398357 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano398357 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano398357 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano398357.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano398357.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano398357.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano398357.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano398357 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano398357 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano398357 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano398357\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"LbacJSpz\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"LbacJSpz\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Museu-01-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow398357;var panoshow2398357;function initWPVRViewer398357() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer398357, 50); return; }panoshow398357 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow398357;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow398357 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow398357.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow398357.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer398357();var response_duplicate = [{\"panoid\":\"pano398357\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"LbacJSpz\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"LbacJSpz\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Museu-01-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano398357 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow398357.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow398357.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow398357.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow398357.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2398357 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano398357 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2398357 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano398357 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano398357\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls398357\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls398357\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow398357.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer398357 = null;\n                        var wpvrAutoRotateStopDelay398357 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate398357 = function () {\n                            clearTimeout(wpvrAutoRotateTimer398357);\n                            if (wpvrAutoRotateStopDelay398357 > 0) {\n                                wpvrAutoRotateTimer398357 = setTimeout(function () {\n                                    panoshow398357.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay398357);\n                            } else {\n                                wpvrAutoRotateTimer398357 = setTimeout(function () {\n                                    panoshow398357.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow398357.on(\"load\", wpvrScheduleAutoRotate398357);\n                        panoshow398357.on(\"scenechange\", wpvrScheduleAutoRotate398357);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot398357 = document.getElementById(\"pano398357\");\n            if (wpvrHotspotRoot398357) {\n                wpvrHotspotRoot398357.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_398357\",function() {\n                    jQuery(\"#explainer398357\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer398357\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano398357\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_398357\",function() {\n                jQuery(\"#wpvr-floor-map398357\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map398357\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols398357\").hide();\n                      jQuery(\"#pano398357 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl398357\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide398357 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols398357\",function() {\n\t\t            if (slide398357 == \"up\") {\n\t\t              jQuery(\".vrgctrl398357\").empty();\n\t\t              jQuery(\".vrgctrl398357\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide398357 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl398357\").empty();\n\t\t              jQuery(\".vrgctrl398357\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide398357 = \"up\";\n\t\t            }\n                    jQuery(\"#pano398357 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols398357\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols398357\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols398357\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano398357\") {\n                          jQuery(\"#pano398357\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano398357\").children(\".pnlm-ui\").remove();\n                          panoshow398357 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow398357;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow398357 }\n                          }));\n                          jQuery(\"#pano398357\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click to Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow398357.loadScene(\"LbacJSpz\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano398357\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls398357\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls398357\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano398357\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano398357\").children(\".pnlm-ui\").remove();\n              panoshow398357 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow398357;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow398357 }\n              }));\n              setTimeout(function() {\n                      panoshow398357.loadScene(\"LbacJSpz\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano398357\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls398357\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls398357\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano398357\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click to Load Panorama\")\n            jQuery(\"#pano398357 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano398357 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano398357\">\n            (function () {\n                var pano = document.getElementById(\"pano398357\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_row et_pb_row_3  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_5  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_heading et_pb_heading_6 et_pb_bg_layout_\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_heading_container\"><h2 class=\"et_pb_module_heading\">L\u2019esgl\u00e9sia de Sant Roc i Sant Isidre<\/h2><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_row et_pb_row_4  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_6  et_pb_css_mix_blend_mode et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_4\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397600 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397600\" class=\"pano-wrap pano-left pano2397600\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397600\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397600\" class=\"pano-wrap pano-right pano397600\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397600\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397600\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397600\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397600\">\n            #pano397600 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397600 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397600 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397600 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397600 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397600 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397600 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397600.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397600.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397600.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397600.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397600 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397600 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397600 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397600\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"QatS8Iqa\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"QatS8Iqa\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-Altar1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397600;var panoshow2397600;function initWPVRViewer397600() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397600, 50); return; }panoshow397600 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397600;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397600 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397600.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397600.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397600();var response_duplicate = [{\"panoid\":\"pano397600\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"QatS8Iqa\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"QatS8Iqa\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-Altar1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397600 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397600.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397600.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397600.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397600.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397600 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397600 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397600 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397600 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397600\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397600\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397600\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397600.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397600 = null;\n                        var wpvrAutoRotateStopDelay397600 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397600 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397600);\n                            if (wpvrAutoRotateStopDelay397600 > 0) {\n                                wpvrAutoRotateTimer397600 = setTimeout(function () {\n                                    panoshow397600.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397600);\n                            } else {\n                                wpvrAutoRotateTimer397600 = setTimeout(function () {\n                                    panoshow397600.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397600.on(\"load\", wpvrScheduleAutoRotate397600);\n                        panoshow397600.on(\"scenechange\", wpvrScheduleAutoRotate397600);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397600 = document.getElementById(\"pano397600\");\n            if (wpvrHotspotRoot397600) {\n                wpvrHotspotRoot397600.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397600\",function() {\n                    jQuery(\"#explainer397600\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397600\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397600\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397600\",function() {\n                jQuery(\"#wpvr-floor-map397600\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397600\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397600\").hide();\n                      jQuery(\"#pano397600 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397600\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397600 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397600\",function() {\n\t\t            if (slide397600 == \"up\") {\n\t\t              jQuery(\".vrgctrl397600\").empty();\n\t\t              jQuery(\".vrgctrl397600\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397600 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397600\").empty();\n\t\t              jQuery(\".vrgctrl397600\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397600 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397600 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397600\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397600\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397600\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397600\") {\n                          jQuery(\"#pano397600\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397600\").children(\".pnlm-ui\").remove();\n                          panoshow397600 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397600;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397600 }\n                          }));\n                          jQuery(\"#pano397600\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397600.loadScene(\"QatS8Iqa\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397600\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397600\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397600\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397600\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397600\").children(\".pnlm-ui\").remove();\n              panoshow397600 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397600;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397600 }\n              }));\n              setTimeout(function() {\n                      panoshow397600.loadScene(\"QatS8Iqa\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397600\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397600\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397600\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397600\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397600 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397600 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397600\">\n            (function () {\n                var pano = document.getElementById(\"pano397600\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script> <\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_5\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397585 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397585\" class=\"pano-wrap pano-left pano2397585\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397585\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397585\" class=\"pano-wrap pano-right pano397585\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397585\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397585\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397585\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397585\">\n            #pano397585 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397585 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397585 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397585 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397585 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397585 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397585 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397585.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397585.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397585.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397585.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397585 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397585 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397585 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397585\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"3Yrz7b1w\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"3Yrz7b1w\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-Coro-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397585;var panoshow2397585;function initWPVRViewer397585() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397585, 50); return; }panoshow397585 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397585;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397585 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397585.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397585.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397585();var response_duplicate = [{\"panoid\":\"pano397585\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"3Yrz7b1w\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"3Yrz7b1w\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-Coro-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397585 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397585.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397585.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397585.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397585.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397585 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397585 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397585 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397585 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397585\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397585\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397585\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397585.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397585 = null;\n                        var wpvrAutoRotateStopDelay397585 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397585 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397585);\n                            if (wpvrAutoRotateStopDelay397585 > 0) {\n                                wpvrAutoRotateTimer397585 = setTimeout(function () {\n                                    panoshow397585.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397585);\n                            } else {\n                                wpvrAutoRotateTimer397585 = setTimeout(function () {\n                                    panoshow397585.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397585.on(\"load\", wpvrScheduleAutoRotate397585);\n                        panoshow397585.on(\"scenechange\", wpvrScheduleAutoRotate397585);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397585 = document.getElementById(\"pano397585\");\n            if (wpvrHotspotRoot397585) {\n                wpvrHotspotRoot397585.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397585\",function() {\n                    jQuery(\"#explainer397585\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397585\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397585\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397585\",function() {\n                jQuery(\"#wpvr-floor-map397585\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397585\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397585\").hide();\n                      jQuery(\"#pano397585 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397585\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397585 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397585\",function() {\n\t\t            if (slide397585 == \"up\") {\n\t\t              jQuery(\".vrgctrl397585\").empty();\n\t\t              jQuery(\".vrgctrl397585\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397585 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397585\").empty();\n\t\t              jQuery(\".vrgctrl397585\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397585 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397585 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397585\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397585\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397585\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397585\") {\n                          jQuery(\"#pano397585\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397585\").children(\".pnlm-ui\").remove();\n                          panoshow397585 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397585;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397585 }\n                          }));\n                          jQuery(\"#pano397585\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397585.loadScene(\"3Yrz7b1w\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397585\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397585\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397585\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397585\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397585\").children(\".pnlm-ui\").remove();\n              panoshow397585 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397585;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397585 }\n              }));\n              setTimeout(function() {\n                      panoshow397585.loadScene(\"3Yrz7b1w\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397585\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397585\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397585\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397585\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397585 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397585 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397585\">\n            (function () {\n                var pano = document.getElementById(\"pano397585\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div><div class=\"et_d4_element et_pb_column_1_2 et_pb_column et_pb_column_7  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_6\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397587 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397587\" class=\"pano-wrap pano-left pano2397587\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397587\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397587\" class=\"pano-wrap pano-right pano397587\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397587\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397587\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397587\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397587\">\n            #pano397587 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397587 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397587 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397587 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397587 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397587 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397587 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397587.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397587.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397587.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397587.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397587 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397587 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397587 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397587\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"giKgSjIO\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"giKgSjIO\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-entrada-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397587;var panoshow2397587;function initWPVRViewer397587() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397587, 50); return; }panoshow397587 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397587;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397587 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397587.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397587.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397587();var response_duplicate = [{\"panoid\":\"pano397587\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"giKgSjIO\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"giKgSjIO\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/Esglesia-entrada-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397587 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397587.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397587.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397587.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397587.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397587 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397587 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397587 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397587 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397587\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397587\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397587\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397587.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397587 = null;\n                        var wpvrAutoRotateStopDelay397587 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397587 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397587);\n                            if (wpvrAutoRotateStopDelay397587 > 0) {\n                                wpvrAutoRotateTimer397587 = setTimeout(function () {\n                                    panoshow397587.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397587);\n                            } else {\n                                wpvrAutoRotateTimer397587 = setTimeout(function () {\n                                    panoshow397587.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397587.on(\"load\", wpvrScheduleAutoRotate397587);\n                        panoshow397587.on(\"scenechange\", wpvrScheduleAutoRotate397587);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397587 = document.getElementById(\"pano397587\");\n            if (wpvrHotspotRoot397587) {\n                wpvrHotspotRoot397587.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397587\",function() {\n                    jQuery(\"#explainer397587\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397587\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397587\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397587\",function() {\n                jQuery(\"#wpvr-floor-map397587\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397587\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397587\").hide();\n                      jQuery(\"#pano397587 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397587\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397587 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397587\",function() {\n\t\t            if (slide397587 == \"up\") {\n\t\t              jQuery(\".vrgctrl397587\").empty();\n\t\t              jQuery(\".vrgctrl397587\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397587 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397587\").empty();\n\t\t              jQuery(\".vrgctrl397587\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397587 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397587 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397587\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397587\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397587\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397587\") {\n                          jQuery(\"#pano397587\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397587\").children(\".pnlm-ui\").remove();\n                          panoshow397587 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397587;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397587 }\n                          }));\n                          jQuery(\"#pano397587\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397587.loadScene(\"giKgSjIO\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397587\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397587\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397587\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397587\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397587\").children(\".pnlm-ui\").remove();\n              panoshow397587 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397587;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397587 }\n              }));\n              setTimeout(function() {\n                      panoshow397587.loadScene(\"giKgSjIO\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397587\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397587\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397587\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397587\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397587 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397587 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397587\">\n            (function () {\n                var pano = document.getElementById(\"pano397587\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script><\/div>\n\t\t\t<\/div><div class=\"et_pb_module et_d4_element et_pb_code et_pb_code_7\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_code_inner\"><style>#pano397590 div.pnlm-orientation-button {\n                    display: none;\n                }\n            .wpvr-floor-map .floor-plan-pointer.add-pulse:before {\n                border: 17px solid #cca92c;\n            }\n            @-webkit-keyframes pulse {\n                0% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                }\n                70% {\n                    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                }\n                100% {\n                    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                }\n            }\n            @keyframes pulse {\n            0% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.7);\n            }\n            70% {\n                -moz-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);\n            }\n            100% {\n                -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n                box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);\n            }\n        }<\/style><div id=\"master-container\" class=\"wpvr-master-container wpvr-cardboard \" style=\"max-width:600px; width: 100%; height: 400px; border-radius:; direction:ltr; \"><div id=\"pano2397590\" class=\"pano-wrap pano-left pano2397590\" style=\"width: 49%; border-radius:\"><div id=\"center-pointer2397590\" class=\"vr-pointer-container\"><span class=\"center-pointer\"><\/span><\/div><\/div><div id=\"pano397590\" class=\"pano-wrap pano-right pano397590\" style=\"width: 100%;\"><div class=\"explainer\" id=\"explainer397590\" style=\"display: none\"><span class=\"close-explainer-video\"><i class=\"fa fa-times\"><\/i><\/span><\/div><div class=\"wpvr-hotspot-tweak-contents-wrapper\" style=\"display: none\"><i class=\"fa fa-times cross\" data-id=\"397590\"><\/i><div class=\"wpvr-hotspot-tweak-contents-flex\"><div class=\"wpvr-hotspot-tweak-contents\"><\/div><\/div><\/div><div class=\"custom-ifram-wrapper\" style=\"display: none;\"><i class=\"fa fa-times cross\" data-id=\"397590\"><\/i><div class=\"custom-ifram-flex\"><div class=\"custom-ifram\"><\/div><\/div><\/div><\/div><\/div><style id=\"wpvr-scene-info-pano397590\">\n            #pano397590 .pnlm-panorama-info.wpvr-scene-info-row {\n                display: flex !important;\n                align-items: center !important;\n                justify-content: center !important;\n                gap: 10px !important;\n                box-sizing: border-box !important;\n                min-width: 0 !important;\n                overflow: hidden !important;\n                text-align: center !important;\n                z-index: 2147483647 !important;\n                -webkit-transform: translateZ(10000px) !important;\n                transform: translateZ(10000px) !important;\n            }\n\n            #pano397590 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(70% - 5px) !important;\n                width: auto !important;\n                margin: 0 !important;\n                padding: 0 !important;\n                display: block !important;\n                overflow: hidden !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397590 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                flex: 0 1 auto !important;\n                min-width: 0 !important;\n                max-width: calc(30% - 5px) !important;\n                margin: 0 !important;\n                border-left: 1px solid rgba(255, 255, 255, 0.45) !important;\n                padding: 0 0 0 10px !important;\n                display: block !important;\n                overflow: hidden !important;\n                line-height: 1.2 !important;\n                text-overflow: ellipsis !important;\n                white-space: nowrap !important;\n            }\n\n            #pano397590 .pnlm-panorama-info .wpvr-author-label {\n                flex: none !important;\n                margin-right: 4px !important;\n                font-size: 10px !important;\n                font-weight: 700 !important;\n                letter-spacing: 0.06em !important;\n                opacity: 0.8 !important;\n                text-transform: uppercase !important;\n            }\n\n            #pano397590 .pnlm-panorama-info .pnlm-author-box a {\n                color: inherit !important;\n                text-decoration: underline !important;\n                text-underline-offset: 2px !important;\n            }\n\n            #pano397590 .pnlm-panorama-info.wpvr-has-title:not(.wpvr-has-author) .pnlm-title-box,\n            #pano397590 .pnlm-panorama-info.wpvr-has-author:not(.wpvr-has-title) .pnlm-author-box {\n                max-width: 100% !important;\n                border-left: 0 !important;\n                padding-left: 0 !important;\n            }\n\n            #pano397590.wpvr-layout-classic.wpvr-has-scene-info .scene-gallery.wpvr-gallery--classic {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 8px) !important;\n            }\n\n            #pano397590.wpvr-layout-classic.wpvr-has-scene-info .vrgcontrols {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 4px) !important;\n            }\n\n            #pano397590.wpvr-layout-classic.wpvr-has-scene-info .wpvr_slider_nav {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 15px) !important;\n            }\n\n            #pano397590.wpvr-layout-classic.wpvr-has-scene-info .controls {\n                bottom: calc(var(--wpvr-scene-info-height, 34px) + 6px) !important;\n            }\n\n            @media (max-width: 767px) {\n                #pano397590 .pnlm-panorama-info.wpvr-scene-info-row {\n                    gap: 7px !important;\n                    padding-right: 10px !important;\n                    padding-left: 10px !important;\n                }\n\n                #pano397590 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-title-box {\n                    max-width: calc(65% - 4px) !important;\n                }\n\n                #pano397590 .pnlm-panorama-info.wpvr-scene-info-row .pnlm-author-box {\n                    max-width: calc(35% - 4px) !important;\n                    padding-left: 7px !important;\n                }\n            }\n        <\/style>\n        \n<script>(function ($) {jQuery(document).ready(function() {var response = [{\"panoid\":\"pano397590\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"gcpyeTaP\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"gcpyeTaP\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/frontal-esglesia-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}}}];var scenes = response[1];function wpvrResolveDevicePanorama(scenesConfig) {    if (!scenesConfig || !scenesConfig.scenes) return;    var isMobile = \/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini\/i.test(navigator.userAgent) || (navigator.platform === \"MacIntel\" && navigator.maxTouchPoints > 1);    var isSmallScreen = (window.innerWidth <= 768);    if (typeof window.wpvrMaxTexture === \"undefined\") {        window.wpvrMaxTexture = 16384;        try {            var testCanvas = document.createElement(\"canvas\");            var gl = testCanvas.getContext(\"webgl\") || testCanvas.getContext(\"experimental-webgl\");            if (gl) {                window.wpvrMaxTexture = gl.getParameter(gl.MAX_TEXTURE_SIZE) || 16384;                var ext = gl.getExtension(\"WEBGL_lose_context\");                if (ext) { ext.loseContext(); }            }        } catch (e) {}    }    var maxTexture = window.wpvrMaxTexture;    for (var scId in scenesConfig.scenes) {        if (!scenesConfig.scenes.hasOwnProperty(scId)) continue;        var sc = scenesConfig.scenes[scId];        if (!sc) continue;        var exceedsGpu = sc.desktop_width && (sc.desktop_width > maxTexture);        if (isMobile || isSmallScreen || exceedsGpu) {            if (sc.mobile_panorama) {                sc.panorama = sc.mobile_panorama;            }        } else if (sc.desktop_panorama) {            sc.panorama = sc.desktop_panorama;        }    }}wpvrResolveDevicePanorama(scenes);if(scenes) {var scenedata = scenes.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx].type === \"info\") {    scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };} else if(scenehotspot[hIdx].type === \"scene\") {    scenehotspot[hIdx][\"clickHandlerArgs\"] = scenehotspot[hIdx][\"text\"] || \"\";}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var panoshow397590;var panoshow2397590;function initWPVRViewer397590() {if (typeof pannellum === \"undefined\" || typeof jQuery === \"undefined\") { setTimeout(initWPVRViewer397590, 50); return; }panoshow397590 = pannellum.viewer(response[0][\"panoid\"], scenes);\n            window.wpvrViewers = window.wpvrViewers || {};\n            window.wpvrViewers[response[0][\"panoid\"]] = panoshow397590;\n            document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                detail: { containerId: response[0][\"panoid\"], viewer: panoshow397590 }\n            }));\n        \n  \n        if(typeof wpvr_public === \"undefined\" || !wpvr_public.is_pro_active || !wpvr_public.is_license_active) {\n            panoshow397590.on(\"load\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n            \n            panoshow397590.on(\"scenechange\", function() {\n                jQuery(\".pnlm-panorama-info\").hide();\n                jQuery(\".pnlm-compass\").hide();\n            });\n        }}initWPVRViewer397590();var response_duplicate = [{\"panoid\":\"pano397590\"},{\"autoLoad\":true,\"showControls\":true,\"orientationSupport\":\"false\",\"compass\":false,\"orientationOnByDefault\":false,\"mouseZoom\":false,\"draggable\":true,\"disableKeyboardCtrl\":false,\"keyboardZoom\":true,\"preview\":\"\",\"default\":{\"firstScene\":\"gcpyeTaP\",\"sceneFadeDuration\":\"\"},\"scenes\":{\"gcpyeTaP\":{\"type\":\"equirectangular\",\"panorama\":\"https:\\\/\\\/elmolarturisme.cat\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/frontal-esglesia-scaled-1.jpg\",\"hfov\":100,\"maxHfov\":120,\"minHfov\":50,\"hotSpots\":[]}},\"autoRotate\":false}];var scenes_duplicate = response_duplicate[1];wpvrResolveDevicePanorama(scenes_duplicate);if(scenes_duplicate) {var scenedata = scenes_duplicate.scenes;for(var scId in scenedata) {if(!scenedata.hasOwnProperty(scId)) continue;var scenehotspot = scenedata[scId].hotSpots;if(scenehotspot && scenehotspot.length) {for(var hIdx = 0; hIdx < scenehotspot.length; hIdx++) {if(scenehotspot[hIdx][\"clickHandlerArgs\"] != \"\") {scenehotspot[hIdx][\"clickHandlerFunc\"] = function(div, args) { if (typeof window.wpvrhotspot === \"function\") { window.wpvrhotspot(div, args); } };}if(scenehotspot[hIdx].hotspot_type === \"sticker\" || scenehotspot[hIdx].type === \"sticker\" || scenehotspot[hIdx].stickerTemplate) {    (function(hs) {        hs[\"createTooltipFunc\"] = function(div) {            if (typeof window.wpvrRenderStickerHotspot === \"function\") {                window.wpvrRenderStickerHotspot(div, hs);            }        };    })(scenehotspot[hIdx]);}else if(scenehotspot[hIdx][\"createTooltipArgs\"] != \"\") {    scenehotspot[hIdx][\"createTooltipFunc\"] = function(div, args) { if (typeof window.wpvrtooltip === \"function\") { window.wpvrtooltip(div, args); } };}}}}}var vr_mode = \"off\";jQuery(\"#pano397590 .wpvr-floor-map .floor-plan-pointer\").on(\"click\",function(){\n           var scene_id = jQuery(this).attr(\"scene_id\");\n           panoshow397590.loadScene(scene_id)\n           jQuery(\".floor-plan-pointer\").removeClass(\"add-pulse\")\n           jQuery(this).addClass(\"add-pulse\")\n        });panoshow397590.on(\"mousemove\", function (data){\n            jQuery(\".add-pulse\").css({\"transform\":\"rotate(\"+data.yaw+\"deg)\"});\n        });\n    const node = document.querySelector(\".add-pulse\");\n        panoshow397590.on(\"compasschange\", function (data){\n            \/\/ const node = document.querySelector(\".add-pulse\");\n            \/\/ node.style.transform = data;\n            \/\/ jQuery(\".add-pulse\").css({\"transform\":data});\n            });panoshow397590.on(\"load\", function (){\n            \/\/ if(localStorage.getItem(\"vr_mode\") == \"off\") {\n            if(vr_mode == \"off\") {\n                  jQuery(\".vr-mode-title\").hide();\n                } else {\n                jQuery(\"#pano2397590 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano397590 .pnlm-compass.pnlm-controls.pnlm-control\").css(\"display\",\"none\");\n                jQuery(\"#pano2397590 .pnlm-panorama-info\").hide();\n                jQuery(\"#pano397590 .pnlm-panorama-info\").hide();\n                jQuery(\".vr-mode-title\").show();\n             }\n            setTimeout(() => {\n                window.dispatchEvent(new Event(\"resize\"));\n            }, 200);\n\t\t\t\t\t\tif (jQuery(\"#pano397590\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n\t               jQuery(\"#controls397590\").css(\"bottom\", \"80px\");\n\t           }\n\t           else {\n\t             jQuery(\"#controls397590\").css(\"bottom\", \"5px\");\n\t           }\n\t\t\t\t\t});panoshow397590.on(\"render\", function (){\n              window.dispatchEvent(new Event(\"resize\"));\n            });if (scenes.autoRotate) {\n                        var wpvrAutoRotateTimer397590 = null;\n                        var wpvrAutoRotateStopDelay397590 = parseInt(scenes.autoRotateStopDelay, 10) || 0;\n                        var wpvrScheduleAutoRotate397590 = function () {\n                            clearTimeout(wpvrAutoRotateTimer397590);\n                            if (wpvrAutoRotateStopDelay397590 > 0) {\n                                wpvrAutoRotateTimer397590 = setTimeout(function () {\n                                    panoshow397590.stopAutoRotate();\n                                }, wpvrAutoRotateStopDelay397590);\n                            } else {\n                                wpvrAutoRotateTimer397590 = setTimeout(function () {\n                                    panoshow397590.startAutoRotate(scenes.autoRotate, 0);\n                                }, 3000);\n                            }\n                        };\n                        panoshow397590.on(\"load\", wpvrScheduleAutoRotate397590);\n                        panoshow397590.on(\"scenechange\", wpvrScheduleAutoRotate397590);\n                    }var touchtime = 0;\n            var wpvrHotspotRoot397590 = document.getElementById(\"pano397590\");\n            if (wpvrHotspotRoot397590) {\n                wpvrHotspotRoot397590.addEventListener(\"click\", function (event) {\n                    var hotspot = event.target.closest(\".pnlm-hotspot-base\");\n\n                    if (!hotspot) {\n                        return;\n                    }\n\n                    \/\/ Social share icons navigate independently using their own links and targets.\n                    if (hotspot.querySelector(\".wpvr-sticker-card--social-share\")) {\n                        return;\n                    }\n\n                    var hotspotLink = hotspot.closest(\"a[href]\");\n                    if (!hotspotLink) {\n                        hotspotLink = hotspot.querySelector(\"a[href]\");\n                    }\n\n                    if (!hotspotLink) {\n                        return;\n                    }\n\n                    event.preventDefault();\n                    event.stopImmediatePropagation();\n\n                    if ((hotspotLink.getAttribute(\"target\") || \"_blank\") === \"_self\") {\n                        window.location.assign(hotspotLink.href);\n                    } else {\n                        window.open(hotspotLink.href, \"_blank\", \"noopener,noreferrer\");\n                    }\n                }, true);\n            }\n        jQuery(document).on(\"click\",\"#explainer_button_397590\",function() {\n                    jQuery(\"#explainer397590\").slideToggle(function(){\n                    var $explainerVideoId = jQuery(\"#explainer397590\");\n                    var $explainerVideoIframe = $explainerVideoId.find(\"iframe\");\n                    var explainerVideoIframSrc = $explainerVideoIframe.attr(\"src\");\n                    $explainerVideoIframe.attr(\"src\", \"\");\n                    $explainerVideoIframe.attr(\"src\", explainerVideoIframSrc);\n        });\n            });\n            jQuery(document).on(\"click\", \".close-explainer-video\", function() {\n              var $explainer = jQuery(this).parent(\".explainer\");\n              var $iframe = $explainer.find(\"iframe\");\n              var el_src = $iframe.attr(\"src\");\n              $iframe.attr(\"src\", \"\");\n              $explainer.hide();\n              $iframe.attr(\"src\", el_src);\n            });\n      jQuery(document).on(\"click\",\"#pano397590\",function(event) {\n        var isCross = event.target.closest(\".cross\");\n        var isActiveModal = event.target.closest(\".custom-ifram-wrapper\");\n        var isForm = event.target.closest(\".wpvr-hotspot-tweak-contents-wrapper\");\n        var isHotspot = event.target.closest(\".pnlm-hotspot-base\");\n        if(isCross != null){\n            return;\n        }\n        if(isForm != null){\n            jQuery(this).addClass(\"show-modal\");\n        }else if(isActiveModal == null){\n            if(isHotspot == null){\n                jQuery(\".custom-ifram-wrapper .custom-ifram\").empty();\n                jQuery(\".custom-ifram-wrapper\").hide();\n                jQuery(this).removeClass(\"show-modal\");\n                jQuery(\".wpvr-hotspot-tweak-contents-wrapper\").hide();\n            }\n        }\n      });jQuery(document).on(\"click\",\"#floor_map_button_397590\",function() {\n                jQuery(\"#wpvr-floor-map397590\").toggle().removeClass(\"fullwindow\");\n              });\n              jQuery(document).on(\"dblclick\",\"#wpvr-floor-map397590\",function(){\n                jQuery(this).addClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").addClass(\"show-modal\");\n              });\n              jQuery(document).on(\"click\",\".close-floor-map-plan\",function() {\n                jQuery(this).parent(\".wpvr-floor-map\").hide();\n                jQuery(this).parent(\".wpvr-floor-map\").removeClass(\"fullwindow\");\n                jQuery(this).parents(\".pano-wrap\").removeClass(\"show-modal\");\n              });jQuery(document).ready(function($){\n\t\t              jQuery(\"#sccontrols397590\").hide();\n                      jQuery(\"#pano397590 .wpvr_slider_nav\").hide();\n\t\t              jQuery(\".vrgctrl397590\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t          });var slide397590 = \"down\";\n\t\t          jQuery(document).on(\"click\",\"#vrgcontrols397590\",function() {\n\t\t            if (slide397590 == \"up\") {\n\t\t              jQuery(\".vrgctrl397590\").empty();\n\t\t              jQuery(\".vrgctrl397590\").html('<i class=\"fa fa-angle-up\"><\/i>');\n\t\t              slide397590 = \"down\";\n\t\t            }\n\t\t            else {\n\t\t              jQuery(\".vrgctrl397590\").empty();\n\t\t              jQuery(\".vrgctrl397590\").html('<i class=\"fa fa-angle-down\"><\/i>');\n\t\t              slide397590 = \"up\";\n\t\t            }\n                    jQuery(\"#pano397590 .wpvr_slider_nav\").slideToggle(); \n                    jQuery(\"#sccontrols397590\").slideToggle(function(){\n                        if (jQuery(\".elementor-edit-mode .elementor-widget-container\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                                jQuery(\".elementor-edit-mode  .elementor-widget-container .wpvr-cardboard .pnlm-container #sccontrols397590\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\",\n                                    \"gap\": \"15px\"\n                                });\n                            }\n                        }\n                        if (jQuery(\".bricks-is-frontend\").length) {\n                            if (jQuery(this).is(\":visible\")) {\n                            jQuery(\".bricks-is-frontend .wpvr-cardboard .pnlm-container #sccontrols397590\").css({\n                                    \"display\": \"flex\",\n                                    \"justify-content\": \"center\",\n                                    \"align-items\": \"center\"\n                                });\n                            }\n                        }              \n                    });\n          });jQuery(\".elementor-tab-title\").click(function(){\n                      var element_id;\n                      var pano_id;\n                      var element_id = this.id;\n                      element_id = element_id.split(\"-\");\n                      element_id = element_id[3];\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).addClass(\"awwww\");\n                      var pano_id = jQuery(\".awwww\").attr(\"id\");\n                      jQuery(\"#elementor-tab-content-\"+element_id).find(\"#master-container\").children(\"div\").eq(1).removeClass(\"awwww\");;\n                      if (pano_id != undefined) {\n                        if (pano_id == \"pano397590\") {\n                          jQuery(\"#pano397590\").children(\".pnlm-render-container\").remove();\n                          jQuery(\"#pano397590\").children(\".pnlm-ui\").remove();\n                          panoshow397590 = pannellum.viewer(response[0][\"panoid\"], scenes);\n                          window.wpvrViewers = window.wpvrViewers || {};\n                          window.wpvrViewers[response[0][\"panoid\"]] = panoshow397590;\n                          document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                              detail: { containerId: response[0][\"panoid\"], viewer: panoshow397590 }\n                          }));\n                          jQuery(\"#pano397590\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n                          setTimeout(function() {\n                                \/\/   panoshow397590.loadScene(\"gcpyeTaP\");\n                                  window.dispatchEvent(new Event(\"resize\"));\n                                  if (jQuery(\"#pano397590\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                                       jQuery(\"#controls397590\").css(\"bottom\", \"55px\");\n                                   } else {\n                                     jQuery(\"#controls397590\").css(\"bottom\", \"5px\");\n                                   }\n                          }, 200);\n                        }\n                      }\n            });jQuery(\".geodir-tab-head dd, #vr-tour-tab\").click(function(){\n              jQuery(\"#pano397590\").children(\".pnlm-render-container\").remove();\n              jQuery(\"#pano397590\").children(\".pnlm-ui\").remove();\n              panoshow397590 = pannellum.viewer(response[0][\"panoid\"], scenes);\n              window.wpvrViewers = window.wpvrViewers || {};\n              window.wpvrViewers[response[0][\"panoid\"]] = panoshow397590;\n              document.dispatchEvent(new CustomEvent(\"wpvr:viewer-ready\", {\n                  detail: { containerId: response[0][\"panoid\"], viewer: panoshow397590 }\n              }));\n              setTimeout(function() {\n                      panoshow397590.loadScene(\"gcpyeTaP\");\n                      window.dispatchEvent(new Event(\"resize\"));\n                      if (jQuery(\"#pano397590\").children().children(\".pnlm-panorama-info:visible\").length > 0) {\n                           jQuery(\"#controls397590\").css(\"bottom\", \"55px\");\n                       }\n                       else {\n                         jQuery(\"#controls397590\").css(\"bottom\", \"5px\");\n                       }\n              }, 200);\n            });\n            jQuery(\"#pano397590\").children(\".pnlm-ui\").find(\".pnlm-load-button p\").text(\"Click To Load Panorama\")\n            jQuery(\"#pano397590 .pnlm-title-box\").on(\"mouseenter\", function(){\n                jQuery(this).attr(\"title\", jQuery(this).text());\n            });\n            jQuery(\"#pano397590 .pnlm-title-box\").on(\"mouseleave\", function(){\n                jQuery(this).removeAttr(\"title\");\n            });});})(jQuery);<\/script>\n<script id=\"wpvr-scene-info-script-pano397590\">\n            (function () {\n                var pano = document.getElementById(\"pano397590\");\n                var byLabel = \"By\";\n\n                if (!pano || !window.MutationObserver) {\n                    return;\n                }\n\n                function addAuthorLabel(author) {\n                    if (!author || !author.textContent.trim() || author.querySelector(\".wpvr-author-label\")) {\n                        return;\n                    }\n\n                    var firstNode = author.firstChild;\n                    if (firstNode ? firstNode.nodeType === 3 : false) {\n                        var prefix = byLabel + \" \";\n                        if (firstNode.nodeValue.indexOf(prefix) === 0) {\n                            firstNode.nodeValue = firstNode.nodeValue.slice(prefix.length);\n                        }\n                    }\n\n                    var label = document.createElement(\"span\");\n                    label.className = \"wpvr-author-label\";\n                    label.textContent = byLabel;\n                    author.insertBefore(label, author.firstChild);\n                }\n\n                function syncSceneInfo() {\n                    var info = pano.querySelector(\".pnlm-panorama-info\");\n                    if (!info) {\n                        return;\n                    }\n\n                    \/\/ Keep the Pannellum full-screen drag layer in its original\n                    \/\/ stacking order so hotspots remain clickable. Promote only\n                    \/\/ the compact metadata bar to the tour root instead.\n                    if (info.parentNode !== pano) {\n                        pano.appendChild(info);\n                    }\n\n                    var title = info.querySelector(\".pnlm-title-box\");\n                    var author = info.querySelector(\".pnlm-author-box\");\n                    var hasTitle = Boolean(title ? title.textContent.trim() : false);\n                    var hasAuthor = Boolean(author ? author.textContent.trim() : false);\n\n                    if (hasTitle) {\n                        title.setAttribute(\"title\", title.textContent.trim());\n                    } else if (title) {\n                        title.removeAttribute(\"title\");\n                    }\n\n                    if (hasAuthor) {\n                        addAuthorLabel(author);\n                        var authorName = author.textContent.replace(byLabel, \"\").trim();\n                        author.setAttribute(\"aria-label\", byLabel + \" \" + authorName);\n                        author.setAttribute(\"title\", authorName);\n                    } else if (author) {\n                        author.removeAttribute(\"aria-label\");\n                        author.removeAttribute(\"title\");\n                    }\n\n                    info.classList.toggle(\"wpvr-scene-info-row\", hasTitle || hasAuthor);\n                    info.classList.toggle(\"wpvr-has-title\", hasTitle);\n                    info.classList.toggle(\"wpvr-has-author\", hasAuthor);\n                    info.style.display = hasTitle || hasAuthor ? \"flex\" : \"none\";\n\n                    var hasSceneInfo = hasTitle || hasAuthor;\n                    var isClassicLayout = true;\n                    pano.classList.toggle(\"wpvr-has-scene-info\", hasSceneInfo);\n                    pano.classList.toggle(\"wpvr-layout-classic\", isClassicLayout);\n\n                    if (hasSceneInfo) {\n                        pano.style.setProperty(\"--wpvr-scene-info-height\", info.offsetHeight + \"px\");\n                    } else {\n                        pano.style.removeProperty(\"--wpvr-scene-info-height\");\n                    }\n                }\n\n                var observer = new MutationObserver(syncSceneInfo);\n                observer.observe(pano, { childList: true, subtree: true, characterData: true });\n                syncSceneInfo();\n            }());\n        <\/script> <\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-397611","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tour 360\u00ba - Ajuntament del Molar<\/title>\n<meta name=\"description\" content=\"Tour 360\u00ba\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elmolarturisme.cat\/en\/360-tour\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tour 360\u00ba - Ajuntament del Molar\" \/>\n<meta property=\"og:description\" content=\"Tour 360\u00ba\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elmolarturisme.cat\/en\/360-tour\/\" \/>\n<meta property=\"og:site_name\" content=\"Ajuntament del Molar\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-20T11:30:47+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elmolarturisme.cat\\\/tour-360\\\/\",\"url\":\"https:\\\/\\\/elmolarturisme.cat\\\/tour-360\\\/\",\"name\":\"Tour 360\u00ba - Ajuntament del Molar\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elmolarturisme.cat\\\/#website\"},\"datePublished\":\"2026-02-03T11:46:48+00:00\",\"dateModified\":\"2026-02-20T11:30:47+00:00\",\"description\":\"Tour 360\u00ba\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elmolarturisme.cat\\\/tour-360\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elmolarturisme.cat\\\/tour-360\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elmolarturisme.cat\\\/tour-360\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inici\",\"item\":\"https:\\\/\\\/elmolarturisme.cat\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tour 360\u00ba\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elmolarturisme.cat\\\/#website\",\"url\":\"https:\\\/\\\/elmolarturisme.cat\\\/\",\"name\":\"Ajuntament del Molar\",\"description\":\"Lloc web oficial i institucional\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elmolarturisme.cat\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"360\u00ba Tour - Molar Town Hall","description":"360\u00ba tour","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/elmolarturisme.cat\/en\/360-tour\/","og_locale":"en_GB","og_type":"article","og_title":"Tour 360\u00ba - Ajuntament del Molar","og_description":"Tour 360\u00ba","og_url":"https:\/\/elmolarturisme.cat\/en\/360-tour\/","og_site_name":"Ajuntament del Molar","article_modified_time":"2026-02-20T11:30:47+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/elmolarturisme.cat\/tour-360\/","url":"https:\/\/elmolarturisme.cat\/tour-360\/","name":"360\u00ba Tour - Molar Town Hall","isPartOf":{"@id":"https:\/\/elmolarturisme.cat\/#website"},"datePublished":"2026-02-03T11:46:48+00:00","dateModified":"2026-02-20T11:30:47+00:00","description":"360\u00ba tour","breadcrumb":{"@id":"https:\/\/elmolarturisme.cat\/tour-360\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elmolarturisme.cat\/tour-360\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elmolarturisme.cat\/tour-360\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inici","item":"https:\/\/elmolarturisme.cat\/"},{"@type":"ListItem","position":2,"name":"Tour 360\u00ba"}]},{"@type":"WebSite","@id":"https:\/\/elmolarturisme.cat\/#website","url":"https:\/\/elmolarturisme.cat\/","name":"Molar Town Hall","description":"Official and institutional website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elmolarturisme.cat\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/pages\/397611","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/comments?post=397611"}],"version-history":[{"count":28,"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/pages\/397611\/revisions"}],"predecessor-version":[{"id":398360,"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/pages\/397611\/revisions\/398360"}],"wp:attachment":[{"href":"https:\/\/elmolarturisme.cat\/en\/wp-json\/wp\/v2\/media?parent=397611"}],"curies":[{"name":"WP","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}