-->
`;
const embedded = createRawHtml(rawHtml);
embedded.appendChild(appendScript("https://platform.twitter.com/widgets.js"));
return embedded;
}
function processSingleContentElement(contentElement) {
switch (contentElement.displayType) {
case 'section': return contentElement.elements.map(it => processSingleContentElement(it));
case 'paragraph': return createSimpleTextElement(contentElement.text);
case 'header': return createSimpleTextElement(contentElement.text, 'h' + contentElement.level);
case 'image': return createImage(contentElement);
case 'twitter': return createTwitter(contentElement);
case 'youtube': return createYoutube(contentElement);
default: return createSimpleTextElement(JSON.stringify(contentElement));
}
}
function fillContentIntoElement(createdElement, htmlEl) {
try {
console.log(createdElement, htmlEl);
if (createdElement.length) {
createdElement.forEach(ch => htmlEl.appendChild(ch));
} else {
htmlEl.appendChild(createdElement);
}
} catch (e) {
console.error(e.message);
}
}
function fillContent(contentElementsList, htmlElements) {
const contentElements = Array.from(contentElementsList);
console.log(contentElements);
const lastElementIndex = htmlElements.length - 1;
htmlElements.forEach((htmlEl, index) => {
htmlEl.innerHTML = '';
if(contentElements.length > index) {
if(index === lastElementIndex) {
contentElements.slice(index).forEach(ce => fillContentIntoElement(processSingleContentElement(ce),htmlEl))
} else {
const createdElement = processSingleContentElement(contentElements[index]);
fillContentIntoElement(createdElement, htmlEl);
}
}
});
}
function createSlides(slides) {
const templateWrapper = document.getElementById('slide-template');
const template = templateWrapper.content.querySelector(".slide-template");
return slides.map((it, index) => {
const cloned = template.cloneNode(true);
const contentPlaceholders = cloned.querySelectorAll(".content-placeholder");
fillContent(it.elements, contentPlaceholders)
if (infiniteLayout) {
cloned.querySelectorAll(".adslot").forEach(slot => {
slot.id = slot.id + '_' + index;
});
}
return cloned;
});
}
var slides = [{"elements":[{"text":"","level":3,"displayType":"header"},{"elements":[{"text":"Staying in a castle is a bucket list experience. You might\nhave fantasized about spending a night in a real castle or just have\nalways wondered what it would be like to be royalty. Well, we have good news here\nbecause it is entirely possible. ","level":0,"displayType":"paragraph"},{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/fd04c517-1656-43ae-93fe-a6ee3116004d.jpeg","caption":"Unsplash","displayType":"image"},{"elements":[{"text":"There are several castles across the world where you can\nstay overnight. These include both hotel-like lodgings and vacation\nrentals, both economical and worthwhile splurges all across the world. So\ndust off your royal robes, saddle up your horse, and prepare for an adventure\nto some of the world's best castles.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Ashford Castle, Ireland","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/c3cce7cb-11c0-4a2d-a793-1800283bf1c7.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"This 800-year-old castle, which was formerly home to the\nGuinness family, is spectacular. It has been named not just one of the greatest\nhotels in Ireland, but also one of Europe's top 50 resort resorts. It has also\nrecently been designated as a Forbes five-star hotel, the only one in Ireland.\nThe castle is set on 350 acres of landscaped grounds, with access to woodlands\nand woodland teeming with birds, all overlooking Lough Corrib, Ireland's\nbiggest lake. The castle has 83 rooms, suites, and the Hideaway Cottage, as\nwell as restaurants, a health spa, shopping, and other amenities.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Dalhousie Castle, Scotland","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/4b4ded73-ac72-4a45-adb6-08efbe073473.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"The Dalhousie Fortress, another 13th-century masterpiece,\nhas seen its fair share of fights, glories, and empires – both the English and\nScottish have taken and claimed ownership of the castle throughout history. The\nred stone castle is strategically located overlooking the River Esk. The\nearliest element of the existing edifice, an L Plan Castle, is the drum tower,\nwhich originates from the mid-15th century. The existing castle was built\nmostly in the 17th century. With beautiful banquet and event space and a great\nlocation in Edinburgh, it could be worth convincing your employer to book the\nnext business retreat at the Dalhousie.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Talabgaon Castle, India","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/6e17380c-e1bd-4c2e-8614-d9768d29e6f2.jpeg","caption":"Secret Retreat","displayType":"image"},{"elements":[{"text":"Talabgaon Castle, a magnificently renovated approximately\n200-year-old fort with shimmering white walls, is located in India's\nnorthern state of Rajasthan. The charming hotel has 15 rooms and nine suites,\nas well as a rooftop patio for morning tea, a pool with a bar, and gardens for\ndining and wandering. Every night, there's live music and dancing, and don't\nmiss the jeep trips to adjacent Ranthambore National Park, where you can spot\ntigers and other animals, as well as camel safaris and horseback rides.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Chateau de Chantore, France","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/89e90b7b-c525-4b01-9751-0bdcaf3b00cc.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"Imagine staying in a real French castle with a view of Mont\nSaint-Michel, only it's not a dream. The Chateau de Chantore, which has two\nsuites and three bedrooms, allows guests to sleep in an 18th-century castle\nbuilt by the Lord of Chantore himself. The rooms are elaborate, with bright,\npatterned wallpaper and furniture reminiscent of a period romance, and each is\nloaded with one-of-a-kind antiques. This is the place to stay if you want to\nexperience a really genuine French chateau stay while yet enjoying modern\nconveniences.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Amberley Castle, England","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/eb3f95c9-1947-450e-ab9d-0ebfb718b480.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"The property on which the castle stands was given to Bishop\nWilfrid in 683 AD, and the existing structures are developed from a hunting\nlodge erected in 1103. The lodge changed ownership multiple times during\nthe following several centuries. At one time, King Charles II was even\ninvolved. The castle was turned into a hotel in 1989. There are now just 19\nbedrooms, but each is individually designed and decorated with antiques and\nexcellent textiles.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Castello di Pavone, Italy","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/67a0508f-e30c-42c2-a1a7-1505371eed98.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"The amazing Tuscan-style castle hotel is located in the\nmountains one hour west of Milan in Pavone. The monument was a\nRomanesque church in the mid-800s, with a defensive wall constructed around\n900AD. When the present castle was erected in the 1300s to secure the\nsurrounding hamlet and estate, large elements of the wall and the church's\noriginal central courtyard were merged. The famous Siena-style tower,\nmagnificent Noble Courtyard with the evocative Fountain of the Mysteries, and\nbreathtaking views from the castle solidify its place among our top five castle\nhotels. It has 27 overnight rooms along with a complex that can accommodate 300\npeople.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Parador de Oropesa, Spain","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/b55cd123-6653-4540-af5b-79c47734d728.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"The Parador de Oropesa, one of Spain's oldest paradores\n(luxury hotels in restored ancient structures), is well worth a visit.\nAccording to legend, the 14th-century castle was erected on the site of a\nfortification established by Hercules' warriors in 1716 B.C., and it can be\nlocated on the Route of Don Quixote, which traces author Miguel de Cervantes'\nlife. The hotel has 48 rooms furnished with antique artwork, a lovely swimming\npool, and a terrace restaurant serving traditional cooking with views of the\nGredos Mountains.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Castelo de Obidos, Portugal","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/f2f7f16e-a7c6-4605-963d-0fc4cbf22549.jpeg","caption":"Wikimedia Commons","displayType":"image"},{"elements":[{"text":"Obidos Portugal has one of the best-preserved walled cities\nin the world, and its magnificent medieval castle turned hotel is a highlight.\nThe first defenses of Obidos were built in 718 AD when the Moors ruled the\nwhole peninsula including modern-day Spain and Portugal. Before dealing\nNapoleon's army in its first defeat, Portuguese troops were dispatched from this\nstronghold. In 1951, after centuries of Obidos, the majority of the Castle was\nconverted into the Pousada Hotel. There are 17 rooms in all, including bigger\nRoyal suites with canopy beds and lovely exposed stone walls in the towers.","level":1,"displayType":"paragraph"}],"displayType":"section"}]},{"elements":[{"text":"Thorngrove Manor, Australia","level":3,"displayType":"header"},{"elements":[{"text":"","level":0,"displayType":"paragraph"}],"displayType":"section"},{"imageUrl":"/static/addea1c0-de8e-48cc-b0a7-592f5a1688cb.jpeg","caption":"Thorngrove Manor","displayType":"image"},{"elements":[{"text":"The Country Castle, which has highly innovative\narchitecture, was managed as a hotel by its actual proprietors in the 1980s.\nAlthough it is by far the newest castle on our list, its distinctive\narchitecture transports you to the 1600s. The Castle, located in one of South\nAustralia's top wine areas, provides numerous fantastic day excursions,\nincluding Kangaroo Island. The hotel offers a considerably more intimate vibe\nthan most because there are just 5 guest rooms. The Observatory Suite is the\ncoolest of Thorngrove's 5 welcoming guest suites, with unrivaled views of the\nsurrounding valley.","level":1,"displayType":"paragraph"}],"displayType":"section"}]}];
var slide_index = parseInt(0);
var slide_json = createSlides(slides);
var initial_slide = slide_index;
var initial_url = location.pathname + location.search;
var base_url = '/real-like-castles-you-can-actually-stay-in-and-feel-like-royals';
var next_gallery = '/spoiled-pets';
var first_load = true;
var has_scrolled = false;
var title = "Real-like Castles You Can Actually Stay In And Feel Like Royals";
var path = base_url
var utm_campaign, utm_subid, utm_source, utm_content, utm_term = 'n/a';
// try {
// var url = new URL(window.location.href);
// utm_campaign = encodeURIComponent(url.searchParams.get("utm_campaign"));
// utm_source = encodeURIComponent(url.searchParams.get("utm_source"));
// utm_content = encodeURIComponent(url.searchParams.get("utm_content"));
// utm_term = encodeURIComponent(url.searchParams.get("utm_term"));
// utm_medium = encodeURIComponent(url.searchParams.get("utm_medium"));
// if (utm_content && utm_campaign){
// var googletag = googletag || {};
// googletag.cmd = googletag.cmd || [];
// googletag.cmd.push(function() {
// googletag.pubads().setTargeting("utm_subid", utm_term);
// googletag.pubads().setTargeting("utm_subid_c", utm_campaign);
// });
// }
// } catch (e) {
// }