{"id":5063,"date":"2024-05-23T11:57:30","date_gmt":"2024-05-23T09:57:30","guid":{"rendered":"https:\/\/www.toscanaoneexclusive.com\/favorite-properties\/"},"modified":"2024-08-06T16:49:37","modified_gmt":"2024-08-06T14:49:37","slug":"favorite-properties","status":"publish","type":"page","link":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/","title":{"rendered":"Favorite Properties"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"5063\" class=\"elementor elementor-5063 elementor-4088\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-6f821b9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"6f821b9\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t\t<div class=\"elementor-background-overlay\"><\/div>\n\t\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-397b307 animated-slow elementor-invisible\" data-id=\"397b307\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;animation&quot;:&quot;fadeIn&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1c73b2b elementor-widget__width-auto elementor-widget-mobile__width-inherit elementor-widget elementor-widget-text-editor\" data-id=\"1c73b2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p style=\"margin: 0;\">Favorite Properties<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9febde5 elementor-widget__width-auto elementor-widget-mobile__width-inherit elementor-widget elementor-widget-text-editor\" data-id=\"9febde5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Home \/ <span style=\"color: #ceb962;\">Favorite Properties<\/span><\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e7a9c3c elementor-widget elementor-widget-ricerca-widget\" data-id=\"e7a9c3c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"ricerca-widget.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\n\n<div id=\"content-ric\">\n  <div class=\"wrapper\" style=\"width:100%;\">\n    <div id=\"ricerca-interna\">\n\n      <!-- Property Search Section -->\n      <div class=\"auto-container\">\n        <div class=\"property-search-tabs tabs-box\">\n          <form name=\"frmRicerca\" id=\"ricercaForm\" action=\"https:\/\/www.toscanaoneexclusive.com\/search\/\" method=\"GET\">\n\n            <input type=\"hidden\" name=\"order_by\" value=\"\" \/>\n            <input type=\"hidden\" name=\"lang\" value=\"en\" \/>\n            <input type=\"hidden\" name=\"rental\" value=\"0\">\n            <input type=\"hidden\" name=\"action\" value=\"immobili\" \/>\n                        <input type=\"hidden\" name=\"url_area\" value=\"en\">\n\n            <div class='tabs-content'>\n              <!--Tab \/ Active Tab-->\n              <div class=\" tab active-tab\" id=\"sale\">\n                <div class=\"property-search-form\">\n\n                  <div class=\"row\">\n                    <!-- Form Group -->\n                    <div class=\"form-group col-lg-12 col-md-12 col-sm-12\">\n                      <!-- Campo ricerca PREZZO -->\n                      <div class=\"ric_row price\">\n                        <label class=\"summary\" onclick=\"jQuery(this).parent().find('.multi_select').toggleClass('opened');\">Price <i class=\"fas fa-angle-down\"><\/i><\/label>\n                        <div class=\"range multi_select\">\n                          <div id=\"slider-range-rent\" class='slider'><\/div>\n                          <div id=\"slider-range-sell\" class='slider'><\/div>\n                          <div class=\"priceText\">\n                            <input id=\"priceMinText\" class=\"priceSell\" type=\"text\" name=\"\">\n                            <input id=\"priceMaxText\" class=\"priceSell\" type=\"text\" name=\"\">\n                          <\/div>\n                          <input type=\"hidden\" id=\"rentMin\" name=\"price_min_rent\" value=\"\">\n                          <input type=\"hidden\" id=\"rentMax\" name=\"price_max_rent\" value=\"\">\n                          <input type=\"hidden\" id=\"sellMin\" name=\"price_min_sell\" value=\"\">\n                          <input type=\"hidden\" id=\"sellMax\" name=\"price_max_sell\" value=\"\">\n                        <\/div>\n                      <\/div>\n\n                       <!-- Campo ricerca LOCATION -->\n                       <div class=\"ric_row locations\">\n                        <input placeholder=\"Location\" type=\"hidden\" name=\"area_id\" value=\"\" \/>\n                        <label class=\"summary\" onclick=\"jQuery(this).parent().find('.multi_select').toggleClass('opened');\">\n              \n                            <span class=\"custom-span-selection\">Location <i class=\"fas fa-angle-down\"><\/i><\/span>\n                        \n                        <\/label>\n                        <ul class=\"multi_select\">\n                          <li class=\"option\" onclick=\"selectLocations('');\">Any<\/li>\n                          <li class=\"option\" onclick=\"selectLocations(700042);\">Historic Center<\/li>                          <li class=\"option\" onclick=\"selectLocations(700040);\">Countryside<\/li>                          <li class=\"option\" onclick=\"selectLocations(700041);\">Art City<\/li>                          <li class=\"option\" onclick=\"selectLocations(700039);\">Seafront<\/li>                        <\/ul>\n                        <script>\n                          let inputLocations = document.querySelector('input[name=area_id]');\n                          const locationsDropdown = document.querySelector('.ric_row.locations .multi_select');\n                          const locationsCustomSpanSelection = document.querySelector('.ric_row.locations .custom-span-selection');\n                          const reserSelectLocations = () => {\n                            let selectLi = document.querySelectorAll('.ric_row.locations li');\n                            for (const item of selectLi) {\n                              item.style.color = \"var(--text-color)\";\n                            }\n                          }\n                          const selectLocations = (number) => {\n                            inputLocations.value = number;\n                            \n                          \n                            if (number == \"\") {\n                              locationsCustomSpanSelection.innerHTML = 'Location <i class=\"fas fa-angle-down\"><\/i>';\n                            } else if (number == 700042) {\n                              locationsCustomSpanSelection.innerHTML = 'Historic Center <i class=\"fas fa-angle-down\"><\/i>';\n                            } else if (number == 700040) {\n                              locationsCustomSpanSelection.innerHTML = \"Countryside <i class=\\\"fas fa-angle-down\\\"><\/i>\";\n                            } else if (number == 700041) {\n                              locationsCustomSpanSelection.innerHTML = \"Art City <i class=\\\"fas fa-angle-down\\\"><\/i>\"\n                            } else if (number == 700039) {\n                              locationsCustomSpanSelection.innerHTML = \"Seafront <i class=\\\"fas fa-angle-down\\\"><\/i>\"\n                            }\n                            let liPosition = number + 1;\n                          \n                            locationsDropdown.classList.remove('opened');\n                          };\n                        <\/script>\n                      <\/div>\n                        \n\n                        \n                      <!-- Nome immobile -->\n                      <p class=\"ric_row nome-immobile\">\n                        <input id=\"name-prop\" placeholder=\"Property name\" type=\"text\" name=\"name_like\" value=\"\" \/>\n                      <\/p>\n\n                    \n\n                      <div class=\"ric_row submit\">\n                        <button type=\"submit\" class=\"cta-button correzzione-bordo-colorato\">Search<\/button>\n                                                  <div class=\"mapsearch\" onclick=\"chooseArea.showDialog('coords');changeValueLocation(this.id);\"><i class=\"la la-map-o\"><\/i><i class=\"fa-solid fa-map-location-dot\"><\/i><\/div>\n                          <div id=\"search-by-map\">\n                            <div class=\"map_search\">\n                              <input type=\"hidden\" name=\"coords\" id=\"coords\" value=\"\" onchange=\"checkPolygonView(this.value);\" \/>\n                              <input type=\"hidden\" name=\"coords_center\" id=\"coords_center\" value=\"\" \/>\n                              <input type=\"hidden\" name=\"coords_zoom\" id=\"coords_zoom\" value=\"\" \/>\n                            <\/div>\n                            <div style=\"\" class='update-poly'><\/div>\n                          <\/div>\n\n                          <script type=\"text\/javascript\">\n                            var options = {\n                              mapCenterLat: 43.4041493,\n                              mapCenterLng: 10.8523322,\n                              resetText: \"Reset the drawing\",\n                              confirmText: \"Confirm\",\n                              title: \"Draw an area\",\n                              polyFillColor: \"#bda450\",\n                              polyStrokeColor: \"#bda450\",\n                              closeText: \"Close\",\n                            };\n                            var chooseArea = new Dot2Dot(\"chooseArea\", options);\n\n                            function changeValueLocation(value) {\n                              \/\/jQuery('select[name=\"city_id\"] option:contains(\"Qualsiasi\")').text('TEMPEST');\n                              if (value === \"search_tab1\") {\n                                jQuery('select[name=\"city_id\"]').parent().show();\n                                jQuery(\"p.ric_row.advanced_search.zona\").show();\n                                jQuery('span[name=\"coord_set\"]').hide();\n                                jQuery('input[name=\"switch_location\"]').val(\"classica\");\n                                jQuery(\"body\").removeClass(\"view-mappa-riepilogo\");\n                                jQuery('input[name=\"coords\"]').val(null);\n                                jQuery(\".update-poly\").hide();\n                                jQuery('button[type=\"submit\"]').parent().css({\n                                  flexGrow: 0\n                                });\n                              } else if (value === \"search_tab2\") {\n                                jQuery('select[name=\"city_id\"]').parent().hide();\n                                jQuery(\"p.ric_row.advanced_search.zona\").hide();\n                                jQuery(\".update-poly\").show();\n                                jQuery('span[name=\"coord_set\"]').show();\n                                jQuery('input[name=\"switch_location\"]').val(\"mappa\");\n                                jQuery('button[type=\"submit\"]').parent().css({\n                                  flexGrow: 1\n                                });\n                              }\n                            }\n\n                            var setTypeLocation = function() {\n                              if (jQuery('input[name=\"switch_location\"]').val() === \"classica\") {\n                                jQuery('select[name=\"city_id\"]').parent().show();\n                                jQuery('span[name=\"coord_set\"]').hide();\n                              } else if (jQuery('input[name=\"switch_location\"]').val() === \"mappa\") {\n                                jQuery('select[name=\"city_id\"]').parent().hide();\n                                jQuery('span[name=\"coord_set\"]').show();\n                              }\n                            };\n                            setTypeLocation();\n\n                            var checkPolygonView = function(b64value) {\n                              \/*\n                              var coords = JSON.parse(atob(b64value));\n                              jQuery(\"body\").addClass(\"view-mappa-riepilogo\");\n                              buildStaticMap(coords);\n                              *\/\n                              if (JSON.parse(atob(b64value)).length > 0) {\n                                jQuery('form[name=\"frmRicerca\"]').submit();\n                              }\n                            };\n\n                            var buildStaticMap = function(poly) {\n                              poly.push(poly[0]);\n                              var currCenter = \"43.4041493,10.8523322\";\n                              if (jQuery(\"#coords_center\").val().length > 0) {\n                                currCenter = jQuery(\"#coords_center\")\n                                  .val()\n                                  .replace(\/[\\(\\)\\s]\/g, \"\");\n                              }\n                              if (jQuery(\"#coords_zoom\").val().length > 0) {\n                                currZoom = jQuery(\"#coords_zoom\")\n                                  .val()\n                                  .replace(\/[\\(\\)\\s]\/g, \"\");\n                              }\n                              var static_gmap =\n                                \"http:\/\/maps.googleapis.com\/maps\/api\/staticmap?zoom=\" +\n                                currZoom +\n                                \"&center=\" +\n                                currCenter +\n                                \"&size=617x450&sensor=false&path=color:0x33892dff|weight:3|fillcolor:0xff7f0099|\";\n                              jQuery(\"#mappa-riepilogo\")\n                                .find(\"img\")\n                                .attr(\"src\", static_gmap + poly.join(\"|\").replace(\/;\/g, \",\"));\n                              jQuery(\"#mappa-riepilogo\").css({\n                                maxWidth: \"100%\",\n                                overflow: \"hidden\",\n                              });\n                              jQuery(\"#mappa-riepilogo img\").css({\n                                width: \"100%\",\n                              });\n                            };\n                          <\/script>\n\n                                              <\/div>\n                      \n                      \n                    <\/div>\n                  <\/div>\n\n\n                <\/div>\n\n              <\/div>\n\n            <\/div>\n\n          <\/form>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n\n\n\n<script type=\"text\/javascript\">\n  let valueMin, valueMax;\n  let valueMinRent, valueMaxRent;\n  let valueMinSell, valueMaxSell;\n  let rental = document.querySelector('input[name=rental]');\n  const priceMinText = document.querySelector('.range #priceMinText');\n  const priceMaxText = document.querySelector('.range #priceMaxText');\n  const priceMinRent = 100;\n  const priceMaxRent = 5000;\n  const stepRent = 100;\n  const priceMinSell = 450000;\n  const priceMaxSell = 3100000;\n  const stepSell = 50000;\n  jQuery(document).ready(() => {\n          valueMinSell = priceMinSell;\n      valueMaxSell = priceMaxSell;\n              valueMinRent = priceMinRent;\n      valueMaxRent = priceMaxRent;\n        if (document.querySelector('input[name=rental]').value == 0) {\n      valueMin = valueMinSell;\n      valueMax = valueMaxSell;\n    } else {\n      valueMin = valueMinRent;\n      valueMax = valueMaxRent;\n    }\n    jQuery(\".range #slider-range-sell\").slider({\n      min: priceMinSell,\n      max: priceMaxSell,\n      step: stepSell,\n      values: [valueMinSell, valueMaxSell],\n      range: true,\n      slide: function(event, ui) {\n        priceMinText.value = ui.values[0].toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        priceMaxText.value = ui.values[1].toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n\n        jQuery(\"#sellMin\").val(ui.values[0]);\n        jQuery(\"#sellMax\").val(ui.values[1]);\n        var formattedNumMin = ui.values[0].toLocaleString('it-IT', {\n          maximumFractionDigits: 2,\n          grouping: true\n        });\n        var formattedNumMax = ui.values[1].toLocaleString('it-IT', {\n          maximumFractionDigits: 2,\n          grouping: true\n        });\n        jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + formattedNumMin + \" &euro; - \" + formattedNumMax + \"&euro;<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n      },\n    });\n    jQuery(\"#priceMinText.priceSell\").on(\"change\", function() {\n      var min = jQuery(this).val();\n      var unformattedNumberMin = parseFloat(min.replace(\/[^\\d\\.\\-\\ ]\/g, '').replace(\/\\.\/g, ''));\n      var max = jQuery(\"#priceMaxText.priceSell\").val();\n      jQuery(\".range #slider-range-sell\").slider(\"values\", 0, unformattedNumberMin);\n      jQuery(\"#sellMin\").val(unformattedNumberMin);\n      jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + min + \" - \" + max + \"<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n    });\n\n    jQuery(\"#priceMaxText.priceSell\").on(\"change\", function() {\n      var max = jQuery(this).val();\n      var unformattedNumberMax = parseFloat(max.replace(\/[^\\d\\.\\-\\ ]\/g, '').replace(\/\\.\/g, ''));\n      var min = jQuery(\"#priceMinText.priceSell\").val();\n      jQuery(\".range #slider-range-sell\").slider(\"values\", 1, unformattedNumberMax);\n      jQuery(\"#sellMax\").val(unformattedNumberMax);\n      jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + min + \" - \" + max + \"<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n    });\n\n\n\n    jQuery(\".range #slider-range-rent\").slider({\n      min: priceMinRent,\n      max: priceMaxRent,\n      step: stepRent,\n      values: [valueMinRent, valueMaxRent],\n      range: true,\n      slide: function(event, ui) {\n        priceMinText.value = ui.values[0].toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        priceMaxText.value = ui.values[1].toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        jQuery(\"#rentMin\").val(ui.values[0]);\n        jQuery(\"#rentMax\").val(ui.values[1]);\n        var formattedNumMin = ui.values[0].toLocaleString('it-IT', {\n          maximumFractionDigits: 2,\n          grouping: true\n        });\n        var formattedNumMax = ui.values[1].toLocaleString('it-IT', {\n          maximumFractionDigits: 2,\n          grouping: true\n        });\n        jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + formattedNumMin + \" &euro; - \" + formattedNumMax + \"&euro;<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n      },\n    });\n\n    jQuery(\"#priceMinText:not(priceSell)\").on(\"change\", function() {\n      var min = jQuery(this).val();\n      var unformattedNumberMin = parseFloat(min.replace(\/[^\\d\\.\\-\\ ]\/g, '').replace(\/\\.\/g, ''));\n      var max = jQuery(\"#priceMaxText:not(priceSell)\").val();\n      jQuery(\".range #slider-range-rent\").slider(\"values\", 0, unformattedNumberMin);\n      jQuery(\"#rentMin\").val(unformattedNumberMin);\n      jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + min + \" - \" + max + \"<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n\n    });\n\n    jQuery(\"#priceMaxText:not(priceSell)\").on(\"change\", function() {\n      var max = jQuery(this).val();\n      var unformattedNumberMax = parseFloat(max.replace(\/[^\\d\\.\\-\\ ]\/g, '').replace(\/\\.\/g, ''));\n      var min = jQuery(\"#priceMinText:not(priceSell)\").val();\n      jQuery(\".range #slider-range-rent\").slider(\"values\", 1, unformattedNumberMax);\n      jQuery(\"#rentMax\").val(unformattedNumberMax);\n      jQuery(\".price label\").html(\"<small style='font-size: 11px;line-height: 12px;'>\" + min + \" - \" + max + \"<\/small><i class=\\\"fas fa-angle-down\\\"><\/i>\");\n    });\n\n\n    if (jQuery('input[name=rental]').val() == 1) {\n      jQuery('#affitto').addClass('clicked');\n      jQuery('#vendita').removeClass('clicked');\n      jQuery('#slider-range-rent').addClass('active');\n    } else {\n      jQuery('#vendita').addClass('clicked');\n      jQuery('#affitto').removeClass('clicked');\n      jQuery('#slider-range-sell').addClass('active');\n    }\n    jQuery('.tagify__input').click(setMapDisplay('.map-buttons'));\n    priceMinText.value = valueMin.toLocaleString(\"it-IT\", {\n      style: \"currency\",\n      currency: \"EUR\",\n      minimumFractionDigits: 0,\n      maximumFractionDigits: 0\n    });\n    priceMaxText.value = valueMax.toLocaleString(\"it-IT\", {\n      style: \"currency\",\n      currency: \"EUR\",\n      minimumFractionDigits: 0,\n      maximumFractionDigits: 0\n    });\n  })\n  priceMinText.addEventListener('input', (e) => {\n    console.log(e.target.value);\n    if (rental == 0) {\n      let value = parseInt(e.target.value.replace(\/[\\., \u20ac]\/g, '')) \/ 100;\n      jQuery('.range #slider-range-sell').slider('values', 0, value);\n    } else {\n      let value = parseInt(e.target.value.replace(\/[\\., \u20ac]\/g, '')) \/ 100;\n      jQuery('.range #slider-range-rent').slider('values', 0, value);\n    }\n  });\n  priceMaxText.addEventListener('input', (e) => {\n    if (rental == 0) {\n      let value = parseInt(e.target.value.replace(\/[\\., \u20ac]\/g, '')) \/ 100;\n      jQuery('.range #slider-range-sell').slider('values', 1, value);\n    } else {\n      let value = parseInt(e.target.value.replace(\/[\\., \u20ac]\/g, '')) \/ 100;\n      jQuery('.range #slider-range-rent').slider('values', 1, value);\n    }\n  });\n\n  function setRental(val) {\n    if (val == 1) {\n      rental = 1;\n      jQuery('#affitto').addClass('clicked');\n      jQuery('#vendita').removeClass('clicked');\n      jQuery('#slider-range-rent').addClass('active');\n      jQuery('#priceMinText').addClass('priceRent');\n      jQuery('#priceMaxText').addClass('priceRent');\n      jQuery('#priceMinText').removeClass('priceSell');\n      jQuery('#priceMaxText').removeClass('priceSell');\n      jQuery('#slider-range-sell').removeClass('active');\n      jQuery(\".price label\").html(\"Prezzo <i class=\\\"fas fa-angle-down\\\"><\/i>\");\n\n      if (jQuery('input[name=price_min_rent]').val() != \"\" && jQuery('input[name=price_min_rent]').val() != \"\") {\n        priceMaxText.value = jQuery('input[name=price_max_rent]').val().toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        priceMinText.value = jQuery('input[name=price_min_rent]').val().toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        \/\/ jQuery(\"#amount\").html(\"\u20ac\" + jQuery('input[name=price_min_rent]').val() + \" - \u20ac\" + jQuery('input[name=price_max_rent]').val());\n      } else {\n        priceMaxText.value = valueMaxRent.toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n\n        });\n        priceMinText.value = valueMinRent.toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        \/\/ jQuery(\"#amount\").html(\"\u20ac\" + valueMinRent + \" - \u20ac\" + valueMaxRent);\n      }\n      [priceMinText.step, priceMaxText.step] = [stepRent, stepRent];\n      [priceMinText.min, priceMaxText.min] = [priceMinRent, priceMinRent];\n      [priceMinText.max, priceMaxText.max] = [priceMaxRent, priceMaxRent];\n      jQuery(\"#priceMinText\").val(\"100\u00a0\u20ac\");\n      jQuery(\"#priceMaxText\").val(\"5.000\u00a0\u20ac\");\n      jQuery(\"#priceMaxText\").val(\"5.000\u00a0\u20ac\");\n      jQuery('input[name=price_min_sell]').val(\"\");\n      jQuery('input[name=price_max_sell]').val(\"\");\n      jQuery('input[name=price_min_rent]').val(\"\");\n      jQuery('input[name=price_max_rent]').val(\"\");\n\n    } else {\n      rental = 0;\n      jQuery('#vendita').addClass('clicked');\n      jQuery('#affitto').removeClass('clicked');\n      jQuery('#slider-range-sell').addClass('active');\n      jQuery('#slider-range-rent').removeClass('active');\n      jQuery('#priceMinText').addClass('priceSell');\n      jQuery('#priceMaxText').addClass('priceSell');\n      jQuery('#priceMinText').removeClass('priceRent');\n      jQuery('#priceMaxText').removeClass('priceRent');\n      jQuery('input[name=price_min_rent]').val(\"\");\n      jQuery('input[name=price_max_rent]').val(\"\");\n      jQuery('input[name=price_min_sell]').val(\"\");\n      jQuery('input[name=price_max_sell]').val(\"\");\n      jQuery(\".price label\").html(\"Prezzo <i class=\\\"fas fa-angle-down\\\"><\/i>\");\n\n      if (jQuery('input[name=price_min_sell]').val() != \"\" && jQuery('input[name=price_min_sell]').val() != \"\") {\n        priceMaxText.value = jQuery('input[name=price_max_sell]').val().toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        priceMinText.value = jQuery('input[name=price_min_sell]').val().toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        \/\/ jQuery(\"#amount\").html(\"\u20ac\" + jQuery('input[name=price_min_sell]').val() + \" - \u20ac\" + jQuery('input[name=price_max_sell]').val());\n      } else {\n        priceMaxText.value = valueMaxSell.toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        priceMinText.value = valueMinSell.toLocaleString(\"it-IT\", {\n          style: \"currency\",\n          currency: \"EUR\",\n          minimumFractionDigits: 0,\n          maximumFractionDigits: 0\n        });\n        \/\/ jQuery(\"#amount\").html(\"\u20ac\" + valueMinSell + \" - \u20ac\" + valueMaxSell);\n      }\n      [priceMinText.step, priceMaxText.step] = [stepSell, stepSell];\n      [priceMinText.min, priceMaxText.min] = [priceMinSell, priceMinSell];\n      [priceMinText.max, priceMaxText.max] = [priceMaxSell, priceMaxSell];\n      jQuery(\"#priceMinText\").val(\"450.000\u00a0\u20ac\");\n      jQuery(\"#priceMaxText\").val(\"10.000.000\u00a0\u20ac\");\n\n    }\n  }\n\n  function setMapDisplay(element) {\n    jQuery(element).css('display', 'block');\n  }\n  \/*const advancedButton = document.querySelector('#ricerca-interna .advancedButton');\n  const ricercaAvanzata = document.getElementById('ricerca-avanzata');\n  advancedButton.addEventListener('click', () => {\n    ricercaAvanzata.classList.toggle('visible');\n    ricercaAvanzata.classList.toggle('not-visible');\n  });*\/\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c9d0980 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c9d0980\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-63bb8e6\" data-id=\"63bb8e6\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b52e188 elementor-widget elementor-widget-immobili-widget\" data-id=\"b52e188\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"immobili-widget.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t<div id=\"elencoImmobili\">\n\t\t<div class=\"loader-immobili\"><img decoding=\"async\" src=\"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif\"><\/div>\n\t<\/div>\n\t<script>\n\t\t\t\n\t\t\tconst populatePropertiesList = async () => {\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tconst response = await fetch(\"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/functions\/inc\/immobili_elenco.php?lang=en&griglia_immobili=&saved=1&descrizione=yes&mappa_immobili=&elenco_immobili=yes&items=8&e_display_conditions=&handle_motion_fx_asset_loading=&sticky=&hide_widescreen=&hide_laptop=&custom_css=&url_starter=\/en\/wp-json\/wp\/v2\/pages\/5063\").then(r => r.text());\n\t\t\t\t\tconst parser = new DOMParser();\n\t\t\t\t\tconst htmlDoc = parser.parseFromString(response, 'text\/html');\n\t\t\t\t\tconst divTemp = document.createElement(\"div\");\n\t\t\t\t\tdivTemp.innerHTML = htmlDoc.body.innerHTML;\n\t\t\t\t\tdocument.getElementById(\"elencoImmobili\").innerHTML = \"\";\n\t\t\t\t\n\t\t\t\t\tdocument.getElementById(\"elencoImmobili\").appendChild(divTemp);\n\t\t\t\t\tconst scripts = htmlDoc.body.querySelectorAll(\"script\");\n\t\t\t\t\tfor (script of scripts) {\n\t\t\t\t\t\teval(script.textContent);\n\t\t\t\t\t\tconsole.log(script);\n\t\t\t\t\t}\n\t\t\t\t} catch (error) {\n\t\t\t\t\tconsole.log(error);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdocument.addEventListener('DOMContentLoaded', populatePropertiesList);\n\t\t\n\t<\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Favorite Properties Home \/ Favorite Properties Prezzo Location Qualsiasi Borgo Storico Campagna Citt\u00e0 d&#8217;arte Mare Cerca<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-5063","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Favorite Properties - Toscana One Exclusive<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Favorite Properties - Toscana One Exclusive\" \/>\n<meta property=\"og:description\" content=\"Favorite Properties Home \/ Favorite Properties Prezzo Location Qualsiasi Borgo Storico Campagna Citt\u00e0 d&#8217;arte Mare Cerca\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/\" \/>\n<meta property=\"og:site_name\" content=\"Toscana One Exclusive\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-06T14:49:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/\",\"url\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/\",\"name\":\"Favorite Properties - Toscana One Exclusive\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/wp-content\\\/themes\\\/hello-elementor-child\\\/assets\\\/img\\\/loading-gif-3.gif\",\"datePublished\":\"2024-05-23T09:57:30+00:00\",\"dateModified\":\"2024-08-06T14:49:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/wp-content\\\/themes\\\/hello-elementor-child\\\/assets\\\/img\\\/loading-gif-3.gif\",\"contentUrl\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/wp-content\\\/themes\\\/hello-elementor-child\\\/assets\\\/img\\\/loading-gif-3.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/favorite-properties\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Favorite Properties\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#website\",\"url\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/\",\"name\":\"Toscana One Exclusive\",\"description\":\"Exclusive Real Estates in Tuscany\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#organization\",\"name\":\"Toscana One Exclusive\",\"url\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/logo-luxury-blue.png\",\"contentUrl\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/wp-content\\\/uploads\\\/2024\\\/05\\\/logo-luxury-blue.png\",\"width\":268,\"height\":180,\"caption\":\"Toscana One Exclusive\"},\"image\":{\"@id\":\"https:\\\/\\\/www.toscanaoneexclusive.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Favorite Properties - Toscana One Exclusive","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:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/","og_locale":"en_US","og_type":"article","og_title":"Favorite Properties - Toscana One Exclusive","og_description":"Favorite Properties Home \/ Favorite Properties Prezzo Location Qualsiasi Borgo Storico Campagna Citt\u00e0 d&#8217;arte Mare Cerca","og_url":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/","og_site_name":"Toscana One Exclusive","article_modified_time":"2024-08-06T14:49:37+00:00","og_image":[{"url":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif","type":"","width":"","height":""}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/","url":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/","name":"Favorite Properties - Toscana One Exclusive","isPartOf":{"@id":"https:\/\/www.toscanaoneexclusive.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/#primaryimage"},"image":{"@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/#primaryimage"},"thumbnailUrl":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif","datePublished":"2024-05-23T09:57:30+00:00","dateModified":"2024-08-06T14:49:37+00:00","breadcrumb":{"@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/#primaryimage","url":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif","contentUrl":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/themes\/hello-elementor-child\/assets\/img\/loading-gif-3.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.toscanaoneexclusive.com\/en\/favorite-properties\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.toscanaoneexclusive.com\/en\/"},{"@type":"ListItem","position":2,"name":"Favorite Properties"}]},{"@type":"WebSite","@id":"https:\/\/www.toscanaoneexclusive.com\/#website","url":"https:\/\/www.toscanaoneexclusive.com\/","name":"Toscana One Exclusive","description":"Exclusive Real Estates in Tuscany","publisher":{"@id":"https:\/\/www.toscanaoneexclusive.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.toscanaoneexclusive.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.toscanaoneexclusive.com\/#organization","name":"Toscana One Exclusive","url":"https:\/\/www.toscanaoneexclusive.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.toscanaoneexclusive.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/uploads\/2024\/05\/logo-luxury-blue.png","contentUrl":"https:\/\/www.toscanaoneexclusive.com\/wp-content\/uploads\/2024\/05\/logo-luxury-blue.png","width":268,"height":180,"caption":"Toscana One Exclusive"},"image":{"@id":"https:\/\/www.toscanaoneexclusive.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/pages\/5063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/comments?post=5063"}],"version-history":[{"count":1,"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/pages\/5063\/revisions"}],"predecessor-version":[{"id":5064,"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/pages\/5063\/revisions\/5064"}],"wp:attachment":[{"href":"https:\/\/www.toscanaoneexclusive.com\/en\/wp-json\/wp\/v2\/media?parent=5063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}