If you're looking to buy property in Cyprus, you’ll find great value for your investment. With a range of affordable properties for sale, Cyprus offers an opportunity to own real estate in a thriving market. Whether you’re searching for a permanent residence or a vacation property, these affordable options provide excellent value for money, offering both comfort and long-term potential. Don’t miss the chance to secure a property in this beautiful Mediterranean destination.
Home › Cyprus Property for Sale › Page 2
document.addEventListener("DOMContentLoaded", function () {
try {
const pageUrl = location.href.split('#')[0];
const base = location.origin;
// Εφόσον υπάρχει μόνο ΕΝΑΣ αριθμός στο URL, τον βρίσκουμε απευθείας
const pathParts = location.pathname.split('/').filter(Boolean);
const pageNum = parseInt(pathParts.find(p => !isNaN(p))) || 1;
const offset = (pageNum - 1) * 9;
const pageTitle = document.title || "";
const pageDesc = (document.querySelector('meta[name="description"]')?.content || "").trim();
let cards = document.querySelectorAll(".result-card");
if (!cards || cards.length === 0) cards = document.querySelectorAll(".re_prop .col-xs-4");
const seen = new Set();
const itemList = [];
cards.forEach((card, index) => {
let href = null;
const links = Array.from(card.querySelectorAll('a[href]'));
links.sort((a, b) => {
const aw = a.matches('a.hcaption') ? 0 : a.closest('h2') ? 1 : 2;
const bw = b.matches('a.hcaption') ? 0 : b.closest('h2') ? 1 : 2;
return aw - bw;
});
for (const a of links) {
const h = (a.getAttribute('href') || '').trim();
if (!h || h[0] === '#' || /^javascript:/i.test(h) || /#myToggle/i.test(h)) continue;
href = new URL(h, base).href;
break;
}
const h2 = card.querySelector("h2.prop-title, h2.prop-title-fixer, h2");
const name = (h2?.textContent || "").trim();
const imgEl = card.querySelector("img");
let image = imgEl ? (imgEl.getAttribute("data-src") || imgEl.getAttribute("data-lazy") || imgEl.getAttribute("src")) : null;
if (image) image = new URL(image, base).href;
const clean = (t) => (t || "").replace(/€/gi, "€").replace(/\u00A0/g, " ").replace(/\s+/g, " ").trim();
const priceText = clean(card.querySelector("p.prop-title-fixer")?.textContent || "");
const infoText = clean(card.querySelector(".res-prop-details .prop-info-fixer")?.textContent || "");
if (href && name && !seen.has(href)) {
seen.add(href);
const li = {
"@type": "ListItem",
"position": offset + index + 1, // Υπολογισμός θέσης: (Σελίδα-1)*9 + σειρά
"url": href,
"name": name
};
if (image) li.image = image;
if (infoText || priceText) {
li.description = infoText + (infoText && priceText ? " — " : "") + priceText;
}
itemList.push(li);
}
});
const graph = [
{
"@type": "CollectionPage",
"@id": pageUrl + "#webpage",
"url": pageUrl,
"name": pageTitle,
"description": pageDesc
},
{
"@type": "ItemList",
"@id": pageUrl + "#itemlist",
"url": pageUrl,
"name": pageTitle,
"numberOfItems": itemList.length,
"itemListElement": itemList
}
];
const s = document.createElement("script");
s.type = "application/ld+json";
s.text = JSON.stringify({ "@context": "https://schema.org", "@graph": graph });
document.head.appendChild(s);
} catch(e) {}
});
(function() {
try {
const canonical = document.querySelector('link[rel="canonical"]')?.getAttribute("href") || "";
const currentUrl = (canonical || window.location.href).split('#')[0];
const u = new URL(currentUrl);
const baseUrl = u.origin;
const path = u.pathname.replace(/\/+$/, ""); // trim trailing slash
// Target only this page (and optionally paginated variants if you ever add /2/)
const isTarget =
path === "/en/cyprus/property-sale" ||
/^\/en\/cyprus\/property-sale\/\d+$/.test(path) ||
/^\/en\/cyprus\/property-sale\/\d+\/?$/.test(path);
if (!isTarget) return;
const rootUrl = `${baseUrl}/en/cyprus/property-sale`;
// Title for optional page crumb
const ogTitle = document.querySelector('meta[property="og:title"]')?.getAttribute("content") || "";
let pageTitle = (ogTitle || document.title || "").trim();
pageTitle = pageTitle
.replace(/\s*\|\s*Cyprus Buy Properties\s*$/i, "")
.replace(/\s*-\s*Cyprus Buy Properties\s*$/i, "")
.trim();
const breadcrumbData = {
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{ "@type": "ListItem", "position": 1, "name": "Home", "item": baseUrl },
{ "@type": "ListItem", "position": 2, "name": "Cyprus Property for Sale", "item": rootUrl }
]
};
// If there is a numeric page segment, add page crumb
if (/\/\d+\/?$/.test(path) && path !== "/en/cyprus/property-sale") {
breadcrumbData.itemListElement.push({
"@type": "ListItem",
"position": 3,
"name": pageTitle,
"item": currentUrl
});
}
// Prevent duplicates
const existing = document.querySelector('script[data-auto="breadcrumbs-jsonld"]');
if (existing) existing.remove();
const s = document.createElement("script");
s.type = "application/ld+json";
s.setAttribute("data-auto", "breadcrumbs-jsonld");
s.text = JSON.stringify(breadcrumbData);
document.head.appendChild(s);
} catch (e) {}
})();
If you're looking to buy property in Cyprus, you’ll find great value for your investment. With a range of affordable properties for sale, Cyprus offers an opportunity to own real estate in a thriving market. Whether you’re searching for a permanent residence or a vacation property, these affordable options provide excellent value for money, offering both comfort and long-term potential. Don’t miss the chance to secure a property in this beautiful Mediterranean destination.
Home › Cyprus Property for Sale › Page 2
...read more