{"html":"<div class=\"travlocals-list-item travlocals-list-hotel  accommodation-map-list  \">\n    <div class=\"row\">\n        <div class=\"col-lg-4 col-md-4 map-results-summary\">\n            <div class=\"mobile\">\n                <form id=\"research-form\">\n                    <div class=\"align-items-center d-flex pt-3 mobile-search-row\">\n                        <div class=\"mobile-view mobile-search-bar\" id=\"mobile-where-go-btn\">\n                            <div class=\"mobile-where-go-btn\">\n                                <i class=\"icofont-double-left\"><\/i>\n                            <\/div>\n\n                            <div class=\"g-form-control desktop-view\">\n                                <div id=\"hotel_search\">\n    <form action=\"https:\/\/www.travlocals.com\/hotel\" class=\"form travlocals_form\" method=\"get\" >\n        <input type=\"hidden\" name=\"location_id\" value=\"\" >\n        <div class=\"g-field-search\">\n            <div class=\"row\" style=\"margin-right: 0px;margin-left: 0px;height: 64px;\">\n                                                                                                    <div class=\"p-0 mobile-line-space\" style=\"flex: 0.9\">\n                                                                <style>\n    \/* .pac-* styles live in public\/custom\/css\/google-places.css (loaded once by the layout) *\/\n\n    #pop-up-column div:hover {\n        box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, .175);\n    }\n    #pop-up-column div:active {\n        box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, .175);\n    }\n\n    #pop-up {\n        pointer-events: all;\n        background-color: white;\n        z-index: 9999;\n        background: #fff;\n        box-shadow: 0 0 0 1px rgb(0 0 0 \/ 4%), 0 8px 16px rgb(0 0 0 \/ 15%);\n        border-radius: 32px;\n        display: block;\n        width: 100%;\n        margin: 0 auto;\n        position: absolute;\n        top: 85px;\n        left: 10px;\n        margin-top: -8px;\n    }\n\n    @media (max-width: 1920px) {\n        #pop-up { max-width: 890px; }\n    }\n    @media (max-width: 1280px) {\n        #pop-up { max-width: 720px; }\n    }\n    @media (max-width: 1024px) {\n        #pop-up { max-width: 600px; }\n        .has-search-map .travlocals_header {\n            background: #fff;\n            display: block;\n        }\n    }\n    @media (max-width: 768px) {\n        #pop-up { max-width: 400px; }\n        .listing_items { height:calc(100vh) !important; }\n    }\n\n    #pop-up-container { display: flex; }\n    #pop-up-column { flex: 1; text-align: center; }\n    #pop-up-column img { width: 100%; margin-bottom: 10px; }\n\n    #pop-up img {\n        width: auto;\n        height: auto;\n        display: block;\n    }\n\n    .pop-up {\n        pointer-events: none;\n        position: absolute;\n        background-color: white;\n        padding: 10px;\n        z-index: 999;\n        box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, .175) !important;\n        background: #fff;\n        border-radius: 20px;\n        display: none;\n        max-width: 1200px;\n        margin-top: 10px;\n    }\n\n    .other, .maramures, .apuseni, .dobrogea, .bucovina, .transilvania {\n        border: 1px solid rgba(0, 0, 0, .175);\n        border-radius: 32px;\n        padding: 10px;\n        margin: 15px;\n    }\n    .other:hover, .maramures:hover, .apuseni:hover, .dobrogea:hover, .bucovina:hover, .transilvania:hover {\n        border: 1px solid rgba(0, 0, 0, .375);\n        border-radius: 32px;\n        padding: 10px;\n        margin: 15px;\n    }\n\n    \/* FIX: linia asta era invalid\u0103 (#(color)) *\/\n    .transilvania:hover {\n        box-shadow: 0 0 5px rgba(0,0,0,.25), inset 0 0 10px rgba(0,0,0,.08);\n    }\n\n    .pop-up-container { display: flex; }\n    .pop-up-column { flex: 1; text-align: center; }\n    .pop-up-column img { width: 100%; margin-bottom: 10px; }\n    .pop-up img { width: auto; height: auto; display: block; }\n\n    #pop-up.show {\n        position: fixed;\n        top: 0; left: 0; right: 0; bottom: 0;\n        background-color: rgba(0, 0, 0, 0.5);\n        z-index: 10;\n    }\n<\/style>\n\n\n<div class=\"border-right1 popup-border\">\n    <input type=\"hidden\" class=\"county-landing-url\" value=\"\">\n    <input type=\"hidden\" name=\"county\" value=\"\">\n    <i class=\"fa fa-search-plus text-danger mobile-search-icon\"><\/i>\n    <div class=\"form-content\">\n        <div class=\"check-in-wrapper\" style=\"line-height: 18px;\">\n            <label style=\"padding-bottom: 2px; line-height: 18px;\"> Location <\/label>\n\n                            <div class=\"g-map-place\" style=\"margin-top: -5px;\">\n                    <input type=\"text\" name=\"map_place\" id=\"map-place-input\"\n                        style=\"padding-left: 0px !important;outline: none !important;border: none;width: 100%;background: transparent;font-size:14px; margin-top: 5px;text-transform: capitalize;\"\n                        placeholder=\"Where are you going?\" value=\"\">\n                    <div class=\"map d-none\" id=\"map-9vONW7UvCV\"><\/div>\n\n                    <input type=\"hidden\" name=\"map_lat\" value=\"\">\n                    <input type=\"hidden\" name=\"map_lgn\" value=\"\">\n\n                    \n                    <input type=\"hidden\" name=\"location_id\" value=\"8686\">\n                <\/div>\n                    <\/div>\n    <\/div>\n<\/div>\n\n\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n    var searchBar = document.querySelector('#hotel_search .g-field-search') || document.querySelector('#travlocals-menu .g-field-search');\n    var locationInput = document.getElementById('map-place-input') || document.querySelector('.smart-search-location');\n    if (!searchBar || !locationInput) return;\n\n    var locationSelector = '.popup-border input[name=\"map_place\"], .popup-border .smart-search-location';\n    function getPac() {\n        var containers = Array.from(document.querySelectorAll('.pac-container'));\n        return containers.find(function(pac) { return pac.style.display !== 'none' && pac.getClientRects().length; })\n            || containers[Array.from(document.querySelectorAll('.g-map-place input[name=\"map_place\"]')).indexOf(locationInput)]\n            || containers[0];\n    }\n    document.addEventListener('focus', function(e) {\n        if (!e.target.matches(locationSelector)) return;\n        locationInput = e.target;\n        searchBar = locationInput.closest('.g-field-search');\n        _selectionMade = false;\n    }, true);\n\n    \/* === Custom regions data === *\/\n    var customRegions = [\n        { keywords: ['romania', 'rom\u00e2nia', 'ro'], display: \"Romania\", locationId: '9088', type: 'country' },\n        { keywords: ['bulgaria', 'bg'], display: \"Bulgaria\", locationId: '9080', type: 'country' },\n        { keywords: ['transilvania', 'transylvania', 'ardeal'], display: \"Transylvania\", locationId: '8686', type: 'region' },\n        { keywords: ['bucovina', 'bukovina'], display: \"Bucovina\", locationId: '8680', type: 'region' },\n        { keywords: ['maramures', 'maramure\u0219'], display: \"Maramures\", locationId: '8682', type: 'region' },\n        { keywords: ['apuseni', 'mun\u021bii apuseni', 'apuseni mountains', 'muntii apuseni'], display: \"Apuseni Mountains\", locationId: '8684', type: 'region' },\n        { keywords: ['delta', 'dobrogea', 'marea neagra', 'danube delta', 'black sea', 'litoral', 'constanta', 'constan\u021ba'], display: \"Danube Delta & Black Sea\", locationId: '8678', type: 'region' },\n        { keywords: ['alte', 'altele', 'other', 'others'], display: \"Other Destinations\", locationId: '9072', type: 'region' }\n    ].concat([{\"keywords\":[\"Alba\",\"judetul Alba\",\"judet Alba\",\"Alba county\"],\"display\":\"Alba County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"alba\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/alba\"},{\"keywords\":[\"Arad\",\"judetul Arad\",\"judet Arad\",\"Arad county\"],\"display\":\"Arad County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"arad\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/arad\"},{\"keywords\":[\"Arge\\u0219\",\"judetul Arge\\u0219\",\"judet Arge\\u0219\",\"Arge\\u0219 county\"],\"display\":\"Arge\\u0219 County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"arges\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/arges\"},{\"keywords\":[\"Bac\\u0103u\",\"judetul Bac\\u0103u\",\"judet Bac\\u0103u\",\"Bac\\u0103u county\"],\"display\":\"Bac\\u0103u County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"bacau\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/bacau\"},{\"keywords\":[\"Bihor\",\"judetul Bihor\",\"judet Bihor\",\"Bihor county\"],\"display\":\"Bihor County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"bihor\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/bihor\"},{\"keywords\":[\"Bistri\\u021ba-N\\u0103s\\u0103ud\",\"judetul Bistri\\u021ba-N\\u0103s\\u0103ud\",\"judet Bistri\\u021ba-N\\u0103s\\u0103ud\",\"Bistri\\u021ba-N\\u0103s\\u0103ud county\"],\"display\":\"Bistri\\u021ba-N\\u0103s\\u0103ud County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"bistrita-nasaud\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/bistrita-nasaud\"},{\"keywords\":[\"Boto\\u0219ani\",\"judetul Boto\\u0219ani\",\"judet Boto\\u0219ani\",\"Boto\\u0219ani county\"],\"display\":\"Boto\\u0219ani County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"botosani\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/botosani\"},{\"keywords\":[\"Bra\\u0219ov\",\"judetul Bra\\u0219ov\",\"judet Bra\\u0219ov\",\"Bra\\u0219ov county\"],\"display\":\"Bra\\u0219ov County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"brasov\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/brasov\"},{\"keywords\":[\"Br\\u0103ila\",\"judetul Br\\u0103ila\",\"judet Br\\u0103ila\",\"Br\\u0103ila county\"],\"display\":\"Br\\u0103ila County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"braila\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/braila\"},{\"keywords\":[\"Buz\\u0103u\",\"judetul Buz\\u0103u\",\"judet Buz\\u0103u\",\"Buz\\u0103u county\"],\"display\":\"Buz\\u0103u County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"buzau\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/buzau\"},{\"keywords\":[\"Cara\\u0219-Severin\",\"judetul Cara\\u0219-Severin\",\"judet Cara\\u0219-Severin\",\"Cara\\u0219-Severin county\"],\"display\":\"Cara\\u0219-Severin County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"caras-severin\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/caras-severin\"},{\"keywords\":[\"C\\u0103l\\u0103ra\\u0219i\",\"judetul C\\u0103l\\u0103ra\\u0219i\",\"judet C\\u0103l\\u0103ra\\u0219i\",\"C\\u0103l\\u0103ra\\u0219i county\"],\"display\":\"C\\u0103l\\u0103ra\\u0219i County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"calarasi\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/calarasi\"},{\"keywords\":[\"Cluj\",\"judetul Cluj\",\"judet Cluj\",\"Cluj county\"],\"display\":\"Cluj County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"cluj\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/cluj\"},{\"keywords\":[\"Constan\\u021ba\",\"judetul Constan\\u021ba\",\"judet Constan\\u021ba\",\"Constan\\u021ba county\"],\"display\":\"Constan\\u021ba County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"constanta\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/constanta\"},{\"keywords\":[\"Covasna\",\"judetul Covasna\",\"judet Covasna\",\"Covasna county\"],\"display\":\"Covasna County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"covasna\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/covasna\"},{\"keywords\":[\"D\\u00e2mbovi\\u021ba\",\"judetul D\\u00e2mbovi\\u021ba\",\"judet D\\u00e2mbovi\\u021ba\",\"D\\u00e2mbovi\\u021ba county\"],\"display\":\"D\\u00e2mbovi\\u021ba County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"dambovita\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/dambovita\"},{\"keywords\":[\"Dolj\",\"judetul Dolj\",\"judet Dolj\",\"Dolj county\"],\"display\":\"Dolj County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"dolj\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/dolj\"},{\"keywords\":[\"Gala\\u021bi\",\"judetul Gala\\u021bi\",\"judet Gala\\u021bi\",\"Gala\\u021bi county\"],\"display\":\"Gala\\u021bi County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"galati\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/galati\"},{\"keywords\":[\"Giurgiu\",\"judetul Giurgiu\",\"judet Giurgiu\",\"Giurgiu county\"],\"display\":\"Giurgiu County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"giurgiu\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/giurgiu\"},{\"keywords\":[\"Gorj\",\"judetul Gorj\",\"judet Gorj\",\"Gorj county\"],\"display\":\"Gorj County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"gorj\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/gorj\"},{\"keywords\":[\"Harghita\",\"judetul Harghita\",\"judet Harghita\",\"Harghita county\"],\"display\":\"Harghita County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"harghita\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/harghita\"},{\"keywords\":[\"Hunedoara\",\"judetul Hunedoara\",\"judet Hunedoara\",\"Hunedoara county\"],\"display\":\"Hunedoara County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"hunedoara\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/hunedoara\"},{\"keywords\":[\"Ialomi\\u021ba\",\"judetul Ialomi\\u021ba\",\"judet Ialomi\\u021ba\",\"Ialomi\\u021ba county\"],\"display\":\"Ialomi\\u021ba County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"ialomita\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/ialomita\"},{\"keywords\":[\"Ia\\u0219i\",\"judetul Ia\\u0219i\",\"judet Ia\\u0219i\",\"Ia\\u0219i county\"],\"display\":\"Ia\\u0219i County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"iasi\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/iasi\"},{\"keywords\":[\"Ilfov\",\"judetul Ilfov\",\"judet Ilfov\",\"Ilfov county\"],\"display\":\"Ilfov County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"ilfov\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/ilfov\"},{\"keywords\":[\"Maramure\\u0219\",\"judetul Maramure\\u0219\",\"judet Maramure\\u0219\",\"Maramure\\u0219 county\"],\"display\":\"Maramure\\u0219 County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"maramures\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/maramures\"},{\"keywords\":[\"Mehedin\\u021bi\",\"judetul Mehedin\\u021bi\",\"judet Mehedin\\u021bi\",\"Mehedin\\u021bi county\"],\"display\":\"Mehedin\\u021bi County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"mehedinti\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/mehedinti\"},{\"keywords\":[\"Mure\\u0219\",\"judetul Mure\\u0219\",\"judet Mure\\u0219\",\"Mure\\u0219 county\"],\"display\":\"Mure\\u0219 County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"mures\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/mures\"},{\"keywords\":[\"Neam\\u021b\",\"judetul Neam\\u021b\",\"judet Neam\\u021b\",\"Neam\\u021b county\"],\"display\":\"Neam\\u021b County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"neamt\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/neamt\"},{\"keywords\":[\"Olt\",\"judetul Olt\",\"judet Olt\",\"Olt county\"],\"display\":\"Olt County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"olt\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/olt\"},{\"keywords\":[\"Prahova\",\"judetul Prahova\",\"judet Prahova\",\"Prahova county\"],\"display\":\"Prahova County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"prahova\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/prahova\"},{\"keywords\":[\"Satu Mare\",\"judetul Satu Mare\",\"judet Satu Mare\",\"Satu Mare county\"],\"display\":\"Satu Mare County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"satu-mare\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/satu-mare\"},{\"keywords\":[\"S\\u0103laj\",\"judetul S\\u0103laj\",\"judet S\\u0103laj\",\"S\\u0103laj county\"],\"display\":\"S\\u0103laj County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"salaj\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/salaj\"},{\"keywords\":[\"Sibiu\",\"judetul Sibiu\",\"judet Sibiu\",\"Sibiu county\"],\"display\":\"Sibiu County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"sibiu\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/sibiu\"},{\"keywords\":[\"Suceava\",\"judetul Suceava\",\"judet Suceava\",\"Suceava county\"],\"display\":\"Suceava County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"suceava\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/suceava\"},{\"keywords\":[\"Teleorman\",\"judetul Teleorman\",\"judet Teleorman\",\"Teleorman county\"],\"display\":\"Teleorman County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"teleorman\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/teleorman\"},{\"keywords\":[\"Timi\\u0219\",\"judetul Timi\\u0219\",\"judet Timi\\u0219\",\"Timi\\u0219 county\"],\"display\":\"Timi\\u0219 County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"timis\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/timis\"},{\"keywords\":[\"Tulcea\",\"judetul Tulcea\",\"judet Tulcea\",\"Tulcea county\"],\"display\":\"Tulcea County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"tulcea\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/tulcea\"},{\"keywords\":[\"Vaslui\",\"judetul Vaslui\",\"judet Vaslui\",\"Vaslui county\"],\"display\":\"Vaslui County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"vaslui\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/vaslui\"},{\"keywords\":[\"V\\u00e2lcea\",\"judetul V\\u00e2lcea\",\"judet V\\u00e2lcea\",\"V\\u00e2lcea county\"],\"display\":\"V\\u00e2lcea County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"valcea\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/valcea\"},{\"keywords\":[\"Vrancea\",\"judetul Vrancea\",\"judet Vrancea\",\"Vrancea county\"],\"display\":\"Vrancea County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"vrancea\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/vrancea\"},{\"keywords\":[\"Bucure\\u0219ti\",\"judetul Bucure\\u0219ti\",\"judet Bucure\\u0219ti\",\"Bucure\\u0219ti county\"],\"display\":\"Bucure\\u0219ti County\",\"locationId\":\"\",\"type\":\"county\",\"county\":\"bucuresti\",\"landingUrl\":\"https:\\\/\\\/www.travlocals.com\\\/unique-stays\\\/county\\\/bucuresti\"}]);\n\n    function matchRegions(input) {\n        if (!input || input.length < 2) return [];\n        var lower = input.toLowerCase().normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, '');\n        return customRegions.filter(function(r) {\n            return r.keywords.some(function(k) {\n                var kNorm = k.normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, '');\n                return kNorm.indexOf(lower) !== -1 || lower.indexOf(kNorm) !== -1;\n            }) || r.display.toLowerCase().normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, '').indexOf(lower) !== -1;\n        });\n    }\n\n    \/* === Inject custom regions into pac-container === *\/\n    var _weAreShowingPac = false; \/* flag to avoid MutationObserver infinite loop *\/\n    var _selectionMade = false;  \/* flag: user selected via Enter\/click, don't re-show *\/\n\n    function injectRegions() {\n        if (_selectionMade || locationInput !== document.activeElement) return;\n        if (window.innerWidth < 768) return; \/* disabled on mobile *\/\n\n        document.querySelectorAll('.pac-item-region').forEach(function(el) { el.remove(); });\n\n        var matches = matchRegions(locationInput.value);\n        var pac = getPac();\n        if (!pac) return;\n\n        if (matches.length === 0) {\n            if (pac.querySelectorAll('.pac-item:not(.pac-item-region)').length === 0 && pac.style.display !== 'none') {\n                pac.style.display = 'none';\n            }\n            return;\n        }\n\n        if (pac.style.display === 'none') {\n            _weAreShowingPac = true;\n            pac.style.display = '';\n            _weAreShowingPac = false;\n            alignPac();\n        }\n\n        var matchedRegionNames = [];\n        matches.reverse().forEach(function(region) {\n            var item = document.createElement('div');\n            item.className = 'pac-item pac-item-region';\n            item.setAttribute('data-location-id', region.locationId);\n            item.setAttribute('data-region-name', region.display);\n            item.setAttribute('data-landing-url', region.landingUrl || '');\n            item.setAttribute('data-county', region.county || '');\n            item.innerHTML =\n                '<span class=\"pac-icon pac-icon-marker\"><\/span>' +\n                '<span class=\"pac-item-query\"><span class=\"pac-matched\">' + region.display + '<\/span><\/span>' +\n                '<span> ' + (region.type === 'country'\n                    ? \"Country\"\n                    : (region.type === 'county' ? \"County\" : \"Region\")) + '<\/span>';\n            pac.insertBefore(item, pac.firstChild);\n            matchedRegionNames.push(region.display.toLowerCase().normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, ''));\n        });\n\n        if (matchedRegionNames.length > 0) {\n            pac.querySelectorAll('.pac-item:not(.pac-item-region)').forEach(function(el) {\n                var text = (el.textContent || '').toLowerCase().normalize('NFD').replace(\/[\\u0300-\\u036f]\/g, '').trim();\n                for (var i = 0; i < matchedRegionNames.length; i++) {\n                    if (text === matchedRegionNames[i] || text.indexOf(matchedRegionNames[i]) === 0) {\n                        el.style.display = 'none';\n                        break;\n                    }\n                }\n            });\n        }\n\n        startPacGuard(pac);\n    }\n\n    \/* === Watch pac-container: if Google hides it after async response, re-inject === *\/\n    var guardedPacs = new WeakSet();\n    function startPacGuard(pac) {\n        if (guardedPacs.has(pac)) return;\n        guardedPacs.add(pac);\n\n        new MutationObserver(function() {\n            if (_weAreShowingPac || pac !== getPac()) return;\n            if (_selectionMade && pac.style.display !== 'none') {\n                pac.style.display = 'none';\n                return;\n            }\n            if (pac.style.display === 'none' && locationInput === document.activeElement) {\n                injectRegions();\n            }\n        }).observe(pac, { attributes: true, attributeFilter: ['style'] });\n    }\n\n    \/* === Align pac-container with search bar === *\/\n    function alignPac() {\n        var pac = getPac();\n        if (!pac || pac.style.display === 'none') return;\n        var rect = searchBar.getBoundingClientRect();\n        pac.style.left = rect.left + 'px';\n        pac.style.width = rect.width + 'px';\n    }\n\n    document.addEventListener('input', function (e) {\n        if (!e.target.matches(locationSelector)) return;\n        _selectionMade = false;\n        var form = locationInput.closest('form');\n        if (form) {\n            form.querySelectorAll('input[name=county], input[name=location_id], input[name=map_lat], input[name=map_lgn], .county-landing-url').forEach(function(input) { input.value = ''; });\n            form.dataset.countyLandingUrl = '';\n        }\n        setTimeout(function() { alignPac(); injectRegions(); }, 80);\n    }, true);\n    document.addEventListener('focus', function (e) {\n        if (!e.target.matches(locationSelector)) return;\n        setTimeout(alignPac, 50);\n    }, true);\n\n    \/* === Clear location text on focus === *\/\n    document.addEventListener('focus', function (e) {\n        if (!e.target.matches(locationSelector)) return;\n        locationInput.value = '';\n        var form = locationInput.closest('form') || document.getElementById('hotel_search');\n        if (form) {\n            var locId = form.querySelector('input[name=\"location_id\"]');\n            var mapLat = form.querySelector('input[name=\"map_lat\"]');\n            var mapLgn = form.querySelector('input[name=\"map_lgn\"]');\n            var countyInput = form.querySelector('input[name=county]');\n            if (countyInput) countyInput.value = '';\n            if (locId) locId.value = '';\n            if (mapLat) mapLat.value = '';\n            if (mapLgn) mapLgn.value = '';\n            form.dataset.countyLandingUrl = '';\n            var countyUrlInput = form.querySelector('.county-landing-url');\n            if (countyUrlInput) countyUrlInput.value = '';\n        }\n    }, true);\n\n    function advanceToCheckIn() {\n        if (window.innerWidth < 768) return;\n        var form = locationInput.closest('form');\n        setTimeout(function() {\n            var checkinEl = form && form.querySelector('.my-date-pannel .border-right:first-child');\n            if (checkinEl) checkinEl.click();\n        }, 300);\n    }\n\n    \/* === Select a custom region === *\/\n    function selectRegion(region) {\n        var displayName = region.display\n            || (typeof region.getAttribute === 'function' ? region.getAttribute('data-region-name') : '');\n        var landingUrl = region.landingUrl\n            || (typeof region.getAttribute === 'function' ? region.getAttribute('data-landing-url') : '');\n        var selectedForm = locationInput.closest('form');\n        var county = region.county || (typeof region.getAttribute === 'function' ? region.getAttribute('data-county') : '');\n        if (selectedForm && (selectedForm.classList.contains('venue-homepage-search') || false)) {\n            var countyInput = selectedForm.querySelector('input[name=\"county\"]');\n            if (countyInput) countyInput.value = county || '';\n            landingUrl = '';\n        }\n        if (landingUrl) {\n            locationInput.value = displayName;\n            var countyForm = locationInput.closest('form') || document.getElementById('hotel_search');\n            if (countyForm) {\n                countyForm.dataset.countyLandingUrl = landingUrl;\n                var countyUrlInput = countyForm.querySelector('.county-landing-url');\n                if (countyUrlInput) countyUrlInput.value = landingUrl;\n                countyForm.querySelectorAll('input[name=\"location_id\"], input[name=\"map_lat\"], input[name=\"map_lgn\"]').forEach(function(el) {\n                    el.value = '';\n                });\n            }\n            var countyPac = getPac();\n            if (countyPac) countyPac.style.display = 'none';\n            advanceToCheckIn();\n            return;\n        }\n\n        locationInput.value = displayName;\n        var locId = region.locationId || (typeof region.getAttribute === 'function' ? region.getAttribute('data-location-id') : '');\n\n        var form = locationInput.closest('form') || document.getElementById('hotel_search');\n        if (form) {\n            form.dataset.countyLandingUrl = '';\n            var countyUrlInput = form.querySelector('.county-landing-url');\n            if (countyUrlInput) countyUrlInput.value = '';\n            form.querySelectorAll('input[name=\"location_id\"]').forEach(function(el) { el.value = locId; });\n            var latInput = form.querySelector('input[name=\"map_lat\"]');\n            var lgnInput = form.querySelector('input[name=\"map_lgn\"]');\n            if (latInput) latInput.value = '';\n            if (lgnInput) lgnInput.value = '';\n        }\n\n        \/* Hide pac-container *\/\n        var pac = getPac();\n        if (pac) pac.style.display = 'none';\n\n        advanceToCheckIn();\n    }\n\n    \/* === Click on custom region suggestion (desktop) === *\/\n    document.addEventListener('mousedown', function (e) {\n        if (document.activeElement !== locationInput) return;\n        var regionItem = e.target.closest('.pac-item-region');\n        if (regionItem) {\n            e.preventDefault();\n            e.stopImmediatePropagation();\n            _selectionMade = true;\n            locationInput.blur();\n            selectRegion(regionItem);\n            return;\n        }\n        \/* Google Places suggestion click \u2192 mark done and advance to check-in *\/\n        if (e.target.closest('.pac-item')) {\n            _selectionMade = true;\n            var googleForm = locationInput.closest('form') || document.getElementById('hotel_search');\n            if (googleForm) {\n                googleForm.dataset.countyLandingUrl = '';\n                var countyUrlInput = googleForm.querySelector('.county-landing-url');\n                if (countyUrlInput) countyUrlInput.value = '';\n            }\n            advanceToCheckIn();\n        }\n    });\n\n    \/* === Enter key \u2192 on input, stopImmediatePropagation blocks Google's handler === *\/\n    document.addEventListener('keydown', function (e) {\n        if (!e.target.matches(locationSelector)) return;\n        if (e.key !== 'Enter') return;\n\n        e.preventDefault();\n        e.stopImmediatePropagation();\n\n        \/* Hide suggestions dropdown immediately and prevent MutationObserver from re-showing *\/\n        _selectionMade = true;\n        var pac = getPac();\n        if (pac) pac.style.display = 'none';\n        \/* Blur input so Google's autocomplete stops showing results *\/\n        locationInput.blur();\n\n        var inputValue = locationInput.value.trim();\n        if (!inputValue) { advanceToCheckIn(); return; }\n\n        \/* Check matching regions directly (don't rely on pac-container DOM state) *\/\n        var regionMatches = matchRegions(inputValue);\n        if (regionMatches.length > 0) {\n            selectRegion(regionMatches[0]);\n            return;\n        }\n\n        \/* No matching region \u2192 use Google AutocompleteService for the first prediction *\/\n        if (typeof google !== 'undefined' && google.maps && google.maps.places) {\n            var service = new google.maps.places.AutocompleteService();\n            service.getPlacePredictions({\n                input: inputValue,\n                types: ['(regions)'],\n                componentRestrictions: { country: ['RO', 'BG', 'GR', 'MD', 'AT'] }\n            }, function(predictions, status) {\n                if (status === google.maps.places.PlacesServiceStatus.OK && predictions && predictions.length > 0) {\n                    locationInput.value = predictions[0].description;\n                    var geocoder = new google.maps.Geocoder();\n                    geocoder.geocode({ placeId: predictions[0].place_id }, function(results, geoStatus) {\n                        var form = locationInput.closest('form') || document.getElementById('hotel_search');\n                        if (geoStatus === google.maps.GeocoderStatus.OK && results[0] && form) {\n                            var latInput = form.querySelector('input[name=\"map_lat\"]');\n                            var lgnInput = form.querySelector('input[name=\"map_lgn\"]');\n                            if (latInput) latInput.value = results[0].geometry.location.lat();\n                            if (lgnInput) lgnInput.value = results[0].geometry.location.lng();\n                        }\n                        advanceToCheckIn();\n                    });\n                } else {\n                    advanceToCheckIn();\n                }\n            });\n        } else {\n            advanceToCheckIn();\n        }\n    }, true);\n\n    \/* Blur with text \u2192 advance to check-in (only if location field is active) *\/\n    document.addEventListener('blur', function (e) {\n        if (!e.target.matches(locationSelector)) return;\n        if (_selectionMade) return; \/* Enter\/click already triggered advanceToCheckIn *\/\n        setTimeout(function() {\n            var searchForm = locationInput.closest('form');\n            var locationActive = searchForm ? searchForm.querySelector('.border-right1.active') : null;\n            if (locationInput.value.trim() !== '' && locationActive) {\n                advanceToCheckIn();\n            }\n        }, 300);\n    }, true);\n});\n<\/script>\n\n\n                                                        <\/div>\n                                                    <div style=\"width: 1px; height: 30px; background: #dddddd; margin-top: 18px;\"><\/div>\n                                                                                            <div class=\"p-0 mobile-line-space\" style=\"flex: 1\">\n                                                                <div class=\"d-flex form-date-search-hotel my-date-pannel\" >\n    <div class=\"border-right\" style=\"width: 50%; padding: 12px 24px;\">\n        <i class=\"fa fa-calendar mobile-search-icon\"><\/i>\n        <div class=\"form-content\">\n            <div class=\"check-in-wrapper\" style=\"line-height: 18px;\">\n                <label>Check In<\/label>\n                <div class=\"render check-in-render\">09\/11\/2026<\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n    <div style=\"width: 1px; height: 30px; background: #dddddd; margin-top: 18px;\"><\/div>\n    <div class=\"border-right\"style=\"width: 50%; padding: 12px 24px;\">\n        <div class=\"form-content\">\n            <div class=\"check-out-wrapper\" style=\"line-height: 18px;\"  onclick=\"selectCheckoutDate();\">\n                <label>Check Out<\/label>\n                <div class=\"render check-out-render\">09\/12\/2026<\/div>\n            <\/div>\n            <input type=\"hidden\" class=\"check-in-input\"\n                value=\"09\/11\/2026\" name=\"start\">\n            <input type=\"hidden\" class=\"check-out-input\"\n                value=\"09\/12\/2026\" name=\"end\">\n            <input type=\"text\" class=\"check-in-out\" name=\"date\"\n                value=\"2026-09-11 - 2026-09-12\"\n                style=\" position:absolute;left:-15px;bottom:1px;z-index:-1;opacity:0\">\n                    <\/div>\n        <i class=\"fa fa-calendar mobile-search-icon-back\"><\/i>\n    <\/div>\n<\/div>\n<script>\n    \/*\n     * Date picker flow \u2014 simple two-click manual selection:\n     *   1. User clicks Check In panel \u2192 picker opens in 'checkin' mode\n     *   2. User clicks a date \u2192 check-in set, picker stays open in 'checkout' mode\n     *   3. User clicks a date \u2192 check-out set, picker closes, Guests opens\n     *\n     * The custom daterangepicker (custom_daterangepicker.min.js) reads\n     * localStorage('in_out_event') in clickDate to decide whether to set\n     * startDate ('in') or endDate ('out'). It fires clickApply() on EVERY click.\n     *\/\n    window._dateStep = 'idle';\n\n    function openDatePicker(form) {\n        var dp = $(form || '.travlocals_form:visible').find('.check-in-out').first().data('daterangepicker');\n        if (!dp) return;\n        if (!dp.isShowing) dp.show();\n    }\n\n    function activateCheckin(form) {\n        var $form = $(form || '.travlocals_form:visible').first();\n        window._dateStep = 'checkin';\n        localStorage.setItem('in_out_event', 'in');\n        $(\".travlocals_search_map\").addClass(\"blurred\");\n        $form.find(\".g-field-search\").addClass(\"selected\");\n        $(\"#pop-up\").addClass(\"d-none\");\n        $form.find(\".border-right1\").removeClass(\"active\");\n        $form.find(\".my-date-pannel .border-right:first-child\").addClass(\"active\");\n        $form.find(\".my-date-pannel .border-right:last-child\").removeClass(\"active\");\n        $form.find(\".form-select-guests\").removeClass(\"active\");\n    }\n\n    function activateCheckout() {\n        window._dateStep = 'checkout';\n        localStorage.setItem('in_out_event', 'out');\n        $(\"#hotel_search .my-date-pannel .border-right:first-child\").removeClass(\"active\");\n        $(\"#hotel_search .my-date-pannel .border-right:last-child\").addClass(\"active\");\n    }\n\n    \/* Click pe Check In *\/\n    $(document).on(\"click\", \"#hotel_search .my-date-pannel .border-right:first-child, #venue_search .my-date-pannel .border-right:first-child\", function(e) {\n        e.stopPropagation();\n        var form = $(this).closest(\"form\");\n        activateCheckin(form);\n        openDatePicker(form);\n    });\n\n    \/* Click pe Check Out *\/\n    $(document).on(\"click\", \"#hotel_search .my-date-pannel .border-right:last-child, #venue_search .my-date-pannel .border-right:last-child\", function(e) {\n        e.stopPropagation();\n        window._dateStep = 'checkout';\n        localStorage.setItem('in_out_event', 'out');\n        $(\".travlocals_search_map\").addClass(\"blurred\");\n        $(\"#hotel_search .g-field-search\").addClass(\"selected\");\n        $(\"#pop-up\").addClass(\"d-none\");\n        $(\"#hotel_search .border-right1\").removeClass(\"active\");\n        $(\"#hotel_search .my-date-pannel .border-right:last-child\").addClass(\"active\");\n        $(\"#hotel_search .my-date-pannel .border-right:first-child\").removeClass(\"active\");\n        $(\"#hotel_search .form-select-guests\").removeClass(\"active\");\n        openDatePicker();\n    });\n\n    function selectCheckoutDate() {\n        window._dateStep = 'checkout';\n        localStorage.setItem('in_out_event', 'out');\n        $(\".travlocals_search_map\").addClass(\"blurred\");\n        $(\"#hotel_search .g-field-search\").addClass(\"selected\");\n        $(\"#pop-up\").addClass(\"d-none\");\n        $(\"#hotel_search .border-right1\").removeClass(\"active\");\n        $(\"#hotel_search .my-date-pannel .border-right:first-child\").removeClass(\"active\");\n        $(\"#hotel_search .my-date-pannel .border-right:last-child\").addClass(\"active\");\n        $(\"#hotel_search .form-select-guests\").removeClass(\"active\");\n        openDatePicker();\n    }\n\n    $(document).ready(function() {\n\n        \/* CRITICAL: Bind mousedown DIRECTLY on the date panel element (not delegated\n           on document) so that stopPropagation actually prevents the event from reaching\n           document, where the daterangepicker's outsideClick handler listens.\n           Without this, outsideClick calls hide(), which auto-sets endDate = startDate\n           when endDate is null. *\/\n        $('#hotel_search .my-date-pannel, #venue_search .my-date-pannel').on('mousedown', function(e) {\n            var dp = $(this).find('.check-in-out').data('daterangepicker');\n            if (dp && dp.isShowing) {\n                e.stopPropagation();\n            }\n        });\n\n        \/* Stop click events from calendar cells from bubbling up to #travlocals-menu,\n           which would remove .selected\/.active CSS classes and break the guided flow. *\/\n        $(document).on('click', '.daterangepicker', function(e) {\n            e.stopPropagation();\n        });\n\n        \/* NOTE: The apply.daterangepicker handler is in home.js (single consolidated handler)\n           to avoid dual-handler race conditions with _dateStep state. *\/\n    });\n<\/script>\n                                                        <\/div>\n                                                    <div style=\"width: 1px; height: 30px; background: #dddddd; margin-top: 18px;\"><\/div>\n                                                                                            <div class=\"p-0 mobile-line-space\" style=\"flex: 1\">\n                                                                <style>\n    .travlocals_wrap .select-guests-dropdown {\n        margin-top: 8px !important;\n    }\n    .travlocals_wrap .event-guests-dropdown {\n        max-width: none;\n        min-width: 0;\n        transform: none !important;\n    }\n    .travlocals_wrap .event-guests-dropdown .dropdown-item-row {\n        align-items: center;\n        display: flex;\n        gap: 20px;\n    }\n    .travlocals_wrap .event-guests-dropdown .val,\n    .travlocals_wrap .event-guests-dropdown .count-display {\n        flex: 1;\n    }\n    .travlocals_wrap .event-guests-dropdown .dropdown-item-row .count-display input {\n        background: #fff !important;\n        border: 1px solid #b8c2cc !important;\n        border-radius: 8px;\n        box-sizing: border-box;\n        padding: 8px 10px;\n        width: 100% !important;\n    }\n    .travlocals_wrap .event-guests-dropdown .dropdown-item-row .count-display input:focus {\n        border-color: #5191fa !important;\n        box-shadow: 0 0 0 3px rgba(81, 145, 250, .18);\n        outline: none;\n    }\n<\/style>\n<div class=\"form-select-guests border-right\" style=\"padding: 10px 24px;position: relative;\">\n    \n    <div class=\"form-content dropdown-toggle\" data-toggle=\"dropdown\" onclick=\"showDropdown(this)\">\n        <div class=\"wrapper-more\" style=\"line-height: 18px;\">\n            <label> Guests <\/label>\n                        <div class=\"render\">\n                <span class=\"adults\"><span\n                        class=\"one \">1 Adult<\/span> <span\n                        class=\" d-none  multi\"\n                        data-html=\":count Adults\">1 Adults<\/span><\/span>\n                -\n                <span class=\"children\">\n                    <span class=\"one \"\n                        data-html=\":count Child\">0 Child<\/span>\n                    <span class=\"multi  d-none \"\n                        data-html=\":count Children\">0 Children<\/span>\n                <\/span>\n            <\/div>\n        <\/div>\n    <\/div>\n    <div class=\"dropdown-menu select-guests-dropdown\">\n        <!-- <div class=\"dropdown-item-row\">\n            <div class=\"label\">Rooms<\/div>\n            <div class=\"val\">\n                <span class=\"btn-minus\" data-input=\"room\"><i class=\"icon ion-md-remove\"><\/i><\/span>\n                <span class=\"count-display\"><input type=\"number\" name=\"room\" value=\"1\" min=\"1\"><\/span>\n                <span class=\"btn-add\" data-input=\"room\"><i class=\"icon ion-ios-add\"><\/i><\/span>\n            <\/div>\n        <\/div> -->\n        <div class=\"dropdown-item-row\">\n            <div class=\"label\">Adults<\/div>\n            <div class=\"val\">\n                <span class=\"btn-minus\" data-input=\"adults\"><i class=\"icon ion-md-remove\"><\/i><\/span>\n                <span class=\"count-display\"><input type=\"number\" name=\"adults\"\n                        value=\"1\" min=\"1\"><\/span>\n                <span class=\"btn-add\" data-input=\"adults\"><i class=\"icon ion-ios-add\"><\/i><\/span>\n            <\/div>\n        <\/div>\n        <div class=\"dropdown-item-row\">\n            <div class=\"label\">Children<\/div>\n            <div class=\"val\">\n                <span class=\"btn-minus\" data-input=\"children\"><i class=\"icon ion-md-remove\"><\/i><\/span>\n                <span class=\"count-display\"><input type=\"number\" name=\"children\"\n                        value=\"0\" min=\"0\"><\/span>\n                <span class=\"btn-add\" data-input=\"children\"><i class=\"icon ion-ios-add\"><\/i><\/span>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/div>\n<script>\n    function updateEventGuests(parent, normalize) {\n        var input = parent.find('[name=event_guests]');\n        var guests = parseInt(input.val(), 10);\n        var render = parent.find('.event-guests-render');\n\n        if (!Number.isInteger(guests) || guests < 1) {\n            if (!normalize) {\n                render.text(render.data('empty'));\n                return;\n            }\n\n            guests = 1;\n            input.val(guests);\n        }\n\n        render.text(guests + ' ' + render.data('selected'));\n    }\n\n    function alignEventGuestsDropdown(field) {\n        var dropdown = field.find('.event-guests-dropdown');\n        if (!dropdown.length) {\n            return;\n        }\n\n        dropdown.css({\n            left: 0,\n            minWidth: field.outerWidth(),\n            right: 'auto',\n            width: field.outerWidth()\n        });\n    }\n\n    $(document).on('click', '.event-guests-dropdown, .event-guests-dropdown .dropdown-item-row, .event-guests-dropdown input', function(event) {\n        event.stopPropagation();\n    });\n\n    $(document).on('shown.bs.dropdown', '.event-guests-field', function() {\n        alignEventGuestsDropdown($(this));\n    });\n\n    $(document).on('focus', '.event-guests-dropdown [name=event_guests]', function() {\n        this.select();\n    });\n\n    $(document).on('input', '.event-guests-dropdown [name=event_guests]', function() {\n        updateEventGuests($(this).closest('.event-guests-field'), false);\n    });\n\n    $(document).on('change blur', '.event-guests-dropdown [name=event_guests]', function() {\n        updateEventGuests($(this).closest('.event-guests-field'), true);\n    });\n\n    function showDropdown(searchForm) {\n        var form = searchForm ? $(searchForm).closest('form') : $('.travlocals_form:visible').first();\n        setTimeout(function() {\n            alignEventGuestsDropdown(form.find('.event-guests-field').first());\n        }, 0);\n        $(\".travlocals_search_map\").addClass(\"blurred\");\n        form.find(\".g-field-search\").addClass(\"selected\");\n        $(\"#pop-up\").addClass(\"d-none\");\n        form.find(\".border-right1\").removeClass(\"active\");\n        form.find(\".my-date-pannel .border-right\").removeClass(\"active\");\n        form.find(\".form-select-guests\").addClass(\"active\");\n    }\n<\/script>\n                                                        <\/div>\n                                                                        <\/div>\n        <\/div>\n        <div class=\"g-button-submit\">\n            <button id=\"searchButton\" class=\"btn btn-primary btn-search\" type=\"submit\">\n                <span class=\"icofont-search icofont-1x\"><\/span>\n                <span id=\"searchButtonText\">Search<\/span>\n            <\/button>\n            \n        <\/div>\n        <div id=\"loading-popup\" style=\"display: none;\">\n            \n        <\/div>\n        <script>\n            document.addEventListener('DOMContentLoaded', function () {\n                var searchForm = document.querySelector('#hotel_search form');\n                var loadingPopup = document.getElementById('loading-popup');\n                var searchButton = document.getElementById('searchButton');\n                var searchButtonText = document.getElementById('searchButtonText');\n        \n                searchForm.addEventListener('submit', function (event) {\n                    var countyUrlInput = searchForm.querySelector('.county-landing-url');\n                    var countyLandingUrl = searchForm.dataset.countyLandingUrl\n                        || (countyUrlInput ? countyUrlInput.value : '');\n\n                    if (countyLandingUrl) {\n                        event.preventDefault();\n                        event.stopImmediatePropagation();\n\n                        var destination = new URL(countyLandingUrl, window.location.origin);\n                        var formData = new FormData(searchForm);\n                        formData.forEach(function (value, key) {\n                            if (value !== '') destination.searchParams.append(key, value);\n                        });\n\n                        window.location.assign(destination.toString());\n                        return;\n                    }\n\n                    \/\/ Afi\u0219eaz\u0103 pop-up-ul c\u00e2nd formularul este trimis\n                    loadingPopup.style.display = 'block';\n        \n                    \/\/ Schimb\u0103 textul \u0219i stilul butonului\n                    searchButtonText.innerText = 'Searching...';\n                    searchButton.classList.add('searching');\n        \n                    \/\/ Po\u021bi ad\u0103uga aici logica pentru efectuarea c\u0103ut\u0103rii (trimitere de date c\u0103tre server, etc.)\n                    \/\/ ...\n        \n                    \/\/ Dup\u0103 ce c\u0103utarea este complet\u0103 (simulat\u0103 aici cu un delay de 3 secunde), ascunde pop-up-ul\n                    setTimeout(function () {\n                        loadingPopup.style.display = 'none';\n        \n                        \/\/ Reseteaz\u0103 textul \u0219i stilul butonului\n                        searchButtonText.innerText = 'Search';\n                        searchButton.classList.remove('searching');\n                    }, 25000); \/\/ Schimb\u0103 3000 cu durata real\u0103 a c\u0103ut\u0103rii\n                });\n            });\n        <\/script>\n        \n        <script>\n            document.addEventListener('DOMContentLoaded', function () {\n                var searchForm = document.getElementById('hotel_search');\n                var loadingPopup = document.getElementById('loading-popup');\n        \n                searchForm.addEventListener('submit', function (event) {\n                    \/\/ Afi\u0219eaz\u0103 pop-up-ul c\u00e2nd formularul este trimis\n                    loadingPopup.style.display = 'block';\n        \n                    \/\/ Po\u021bi ad\u0103uga aici logica pentru efectuarea c\u0103ut\u0103rii (trimitere de date c\u0103tre server, etc.)\n                    \/\/ ...\n        \n                    \/\/ Dup\u0103 ce c\u0103utarea este complet\u0103 (simulat\u0103 aici cu un delay de 3 secunde), ascunde pop-up-ul\n                    setTimeout(function () {\n                        loadingPopup.style.display = 'none';\n                    }, 3000); \/\/ Schimb\u0103 3000 cu durata real\u0103 a c\u0103ut\u0103rii\n                });\n            });\n        <\/script>\n    <\/form>\n<\/div>\n    <style>\n        .btn-search.searching {\n    background-color: grey; \/* sau orice alt\u0103 culoare gri pe care o preferi *\/\n    color: rgb(255, 254, 254);\n    font-size: 10px!important;\n}\n        <\/style>\n                            <\/div>\n                            <div class=\"g-map-place pl-3\">\n                                <input type=\"text\" name=\"map_place\" readonly\n                                    placeholder=\"Where are you going?\"\n                                    value=\"\">\n                                <div class=\"map\" id=\"map-Ff8W5lEvkT\"><\/div>\n                                <input type=\"hidden\" name=\"map_lat\" value=\"\">\n                                <input type=\"hidden\" name=\"map_lgn\" value=\"\">\n                            <\/div>\n\n                            <button type=\"button\" class=\"btn btn-primary re-search mobile-search-btn\">\n                                <span class=\"icofont-search icofont-1x\"><\/span>\n                            <\/button>\n                        <\/div>\n\n                        <span class=\"filter-title toggle-advance-filter mobile-filters-next-search\" data-target=\"#advance_filters\" aria-label=\"Filters\">\n                            <i class=\"fa fa-sliders\"><\/i>\n                        <\/span>\n                    <\/div>\n                <\/form>\n                <br>\n            <\/div>\n\n                            <div class=\"text-paginate\">\n                    <h2 class=\"text\">\n                                                    155 stays found\n                                            <\/h2>\n\n                    <span class=\"count-string\">\n                                                    Showing 151 - 155 of 155 stays\n                                            <\/span>\n\n                <\/div>\n        <\/div>\n\n        <div class=\"col-lg-8 col-md-8 map-results-actions\">\n            <div class=\"desktop\">\n                <div class=\"desktop-top-bar\" style=\"float: right;\">\n                                            <div class=\"stay-type-bubbles desktop-stay-bubbles\">\n                            <a href=\"#\" class=\"stay-type-bubble top-bar-btn active\" data-stay-type=\"unique\">Unique Stays<\/a>\n                            <a href=\"#\" class=\"stay-type-bubble top-bar-btn\" data-stay-type=\"all\">All Stays<\/a>\n                        <\/div>\n                    \n                                                                        <a href=\"\/deals\" class=\"mobile-late-deals-btn top-bar-btn\">Late Deals<\/a>\n                                            \n                    <span class=\"filter-title toggle-advance-filter top-bar-btn\" data-target=\"#advance_filters\">\n                        <i class=\"fa fa-sliders\" style=\"margin-right: 6px;\"><\/i>\n                        <span class=\"filter-text\">Filters<\/span>\n                    <\/span>\n                <\/div>\n            <\/div>\n            <div class=\"mobile\">\n                <div class=\"mobile-top-bar\">\n                                            <div class=\"stay-type-bubbles\">\n                            <a href=\"#\" class=\"stay-type-bubble top-bar-btn active\" data-stay-type=\"unique\">Unique Stays<\/a>\n                            <a href=\"#\" class=\"stay-type-bubble top-bar-btn\" data-stay-type=\"all\">All Stays<\/a>\n                        <\/div>\n                    \n                                                                        <a href=\"\/deals\" class=\"mobile-late-deals-btn top-bar-btn\">Late Deals<\/a>\n                                                            <\/div>\n            <\/div>\n\n        <\/div>\n        <div class=\"list-item w-100\">\n            <div class=\"row\">\n                                    <div class=\"col-lg-12 col-md-12\">\n                        <div class=\"item-loop-list \">\n        <div class=\"thumb-image\">\n        <div class=\"w-100\">\n                        <a href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\" target=\"_blank\" class=\"thumb-image-gallery\" style=\"display: block;\">\n                                                            <img class='img-responsive fit-cover lazy'  data-src=https:\/\/www.travlocals.com\/uploads\/0010\/10417\/2025\/12\/03\/723325753.webp  alt='The Lodge Transylvania \u2013 Your Private Escape in the Bucegi Mountains'>\n                    \n                            <\/a>\n            <div class=\"fotorama__arr fotorama__arr--next gallery-arr\" tabindex=\"0\" role=\"button\"\n                data-id=\"40934\" data-href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\"\n                data-gallery-context=\"hotel\"><\/div>\n        <\/div>\n        <div class=\"service-wishlist \" data-id=\"40934\"\n            data-type=\"hotel\">\n            <i class=\"fa fa-heart\" style=\"float: right;\"><\/i>\n        <\/div>\n\n                    <div class=\"badges-container\">\n                \n                            <\/div>\n        \n    <\/div>\n    <div class=\"g-info\" data-href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\" style=\"cursor: pointer;\">\n\n                <div class=\"item-title\">\n            <a    href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\">\n                                The Lodge Transylvania \u2013 Your Private Escape in the Bucegi Mountains\n            <\/a>\n\n\n        <\/div>\n                    <span class=\"address1\" style=\"font-size: 12px;\">&nbsp;<i class=\"fa fa-map-marker\"><\/i>\n                Bran, Bra\u015fov, Rom\u00e2nia\n            <\/span>\n         \n\n    \n    <div id=\"term-tags-container\" data-terms='[{\"id\":38,\"slug\":\"resorts\",\"name\":\"Rustic Resorts\"},{\"id\":41,\"slug\":\"cruises\",\"name\":\"Boutique Hotels\"},{\"id\":331,\"slug\":\"spa-resorts\",\"name\":\"SPA Resorts\"},{\"id\":468,\"slug\":\"villas-1\",\"name\":\"Villas\"},{\"id\":264,\"slug\":\"bike-rental\",\"name\":\"Bike rental\"},{\"id\":338,\"slug\":\"childrens-playground\",\"name\":\"Childrens playground\"},{\"id\":341,\"slug\":\"hot-tub-1\",\"name\":\"Hot tub\"},{\"id\":342,\"slug\":\"jacuzzi\",\"name\":\"Jacuzzi\"},{\"id\":343,\"slug\":\"sunbeds\",\"name\":\"Sunbeds\"},{\"id\":346,\"slug\":\"barbecue-facilities\",\"name\":\"Pavilion\"},{\"id\":347,\"slug\":\"barbecue-facilities-1\",\"name\":\"Barbecue facilities\"},{\"id\":348,\"slug\":\"cauldron-cooking\",\"name\":\"Cauldron cooking\"},{\"id\":350,\"slug\":\"fire-pit\",\"name\":\"Fire pit\"},{\"id\":353,\"slug\":\"tennis-court\",\"name\":\"Tennis court\"},{\"id\":354,\"slug\":\"basketball-court\",\"name\":\"Basketball court\"},{\"id\":356,\"slug\":\"mini-football\",\"name\":\"Mini football\"},{\"id\":357,\"slug\":\"ping-pong-table\",\"name\":\"Ping pong table\"},{\"id\":358,\"slug\":\"badminton-kit\",\"name\":\"Badminton kit\"},{\"id\":359,\"slug\":\"horse-riding\",\"name\":\"Horse riding\"},{\"id\":361,\"slug\":\"hiking\",\"name\":\"Hiking\"},{\"id\":363,\"slug\":\"wildlife-trips\",\"name\":\"Wildlife trips\"},{\"id\":364,\"slug\":\"bird-watching\",\"name\":\"Bird watching\"},{\"id\":371,\"slug\":\"bed-linen\",\"name\":\"Bed linen\"},{\"id\":374,\"slug\":\"tv-1\",\"name\":\"TV\"},{\"id\":375,\"slug\":\"wi-fi-1\",\"name\":\"Wi-Fi\"},{\"id\":376,\"slug\":\"bathroom-with-shower\",\"name\":\"Bathroom with shower\"},{\"id\":377,\"slug\":\"bathroom-with-tub\",\"name\":\"Bathroom with tub\"},{\"id\":379,\"slug\":\"private-bathroom-1\",\"name\":\"Private bathroom\"},{\"id\":381,\"slug\":\"balcony\",\"name\":\"Balcony\"},{\"id\":382,\"slug\":\"terrace\",\"name\":\"Terrace\"},{\"id\":389,\"slug\":\"hair-dryer\",\"name\":\"Hair dryer\"},{\"id\":390,\"slug\":\"body-towels\",\"name\":\"Body towels\"},{\"id\":391,\"slug\":\"hand-towels\",\"name\":\"Hand towels\"},{\"id\":392,\"slug\":\"liquid-soap\",\"name\":\"Liquid soap\"},{\"id\":393,\"slug\":\"shampoo\",\"name\":\"Shampoo\"},{\"id\":395,\"slug\":\"toilet-paper\",\"name\":\"Toilet paper\"},{\"id\":397,\"slug\":\"clothes-dryer\",\"name\":\"Clothes dryer\"},{\"id\":399,\"slug\":\"dishwasher\",\"name\":\"Dishwasher\"},{\"id\":400,\"slug\":\"refrigerator\",\"name\":\"Refrigerator\"},{\"id\":401,\"slug\":\"electric-oven\",\"name\":\"Electric oven\"},{\"id\":405,\"slug\":\"espresso-machine\",\"name\":\"Espresso machine\"},{\"id\":406,\"slug\":\"kettle\",\"name\":\"Kettle\"},{\"id\":407,\"slug\":\"crockery\",\"name\":\"Crockery\"},{\"id\":408,\"slug\":\"cutlery\",\"name\":\"Cutlery\"},{\"id\":414,\"slug\":\"breakfast-2\",\"name\":\"Breakfast\"},{\"id\":420,\"slug\":\"kitchen-1\",\"name\":\"Kitchen\"},{\"id\":421,\"slug\":\"free-parking\",\"name\":\"Free parking\"},{\"id\":424,\"slug\":\"outdoor-activities\",\"name\":\"Outdoor activities\"},{\"id\":426,\"slug\":\"hot-tub\",\"name\":\"Hot tub\"},{\"id\":427,\"slug\":\"jacuzzi-1\",\"name\":\"Jacuzzi\"},{\"id\":428,\"slug\":\"children-playground\",\"name\":\"Children playground\"},{\"id\":430,\"slug\":\"kids-friendly\",\"name\":\"Kids friendly\"},{\"id\":432,\"slug\":\"netflix\",\"name\":\"NETFLIX\"},{\"id\":434,\"slug\":\"free-wi-fi\",\"name\":\"Free Wi-fi\"},{\"id\":435,\"slug\":\"laptop-friendly\",\"name\":\"Laptop friendly\"},{\"id\":436,\"slug\":\"breakfast-1\",\"name\":\"Breakfast\"},{\"id\":437,\"slug\":\"garden\",\"name\":\"Garden\"},{\"id\":438,\"slug\":\"terrace-1\",\"name\":\"Terrace\"},{\"id\":439,\"slug\":\"balcony-1\",\"name\":\"Balcony\"},{\"id\":440,\"slug\":\"heating\",\"name\":\"Heating\"},{\"id\":441,\"slug\":\"fireplace\",\"name\":\"Fireplace\"},{\"id\":442,\"slug\":\"barbeque-area\",\"name\":\"Barbeque area\"},{\"id\":443,\"slug\":\"massage\",\"name\":\"Massage\"},{\"id\":449,\"slug\":\"remote-work\",\"name\":\"Remote work\"},{\"id\":450,\"slug\":\"iron\",\"name\":\"Iron\"},{\"id\":451,\"slug\":\"desk\",\"name\":\"Desk\"},{\"id\":457,\"slug\":\"reception\",\"name\":\"Reception\"},{\"id\":459,\"slug\":\"sauna\",\"name\":\"Sauna\"},{\"id\":460,\"slug\":\"coffee-maker\",\"name\":\"Coffee maker\"},{\"id\":461,\"slug\":\"spa\",\"name\":\"SPA\"},{\"id\":462,\"slug\":\"luggage-support\",\"name\":\"Luggage support\"},{\"id\":463,\"slug\":\"cafe-1\",\"name\":\"Cafe\"},{\"id\":464,\"slug\":\"bar-1\",\"name\":\"Bar\"},{\"id\":465,\"slug\":\"self-catering\",\"name\":\"Self catering\"},{\"id\":466,\"slug\":\"toaster\",\"name\":\"Toaster\"},{\"id\":475,\"slug\":\"hangers\",\"name\":\"Hangers\"},{\"id\":476,\"slug\":\"wardrobe-or-closet\",\"name\":\"Wardrobe or closet\"},{\"id\":477,\"slug\":\"heating-1\",\"name\":\"Heating\"},{\"id\":478,\"slug\":\"fishing\",\"name\":\"Fishing\"},{\"id\":479,\"slug\":\"cultural-tours\",\"name\":\"Cultural tours\"},{\"id\":484,\"slug\":\"washer\",\"name\":\"Washer\"}]'> <\/div>\n\n\n\n        <div class=\"desktop\">\n            <div class=\"location\">\n                <div class=\"row\">\n                    <div class=\"col-sm-5\">\n                                                                                <div class=\"service-review-pc\">\n                                <div class=\"head\" style=\"float: left;\">\n                                    <div class=\"left\">\n                                        <span class=\"head-rating\">Not rated<\/span>\n                                        <span\n                                            class=\"text-rating\">0 reviews<\/span>\n                                    <\/div>\n                                    <div class=\"score\"> 0<span>\/5<\/span>\n                                    <\/div>\n                                <\/div>\n                                            <\/div>\n                <\/div>\n                <div class=\"col-sm-6\" style=\"text-align: right;\">\n                                        <div class=\"price\">\n\n\n\n                        \n                        <div class=\"item-loop-list \" style=\"border: none;\">\n\n                        <\/div>\n\n\n                        <div class=\"price\" style=\"margin-top: 20px; display: inline; margin-bottom: 20px;\">\n                            <span class=\"fr_text\"data-hotel-id=\"40934\">from<\/span>\n                            <span class=\"text-price\"\n                                style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                                data-hotel-id=\"40934\">\n                                \u20ac 550\n                            <\/span>\n                            <span class=\"unit\" data-hotel-id=\"40934\">\n                                \/night\n                            <\/span>\n                                                                                                                                                    <div class=\"hotel-availability\" data-hotel-id=\"40934\"\n                                    data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                    data-adults=\"1\"\n                                    data-children=\"0\" style=\"margin-left: 90px;\">\n                                    <span class=\"checking-text\">Checking...<\/span>\n                                <\/div>\n                            \n\n\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n        <\/div>\n    <\/div>\n    <div class=\"mobile\">\n        <div class=\"location\">\n            <div class=\"row\">\n\n                <div class=\"col-sm-12\" style=\"padding: 0px;\">\n                                                                    <div class=\"service-review-pc\">\n                            <div class=\"head\" style=\"float: left;\">\n                                <div class=\"left\">\n                                    <span class=\"head-rating\">Not rated<\/span>\n                                    <span\n                                        class=\"text-rating\">0 reviews<\/span>\n                                <\/div>\n                                <div class=\"score\">0<span>\/5<\/span>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                                        <div class=\"item-loop-list \"\n                        style=\"border: none;\/*! float: right; *\/margin-left: 90%;\">\n\n                    <\/div>\n                                        <div class=\"price\" style=\"display: inline;margin-bottom: 20px;float: right;\">\n                        <span class=\"fr_text\"data-hotel-id=\"40934\">from<\/span> <span\n                            class=\"text-price\"\n                            style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                            data-hotel-id=\"40934\">\u20ac 550\n                        <\/span>\n                        <span class=\"unit\" data-hotel-id=\"40934\">\n                            \/night\n                        <\/span>\n                                                                                                                               <div class=\"hotel-availability\" data-hotel-id=\"40934\"\n                                data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                data-adults=\"1\"\n                                data-children=\"0\" style=\"margin-left: 90px;\">\n                                <span class=\"checking-text\">Checking...<\/span>\n                            <\/div>\n                        \n\n\n\n\n                    <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n<\/div>\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        function checkAvailabilityForEvents() {\n            let eventElements = document.querySelectorAll(\".event-availability:not([data-checked='true'])\");\n\n            eventElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let status = element.dataset.status;\n                let priceElements = document.querySelectorAll(\n                    `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                );\n                let mealIncludedElement = document.querySelector(\n                    `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                element.setAttribute('data-checked', 'true');\n\n                setTimeout(function() {\n                    if (status === 'not_available') {\n                        element.innerHTML =\n                            `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">Not available<\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"line-through\";\n                            priceElement.style.color = \"black\";\n                            priceElement.style.fontWeight = \"300\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"none\";\n                        }\n                    } else {\n                        element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"none\";\n                            priceElement.style.color = \"var(--main-color, #1A2B48)\";\n                            priceElement.style.fontWeight = \"400\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"block\";\n                        }\n                    }\n                }, 300);\n            });\n        }\n\n        window.travlocalsCheckEventAvailability = checkAvailabilityForEvents;\n\n        \/\/ Func\u021bie pentru a verifica disponibilitatea hotelurilor\n        function checkAvailabilityForHotels() {\n            \/\/ Select\u0103m toate elementele care trebuie s\u0103 verifice disponibilitatea hotelurilor\n            let hotelElements = document.querySelectorAll(\".hotel-availability:not([data-checked='true'])\");\n\n            hotelElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let startDate = element.dataset.startDate;\n                let endDate = element.dataset.endDate;\n                let adults = element.dataset.adults;\n                let children = element.dataset.children;\n\n                \/\/ Marc\u0103m elementul ca fiind verificat pentru a evita verific\u0103rile redundante\n                element.setAttribute('data-checked', 'true');\n\n                \/\/ Trimitem cererea AJAX pentru a verifica disponibilitatea\n                fetch(`\/hotel\/checkAvailability`, {\n                        method: 'POST',\n                        headers: {\n                            'Content-Type': 'application\/json',\n                            'X-CSRF-TOKEN': document.querySelector('meta[name=\"csrf-token\"]')\n                                .getAttribute('content')\n                        },\n                        body: JSON.stringify({\n                            hotel_id: hotelId,\n                            start_date: startDate,\n                            end_date: endDate,\n                            adults: adults,\n                            children: children\n                        })\n                    })\n                    .then(response => response.json())\n                    .then(data => {\n                        \/\/ Ob\u021binem elementele pentru pre\u021b: `fr_text`, `text-price`, \u0219i `unit`\n                        let priceElements = document.querySelectorAll(\n                            `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                        );\n                        let mealIncludedElement = document.querySelector(\n                            `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                        if (data.rooms && data.rooms.length > 0) {\n                            \/\/ Dac\u0103 hotelul este disponibil\n                            element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                            \/\/ Scoatem linia de t\u0103iere pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"none\"; \/\/ \u00cenl\u0103tur\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"var(--main-color, #1A2B48)\"; \/\/ Reset\u0103m culoarea\n                                priceElement.style.fontWeight =\n                                    \"400\"; \/\/ Set\u0103m font-weight la valoarea normal\u0103 (po\u021bi modifica)\n                            });\n\n                            \/\/ Afi\u0219\u0103m elementul pentru mese incluse dac\u0103 exist\u0103\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"block\";\n                            }\n\n                        } else {\n                            \/\/ Dac\u0103 hotelul nu este disponibil\n                            element.innerHTML =\n                                `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">SOLD<\/span>`;\n\n                            \/\/ Ad\u0103ug\u0103m linia de t\u0103iere \u0219i schimb\u0103m culoarea pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"line-through\"; \/\/ Ad\u0103ug\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"black\"; \/\/ Set\u0103m culoarea la negru\n                                priceElement.style.fontWeight =\n                                    \"300\"; \/\/ Set\u0103m font-weight la 300\n                            });\n\n                            \/\/ Ascundem elementul pentru mese incluse\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"none\";\n                            }\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error checking availability:', error);\n                        element.innerHTML = `<span class=\"error-text\"><\/span>`;\n                    });\n            });\n        }\n\n        \/\/ Apel\u0103m func\u021bia la \u00eenc\u0103rcarea paginii\n        checkAvailabilityForEvents();\n        checkAvailabilityForHotels();\n\n        \/\/ Observ\u0103m c\u00e2nd con\u021binutul paginii se schimb\u0103 prin paginare\n        document.addEventListener('click', function(event) {\n            if (event.target.matches('.travlocals-pagination a')) {\n                \/\/ A\u0219tept\u0103m pu\u021bin pentru a ne asigura c\u0103 noile list\u0103ri s-au \u00eenc\u0103rcat\n                setTimeout(function() {\n                    checkAvailabilityForEvents();\n                    checkAvailabilityForHotels();\n                }, 1000);\n            }\n        });\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        let fotoramaContainer = document.querySelector(\".fotorama\");\n\n        if (fotoramaContainer) {\n            fotoramaContainer.addEventListener(\"click\", function(event) {\n                let hotelUrl = document.querySelector(\".full-link\").getAttribute(\"href\");\n\n                \/\/ Verific\u0103m dac\u0103 NU s-a dat click pe butoanele de navigare (prev, next)\n                if (!event.target.closest(\".fotorama__arr--next\") && !event.target.closest(\n                        \".fotorama__arr--prev\")) {\n                    window.location.href = hotelUrl; \/\/ Navig\u0103m la pagina list\u0103rii\n                }\n            });\n        }\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        document.querySelectorAll(\".g-info\").forEach(function(infoDiv) {\n            infoDiv.addEventListener(\"click\", function(event) {\n                \/\/ Verific\u0103m dac\u0103 utilizatorul a dat click pe un link sau un buton (nu redirec\u021bion\u0103m \u00een acest caz)\n                if (!event.target.closest(\"a, button\")) {\n                    let url = this.getAttribute(\"data-href\");\n                    console.log(\"Navigating to:\", url);\n                    window.location.href = url;\n                }\n            });\n        });\n    });\n<\/script>\n<script>\nwindow.addEventListener('load', function() {\n    \/\/ Script-ul ruleaz\u0103 DUP\u0102 ce s-a \u00eenc\u0103rcat complet pagina\n    document.querySelectorAll('#term-tags-container').forEach(function (container) {\n        \/\/ Verific\u0103 dac\u0103 badge-urile au fost deja procesate\n        if (container.hasAttribute('data-badges-processed')) {\n            return;\n        }\n        \n        container.setAttribute('data-badges-processed', 'true');\n        \n        const rawData = container.dataset.terms;\n        if (!rawData) return;\n\n        let terms = [];\n        try {\n            terms = JSON.parse(rawData);\n        } catch (e) {\n            console.error('Invalid JSON in data-terms', rawData);\n            return;\n        }\n\n        const wantedSlugs = ['pet-friendly', 'spa', 'piscina', 'pool', 'Piscina','jacuzii','Jacuzii','Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1' ];\n        let shownSpaFacility = false;\n        const shownSlugs = new Set();\n\n        terms.forEach(term => {\n            const slug = term.slug.toLowerCase();\n            if (!wantedSlugs.includes(slug)) return;\n\n            if (shownSlugs.has(slug)) return;\n            shownSlugs.add(slug);\n\n            let labelText = '';\n\n            if (['spa', 'piscina', 'pool', 'jacuzii','Piscina','Jacuzii', 'Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1'].includes(slug)) {\n                if (shownSpaFacility) return;\n                \n                labelText = \"Spa Facilities\";\n\n                shownSpaFacility = true;\n            } else if (slug === 'pet-friendly') {\n                labelText = term.name;\n            }\n\n            if (labelText) {\n                const existingBadge = container.querySelector(`.term-${term.id}`);\n                if (existingBadge) return;\n                \n                const badge = document.createElement('div');\n                badge.className = `item ${slug} term-${term.id}`;\n                badge.style.cssText = `\n                    display: block;\n                    white-space: nowrap;\n                    font-size: 12px;\n                    padding: 6px 14px;\n                    border: 1px solid #dfdfdf;\n                    border-radius: 32px;\n                    background: rgba(255, 255, 255, 0.92);\n                    color: #222;\n                    width: fit-content;\n                    margin-top: 10px;\n                    margin-right: 8px;\n                    box-shadow: 0 1px 6px rgba(90,90,90,0.06);\n                `;\n                badge.innerText = labelText;\n                container.appendChild(badge);\n            }\n        });\n    });\n});\n    <\/script>\n    \n    \n<style>\n         .badge-label {\n            display: inline-block;\n            white-space: nowrap;\n            font-size: clamp(8px, 0.65vw, 12px);\n            padding: clamp(2px, 0.3vw, 6px) clamp(5px, 0.65vw, 12px);\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: rgba(255, 255, 255, 0.85);\n            color: #000;\n        }\n\n        @media (max-width: 1500px) {\n            .badge-label {\n                font-size: 9px;\n                padding: 2px 6px;\n            }\n        }\n\n        @media (max-width: 767px) {\n            .badge-label {\n                font-size: 12px;\n                padding: 4px 10px;\n            }\n        }\n\n        .item-loop-list .thumb-image {\n            position: relative;\n        }\n\n        .badges-container {\n            position: absolute;\n            bottom: 10px;\n            left: 10px;\n            right: 10px;\n            z-index: 10;\n            display: flex;\n            flex-wrap: nowrap;\n            justify-content: flex-end;\n            align-items: center;\n            gap: clamp(3px, 0.5vw, 8px);\n            pointer-events: none;\n        }\n\n    @media (max-width: 767px) {\n        .desktop {\n            display: none !important;\n        }\n\n   \n    }\n    @media (min-width: 564px) {\n  .terms {\n    display: block;\n  }\n}\n.fotorama__nav-wrap {\n        display: none !important;\n    }\n\n    .fotorama__img {\n        width: 100% !important;\n        height: 100% !important;\n        top: 0 !important;\n        left: 0 !important;\n        margin: none !important;\n        object-fit: cover !important;\n    }\n\n    @media  screen and (min-width: 767.98px) {\n        .thumb-image {\n            height: 250px !important;\n        }\n    }\n\n    .placeholder-img {\n        height: 50px !important;\n        object-fit: contain !important;\n    }\n\n    .fit-cover {\n        object-fit: cover !important;\n    }\n\n    .fotorama__caption,\n    .fotorama__nav::after,\n    .fotorama__nav::before,\n    .fotorama__stage::after,\n    .fotorama__stage::before,\n    .fotorama__wrap--css3 .fotorama__html,\n    .fotorama__wrap--css3 .fotorama__nav,\n    .fotorama__wrap--css3 .fotorama__spinner,\n    .fotorama__wrap--css3 .fotorama__stage,\n    .fotorama__wrap--css3 .fotorama__stage .fotorama__img,\n    .fotorama__wrap--css3 .fotorama__stage__frame {\n        -webkit-transform: translateZ(0);\n        transform: translateZ(0);\n        height: 250px !important;\n    }\n\n    html,\n    body {\n        overflow-x: hidden;\n    }\n<\/style>\n                    <\/div>\n                                    <div class=\"col-lg-12 col-md-12\">\n                        <div class=\"item-loop-list \">\n        <div class=\"thumb-image\">\n        <div class=\"w-100\">\n                        <a href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\" target=\"_blank\" class=\"thumb-image-gallery\" style=\"display: block;\">\n                                                            <img class='img-responsive fit-cover lazy'  data-src=https:\/\/www.travlocals.com\/uploads\/0003\/3181\/2022\/03\/20\/253a0982-870x555.webp  alt='Casa de sub Munte, guarded by the highest peaks of Fagaras Mountains'>\n                    \n                            <\/a>\n            <div class=\"fotorama__arr fotorama__arr--next gallery-arr\" tabindex=\"0\" role=\"button\"\n                data-id=\"26520\" data-href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\"\n                data-gallery-context=\"hotel\"><\/div>\n        <\/div>\n        <div class=\"service-wishlist \" data-id=\"26520\"\n            data-type=\"hotel\">\n            <i class=\"fa fa-heart\" style=\"float: right;\"><\/i>\n        <\/div>\n\n                    <div class=\"badges-container\">\n                \n                                    <span class=\"badge-label\">Entire place - 25<i\n                            class=\"fa fa-user-o\" style=\"padding-left: 3px;font-size: inherit;\"><\/i><\/span>\n                            <\/div>\n        \n    <\/div>\n    <div class=\"g-info\" data-href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\" style=\"cursor: pointer;\">\n\n                <div class=\"item-title\">\n            <a    href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\">\n                                Casa de sub Munte, guarded by the highest peaks of Fagaras Mountains\n            <\/a>\n\n\n        <\/div>\n                    <span class=\"address1\" style=\"font-size: 12px;\">&nbsp;<i class=\"fa fa-map-marker\"><\/i>\n                Victoria, Bra\u0219ov, Rom\u00e2nia\n            <\/span>\n         \n\n    \n    <div id=\"term-tags-container\" data-terms='[{\"id\":35,\"slug\":\"villas\",\"name\":\"Cabins\"},{\"id\":338,\"slug\":\"childrens-playground\",\"name\":\"Childrens playground\"},{\"id\":341,\"slug\":\"hot-tub-1\",\"name\":\"Hot tub\"},{\"id\":343,\"slug\":\"sunbeds\",\"name\":\"Sunbeds\"},{\"id\":344,\"slug\":\"hammocks\",\"name\":\"Hammocks\"},{\"id\":345,\"slug\":\"umbrellas\",\"name\":\"Umbrellas\"},{\"id\":346,\"slug\":\"barbecue-facilities\",\"name\":\"Pavilion\"},{\"id\":347,\"slug\":\"barbecue-facilities-1\",\"name\":\"Barbecue facilities\"},{\"id\":348,\"slug\":\"cauldron-cooking\",\"name\":\"Cauldron cooking\"},{\"id\":349,\"slug\":\"campfire\",\"name\":\"Campfire\"},{\"id\":350,\"slug\":\"fire-pit\",\"name\":\"Fire pit\"},{\"id\":357,\"slug\":\"ping-pong-table\",\"name\":\"Ping pong table\"},{\"id\":359,\"slug\":\"horse-riding\",\"name\":\"Horse riding\"},{\"id\":361,\"slug\":\"hiking\",\"name\":\"Hiking\"},{\"id\":363,\"slug\":\"wildlife-trips\",\"name\":\"Wildlife trips\"},{\"id\":364,\"slug\":\"bird-watching\",\"name\":\"Bird watching\"},{\"id\":389,\"slug\":\"hair-dryer\",\"name\":\"Hair dryer\"},{\"id\":390,\"slug\":\"body-towels\",\"name\":\"Body towels\"},{\"id\":391,\"slug\":\"hand-towels\",\"name\":\"Hand towels\"},{\"id\":392,\"slug\":\"liquid-soap\",\"name\":\"Liquid soap\"},{\"id\":393,\"slug\":\"shampoo\",\"name\":\"Shampoo\"},{\"id\":395,\"slug\":\"toilet-paper\",\"name\":\"Toilet paper\"},{\"id\":420,\"slug\":\"kitchen-1\",\"name\":\"Kitchen\"},{\"id\":421,\"slug\":\"free-parking\",\"name\":\"Free parking\"},{\"id\":424,\"slug\":\"outdoor-activities\",\"name\":\"Outdoor activities\"},{\"id\":426,\"slug\":\"hot-tub\",\"name\":\"Hot tub\"},{\"id\":428,\"slug\":\"children-playground\",\"name\":\"Children playground\"},{\"id\":430,\"slug\":\"kids-friendly\",\"name\":\"Kids friendly\"},{\"id\":432,\"slug\":\"netflix\",\"name\":\"NETFLIX\"},{\"id\":434,\"slug\":\"free-wi-fi\",\"name\":\"Free Wi-fi\"},{\"id\":435,\"slug\":\"laptop-friendly\",\"name\":\"Laptop friendly\"},{\"id\":437,\"slug\":\"garden\",\"name\":\"Garden\"},{\"id\":438,\"slug\":\"terrace-1\",\"name\":\"Terrace\"},{\"id\":439,\"slug\":\"balcony-1\",\"name\":\"Balcony\"},{\"id\":440,\"slug\":\"heating\",\"name\":\"Heating\"},{\"id\":441,\"slug\":\"fireplace\",\"name\":\"Fireplace\"},{\"id\":442,\"slug\":\"barbeque-area\",\"name\":\"Barbeque area\"},{\"id\":449,\"slug\":\"remote-work\",\"name\":\"Remote work\"},{\"id\":465,\"slug\":\"self-catering\",\"name\":\"Self catering\"}]'> <\/div>\n\n\n\n        <div class=\"desktop\">\n            <div class=\"location\">\n                <div class=\"row\">\n                    <div class=\"col-sm-5\">\n                                                                                <div class=\"service-review-pc\">\n                                <div class=\"head\" style=\"float: left;\">\n                                    <div class=\"left\">\n                                        <span class=\"head-rating\">Excellent<\/span>\n                                        <span\n                                            class=\"text-rating\">1 reviews<\/span>\n                                    <\/div>\n                                    <div class=\"score\"> 5.0<span>\/5<\/span>\n                                    <\/div>\n                                <\/div>\n                                            <\/div>\n                <\/div>\n                <div class=\"col-sm-6\" style=\"text-align: right;\">\n                                        <div class=\"price\">\n\n\n\n                        \n                        <div class=\"item-loop-list \" style=\"border: none;\">\n\n                        <\/div>\n\n\n                        <div class=\"price\" style=\"margin-top: 20px; display: inline; margin-bottom: 20px;\">\n                            <span class=\"fr_text\"data-hotel-id=\"26520\">from<\/span>\n                            <span class=\"text-price\"\n                                style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                                data-hotel-id=\"26520\">\n                                \u20ac 682\n                            <\/span>\n                            <span class=\"unit\" data-hotel-id=\"26520\">\n                                \/night\n                            <\/span>\n                                                                                                                                                    <div class=\"hotel-availability\" data-hotel-id=\"26520\"\n                                    data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                    data-adults=\"1\"\n                                    data-children=\"0\" style=\"margin-left: 90px;\">\n                                    <span class=\"checking-text\">Checking...<\/span>\n                                <\/div>\n                            \n\n\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n        <\/div>\n    <\/div>\n    <div class=\"mobile\">\n        <div class=\"location\">\n            <div class=\"row\">\n\n                <div class=\"col-sm-12\" style=\"padding: 0px;\">\n                                                                    <div class=\"service-review-pc\">\n                            <div class=\"head\" style=\"float: left;\">\n                                <div class=\"left\">\n                                    <span class=\"head-rating\">Excellent<\/span>\n                                    <span\n                                        class=\"text-rating\">1 reviews<\/span>\n                                <\/div>\n                                <div class=\"score\">5.0<span>\/5<\/span>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                                        <div class=\"item-loop-list \"\n                        style=\"border: none;\/*! float: right; *\/margin-left: 90%;\">\n\n                    <\/div>\n                                        <div class=\"price\" style=\"display: inline;margin-bottom: 20px;float: right;\">\n                        <span class=\"fr_text\"data-hotel-id=\"26520\">from<\/span> <span\n                            class=\"text-price\"\n                            style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                            data-hotel-id=\"26520\">\u20ac 682\n                        <\/span>\n                        <span class=\"unit\" data-hotel-id=\"26520\">\n                            \/night\n                        <\/span>\n                                                                                                                               <div class=\"hotel-availability\" data-hotel-id=\"26520\"\n                                data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                data-adults=\"1\"\n                                data-children=\"0\" style=\"margin-left: 90px;\">\n                                <span class=\"checking-text\">Checking...<\/span>\n                            <\/div>\n                        \n\n\n\n\n                    <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n<\/div>\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        function checkAvailabilityForEvents() {\n            let eventElements = document.querySelectorAll(\".event-availability:not([data-checked='true'])\");\n\n            eventElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let status = element.dataset.status;\n                let priceElements = document.querySelectorAll(\n                    `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                );\n                let mealIncludedElement = document.querySelector(\n                    `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                element.setAttribute('data-checked', 'true');\n\n                setTimeout(function() {\n                    if (status === 'not_available') {\n                        element.innerHTML =\n                            `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">Not available<\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"line-through\";\n                            priceElement.style.color = \"black\";\n                            priceElement.style.fontWeight = \"300\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"none\";\n                        }\n                    } else {\n                        element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"none\";\n                            priceElement.style.color = \"var(--main-color, #1A2B48)\";\n                            priceElement.style.fontWeight = \"400\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"block\";\n                        }\n                    }\n                }, 300);\n            });\n        }\n\n        window.travlocalsCheckEventAvailability = checkAvailabilityForEvents;\n\n        \/\/ Func\u021bie pentru a verifica disponibilitatea hotelurilor\n        function checkAvailabilityForHotels() {\n            \/\/ Select\u0103m toate elementele care trebuie s\u0103 verifice disponibilitatea hotelurilor\n            let hotelElements = document.querySelectorAll(\".hotel-availability:not([data-checked='true'])\");\n\n            hotelElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let startDate = element.dataset.startDate;\n                let endDate = element.dataset.endDate;\n                let adults = element.dataset.adults;\n                let children = element.dataset.children;\n\n                \/\/ Marc\u0103m elementul ca fiind verificat pentru a evita verific\u0103rile redundante\n                element.setAttribute('data-checked', 'true');\n\n                \/\/ Trimitem cererea AJAX pentru a verifica disponibilitatea\n                fetch(`\/hotel\/checkAvailability`, {\n                        method: 'POST',\n                        headers: {\n                            'Content-Type': 'application\/json',\n                            'X-CSRF-TOKEN': document.querySelector('meta[name=\"csrf-token\"]')\n                                .getAttribute('content')\n                        },\n                        body: JSON.stringify({\n                            hotel_id: hotelId,\n                            start_date: startDate,\n                            end_date: endDate,\n                            adults: adults,\n                            children: children\n                        })\n                    })\n                    .then(response => response.json())\n                    .then(data => {\n                        \/\/ Ob\u021binem elementele pentru pre\u021b: `fr_text`, `text-price`, \u0219i `unit`\n                        let priceElements = document.querySelectorAll(\n                            `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                        );\n                        let mealIncludedElement = document.querySelector(\n                            `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                        if (data.rooms && data.rooms.length > 0) {\n                            \/\/ Dac\u0103 hotelul este disponibil\n                            element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                            \/\/ Scoatem linia de t\u0103iere pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"none\"; \/\/ \u00cenl\u0103tur\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"var(--main-color, #1A2B48)\"; \/\/ Reset\u0103m culoarea\n                                priceElement.style.fontWeight =\n                                    \"400\"; \/\/ Set\u0103m font-weight la valoarea normal\u0103 (po\u021bi modifica)\n                            });\n\n                            \/\/ Afi\u0219\u0103m elementul pentru mese incluse dac\u0103 exist\u0103\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"block\";\n                            }\n\n                        } else {\n                            \/\/ Dac\u0103 hotelul nu este disponibil\n                            element.innerHTML =\n                                `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">SOLD<\/span>`;\n\n                            \/\/ Ad\u0103ug\u0103m linia de t\u0103iere \u0219i schimb\u0103m culoarea pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"line-through\"; \/\/ Ad\u0103ug\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"black\"; \/\/ Set\u0103m culoarea la negru\n                                priceElement.style.fontWeight =\n                                    \"300\"; \/\/ Set\u0103m font-weight la 300\n                            });\n\n                            \/\/ Ascundem elementul pentru mese incluse\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"none\";\n                            }\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error checking availability:', error);\n                        element.innerHTML = `<span class=\"error-text\"><\/span>`;\n                    });\n            });\n        }\n\n        \/\/ Apel\u0103m func\u021bia la \u00eenc\u0103rcarea paginii\n        checkAvailabilityForEvents();\n        checkAvailabilityForHotels();\n\n        \/\/ Observ\u0103m c\u00e2nd con\u021binutul paginii se schimb\u0103 prin paginare\n        document.addEventListener('click', function(event) {\n            if (event.target.matches('.travlocals-pagination a')) {\n                \/\/ A\u0219tept\u0103m pu\u021bin pentru a ne asigura c\u0103 noile list\u0103ri s-au \u00eenc\u0103rcat\n                setTimeout(function() {\n                    checkAvailabilityForEvents();\n                    checkAvailabilityForHotels();\n                }, 1000);\n            }\n        });\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        let fotoramaContainer = document.querySelector(\".fotorama\");\n\n        if (fotoramaContainer) {\n            fotoramaContainer.addEventListener(\"click\", function(event) {\n                let hotelUrl = document.querySelector(\".full-link\").getAttribute(\"href\");\n\n                \/\/ Verific\u0103m dac\u0103 NU s-a dat click pe butoanele de navigare (prev, next)\n                if (!event.target.closest(\".fotorama__arr--next\") && !event.target.closest(\n                        \".fotorama__arr--prev\")) {\n                    window.location.href = hotelUrl; \/\/ Navig\u0103m la pagina list\u0103rii\n                }\n            });\n        }\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        document.querySelectorAll(\".g-info\").forEach(function(infoDiv) {\n            infoDiv.addEventListener(\"click\", function(event) {\n                \/\/ Verific\u0103m dac\u0103 utilizatorul a dat click pe un link sau un buton (nu redirec\u021bion\u0103m \u00een acest caz)\n                if (!event.target.closest(\"a, button\")) {\n                    let url = this.getAttribute(\"data-href\");\n                    console.log(\"Navigating to:\", url);\n                    window.location.href = url;\n                }\n            });\n        });\n    });\n<\/script>\n<script>\nwindow.addEventListener('load', function() {\n    \/\/ Script-ul ruleaz\u0103 DUP\u0102 ce s-a \u00eenc\u0103rcat complet pagina\n    document.querySelectorAll('#term-tags-container').forEach(function (container) {\n        \/\/ Verific\u0103 dac\u0103 badge-urile au fost deja procesate\n        if (container.hasAttribute('data-badges-processed')) {\n            return;\n        }\n        \n        container.setAttribute('data-badges-processed', 'true');\n        \n        const rawData = container.dataset.terms;\n        if (!rawData) return;\n\n        let terms = [];\n        try {\n            terms = JSON.parse(rawData);\n        } catch (e) {\n            console.error('Invalid JSON in data-terms', rawData);\n            return;\n        }\n\n        const wantedSlugs = ['pet-friendly', 'spa', 'piscina', 'pool', 'Piscina','jacuzii','Jacuzii','Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1' ];\n        let shownSpaFacility = false;\n        const shownSlugs = new Set();\n\n        terms.forEach(term => {\n            const slug = term.slug.toLowerCase();\n            if (!wantedSlugs.includes(slug)) return;\n\n            if (shownSlugs.has(slug)) return;\n            shownSlugs.add(slug);\n\n            let labelText = '';\n\n            if (['spa', 'piscina', 'pool', 'jacuzii','Piscina','Jacuzii', 'Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1'].includes(slug)) {\n                if (shownSpaFacility) return;\n                \n                labelText = \"Spa Facilities\";\n\n                shownSpaFacility = true;\n            } else if (slug === 'pet-friendly') {\n                labelText = term.name;\n            }\n\n            if (labelText) {\n                const existingBadge = container.querySelector(`.term-${term.id}`);\n                if (existingBadge) return;\n                \n                const badge = document.createElement('div');\n                badge.className = `item ${slug} term-${term.id}`;\n                badge.style.cssText = `\n                    display: block;\n                    white-space: nowrap;\n                    font-size: 12px;\n                    padding: 6px 14px;\n                    border: 1px solid #dfdfdf;\n                    border-radius: 32px;\n                    background: rgba(255, 255, 255, 0.92);\n                    color: #222;\n                    width: fit-content;\n                    margin-top: 10px;\n                    margin-right: 8px;\n                    box-shadow: 0 1px 6px rgba(90,90,90,0.06);\n                `;\n                badge.innerText = labelText;\n                container.appendChild(badge);\n            }\n        });\n    });\n});\n    <\/script>\n    \n    \n<style>\n         .badge-label {\n            display: inline-block;\n            white-space: nowrap;\n            font-size: clamp(8px, 0.65vw, 12px);\n            padding: clamp(2px, 0.3vw, 6px) clamp(5px, 0.65vw, 12px);\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: rgba(255, 255, 255, 0.85);\n            color: #000;\n        }\n\n        @media (max-width: 1500px) {\n            .badge-label {\n                font-size: 9px;\n                padding: 2px 6px;\n            }\n        }\n\n        @media (max-width: 767px) {\n            .badge-label {\n                font-size: 12px;\n                padding: 4px 10px;\n            }\n        }\n\n        .item-loop-list .thumb-image {\n            position: relative;\n        }\n\n        .badges-container {\n            position: absolute;\n            bottom: 10px;\n            left: 10px;\n            right: 10px;\n            z-index: 10;\n            display: flex;\n            flex-wrap: nowrap;\n            justify-content: flex-end;\n            align-items: center;\n            gap: clamp(3px, 0.5vw, 8px);\n            pointer-events: none;\n        }\n\n    @media (max-width: 767px) {\n        .desktop {\n            display: none !important;\n        }\n\n   \n    }\n    @media (min-width: 564px) {\n  .terms {\n    display: block;\n  }\n}\n.fotorama__nav-wrap {\n        display: none !important;\n    }\n\n    .fotorama__img {\n        width: 100% !important;\n        height: 100% !important;\n        top: 0 !important;\n        left: 0 !important;\n        margin: none !important;\n        object-fit: cover !important;\n    }\n\n    @media  screen and (min-width: 767.98px) {\n        .thumb-image {\n            height: 250px !important;\n        }\n    }\n\n    .placeholder-img {\n        height: 50px !important;\n        object-fit: contain !important;\n    }\n\n    .fit-cover {\n        object-fit: cover !important;\n    }\n\n    .fotorama__caption,\n    .fotorama__nav::after,\n    .fotorama__nav::before,\n    .fotorama__stage::after,\n    .fotorama__stage::before,\n    .fotorama__wrap--css3 .fotorama__html,\n    .fotorama__wrap--css3 .fotorama__nav,\n    .fotorama__wrap--css3 .fotorama__spinner,\n    .fotorama__wrap--css3 .fotorama__stage,\n    .fotorama__wrap--css3 .fotorama__stage .fotorama__img,\n    .fotorama__wrap--css3 .fotorama__stage__frame {\n        -webkit-transform: translateZ(0);\n        transform: translateZ(0);\n        height: 250px !important;\n    }\n\n    html,\n    body {\n        overflow-x: hidden;\n    }\n<\/style>\n                    <\/div>\n                                    <div class=\"col-lg-12 col-md-12\">\n                        <div class=\"item-loop-list \">\n        <div class=\"thumb-image\">\n        <div class=\"w-100\">\n                        <a href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\" target=\"_blank\" class=\"thumb-image-gallery\" style=\"display: block;\">\n                                                            <img class='img-responsive fit-cover lazy'  data-src=https:\/\/www.travlocals.com\/uploads\/0003\/3097\/2025\/09\/30\/e5bd47d0-187a-4459-a45d-9ca801a591c9.webp  alt='Porumbacu 134'>\n                    \n                            <\/a>\n            <div class=\"fotorama__arr fotorama__arr--next gallery-arr\" tabindex=\"0\" role=\"button\"\n                data-id=\"40920\" data-href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\"\n                data-gallery-context=\"hotel\"><\/div>\n        <\/div>\n        <div class=\"service-wishlist \" data-id=\"40920\"\n            data-type=\"hotel\">\n            <i class=\"fa fa-heart\" style=\"float: right;\"><\/i>\n        <\/div>\n\n                    <div class=\"badges-container\">\n                \n                                    <span class=\"badge-label\">Entire place - 16<i\n                            class=\"fa fa-user-o\" style=\"padding-left: 3px;font-size: inherit;\"><\/i><\/span>\n                            <\/div>\n        \n    <\/div>\n    <div class=\"g-info\" data-href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\" style=\"cursor: pointer;\">\n\n                <div class=\"item-title\">\n            <a    href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\">\n                                Porumbacu 134\n            <\/a>\n\n\n        <\/div>\n                    <span class=\"address1\" style=\"font-size: 12px;\">&nbsp;<i class=\"fa fa-map-marker\"><\/i>\n                Porumbacu de Sus, Sibiu, Rom\u00e2nia\n            <\/span>\n         \n\n    \n    <div id=\"term-tags-container\" data-terms='[{\"id\":37,\"slug\":\"motels\",\"name\":\"Manors\"},{\"id\":38,\"slug\":\"resorts\",\"name\":\"Rustic Resorts\"},{\"id\":39,\"slug\":\"lodges\",\"name\":\"Traditional homes\"},{\"id\":468,\"slug\":\"villas-1\",\"name\":\"Villas\"},{\"id\":341,\"slug\":\"hot-tub-1\",\"name\":\"Hot tub\"},{\"id\":342,\"slug\":\"jacuzzi\",\"name\":\"Jacuzzi\"},{\"id\":343,\"slug\":\"sunbeds\",\"name\":\"Sunbeds\"},{\"id\":346,\"slug\":\"barbecue-facilities\",\"name\":\"Pavilion\"},{\"id\":347,\"slug\":\"barbecue-facilities-1\",\"name\":\"Barbecue facilities\"},{\"id\":361,\"slug\":\"hiking\",\"name\":\"Hiking\"},{\"id\":363,\"slug\":\"wildlife-trips\",\"name\":\"Wildlife trips\"},{\"id\":371,\"slug\":\"bed-linen\",\"name\":\"Bed linen\"},{\"id\":375,\"slug\":\"wi-fi-1\",\"name\":\"Wi-Fi\"},{\"id\":376,\"slug\":\"bathroom-with-shower\",\"name\":\"Bathroom with shower\"},{\"id\":379,\"slug\":\"private-bathroom-1\",\"name\":\"Private bathroom\"},{\"id\":382,\"slug\":\"terrace\",\"name\":\"Terrace\"},{\"id\":383,\"slug\":\"garden-1\",\"name\":\"Garden\"},{\"id\":389,\"slug\":\"hair-dryer\",\"name\":\"Hair dryer\"},{\"id\":390,\"slug\":\"body-towels\",\"name\":\"Body towels\"},{\"id\":391,\"slug\":\"hand-towels\",\"name\":\"Hand towels\"},{\"id\":392,\"slug\":\"liquid-soap\",\"name\":\"Liquid soap\"},{\"id\":393,\"slug\":\"shampoo\",\"name\":\"Shampoo\"},{\"id\":395,\"slug\":\"toilet-paper\",\"name\":\"Toilet paper\"},{\"id\":398,\"slug\":\"microwave\",\"name\":\"Microwave\"},{\"id\":399,\"slug\":\"dishwasher\",\"name\":\"Dishwasher\"},{\"id\":400,\"slug\":\"refrigerator\",\"name\":\"Refrigerator\"},{\"id\":401,\"slug\":\"electric-oven\",\"name\":\"Electric oven\"},{\"id\":403,\"slug\":\"electric-hob\",\"name\":\"Electric Stove\"},{\"id\":405,\"slug\":\"espresso-machine\",\"name\":\"Espresso machine\"},{\"id\":406,\"slug\":\"kettle\",\"name\":\"Kettle\"},{\"id\":407,\"slug\":\"crockery\",\"name\":\"Crockery\"},{\"id\":408,\"slug\":\"cutlery\",\"name\":\"Cutlery\"},{\"id\":420,\"slug\":\"kitchen-1\",\"name\":\"Kitchen\"},{\"id\":421,\"slug\":\"free-parking\",\"name\":\"Free parking\"},{\"id\":426,\"slug\":\"hot-tub\",\"name\":\"Hot tub\"},{\"id\":427,\"slug\":\"jacuzzi-1\",\"name\":\"Jacuzzi\"},{\"id\":430,\"slug\":\"kids-friendly\",\"name\":\"Kids friendly\"},{\"id\":434,\"slug\":\"free-wi-fi\",\"name\":\"Free Wi-fi\"},{\"id\":435,\"slug\":\"laptop-friendly\",\"name\":\"Laptop friendly\"},{\"id\":437,\"slug\":\"garden\",\"name\":\"Garden\"},{\"id\":438,\"slug\":\"terrace-1\",\"name\":\"Terrace\"},{\"id\":440,\"slug\":\"heating\",\"name\":\"Heating\"},{\"id\":441,\"slug\":\"fireplace\",\"name\":\"Fireplace\"},{\"id\":442,\"slug\":\"barbeque-area\",\"name\":\"Barbeque area\"},{\"id\":449,\"slug\":\"remote-work\",\"name\":\"Remote work\"},{\"id\":450,\"slug\":\"iron\",\"name\":\"Iron\"},{\"id\":459,\"slug\":\"sauna\",\"name\":\"Sauna\"},{\"id\":460,\"slug\":\"coffee-maker\",\"name\":\"Coffee maker\"},{\"id\":461,\"slug\":\"spa\",\"name\":\"SPA\"},{\"id\":465,\"slug\":\"self-catering\",\"name\":\"Self catering\"},{\"id\":466,\"slug\":\"toaster\",\"name\":\"Toaster\"},{\"id\":475,\"slug\":\"hangers\",\"name\":\"Hangers\"},{\"id\":476,\"slug\":\"wardrobe-or-closet\",\"name\":\"Wardrobe or closet\"},{\"id\":477,\"slug\":\"heating-1\",\"name\":\"Heating\"}]'> <\/div>\n\n\n\n        <div class=\"desktop\">\n            <div class=\"location\">\n                <div class=\"row\">\n                    <div class=\"col-sm-5\">\n                                                                                <div class=\"service-review-pc\">\n                                <div class=\"head\" style=\"float: left;\">\n                                    <div class=\"left\">\n                                        <span class=\"head-rating\">Not rated<\/span>\n                                        <span\n                                            class=\"text-rating\">0 reviews<\/span>\n                                    <\/div>\n                                    <div class=\"score\"> 0<span>\/5<\/span>\n                                    <\/div>\n                                <\/div>\n                                            <\/div>\n                <\/div>\n                <div class=\"col-sm-6\" style=\"text-align: right;\">\n                                        <div class=\"price\">\n\n\n\n                        \n                        <div class=\"item-loop-list \" style=\"border: none;\">\n\n                        <\/div>\n\n\n                        <div class=\"price\" style=\"margin-top: 20px; display: inline; margin-bottom: 20px;\">\n                            <span class=\"fr_text\"data-hotel-id=\"40920\">from<\/span>\n                            <span class=\"text-price\"\n                                style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                                data-hotel-id=\"40920\">\n                                \u20ac 689\n                            <\/span>\n                            <span class=\"unit\" data-hotel-id=\"40920\">\n                                \/night\n                            <\/span>\n                                                                                                                                                    <div class=\"hotel-availability\" data-hotel-id=\"40920\"\n                                    data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                    data-adults=\"1\"\n                                    data-children=\"0\" style=\"margin-left: 90px;\">\n                                    <span class=\"checking-text\">Checking...<\/span>\n                                <\/div>\n                            \n\n\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n        <\/div>\n    <\/div>\n    <div class=\"mobile\">\n        <div class=\"location\">\n            <div class=\"row\">\n\n                <div class=\"col-sm-12\" style=\"padding: 0px;\">\n                                                                    <div class=\"service-review-pc\">\n                            <div class=\"head\" style=\"float: left;\">\n                                <div class=\"left\">\n                                    <span class=\"head-rating\">Not rated<\/span>\n                                    <span\n                                        class=\"text-rating\">0 reviews<\/span>\n                                <\/div>\n                                <div class=\"score\">0<span>\/5<\/span>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                                        <div class=\"item-loop-list \"\n                        style=\"border: none;\/*! float: right; *\/margin-left: 90%;\">\n\n                    <\/div>\n                                        <div class=\"price\" style=\"display: inline;margin-bottom: 20px;float: right;\">\n                        <span class=\"fr_text\"data-hotel-id=\"40920\">from<\/span> <span\n                            class=\"text-price\"\n                            style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                            data-hotel-id=\"40920\">\u20ac 689\n                        <\/span>\n                        <span class=\"unit\" data-hotel-id=\"40920\">\n                            \/night\n                        <\/span>\n                                                                                                                               <div class=\"hotel-availability\" data-hotel-id=\"40920\"\n                                data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                data-adults=\"1\"\n                                data-children=\"0\" style=\"margin-left: 90px;\">\n                                <span class=\"checking-text\">Checking...<\/span>\n                            <\/div>\n                        \n\n\n\n\n                    <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n<\/div>\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        function checkAvailabilityForEvents() {\n            let eventElements = document.querySelectorAll(\".event-availability:not([data-checked='true'])\");\n\n            eventElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let status = element.dataset.status;\n                let priceElements = document.querySelectorAll(\n                    `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                );\n                let mealIncludedElement = document.querySelector(\n                    `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                element.setAttribute('data-checked', 'true');\n\n                setTimeout(function() {\n                    if (status === 'not_available') {\n                        element.innerHTML =\n                            `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">Not available<\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"line-through\";\n                            priceElement.style.color = \"black\";\n                            priceElement.style.fontWeight = \"300\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"none\";\n                        }\n                    } else {\n                        element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"none\";\n                            priceElement.style.color = \"var(--main-color, #1A2B48)\";\n                            priceElement.style.fontWeight = \"400\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"block\";\n                        }\n                    }\n                }, 300);\n            });\n        }\n\n        window.travlocalsCheckEventAvailability = checkAvailabilityForEvents;\n\n        \/\/ Func\u021bie pentru a verifica disponibilitatea hotelurilor\n        function checkAvailabilityForHotels() {\n            \/\/ Select\u0103m toate elementele care trebuie s\u0103 verifice disponibilitatea hotelurilor\n            let hotelElements = document.querySelectorAll(\".hotel-availability:not([data-checked='true'])\");\n\n            hotelElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let startDate = element.dataset.startDate;\n                let endDate = element.dataset.endDate;\n                let adults = element.dataset.adults;\n                let children = element.dataset.children;\n\n                \/\/ Marc\u0103m elementul ca fiind verificat pentru a evita verific\u0103rile redundante\n                element.setAttribute('data-checked', 'true');\n\n                \/\/ Trimitem cererea AJAX pentru a verifica disponibilitatea\n                fetch(`\/hotel\/checkAvailability`, {\n                        method: 'POST',\n                        headers: {\n                            'Content-Type': 'application\/json',\n                            'X-CSRF-TOKEN': document.querySelector('meta[name=\"csrf-token\"]')\n                                .getAttribute('content')\n                        },\n                        body: JSON.stringify({\n                            hotel_id: hotelId,\n                            start_date: startDate,\n                            end_date: endDate,\n                            adults: adults,\n                            children: children\n                        })\n                    })\n                    .then(response => response.json())\n                    .then(data => {\n                        \/\/ Ob\u021binem elementele pentru pre\u021b: `fr_text`, `text-price`, \u0219i `unit`\n                        let priceElements = document.querySelectorAll(\n                            `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                        );\n                        let mealIncludedElement = document.querySelector(\n                            `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                        if (data.rooms && data.rooms.length > 0) {\n                            \/\/ Dac\u0103 hotelul este disponibil\n                            element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                            \/\/ Scoatem linia de t\u0103iere pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"none\"; \/\/ \u00cenl\u0103tur\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"var(--main-color, #1A2B48)\"; \/\/ Reset\u0103m culoarea\n                                priceElement.style.fontWeight =\n                                    \"400\"; \/\/ Set\u0103m font-weight la valoarea normal\u0103 (po\u021bi modifica)\n                            });\n\n                            \/\/ Afi\u0219\u0103m elementul pentru mese incluse dac\u0103 exist\u0103\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"block\";\n                            }\n\n                        } else {\n                            \/\/ Dac\u0103 hotelul nu este disponibil\n                            element.innerHTML =\n                                `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">SOLD<\/span>`;\n\n                            \/\/ Ad\u0103ug\u0103m linia de t\u0103iere \u0219i schimb\u0103m culoarea pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"line-through\"; \/\/ Ad\u0103ug\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"black\"; \/\/ Set\u0103m culoarea la negru\n                                priceElement.style.fontWeight =\n                                    \"300\"; \/\/ Set\u0103m font-weight la 300\n                            });\n\n                            \/\/ Ascundem elementul pentru mese incluse\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"none\";\n                            }\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error checking availability:', error);\n                        element.innerHTML = `<span class=\"error-text\"><\/span>`;\n                    });\n            });\n        }\n\n        \/\/ Apel\u0103m func\u021bia la \u00eenc\u0103rcarea paginii\n        checkAvailabilityForEvents();\n        checkAvailabilityForHotels();\n\n        \/\/ Observ\u0103m c\u00e2nd con\u021binutul paginii se schimb\u0103 prin paginare\n        document.addEventListener('click', function(event) {\n            if (event.target.matches('.travlocals-pagination a')) {\n                \/\/ A\u0219tept\u0103m pu\u021bin pentru a ne asigura c\u0103 noile list\u0103ri s-au \u00eenc\u0103rcat\n                setTimeout(function() {\n                    checkAvailabilityForEvents();\n                    checkAvailabilityForHotels();\n                }, 1000);\n            }\n        });\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        let fotoramaContainer = document.querySelector(\".fotorama\");\n\n        if (fotoramaContainer) {\n            fotoramaContainer.addEventListener(\"click\", function(event) {\n                let hotelUrl = document.querySelector(\".full-link\").getAttribute(\"href\");\n\n                \/\/ Verific\u0103m dac\u0103 NU s-a dat click pe butoanele de navigare (prev, next)\n                if (!event.target.closest(\".fotorama__arr--next\") && !event.target.closest(\n                        \".fotorama__arr--prev\")) {\n                    window.location.href = hotelUrl; \/\/ Navig\u0103m la pagina list\u0103rii\n                }\n            });\n        }\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        document.querySelectorAll(\".g-info\").forEach(function(infoDiv) {\n            infoDiv.addEventListener(\"click\", function(event) {\n                \/\/ Verific\u0103m dac\u0103 utilizatorul a dat click pe un link sau un buton (nu redirec\u021bion\u0103m \u00een acest caz)\n                if (!event.target.closest(\"a, button\")) {\n                    let url = this.getAttribute(\"data-href\");\n                    console.log(\"Navigating to:\", url);\n                    window.location.href = url;\n                }\n            });\n        });\n    });\n<\/script>\n<script>\nwindow.addEventListener('load', function() {\n    \/\/ Script-ul ruleaz\u0103 DUP\u0102 ce s-a \u00eenc\u0103rcat complet pagina\n    document.querySelectorAll('#term-tags-container').forEach(function (container) {\n        \/\/ Verific\u0103 dac\u0103 badge-urile au fost deja procesate\n        if (container.hasAttribute('data-badges-processed')) {\n            return;\n        }\n        \n        container.setAttribute('data-badges-processed', 'true');\n        \n        const rawData = container.dataset.terms;\n        if (!rawData) return;\n\n        let terms = [];\n        try {\n            terms = JSON.parse(rawData);\n        } catch (e) {\n            console.error('Invalid JSON in data-terms', rawData);\n            return;\n        }\n\n        const wantedSlugs = ['pet-friendly', 'spa', 'piscina', 'pool', 'Piscina','jacuzii','Jacuzii','Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1' ];\n        let shownSpaFacility = false;\n        const shownSlugs = new Set();\n\n        terms.forEach(term => {\n            const slug = term.slug.toLowerCase();\n            if (!wantedSlugs.includes(slug)) return;\n\n            if (shownSlugs.has(slug)) return;\n            shownSlugs.add(slug);\n\n            let labelText = '';\n\n            if (['spa', 'piscina', 'pool', 'jacuzii','Piscina','Jacuzii', 'Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1'].includes(slug)) {\n                if (shownSpaFacility) return;\n                \n                labelText = \"Spa Facilities\";\n\n                shownSpaFacility = true;\n            } else if (slug === 'pet-friendly') {\n                labelText = term.name;\n            }\n\n            if (labelText) {\n                const existingBadge = container.querySelector(`.term-${term.id}`);\n                if (existingBadge) return;\n                \n                const badge = document.createElement('div');\n                badge.className = `item ${slug} term-${term.id}`;\n                badge.style.cssText = `\n                    display: block;\n                    white-space: nowrap;\n                    font-size: 12px;\n                    padding: 6px 14px;\n                    border: 1px solid #dfdfdf;\n                    border-radius: 32px;\n                    background: rgba(255, 255, 255, 0.92);\n                    color: #222;\n                    width: fit-content;\n                    margin-top: 10px;\n                    margin-right: 8px;\n                    box-shadow: 0 1px 6px rgba(90,90,90,0.06);\n                `;\n                badge.innerText = labelText;\n                container.appendChild(badge);\n            }\n        });\n    });\n});\n    <\/script>\n    \n    \n<style>\n         .badge-label {\n            display: inline-block;\n            white-space: nowrap;\n            font-size: clamp(8px, 0.65vw, 12px);\n            padding: clamp(2px, 0.3vw, 6px) clamp(5px, 0.65vw, 12px);\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: rgba(255, 255, 255, 0.85);\n            color: #000;\n        }\n\n        @media (max-width: 1500px) {\n            .badge-label {\n                font-size: 9px;\n                padding: 2px 6px;\n            }\n        }\n\n        @media (max-width: 767px) {\n            .badge-label {\n                font-size: 12px;\n                padding: 4px 10px;\n            }\n        }\n\n        .item-loop-list .thumb-image {\n            position: relative;\n        }\n\n        .badges-container {\n            position: absolute;\n            bottom: 10px;\n            left: 10px;\n            right: 10px;\n            z-index: 10;\n            display: flex;\n            flex-wrap: nowrap;\n            justify-content: flex-end;\n            align-items: center;\n            gap: clamp(3px, 0.5vw, 8px);\n            pointer-events: none;\n        }\n\n    @media (max-width: 767px) {\n        .desktop {\n            display: none !important;\n        }\n\n   \n    }\n    @media (min-width: 564px) {\n  .terms {\n    display: block;\n  }\n}\n.fotorama__nav-wrap {\n        display: none !important;\n    }\n\n    .fotorama__img {\n        width: 100% !important;\n        height: 100% !important;\n        top: 0 !important;\n        left: 0 !important;\n        margin: none !important;\n        object-fit: cover !important;\n    }\n\n    @media  screen and (min-width: 767.98px) {\n        .thumb-image {\n            height: 250px !important;\n        }\n    }\n\n    .placeholder-img {\n        height: 50px !important;\n        object-fit: contain !important;\n    }\n\n    .fit-cover {\n        object-fit: cover !important;\n    }\n\n    .fotorama__caption,\n    .fotorama__nav::after,\n    .fotorama__nav::before,\n    .fotorama__stage::after,\n    .fotorama__stage::before,\n    .fotorama__wrap--css3 .fotorama__html,\n    .fotorama__wrap--css3 .fotorama__nav,\n    .fotorama__wrap--css3 .fotorama__spinner,\n    .fotorama__wrap--css3 .fotorama__stage,\n    .fotorama__wrap--css3 .fotorama__stage .fotorama__img,\n    .fotorama__wrap--css3 .fotorama__stage__frame {\n        -webkit-transform: translateZ(0);\n        transform: translateZ(0);\n        height: 250px !important;\n    }\n\n    html,\n    body {\n        overflow-x: hidden;\n    }\n<\/style>\n                    <\/div>\n                                    <div class=\"col-lg-12 col-md-12\">\n                        <div class=\"item-loop-list \">\n        <div class=\"thumb-image\">\n        <div class=\"w-100\">\n                        <a href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\" target=\"_blank\" class=\"thumb-image-gallery\" style=\"display: block;\">\n                                                            <img class='img-responsive fit-cover lazy'  data-src=https:\/\/www.travlocals.com\/uploads\/0009\/9384\/2025\/06\/17\/screenshot-2025-06-17-092624.webp  alt='Altfel Bran Chalet'>\n                    \n                            <\/a>\n            <div class=\"fotorama__arr fotorama__arr--next gallery-arr\" tabindex=\"0\" role=\"button\"\n                data-id=\"40388\" data-href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\"\n                data-gallery-context=\"hotel\"><\/div>\n        <\/div>\n        <div class=\"service-wishlist \" data-id=\"40388\"\n            data-type=\"hotel\">\n            <i class=\"fa fa-heart\" style=\"float: right;\"><\/i>\n        <\/div>\n\n                    <div class=\"badges-container\">\n                \n                                    <span class=\"badge-label\">Entire place - 8<i\n                            class=\"fa fa-user-o\" style=\"padding-left: 3px;font-size: inherit;\"><\/i><\/span>\n                            <\/div>\n        \n    <\/div>\n    <div class=\"g-info\" data-href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\" style=\"cursor: pointer;\">\n\n                <div class=\"item-title\">\n            <a    href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\">\n                                Altfel Bran Chalet\n            <\/a>\n\n\n        <\/div>\n                    <span class=\"address1\" style=\"font-size: 12px;\">&nbsp;<i class=\"fa fa-map-marker\"><\/i>\n                Bran, Bra\u015fov, Rom\u00e2nia\n            <\/span>\n         \n\n    \n    <div id=\"term-tags-container\" data-terms='[{\"id\":35,\"slug\":\"villas\",\"name\":\"Cabins\"},{\"id\":468,\"slug\":\"villas-1\",\"name\":\"Villas\"},{\"id\":264,\"slug\":\"bike-rental\",\"name\":\"Bike rental\"},{\"id\":338,\"slug\":\"childrens-playground\",\"name\":\"Childrens playground\"},{\"id\":341,\"slug\":\"hot-tub-1\",\"name\":\"Hot tub\"},{\"id\":342,\"slug\":\"jacuzzi\",\"name\":\"Jacuzzi\"},{\"id\":347,\"slug\":\"barbecue-facilities-1\",\"name\":\"Barbecue facilities\"},{\"id\":352,\"slug\":\"atvs\",\"name\":\"ATVs\"},{\"id\":361,\"slug\":\"hiking\",\"name\":\"Hiking\"},{\"id\":363,\"slug\":\"wildlife-trips\",\"name\":\"Wildlife trips\"},{\"id\":364,\"slug\":\"bird-watching\",\"name\":\"Bird watching\"},{\"id\":372,\"slug\":\"bathrobe\",\"name\":\"Bathrobe\"},{\"id\":373,\"slug\":\"slippers\",\"name\":\"Slippers\"},{\"id\":374,\"slug\":\"tv-1\",\"name\":\"TV\"},{\"id\":375,\"slug\":\"wi-fi-1\",\"name\":\"Wi-Fi\"},{\"id\":376,\"slug\":\"bathroom-with-shower\",\"name\":\"Bathroom with shower\"},{\"id\":377,\"slug\":\"bathroom-with-tub\",\"name\":\"Bathroom with tub\"},{\"id\":379,\"slug\":\"private-bathroom-1\",\"name\":\"Private bathroom\"},{\"id\":382,\"slug\":\"terrace\",\"name\":\"Terrace\"},{\"id\":383,\"slug\":\"garden-1\",\"name\":\"Garden\"},{\"id\":384,\"slug\":\"coffee-maker-1\",\"name\":\"Coffee maker\"},{\"id\":385,\"slug\":\"kitchenette\",\"name\":\"Kitchenette\"},{\"id\":386,\"slug\":\"cooking-basics-1\",\"name\":\"Cooking basics\"},{\"id\":389,\"slug\":\"hair-dryer\",\"name\":\"Hair dryer\"},{\"id\":390,\"slug\":\"body-towels\",\"name\":\"Body towels\"},{\"id\":391,\"slug\":\"hand-towels\",\"name\":\"Hand towels\"},{\"id\":392,\"slug\":\"liquid-soap\",\"name\":\"Liquid soap\"},{\"id\":393,\"slug\":\"shampoo\",\"name\":\"Shampoo\"},{\"id\":395,\"slug\":\"toilet-paper\",\"name\":\"Toilet paper\"},{\"id\":400,\"slug\":\"refrigerator\",\"name\":\"Refrigerator\"},{\"id\":402,\"slug\":\"gas-oven\",\"name\":\"Oven\"},{\"id\":404,\"slug\":\"gas-hob\",\"name\":\"Stove\"},{\"id\":405,\"slug\":\"espresso-machine\",\"name\":\"Espresso machine\"},{\"id\":406,\"slug\":\"kettle\",\"name\":\"Kettle\"},{\"id\":407,\"slug\":\"crockery\",\"name\":\"Crockery\"},{\"id\":408,\"slug\":\"cutlery\",\"name\":\"Cutlery\"},{\"id\":420,\"slug\":\"kitchen-1\",\"name\":\"Kitchen\"},{\"id\":421,\"slug\":\"free-parking\",\"name\":\"Free parking\"},{\"id\":424,\"slug\":\"outdoor-activities\",\"name\":\"Outdoor activities\"},{\"id\":426,\"slug\":\"hot-tub\",\"name\":\"Hot tub\"},{\"id\":427,\"slug\":\"jacuzzi-1\",\"name\":\"Jacuzzi\"},{\"id\":428,\"slug\":\"children-playground\",\"name\":\"Children playground\"},{\"id\":430,\"slug\":\"kids-friendly\",\"name\":\"Kids friendly\"},{\"id\":432,\"slug\":\"netflix\",\"name\":\"NETFLIX\"},{\"id\":434,\"slug\":\"free-wi-fi\",\"name\":\"Free Wi-fi\"},{\"id\":435,\"slug\":\"laptop-friendly\",\"name\":\"Laptop friendly\"},{\"id\":437,\"slug\":\"garden\",\"name\":\"Garden\"},{\"id\":438,\"slug\":\"terrace-1\",\"name\":\"Terrace\"},{\"id\":440,\"slug\":\"heating\",\"name\":\"Heating\"},{\"id\":441,\"slug\":\"fireplace\",\"name\":\"Fireplace\"},{\"id\":442,\"slug\":\"barbeque-area\",\"name\":\"Barbeque area\"},{\"id\":449,\"slug\":\"remote-work\",\"name\":\"Remote work\"},{\"id\":452,\"slug\":\"airport-pick-up\",\"name\":\"Airport pick-up\"},{\"id\":460,\"slug\":\"coffee-maker\",\"name\":\"Coffee maker\"},{\"id\":462,\"slug\":\"luggage-support\",\"name\":\"Luggage support\"},{\"id\":465,\"slug\":\"self-catering\",\"name\":\"Self catering\"},{\"id\":475,\"slug\":\"hangers\",\"name\":\"Hangers\"},{\"id\":476,\"slug\":\"wardrobe-or-closet\",\"name\":\"Wardrobe or closet\"},{\"id\":477,\"slug\":\"heating-1\",\"name\":\"Heating\"},{\"id\":479,\"slug\":\"cultural-tours\",\"name\":\"Cultural tours\"},{\"id\":482,\"slug\":\"billiards\",\"name\":\"Billiards\"}]'> <\/div>\n\n\n\n        <div class=\"desktop\">\n            <div class=\"location\">\n                <div class=\"row\">\n                    <div class=\"col-sm-5\">\n                                                                                <div class=\"service-review-pc\">\n                                <div class=\"head\" style=\"float: left;\">\n                                    <div class=\"left\">\n                                        <span class=\"head-rating\">Not rated<\/span>\n                                        <span\n                                            class=\"text-rating\">0 reviews<\/span>\n                                    <\/div>\n                                    <div class=\"score\"> 0<span>\/5<\/span>\n                                    <\/div>\n                                <\/div>\n                                            <\/div>\n                <\/div>\n                <div class=\"col-sm-6\" style=\"text-align: right;\">\n                                        <div class=\"price\">\n\n\n\n                        \n                        <div class=\"item-loop-list \" style=\"border: none;\">\n\n                        <\/div>\n\n\n                        <div class=\"price\" style=\"margin-top: 20px; display: inline; margin-bottom: 20px;\">\n                            <span class=\"fr_text\"data-hotel-id=\"40388\">from<\/span>\n                            <span class=\"text-price\"\n                                style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                                data-hotel-id=\"40388\">\n                                \u20ac 702\n                            <\/span>\n                            <span class=\"unit\" data-hotel-id=\"40388\">\n                                \/night\n                            <\/span>\n                                                                                                                                                    <div class=\"hotel-availability\" data-hotel-id=\"40388\"\n                                    data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                    data-adults=\"1\"\n                                    data-children=\"0\" style=\"margin-left: 90px;\">\n                                    <span class=\"checking-text\">Checking...<\/span>\n                                <\/div>\n                            \n\n\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n        <\/div>\n    <\/div>\n    <div class=\"mobile\">\n        <div class=\"location\">\n            <div class=\"row\">\n\n                <div class=\"col-sm-12\" style=\"padding: 0px;\">\n                                                                    <div class=\"service-review-pc\">\n                            <div class=\"head\" style=\"float: left;\">\n                                <div class=\"left\">\n                                    <span class=\"head-rating\">Not rated<\/span>\n                                    <span\n                                        class=\"text-rating\">0 reviews<\/span>\n                                <\/div>\n                                <div class=\"score\">0<span>\/5<\/span>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                                        <div class=\"item-loop-list \"\n                        style=\"border: none;\/*! float: right; *\/margin-left: 90%;\">\n\n                    <\/div>\n                                        <div class=\"price\" style=\"display: inline;margin-bottom: 20px;float: right;\">\n                        <span class=\"fr_text\"data-hotel-id=\"40388\">from<\/span> <span\n                            class=\"text-price\"\n                            style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                            data-hotel-id=\"40388\">\u20ac 702\n                        <\/span>\n                        <span class=\"unit\" data-hotel-id=\"40388\">\n                            \/night\n                        <\/span>\n                                                                                                                               <div class=\"hotel-availability\" data-hotel-id=\"40388\"\n                                data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                data-adults=\"1\"\n                                data-children=\"0\" style=\"margin-left: 90px;\">\n                                <span class=\"checking-text\">Checking...<\/span>\n                            <\/div>\n                        \n\n\n\n\n                    <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n<\/div>\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        function checkAvailabilityForEvents() {\n            let eventElements = document.querySelectorAll(\".event-availability:not([data-checked='true'])\");\n\n            eventElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let status = element.dataset.status;\n                let priceElements = document.querySelectorAll(\n                    `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                );\n                let mealIncludedElement = document.querySelector(\n                    `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                element.setAttribute('data-checked', 'true');\n\n                setTimeout(function() {\n                    if (status === 'not_available') {\n                        element.innerHTML =\n                            `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">Not available<\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"line-through\";\n                            priceElement.style.color = \"black\";\n                            priceElement.style.fontWeight = \"300\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"none\";\n                        }\n                    } else {\n                        element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"none\";\n                            priceElement.style.color = \"var(--main-color, #1A2B48)\";\n                            priceElement.style.fontWeight = \"400\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"block\";\n                        }\n                    }\n                }, 300);\n            });\n        }\n\n        window.travlocalsCheckEventAvailability = checkAvailabilityForEvents;\n\n        \/\/ Func\u021bie pentru a verifica disponibilitatea hotelurilor\n        function checkAvailabilityForHotels() {\n            \/\/ Select\u0103m toate elementele care trebuie s\u0103 verifice disponibilitatea hotelurilor\n            let hotelElements = document.querySelectorAll(\".hotel-availability:not([data-checked='true'])\");\n\n            hotelElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let startDate = element.dataset.startDate;\n                let endDate = element.dataset.endDate;\n                let adults = element.dataset.adults;\n                let children = element.dataset.children;\n\n                \/\/ Marc\u0103m elementul ca fiind verificat pentru a evita verific\u0103rile redundante\n                element.setAttribute('data-checked', 'true');\n\n                \/\/ Trimitem cererea AJAX pentru a verifica disponibilitatea\n                fetch(`\/hotel\/checkAvailability`, {\n                        method: 'POST',\n                        headers: {\n                            'Content-Type': 'application\/json',\n                            'X-CSRF-TOKEN': document.querySelector('meta[name=\"csrf-token\"]')\n                                .getAttribute('content')\n                        },\n                        body: JSON.stringify({\n                            hotel_id: hotelId,\n                            start_date: startDate,\n                            end_date: endDate,\n                            adults: adults,\n                            children: children\n                        })\n                    })\n                    .then(response => response.json())\n                    .then(data => {\n                        \/\/ Ob\u021binem elementele pentru pre\u021b: `fr_text`, `text-price`, \u0219i `unit`\n                        let priceElements = document.querySelectorAll(\n                            `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                        );\n                        let mealIncludedElement = document.querySelector(\n                            `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                        if (data.rooms && data.rooms.length > 0) {\n                            \/\/ Dac\u0103 hotelul este disponibil\n                            element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                            \/\/ Scoatem linia de t\u0103iere pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"none\"; \/\/ \u00cenl\u0103tur\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"var(--main-color, #1A2B48)\"; \/\/ Reset\u0103m culoarea\n                                priceElement.style.fontWeight =\n                                    \"400\"; \/\/ Set\u0103m font-weight la valoarea normal\u0103 (po\u021bi modifica)\n                            });\n\n                            \/\/ Afi\u0219\u0103m elementul pentru mese incluse dac\u0103 exist\u0103\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"block\";\n                            }\n\n                        } else {\n                            \/\/ Dac\u0103 hotelul nu este disponibil\n                            element.innerHTML =\n                                `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">SOLD<\/span>`;\n\n                            \/\/ Ad\u0103ug\u0103m linia de t\u0103iere \u0219i schimb\u0103m culoarea pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"line-through\"; \/\/ Ad\u0103ug\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"black\"; \/\/ Set\u0103m culoarea la negru\n                                priceElement.style.fontWeight =\n                                    \"300\"; \/\/ Set\u0103m font-weight la 300\n                            });\n\n                            \/\/ Ascundem elementul pentru mese incluse\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"none\";\n                            }\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error checking availability:', error);\n                        element.innerHTML = `<span class=\"error-text\"><\/span>`;\n                    });\n            });\n        }\n\n        \/\/ Apel\u0103m func\u021bia la \u00eenc\u0103rcarea paginii\n        checkAvailabilityForEvents();\n        checkAvailabilityForHotels();\n\n        \/\/ Observ\u0103m c\u00e2nd con\u021binutul paginii se schimb\u0103 prin paginare\n        document.addEventListener('click', function(event) {\n            if (event.target.matches('.travlocals-pagination a')) {\n                \/\/ A\u0219tept\u0103m pu\u021bin pentru a ne asigura c\u0103 noile list\u0103ri s-au \u00eenc\u0103rcat\n                setTimeout(function() {\n                    checkAvailabilityForEvents();\n                    checkAvailabilityForHotels();\n                }, 1000);\n            }\n        });\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        let fotoramaContainer = document.querySelector(\".fotorama\");\n\n        if (fotoramaContainer) {\n            fotoramaContainer.addEventListener(\"click\", function(event) {\n                let hotelUrl = document.querySelector(\".full-link\").getAttribute(\"href\");\n\n                \/\/ Verific\u0103m dac\u0103 NU s-a dat click pe butoanele de navigare (prev, next)\n                if (!event.target.closest(\".fotorama__arr--next\") && !event.target.closest(\n                        \".fotorama__arr--prev\")) {\n                    window.location.href = hotelUrl; \/\/ Navig\u0103m la pagina list\u0103rii\n                }\n            });\n        }\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        document.querySelectorAll(\".g-info\").forEach(function(infoDiv) {\n            infoDiv.addEventListener(\"click\", function(event) {\n                \/\/ Verific\u0103m dac\u0103 utilizatorul a dat click pe un link sau un buton (nu redirec\u021bion\u0103m \u00een acest caz)\n                if (!event.target.closest(\"a, button\")) {\n                    let url = this.getAttribute(\"data-href\");\n                    console.log(\"Navigating to:\", url);\n                    window.location.href = url;\n                }\n            });\n        });\n    });\n<\/script>\n<script>\nwindow.addEventListener('load', function() {\n    \/\/ Script-ul ruleaz\u0103 DUP\u0102 ce s-a \u00eenc\u0103rcat complet pagina\n    document.querySelectorAll('#term-tags-container').forEach(function (container) {\n        \/\/ Verific\u0103 dac\u0103 badge-urile au fost deja procesate\n        if (container.hasAttribute('data-badges-processed')) {\n            return;\n        }\n        \n        container.setAttribute('data-badges-processed', 'true');\n        \n        const rawData = container.dataset.terms;\n        if (!rawData) return;\n\n        let terms = [];\n        try {\n            terms = JSON.parse(rawData);\n        } catch (e) {\n            console.error('Invalid JSON in data-terms', rawData);\n            return;\n        }\n\n        const wantedSlugs = ['pet-friendly', 'spa', 'piscina', 'pool', 'Piscina','jacuzii','Jacuzii','Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1' ];\n        let shownSpaFacility = false;\n        const shownSlugs = new Set();\n\n        terms.forEach(term => {\n            const slug = term.slug.toLowerCase();\n            if (!wantedSlugs.includes(slug)) return;\n\n            if (shownSlugs.has(slug)) return;\n            shownSlugs.add(slug);\n\n            let labelText = '';\n\n            if (['spa', 'piscina', 'pool', 'jacuzii','Piscina','Jacuzii', 'Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1'].includes(slug)) {\n                if (shownSpaFacility) return;\n                \n                labelText = \"Spa Facilities\";\n\n                shownSpaFacility = true;\n            } else if (slug === 'pet-friendly') {\n                labelText = term.name;\n            }\n\n            if (labelText) {\n                const existingBadge = container.querySelector(`.term-${term.id}`);\n                if (existingBadge) return;\n                \n                const badge = document.createElement('div');\n                badge.className = `item ${slug} term-${term.id}`;\n                badge.style.cssText = `\n                    display: block;\n                    white-space: nowrap;\n                    font-size: 12px;\n                    padding: 6px 14px;\n                    border: 1px solid #dfdfdf;\n                    border-radius: 32px;\n                    background: rgba(255, 255, 255, 0.92);\n                    color: #222;\n                    width: fit-content;\n                    margin-top: 10px;\n                    margin-right: 8px;\n                    box-shadow: 0 1px 6px rgba(90,90,90,0.06);\n                `;\n                badge.innerText = labelText;\n                container.appendChild(badge);\n            }\n        });\n    });\n});\n    <\/script>\n    \n    \n<style>\n         .badge-label {\n            display: inline-block;\n            white-space: nowrap;\n            font-size: clamp(8px, 0.65vw, 12px);\n            padding: clamp(2px, 0.3vw, 6px) clamp(5px, 0.65vw, 12px);\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: rgba(255, 255, 255, 0.85);\n            color: #000;\n        }\n\n        @media (max-width: 1500px) {\n            .badge-label {\n                font-size: 9px;\n                padding: 2px 6px;\n            }\n        }\n\n        @media (max-width: 767px) {\n            .badge-label {\n                font-size: 12px;\n                padding: 4px 10px;\n            }\n        }\n\n        .item-loop-list .thumb-image {\n            position: relative;\n        }\n\n        .badges-container {\n            position: absolute;\n            bottom: 10px;\n            left: 10px;\n            right: 10px;\n            z-index: 10;\n            display: flex;\n            flex-wrap: nowrap;\n            justify-content: flex-end;\n            align-items: center;\n            gap: clamp(3px, 0.5vw, 8px);\n            pointer-events: none;\n        }\n\n    @media (max-width: 767px) {\n        .desktop {\n            display: none !important;\n        }\n\n   \n    }\n    @media (min-width: 564px) {\n  .terms {\n    display: block;\n  }\n}\n.fotorama__nav-wrap {\n        display: none !important;\n    }\n\n    .fotorama__img {\n        width: 100% !important;\n        height: 100% !important;\n        top: 0 !important;\n        left: 0 !important;\n        margin: none !important;\n        object-fit: cover !important;\n    }\n\n    @media  screen and (min-width: 767.98px) {\n        .thumb-image {\n            height: 250px !important;\n        }\n    }\n\n    .placeholder-img {\n        height: 50px !important;\n        object-fit: contain !important;\n    }\n\n    .fit-cover {\n        object-fit: cover !important;\n    }\n\n    .fotorama__caption,\n    .fotorama__nav::after,\n    .fotorama__nav::before,\n    .fotorama__stage::after,\n    .fotorama__stage::before,\n    .fotorama__wrap--css3 .fotorama__html,\n    .fotorama__wrap--css3 .fotorama__nav,\n    .fotorama__wrap--css3 .fotorama__spinner,\n    .fotorama__wrap--css3 .fotorama__stage,\n    .fotorama__wrap--css3 .fotorama__stage .fotorama__img,\n    .fotorama__wrap--css3 .fotorama__stage__frame {\n        -webkit-transform: translateZ(0);\n        transform: translateZ(0);\n        height: 250px !important;\n    }\n\n    html,\n    body {\n        overflow-x: hidden;\n    }\n<\/style>\n                    <\/div>\n                                    <div class=\"col-lg-12 col-md-12\">\n                        <div class=\"item-loop-list \">\n        <div class=\"thumb-image\">\n        <div class=\"w-100\">\n                        <a href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\" target=\"_blank\" class=\"thumb-image-gallery\" style=\"display: block;\">\n                                                            <img class='img-responsive fit-cover lazy'  data-src=https:\/\/www.travlocals.com\/uploads\/0006\/6458\/2023\/12\/07\/piscinaexterioarafunctionalatotanul.webp  alt='Supporter Chalet'>\n                    \n                            <\/a>\n            <div class=\"fotorama__arr fotorama__arr--next gallery-arr\" tabindex=\"0\" role=\"button\"\n                data-id=\"40215\" data-href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\"\n                data-gallery-context=\"hotel\"><\/div>\n        <\/div>\n        <div class=\"service-wishlist \" data-id=\"40215\"\n            data-type=\"hotel\">\n            <i class=\"fa fa-heart\" style=\"float: right;\"><\/i>\n        <\/div>\n\n                    <div class=\"badges-container\">\n                \n                            <\/div>\n        \n    <\/div>\n    <div class=\"g-info\" data-href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\" style=\"cursor: pointer;\">\n\n                <div class=\"item-title\">\n            <a    href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\">\n                                Supporter Chalet\n            <\/a>\n\n\n        <\/div>\n                    <span class=\"address1\" style=\"font-size: 12px;\">&nbsp;<i class=\"fa fa-map-marker\"><\/i>\n                Avrig, Sibiu, Rom\u00e2nia\n            <\/span>\n         \n\n    \n    <div id=\"term-tags-container\" data-terms='[{\"id\":35,\"slug\":\"villas\",\"name\":\"Cabins\"},{\"id\":331,\"slug\":\"spa-resorts\",\"name\":\"SPA Resorts\"},{\"id\":338,\"slug\":\"childrens-playground\",\"name\":\"Childrens playground\"},{\"id\":340,\"slug\":\"heated-swimming-pool\",\"name\":\"Heated swimming pool\"},{\"id\":342,\"slug\":\"jacuzzi\",\"name\":\"Jacuzzi\"},{\"id\":347,\"slug\":\"barbecue-facilities-1\",\"name\":\"Barbecue facilities\"},{\"id\":357,\"slug\":\"ping-pong-table\",\"name\":\"Ping pong table\"},{\"id\":358,\"slug\":\"badminton-kit\",\"name\":\"Badminton kit\"},{\"id\":361,\"slug\":\"hiking\",\"name\":\"Hiking\"},{\"id\":363,\"slug\":\"wildlife-trips\",\"name\":\"Wildlife trips\"},{\"id\":366,\"slug\":\"air-conditioning-1\",\"name\":\"Air conditioning\"},{\"id\":368,\"slug\":\"wood-fireplace\",\"name\":\"Wood fireplace\"},{\"id\":371,\"slug\":\"bed-linen\",\"name\":\"Bed linen\"},{\"id\":374,\"slug\":\"tv-1\",\"name\":\"TV\"},{\"id\":375,\"slug\":\"wi-fi-1\",\"name\":\"Wi-Fi\"},{\"id\":376,\"slug\":\"bathroom-with-shower\",\"name\":\"Bathroom with shower\"},{\"id\":379,\"slug\":\"private-bathroom-1\",\"name\":\"Private bathroom\"},{\"id\":382,\"slug\":\"terrace\",\"name\":\"Terrace\"},{\"id\":383,\"slug\":\"garden-1\",\"name\":\"Garden\"},{\"id\":384,\"slug\":\"coffee-maker-1\",\"name\":\"Coffee maker\"},{\"id\":387,\"slug\":\"coffee-and-tea-2\",\"name\":\"Coffee and tea\"},{\"id\":389,\"slug\":\"hair-dryer\",\"name\":\"Hair dryer\"},{\"id\":390,\"slug\":\"body-towels\",\"name\":\"Body towels\"},{\"id\":391,\"slug\":\"hand-towels\",\"name\":\"Hand towels\"},{\"id\":392,\"slug\":\"liquid-soap\",\"name\":\"Liquid soap\"},{\"id\":393,\"slug\":\"shampoo\",\"name\":\"Shampoo\"},{\"id\":395,\"slug\":\"toilet-paper\",\"name\":\"Toilet paper\"},{\"id\":398,\"slug\":\"microwave\",\"name\":\"Microwave\"},{\"id\":399,\"slug\":\"dishwasher\",\"name\":\"Dishwasher\"},{\"id\":400,\"slug\":\"refrigerator\",\"name\":\"Refrigerator\"},{\"id\":401,\"slug\":\"electric-oven\",\"name\":\"Electric oven\"},{\"id\":403,\"slug\":\"electric-hob\",\"name\":\"Electric Stove\"},{\"id\":405,\"slug\":\"espresso-machine\",\"name\":\"Espresso machine\"},{\"id\":406,\"slug\":\"kettle\",\"name\":\"Kettle\"},{\"id\":407,\"slug\":\"crockery\",\"name\":\"Crockery\"},{\"id\":408,\"slug\":\"cutlery\",\"name\":\"Cutlery\"},{\"id\":420,\"slug\":\"kitchen-1\",\"name\":\"Kitchen\"},{\"id\":421,\"slug\":\"free-parking\",\"name\":\"Free parking\"},{\"id\":424,\"slug\":\"outdoor-activities\",\"name\":\"Outdoor activities\"},{\"id\":425,\"slug\":\"pool-1\",\"name\":\"Pool\"},{\"id\":427,\"slug\":\"jacuzzi-1\",\"name\":\"Jacuzzi\"},{\"id\":428,\"slug\":\"children-playground\",\"name\":\"Children playground\"},{\"id\":430,\"slug\":\"kids-friendly\",\"name\":\"Kids friendly\"},{\"id\":434,\"slug\":\"free-wi-fi\",\"name\":\"Free Wi-fi\"},{\"id\":435,\"slug\":\"laptop-friendly\",\"name\":\"Laptop friendly\"},{\"id\":437,\"slug\":\"garden\",\"name\":\"Garden\"},{\"id\":438,\"slug\":\"terrace-1\",\"name\":\"Terrace\"},{\"id\":439,\"slug\":\"balcony-1\",\"name\":\"Balcony\"},{\"id\":440,\"slug\":\"heating\",\"name\":\"Heating\"},{\"id\":442,\"slug\":\"barbeque-area\",\"name\":\"Barbeque area\"},{\"id\":449,\"slug\":\"remote-work\",\"name\":\"Remote work\"},{\"id\":456,\"slug\":\"self-check-inout\",\"name\":\"Self Check-in\\\/out\"},{\"id\":459,\"slug\":\"sauna\",\"name\":\"Sauna\"},{\"id\":461,\"slug\":\"spa\",\"name\":\"SPA\"},{\"id\":465,\"slug\":\"self-catering\",\"name\":\"Self catering\"},{\"id\":466,\"slug\":\"toaster\",\"name\":\"Toaster\"},{\"id\":475,\"slug\":\"hangers\",\"name\":\"Hangers\"},{\"id\":476,\"slug\":\"wardrobe-or-closet\",\"name\":\"Wardrobe or closet\"},{\"id\":477,\"slug\":\"heating-1\",\"name\":\"Heating\"},{\"id\":481,\"slug\":\"darts\",\"name\":\"Darts\"}]'> <\/div>\n\n\n\n        <div class=\"desktop\">\n            <div class=\"location\">\n                <div class=\"row\">\n                    <div class=\"col-sm-5\">\n                                                                                <div class=\"service-review-pc\">\n                                <div class=\"head\" style=\"float: left;\">\n                                    <div class=\"left\">\n                                        <span class=\"head-rating\">Not rated<\/span>\n                                        <span\n                                            class=\"text-rating\">0 reviews<\/span>\n                                    <\/div>\n                                    <div class=\"score\"> 0<span>\/5<\/span>\n                                    <\/div>\n                                <\/div>\n                                            <\/div>\n                <\/div>\n                <div class=\"col-sm-6\" style=\"text-align: right;\">\n                                        <div class=\"price\">\n\n\n\n                        \n                        <div class=\"item-loop-list \" style=\"border: none;\">\n\n                        <\/div>\n\n\n                        <div class=\"price\" style=\"margin-top: 20px; display: inline; margin-bottom: 20px;\">\n                            <span class=\"fr_text\"data-hotel-id=\"40215\">from<\/span>\n                            <span class=\"text-price\"\n                                style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                                data-hotel-id=\"40215\">\n                                \u20ac 1,090\n                            <\/span>\n                            <span class=\"unit\" data-hotel-id=\"40215\">\n                                \/night\n                            <\/span>\n                                                                                                                                                    <div class=\"hotel-availability\" data-hotel-id=\"40215\"\n                                    data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                    data-adults=\"1\"\n                                    data-children=\"0\" style=\"margin-left: 90px;\">\n                                    <span class=\"checking-text\">Checking...<\/span>\n                                <\/div>\n                            \n\n\n                        <\/div>\n                    <\/div>\n                <\/div>\n            <\/div>\n\n        <\/div>\n    <\/div>\n    <div class=\"mobile\">\n        <div class=\"location\">\n            <div class=\"row\">\n\n                <div class=\"col-sm-12\" style=\"padding: 0px;\">\n                                                                    <div class=\"service-review-pc\">\n                            <div class=\"head\" style=\"float: left;\">\n                                <div class=\"left\">\n                                    <span class=\"head-rating\">Not rated<\/span>\n                                    <span\n                                        class=\"text-rating\">0 reviews<\/span>\n                                <\/div>\n                                <div class=\"score\">0<span>\/5<\/span>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                                        <div class=\"item-loop-list \"\n                        style=\"border: none;\/*! float: right; *\/margin-left: 90%;\">\n\n                    <\/div>\n                                        <div class=\"price\" style=\"display: inline;margin-bottom: 20px;float: right;\">\n                        <span class=\"fr_text\"data-hotel-id=\"40215\">from<\/span> <span\n                            class=\"text-price\"\n                            style=\"font-size: 16px; color: var(--main-color, #1A2B48); font-weight: 500;\"\n                            data-hotel-id=\"40215\">\u20ac 1,090\n                        <\/span>\n                        <span class=\"unit\" data-hotel-id=\"40215\">\n                            \/night\n                        <\/span>\n                                                                                                                               <div class=\"hotel-availability\" data-hotel-id=\"40215\"\n                                data-start-date=\"2024-11-16\" data-end-date=\"2024-11-17\"\n                                data-adults=\"1\"\n                                data-children=\"0\" style=\"margin-left: 90px;\">\n                                <span class=\"checking-text\">Checking...<\/span>\n                            <\/div>\n                        \n\n\n\n\n                    <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>\n    <\/div>\n\n<\/div>\n<\/div>\n<script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        function checkAvailabilityForEvents() {\n            let eventElements = document.querySelectorAll(\".event-availability:not([data-checked='true'])\");\n\n            eventElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let status = element.dataset.status;\n                let priceElements = document.querySelectorAll(\n                    `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                );\n                let mealIncludedElement = document.querySelector(\n                    `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                element.setAttribute('data-checked', 'true');\n\n                setTimeout(function() {\n                    if (status === 'not_available') {\n                        element.innerHTML =\n                            `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">Not available<\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"line-through\";\n                            priceElement.style.color = \"black\";\n                            priceElement.style.fontWeight = \"300\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"none\";\n                        }\n                    } else {\n                        element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                        priceElements.forEach(function(priceElement) {\n                            priceElement.style.textDecoration = \"none\";\n                            priceElement.style.color = \"var(--main-color, #1A2B48)\";\n                            priceElement.style.fontWeight = \"400\";\n                        });\n\n                        if (mealIncludedElement) {\n                            mealIncludedElement.style.display = \"block\";\n                        }\n                    }\n                }, 300);\n            });\n        }\n\n        window.travlocalsCheckEventAvailability = checkAvailabilityForEvents;\n\n        \/\/ Func\u021bie pentru a verifica disponibilitatea hotelurilor\n        function checkAvailabilityForHotels() {\n            \/\/ Select\u0103m toate elementele care trebuie s\u0103 verifice disponibilitatea hotelurilor\n            let hotelElements = document.querySelectorAll(\".hotel-availability:not([data-checked='true'])\");\n\n            hotelElements.forEach(function(element) {\n                let hotelId = element.dataset.hotelId;\n                let startDate = element.dataset.startDate;\n                let endDate = element.dataset.endDate;\n                let adults = element.dataset.adults;\n                let children = element.dataset.children;\n\n                \/\/ Marc\u0103m elementul ca fiind verificat pentru a evita verific\u0103rile redundante\n                element.setAttribute('data-checked', 'true');\n\n                \/\/ Trimitem cererea AJAX pentru a verifica disponibilitatea\n                fetch(`\/hotel\/checkAvailability`, {\n                        method: 'POST',\n                        headers: {\n                            'Content-Type': 'application\/json',\n                            'X-CSRF-TOKEN': document.querySelector('meta[name=\"csrf-token\"]')\n                                .getAttribute('content')\n                        },\n                        body: JSON.stringify({\n                            hotel_id: hotelId,\n                            start_date: startDate,\n                            end_date: endDate,\n                            adults: adults,\n                            children: children\n                        })\n                    })\n                    .then(response => response.json())\n                    .then(data => {\n                        \/\/ Ob\u021binem elementele pentru pre\u021b: `fr_text`, `text-price`, \u0219i `unit`\n                        let priceElements = document.querySelectorAll(\n                            `.text-price[data-hotel-id=\"${hotelId}\"], .fr_text[data-hotel-id=\"${hotelId}\"], .unit[data-hotel-id=\"${hotelId}\"]`\n                        );\n                        let mealIncludedElement = document.querySelector(\n                            `.meal-included[data-hotel-id=\"${hotelId}\"]`);\n\n                        if (data.rooms && data.rooms.length > 0) {\n                            \/\/ Dac\u0103 hotelul este disponibil\n                            element.innerHTML = `<span class=\"available-text\"><\/span>`;\n\n                            \/\/ Scoatem linia de t\u0103iere pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"none\"; \/\/ \u00cenl\u0103tur\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"var(--main-color, #1A2B48)\"; \/\/ Reset\u0103m culoarea\n                                priceElement.style.fontWeight =\n                                    \"400\"; \/\/ Set\u0103m font-weight la valoarea normal\u0103 (po\u021bi modifica)\n                            });\n\n                            \/\/ Afi\u0219\u0103m elementul pentru mese incluse dac\u0103 exist\u0103\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"block\";\n                            }\n\n                        } else {\n                            \/\/ Dac\u0103 hotelul nu este disponibil\n                            element.innerHTML =\n                                `<span class=\"not-available-text\" style=\"color:red;font-weight: bold;\">SOLD<\/span>`;\n\n                            \/\/ Ad\u0103ug\u0103m linia de t\u0103iere \u0219i schimb\u0103m culoarea pentru toate elementele de pre\u021b\n                            priceElements.forEach(function(priceElement) {\n                                priceElement.style.textDecoration =\n                                    \"line-through\"; \/\/ Ad\u0103ug\u0103m linia t\u0103iat\u0103\n                                priceElement.style.color =\n                                    \"black\"; \/\/ Set\u0103m culoarea la negru\n                                priceElement.style.fontWeight =\n                                    \"300\"; \/\/ Set\u0103m font-weight la 300\n                            });\n\n                            \/\/ Ascundem elementul pentru mese incluse\n                            if (mealIncludedElement) {\n                                mealIncludedElement.style.display = \"none\";\n                            }\n                        }\n                    })\n                    .catch(error => {\n                        console.error('Error checking availability:', error);\n                        element.innerHTML = `<span class=\"error-text\"><\/span>`;\n                    });\n            });\n        }\n\n        \/\/ Apel\u0103m func\u021bia la \u00eenc\u0103rcarea paginii\n        checkAvailabilityForEvents();\n        checkAvailabilityForHotels();\n\n        \/\/ Observ\u0103m c\u00e2nd con\u021binutul paginii se schimb\u0103 prin paginare\n        document.addEventListener('click', function(event) {\n            if (event.target.matches('.travlocals-pagination a')) {\n                \/\/ A\u0219tept\u0103m pu\u021bin pentru a ne asigura c\u0103 noile list\u0103ri s-au \u00eenc\u0103rcat\n                setTimeout(function() {\n                    checkAvailabilityForEvents();\n                    checkAvailabilityForHotels();\n                }, 1000);\n            }\n        });\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        let fotoramaContainer = document.querySelector(\".fotorama\");\n\n        if (fotoramaContainer) {\n            fotoramaContainer.addEventListener(\"click\", function(event) {\n                let hotelUrl = document.querySelector(\".full-link\").getAttribute(\"href\");\n\n                \/\/ Verific\u0103m dac\u0103 NU s-a dat click pe butoanele de navigare (prev, next)\n                if (!event.target.closest(\".fotorama__arr--next\") && !event.target.closest(\n                        \".fotorama__arr--prev\")) {\n                    window.location.href = hotelUrl; \/\/ Navig\u0103m la pagina list\u0103rii\n                }\n            });\n        }\n    });\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        document.querySelectorAll(\".g-info\").forEach(function(infoDiv) {\n            infoDiv.addEventListener(\"click\", function(event) {\n                \/\/ Verific\u0103m dac\u0103 utilizatorul a dat click pe un link sau un buton (nu redirec\u021bion\u0103m \u00een acest caz)\n                if (!event.target.closest(\"a, button\")) {\n                    let url = this.getAttribute(\"data-href\");\n                    console.log(\"Navigating to:\", url);\n                    window.location.href = url;\n                }\n            });\n        });\n    });\n<\/script>\n<script>\nwindow.addEventListener('load', function() {\n    \/\/ Script-ul ruleaz\u0103 DUP\u0102 ce s-a \u00eenc\u0103rcat complet pagina\n    document.querySelectorAll('#term-tags-container').forEach(function (container) {\n        \/\/ Verific\u0103 dac\u0103 badge-urile au fost deja procesate\n        if (container.hasAttribute('data-badges-processed')) {\n            return;\n        }\n        \n        container.setAttribute('data-badges-processed', 'true');\n        \n        const rawData = container.dataset.terms;\n        if (!rawData) return;\n\n        let terms = [];\n        try {\n            terms = JSON.parse(rawData);\n        } catch (e) {\n            console.error('Invalid JSON in data-terms', rawData);\n            return;\n        }\n\n        const wantedSlugs = ['pet-friendly', 'spa', 'piscina', 'pool', 'Piscina','jacuzii','Jacuzii','Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1' ];\n        let shownSpaFacility = false;\n        const shownSlugs = new Set();\n\n        terms.forEach(term => {\n            const slug = term.slug.toLowerCase();\n            if (!wantedSlugs.includes(slug)) return;\n\n            if (shownSlugs.has(slug)) return;\n            shownSlugs.add(slug);\n\n            let labelText = '';\n\n            if (['spa', 'piscina', 'pool', 'jacuzii','Piscina','Jacuzii', 'Pool','pool-1','swimming-pool','sauna','sauna-ro','cada-cu-hidromasaj-jacuzzi','jacuzzi-1','hot-tub','hot-tub-1'].includes(slug)) {\n                if (shownSpaFacility) return;\n                \n                labelText = \"Spa Facilities\";\n\n                shownSpaFacility = true;\n            } else if (slug === 'pet-friendly') {\n                labelText = term.name;\n            }\n\n            if (labelText) {\n                const existingBadge = container.querySelector(`.term-${term.id}`);\n                if (existingBadge) return;\n                \n                const badge = document.createElement('div');\n                badge.className = `item ${slug} term-${term.id}`;\n                badge.style.cssText = `\n                    display: block;\n                    white-space: nowrap;\n                    font-size: 12px;\n                    padding: 6px 14px;\n                    border: 1px solid #dfdfdf;\n                    border-radius: 32px;\n                    background: rgba(255, 255, 255, 0.92);\n                    color: #222;\n                    width: fit-content;\n                    margin-top: 10px;\n                    margin-right: 8px;\n                    box-shadow: 0 1px 6px rgba(90,90,90,0.06);\n                `;\n                badge.innerText = labelText;\n                container.appendChild(badge);\n            }\n        });\n    });\n});\n    <\/script>\n    \n    \n<style>\n         .badge-label {\n            display: inline-block;\n            white-space: nowrap;\n            font-size: clamp(8px, 0.65vw, 12px);\n            padding: clamp(2px, 0.3vw, 6px) clamp(5px, 0.65vw, 12px);\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: rgba(255, 255, 255, 0.85);\n            color: #000;\n        }\n\n        @media (max-width: 1500px) {\n            .badge-label {\n                font-size: 9px;\n                padding: 2px 6px;\n            }\n        }\n\n        @media (max-width: 767px) {\n            .badge-label {\n                font-size: 12px;\n                padding: 4px 10px;\n            }\n        }\n\n        .item-loop-list .thumb-image {\n            position: relative;\n        }\n\n        .badges-container {\n            position: absolute;\n            bottom: 10px;\n            left: 10px;\n            right: 10px;\n            z-index: 10;\n            display: flex;\n            flex-wrap: nowrap;\n            justify-content: flex-end;\n            align-items: center;\n            gap: clamp(3px, 0.5vw, 8px);\n            pointer-events: none;\n        }\n\n    @media (max-width: 767px) {\n        .desktop {\n            display: none !important;\n        }\n\n   \n    }\n    @media (min-width: 564px) {\n  .terms {\n    display: block;\n  }\n}\n.fotorama__nav-wrap {\n        display: none !important;\n    }\n\n    .fotorama__img {\n        width: 100% !important;\n        height: 100% !important;\n        top: 0 !important;\n        left: 0 !important;\n        margin: none !important;\n        object-fit: cover !important;\n    }\n\n    @media  screen and (min-width: 767.98px) {\n        .thumb-image {\n            height: 250px !important;\n        }\n    }\n\n    .placeholder-img {\n        height: 50px !important;\n        object-fit: contain !important;\n    }\n\n    .fit-cover {\n        object-fit: cover !important;\n    }\n\n    .fotorama__caption,\n    .fotorama__nav::after,\n    .fotorama__nav::before,\n    .fotorama__stage::after,\n    .fotorama__stage::before,\n    .fotorama__wrap--css3 .fotorama__html,\n    .fotorama__wrap--css3 .fotorama__nav,\n    .fotorama__wrap--css3 .fotorama__spinner,\n    .fotorama__wrap--css3 .fotorama__stage,\n    .fotorama__wrap--css3 .fotorama__stage .fotorama__img,\n    .fotorama__wrap--css3 .fotorama__stage__frame {\n        -webkit-transform: translateZ(0);\n        transform: translateZ(0);\n        height: 250px !important;\n    }\n\n    html,\n    body {\n        overflow-x: hidden;\n    }\n<\/style>\n                    <\/div>\n                            <\/div>\n        <\/div>\n\n        <div class=\"travlocals-pagination\" style=\"width: 100%;\">\n            <nav role=\"navigation\" aria-label=\"Pagination Navigation\" class=\"flex items-center justify-center\">\n        <ul class=\"pagination\">\n                            <li>\n                    <a href=\"https:\/\/www.travlocals.com\/hotel?location_id=8686&amp;_ajax=1&amp;page=3\" rel=\"prev\">&laquo;<\/a>\n                <\/li>\n            \n                                                                                                    <li><a href=\"https:\/\/www.travlocals.com\/hotel?location_id=8686&amp;_ajax=1&amp;page=1\">1<\/a><\/li>\n                                                                                                <li><a href=\"https:\/\/www.travlocals.com\/hotel?location_id=8686&amp;_ajax=1&amp;page=2\">2<\/a><\/li>\n                                                                                                <li><a href=\"https:\/\/www.travlocals.com\/hotel?location_id=8686&amp;_ajax=1&amp;page=3\">3<\/a><\/li>\n                                                                                                <li class=\"active\" aria-current=\"page\"><span>4<\/span><\/li>\n                                                                        \n                            <li class=\"disabled\" aria-disabled=\"true\">\n                    <span>&raquo;<\/span>\n                <\/li>\n                    <\/ul>\n    <\/nav>\n\n        <\/div>\n        <div class=\"mobile\" style=\"border-top: 1px solid rgb(221, 221, 221) !important;margin-bottom: 150px;\">\n            <div class=\"travlocals_footer_ac\">\n                <div class=\"container\">\n                    <div class=\"row\">\n                                                                                                                                                <div class=\"col-lg-3 col-md-6\">\n                                    <div class=\"nav-footer\">\n                                        <div class=\"title\">\n                                            TOP DESTINATIONS\n                                        <\/div>\n                                        <div class=\"context\">\n                                            <div class=\"vc_wp_custommenu wpb_content_element\">\r\n  <div class=\"widget widget_nav_menu\">\r\n    <div class=\"menu-destinatii-de-top-container\">\r\n      <ul id=\"menu-destinatii-de-top\" class=\"menu\">\r\n        <li id=\"menu-item-romania\" class=\"menu-item menu-item-type-post_type menu-item-object-location menu-item-romania\">\r\n          <a href=\"https:\/\/www.travlocals.com\/location\/Romania\">Romania<\/a>\r\n        <\/li>\r\n        <li id=\"menu-item-bulgaria\" class=\"menu-item menu-item-type-post_type menu-item-object-location menu-item-bulgaria\">\r\n          <a href=\"https:\/\/www.travlocals.com\/location\/bulgaria\">Bulgaria<\/a>\r\n        <\/li>\r\n      <\/ul>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\n                                        <\/div>\n                                    <\/div>\n                                <\/div>\n                                                                                            <div class=\"col-lg-3 col-md-6\">\n                                    <div class=\"nav-footer\">\n                                        <div class=\"title\">\n                                            COMPANY\n                                        <\/div>\n                                        <div class=\"context\">\n                                            <div class=\"vc_wp_custommenu wpb_content_element\">\r\n  <div class=\"widget widget_nav_menu\">\r\n    <div class=\"menu-companie-container\">\r\n      <ul id=\"menu-companie\" class=\"menu\">\r\n\r\n        <li id=\"menu-item-10801\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10801\">\r\n          <a href=\"https:\/\/www.travlocals.com\/page\/about-us\">About Us<\/a>\r\n        <\/li>\r\n\r\n        <li id=\"menu-item-10802\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10802\">\r\n          <a href=\"https:\/\/travlocals.com\/become-a-host\">Become a Partner<\/a>\r\n        <\/li>\r\n\r\n        <li class=\"menu-item\">\r\n          <a href=\"\/booking-website-for-hotel-cabins-guesthouses\">\r\n            Booking Websites\r\n          <\/a>\r\n        <\/li>\r\n <li id=\"menu-item-10802\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10802\">\r\n          <a href=\"https:\/\/www.travlocals.com\/event-venues\/become-a-host\">List your venue<\/a>\r\n        <\/li>\r\n        <li id=\"menu-item-10804\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-10804\">\r\n          <a href=\"https:\/\/www.travlocals.com\/news\/category\/press-centre\">For the Press<\/a>\r\n        <\/li>\r\n\r\n        <li id=\"menu-item-10803\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10803\">\r\n          <a href=\"https:\/\/travlocals.com\/pdf\/Terms_of_ use_Travlocals_LoT_clients .pdf\">\r\n            Terms &amp; Conditions\r\n          <\/a>\r\n        <\/li>\r\n\r\n      <\/ul>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\n                                        <\/div>\n                                    <\/div>\n                                <\/div>\n                                                                                            <div class=\"col-lg-3 col-md-6\">\n                                    <div class=\"nav-footer\">\n                                        <div class=\"title\">\n                                            SUPPORT\n                                        <\/div>\n                                        <div class=\"context\">\n                                            <div class=\"vc_wp_custommenu wpb_content_element\">\r\n  <div class=\"widget widget_nav_menu\">\r\n    <div class=\"menu-meniu-2-container\">\r\n      <ul id=\"menu-meniu-2\" class=\"menu\">\r\n\r\n        <li id=\"menu-item-10839\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10839\">\r\n          <a href=\"https:\/\/www.travlocals.com\/news\/category\/help\">Help<\/a>\r\n        <\/li>\r\n\r\n        <li id=\"menu-item-10840\" class=\"menu-item menu-item-type-post_type menu-item-object-page menu-item-10840\">\r\n          <a href=\"https:\/\/www.travlocals.com\/contact\/\">Contact<\/a>\r\n        <\/li>\r\n\r\n        <li id=\"menu-item-11998\" class=\"menu-item menu-item-type-custom menu-item-object-custom menu-item-11998\">\r\n          <a href=\"https:\/\/www.travlocals.com\/page\/privacy-policy\">Privacy Policy<\/a>\r\n        <\/li>\r\n\r\n        <li>\r\n          <a href=\"https:\/\/www.travlocals.com\/page\/cookie-policy\">Cookie Policy<\/a>\r\n        <\/li>\r\n\r\n        <li>\r\n          <a href=\"https:\/\/www.travlocals.com\/news\/category\/blog-articles\">Blog<\/a>\r\n        <\/li>\r\n\r\n      <\/ul>\r\n    <\/div>\r\n  <\/div>\r\n<\/div>\n                                        <\/div>\n                                    <\/div>\n                                <\/div>\n                                                                                                        <\/div>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n    <p class=\"visually-hidden\">\n        Looking for the best places to stay in Romania and Bulgaria? Here are some of the top-rated accommodations\n        available for your next trip.\n    <\/p>\n<\/div>\n\n<style>\n    .travlocals_footer {\n        display: none;\n    }\n\n    \/* \u2500\u2500 Buton uniform pentru toate cele 4 \u2500\u2500 *\/\n    .top-bar-btn {\n        display: inline-flex;\n        align-items: center;\n        justify-content: center;\n        padding: 10px 18px;\n        border: 1px solid #dfdfdf;\n        border-radius: 32px;\n        background: #fff;\n        color: #343a40 !important;\n        font-size: 14px;\n        text-decoration: none !important;\n        white-space: nowrap;\n        box-shadow: 0 1px 2px rgb(0 0 0 \/ 8%), 0 4px 12px rgb(0 0 0 \/ 5%);\n        cursor: pointer;\n        transition: all 0.2s;\n        height: 42px;\n        font-weight: 400;\n    }\n    .top-bar-btn.active {\n        background: #000;\n        color: #fff !important;\n        border-color: #000;\n    }\n    .top-bar-btn:hover {\n        border-color: #000;\n        color: #000 !important;\n        text-decoration: none !important;\n    }\n\n    .filter-title i {\n        font-size: 16px;\n        color: #343a40 !important;\n    }\n    .filter-title.toggle-advance-filter {\n        float: right;\n        background: #fff;\n        border-radius: 32px;\n        cursor: pointer;\n    }\n    .filter-title.top-bar-btn {\n        float: none;\n        color: #343a40 !important;\n    }\n    .filter-title.top-bar-btn i {\n        color: #343a40 !important;\n    }\n\n    \/* Desktop top bar *\/\n    .desktop-top-bar {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 12px;\n        margin-top: 10px;\n    }\n    .desktop-top-bar .desktop-stay-bubbles {\n        margin: 0 auto;\n    }\n\n    .desktop-stay-bubbles {\n        display: inline-flex;\n        gap: 8px;\n    }\n\n    @media (min-width: 1000px) and (max-width: 1500px) {\n        .accommodation-map-list .map-results-summary,\n        .accommodation-map-list .map-results-actions {\n            flex: 0 0 100%;\n            max-width: 100%;\n        }\n\n        .accommodation-map-list .map-results-actions .desktop-top-bar {\n            float: none !important;\n            justify-content: flex-start;\n            margin-top: 6px;\n            padding-bottom: 10px;\n            width: 100%;\n        }\n\n        .accommodation-map-list .map-results-actions .desktop-stay-bubbles {\n            margin: 0;\n        }\n    }\n\n    .events-empty-topbar {\n        width: 100%;\n        padding: 0 30px;\n        margin: 0;\n        align-items: flex-start;\n    }\n    .events-empty-topbar .text-paginate {\n        padding-top: 15px !important;\n    }\n    .events-empty-topbar .desktop-top-bar {\n        margin-top: 12px;\n        justify-content: flex-end;\n    }\n    .events-empty-message {\n        min-height: calc(100vh - 360px);\n        display: flex;\n        flex-direction: column;\n        align-items: center;\n        justify-content: center;\n        text-align: center;\n    }\n\n    \/* Mobile top bar *\/\n    .mobile-top-bar {\n        display: flex;\n        align-items: center;\n        justify-content: space-between;\n        gap: 8px;\n        padding: 12px 0px;\n        flex-wrap: nowrap;\n    }\n    .stay-type-bubbles {\n        display: inline-flex;\n        gap: 6px;\n        flex: 1;\n        justify-content: center;\n    }\n\n    .mobile-filters-btn {\n        display: inline-flex;\n    }\n    .mobile-filters-next-search {\n        display: none;\n    }\n\n    @media (max-width: 767px) {\n        .mobile-top-bar {\n            padding-left: 1px !important;\n            padding-right: 1px !important;\n        }\n        .mobile-top-bar .stay-type-bubbles {\n            justify-content: flex-start;\n            flex: 0 0 auto;\n        }\n        .mobile-top-bar .stay-type-bubble {\n            min-width: 96px;\n            padding: 6px 8px;\n            text-align: center;\n            justify-content: center;\n        }\n        .mobile-search-row {\n            gap: 10px;\n            padding-left: 1px;\n            padding-right: 1px;\n        }\n        .mobile-search-bar {\n            display: flex !important;\n            align-items: center;\n            gap: 8px;\n            flex: 1;\n            min-width: 0;\n            padding: 6px 6px 6px 6px;\n            border: 1px solid #dfdfdf;\n            border-radius: 32px;\n            background: #fff;\n            box-shadow: 0 1px 2px rgb(0 0 0 \/ 8%), 0 4px 12px rgb(0 0 0 \/ 5%);\n        }\n        .mobile-search-bar .g-map-place {\n            flex: 1;\n            padding-left: 4px !important;\n            margin-top: 0 !important;\n        }\n        .mobile-search-bar .g-map-place input[name=\"map_place\"] {\n            padding-left: 0 !important;\n            outline: none !important;\n            border: none;\n            width: 100%;\n            max-width: none;\n            background: transparent;\n            font-size: 15px;\n        }\n        .mobile-filters-next-search {\n            display: inline-flex !important;\n            align-items: center;\n            justify-content: center;\n            flex: 0 0 auto;\n            width: 40px;\n            height: 40px;\n            background: #fff;\n            border: 1px solid #dfdfdf;\n            border-radius: 50%;\n            cursor: pointer;\n            box-shadow: 0 1px 2px rgb(0 0 0 \/ 8%), 0 4px 12px rgb(0 0 0 \/ 5%);\n        }\n        .mobile-filters-next-search i {\n            font-size: 16px !important;\n            color: #343a40 !important;\n            margin: 0 !important;\n        }\n        .mobile-search-bar .mobile-search-btn {\n            position: static !important;\n            flex: 0 0 auto;\n            width: 32px;\n            height: 32px;\n            padding: 0 !important;\n            border-radius: 50% !important;\n            display: inline-flex;\n            align-items: center;\n            justify-content: center;\n        }\n        .mobile-search-bar .mobile-search-btn .icofont-search {\n            font-size: 14px !important;\n        }\n        .filter-title .filter-text {\n            display: none;\n        }\n        .filter-title.toggle-advance-filter {\n            color: rgb(176, 176, 176) !important;\n            background: #fff;\n            border-radius: 32px;\n            cursor: pointer;\n            border: none;\n        }\n        .filter-title i {\n            font-size: 1.8em;\n            margin-right: 0;\n            color: rgb(176, 176, 176) !important;\n        }\n        .filter-title {\n            padding: 8px;\n            font-size: 16px;\n        }\n        .fa-2x:hover {\n            color: red;\n        }\n        .filter-text:hover {\n            color: red;\n        }\n        .has-search-map .travlocals_search_map .results_item .text-paginate {\n            white-space: nowrap;\n            color: #818181;\n            font-size: 13px;\n        }\n        .has-search-map .travlocals_search_map .results_item .text-paginate h2 {\n            font-size: 14px;\n            color: #000;\n            margin-bottom: 0;\n        }\n    }\n\n    @media (min-width: 767px) {\n        .fa-2x:hover {\n            font-size: 16px;\n            color: red;\n        }\n        .filter-text:hover {\n            font-size: 16px;\n            color: red;\n        }\n    }\n\n    @media  only screen and (max-width: 767px) {\n        .travlocals_wrap .travlocals-list-hotel .title {\n            font-size: 16px;\n            text-transform: uppercase;\n            font-weight: 500;\n            padding: 20px 0;\n            margin-bottom: 31px;\n            position: relative;\n            border: none !important;\n        }\n        .travlocals_wrap .travlocals_footer .main-footer .nav-footer .context ul li a {\n            margin-bottom: 25px;\n            font-size: 14px;\n            font-weight: 400;\n            display: block;\n            color: #23282d;\n            text-decoration: none;\n            transition: all 0.3s;\n        }\n        .wpb_content_element {\n            margin-bottom: 0px;\n        }\n        li {\n            margin-bottom: 25px;\n            font-size: 14px;\n            font-weight: 400;\n            display: block;\n            color: #23282d;\n            text-decoration: none;\n            transition: all 0.3s;\n        }\n    }\n\n    @media  only screen and (max-width: 600px) {\n        .mobile {\n            display: block;\n        }\n    }\n\n    a {\n        color: #000;\n    }\n    .ol, ul {\n        list-style-type: none;\n    }\n    .li.page-item {\n        display: none;\n    }\n    .page-item:first-child,\n    .page-item:nth-child(2),\n    .page-item:nth-last-child(2),\n    .page-item:last-child,\n    .page-item.active,\n    .page-item.disabled {\n        display: block;\n    }\n<\/style>\n\n<script>\n            document.querySelectorAll('.stay-type-bubble').forEach(function(bubble) {\n            bubble.addEventListener('click', function(e) {\n                e.preventDefault();\n                document.querySelectorAll('.stay-type-bubble').forEach(function(b) {\n                    b.classList.remove('active');\n                });\n                this.classList.add('active');\n\n                var stayType = this.dataset.stayType;\n                var url = new URL(window.location.href);\n\n                if (stayType === 'all') {\n                    url.searchParams.set('stay_type', 'all');\n                } else {\n                    url.searchParams.delete('stay_type');\n                }\n\n                window.location.href = url.toString();\n            });\n        });\n\n        (function() {\n            var params = new URLSearchParams(window.location.search);\n            var currentType = params.get('stay_type') === 'all' ? 'all' : 'unique';\n            document.querySelectorAll('.stay-type-bubble').forEach(function(b) {\n                b.classList.toggle('active', b.dataset.stayType === currentType);\n            });\n        })();\n    \n    window.onscroll = function() {\n        myFunction()\n    };\n\n    var header = document.getElementById(\"mobile-where-go-btn\");\n    var position = $(header).offset();\n    var sticky = position.top;\n\n    function myFunction() {\n        if (window.pageYOffset > sticky) {\n            header.classList.add(\"sticky\");\n        } else {\n            header.classList.remove(\"sticky\");\n        }\n    }\n<\/script>\n","markers":[{"id":40934,"title":"The Lodge Transylvania \u2013 Your Private Escape in the Bucegi Mountains","lat":45.489907799999997450868249870836734771728515625,"lng":25.38189320000000037680365494452416896820068359375,"url":"https:\/\/www.travlocals.com\/uploads\/0010\/10417\/2025\/12\/03\/723325753.webp","infobox":"<div class=\"item-loop infobox-item mb-marker-info\">\n        \n    <div class=\"thumb-image mobile-marker-thumb\">\n        <a  href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\">\n                                                <img src=\"https:\/\/www.travlocals.com\/uploads\/0010\/10417\/2025\/12\/03\/723325753.webp\" class=\"img-responsive\" alt=\"Travlocals - Descoper\u0103 Rom\u00e2nia Autentic\u0103\">\n                                    <\/a>\n                <div class=\"service-wishlist \" data-id=\"40934\" data-type=\"hotel\">\n            <i class=\"fa fa-heart\"><\/i>\n        <\/div>\n    <\/div>\n    <div class=\"info-summary\">\n        <div class=\"item-title\">\n            <a  href=\"https:\/\/www.travlocals.com\/hotel\/the-lodge-transylvania-your-private-escape-in-the-bucegi-mountains\/40934\">\n                                    The Lodge Transylvania \u2013 Your Private Escape in the Bucegi Mountains\n            <\/a>\n                    <\/div>\n        <div class=\"location\">\n                                            Transylvania\n                    <\/div>\n                        <div class=\"service-review\">\n            <span class=\"rate\">\n                 <span class=\"rate-text\">Not rated<\/span>\n            <\/span>\n            <span class=\"review\">\n                                    0 Review\n                            <\/span>\n        <\/div>\n                <div class=\"info\">\n            <div class=\"g-price\">\n                <div class=\"prefix\">\n                    <span class=\"fr_text\">from<\/span>\n                <\/div>\n                <div class=\"price\">\n                                        <span class=\"text-price\">\u20ac 550 \n                        \n                        <span class=\"unit\">\/stay<\/span><\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n<\/div>\n","marker":"https:\/\/www.travlocals.com\/images\/icons\/svg\/hotel-pin.svg"},{"id":26520,"title":"Casa de sub Munte, guarded by the highest peaks of Fagaras Mountains","lat":45.7006237000000083980921772308647632598876953125,"lng":24.70084969999999913170540821738541126251220703125,"url":"https:\/\/www.travlocals.com\/uploads\/0003\/3181\/2022\/03\/20\/253a0982-870x555.webp","infobox":"<div class=\"item-loop infobox-item mb-marker-info\">\n        \n    <div class=\"thumb-image mobile-marker-thumb\">\n        <a  href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\">\n                                                <img src=\"https:\/\/www.travlocals.com\/uploads\/0003\/3181\/2022\/03\/20\/253a0982-870x555.webp\" class=\"img-responsive\" alt=\"Travlocals - Descoper\u0103 Rom\u00e2nia Autentic\u0103\">\n                                    <\/a>\n                <div class=\"service-wishlist \" data-id=\"26520\" data-type=\"hotel\">\n            <i class=\"fa fa-heart\"><\/i>\n        <\/div>\n    <\/div>\n    <div class=\"info-summary\">\n        <div class=\"item-title\">\n            <a  href=\"https:\/\/www.travlocals.com\/hotel\/casa-de-sub-munte-guarded-by-the-highest-peaks-of-fagaras-mountains\/26520\">\n                                    Casa de sub Munte, guarded by the highest peaks of Fagaras Mountains\n            <\/a>\n                    <\/div>\n        <div class=\"location\">\n                                            Transylvania\n                    <\/div>\n                        <div class=\"service-review\">\n            <span class=\"rate\">\n                 5.0\/5  <span class=\"rate-text\">Excellent<\/span>\n            <\/span>\n            <span class=\"review\">\n                                    1 Review\n                            <\/span>\n        <\/div>\n                <div class=\"info\">\n            <div class=\"g-price\">\n                <div class=\"prefix\">\n                    <span class=\"fr_text\">from<\/span>\n                <\/div>\n                <div class=\"price\">\n                                        <span class=\"text-price\">\u20ac 682 \n                        \n                        <span class=\"unit\">\/stay<\/span><\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n<\/div>\n","marker":"https:\/\/www.travlocals.com\/images\/icons\/svg\/hotel-pin.svg"},{"id":40920,"title":"Porumbacu 134","lat":45.71524269999999745550667284987866878509521484375,"lng":24.46582910000000055106283980421721935272216796875,"url":"https:\/\/www.travlocals.com\/uploads\/0003\/3097\/2025\/09\/30\/e5bd47d0-187a-4459-a45d-9ca801a591c9.webp","infobox":"<div class=\"item-loop infobox-item mb-marker-info\">\n        \n    <div class=\"thumb-image mobile-marker-thumb\">\n        <a  href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\">\n                                                <img src=\"https:\/\/www.travlocals.com\/uploads\/0003\/3097\/2025\/09\/30\/e5bd47d0-187a-4459-a45d-9ca801a591c9.webp\" class=\"img-responsive\" alt=\"Travlocals - Descoper\u0103 Rom\u00e2nia Autentic\u0103\">\n                                    <\/a>\n                <div class=\"service-wishlist \" data-id=\"40920\" data-type=\"hotel\">\n            <i class=\"fa fa-heart\"><\/i>\n        <\/div>\n    <\/div>\n    <div class=\"info-summary\">\n        <div class=\"item-title\">\n            <a  href=\"https:\/\/www.travlocals.com\/hotel\/porumbacu-134\/40920\">\n                                    Porumbacu 134\n            <\/a>\n                    <\/div>\n        <div class=\"location\">\n                                            Transylvania\n                    <\/div>\n                        <div class=\"service-review\">\n            <span class=\"rate\">\n                 <span class=\"rate-text\">Not rated<\/span>\n            <\/span>\n            <span class=\"review\">\n                                    0 Review\n                            <\/span>\n        <\/div>\n                <div class=\"info\">\n            <div class=\"g-price\">\n                <div class=\"prefix\">\n                    <span class=\"fr_text\">from<\/span>\n                <\/div>\n                <div class=\"price\">\n                                        <span class=\"text-price\">\u20ac 689 \n                        \n                        <span class=\"unit\">\/stay<\/span><\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n<\/div>\n","marker":"https:\/\/www.travlocals.com\/images\/icons\/svg\/hotel-pin.svg"},{"id":40388,"title":"Altfel Bran Chalet","lat":45.5151517999999981611836119554936885833740234375,"lng":25.387177799999999905367076280526816844940185546875,"url":"https:\/\/www.travlocals.com\/uploads\/0009\/9384\/2025\/06\/17\/screenshot-2025-06-17-092624.webp","infobox":"<div class=\"item-loop infobox-item mb-marker-info\">\n        \n    <div class=\"thumb-image mobile-marker-thumb\">\n        <a  href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\">\n                                                <img src=\"https:\/\/www.travlocals.com\/uploads\/0009\/9384\/2025\/06\/17\/screenshot-2025-06-17-092624.webp\" class=\"img-responsive\" alt=\"Travlocals - Descoper\u0103 Rom\u00e2nia Autentic\u0103\">\n                                    <\/a>\n                <div class=\"service-wishlist \" data-id=\"40388\" data-type=\"hotel\">\n            <i class=\"fa fa-heart\"><\/i>\n        <\/div>\n    <\/div>\n    <div class=\"info-summary\">\n        <div class=\"item-title\">\n            <a  href=\"https:\/\/www.travlocals.com\/hotel\/altfel-bran-chalet\/40388\">\n                                    Altfel Bran Chalet\n            <\/a>\n                    <\/div>\n        <div class=\"location\">\n                                            Transylvania\n                    <\/div>\n                        <div class=\"service-review\">\n            <span class=\"rate\">\n                 <span class=\"rate-text\">Not rated<\/span>\n            <\/span>\n            <span class=\"review\">\n                                    0 Review\n                            <\/span>\n        <\/div>\n                <div class=\"info\">\n            <div class=\"g-price\">\n                <div class=\"prefix\">\n                    <span class=\"fr_text\">from<\/span>\n                <\/div>\n                <div class=\"price\">\n                                        <span class=\"text-price\">\u20ac 702 \n                        \n                        <span class=\"unit\">\/stay<\/span><\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n<\/div>\n","marker":"https:\/\/www.travlocals.com\/images\/icons\/svg\/hotel-pin.svg"},{"id":40215,"title":"Supporter Chalet","lat":45.67771239999999721703716204501688480377197265625,"lng":24.45670150000000120371623779647052288055419921875,"url":"https:\/\/www.travlocals.com\/uploads\/0006\/6458\/2023\/12\/07\/piscinaexterioarafunctionalatotanul.webp","infobox":"<div class=\"item-loop infobox-item mb-marker-info\">\n        \n    <div class=\"thumb-image mobile-marker-thumb\">\n        <a  href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\">\n                                                <img src=\"https:\/\/www.travlocals.com\/uploads\/0006\/6458\/2023\/12\/07\/piscinaexterioarafunctionalatotanul.webp\" class=\"img-responsive\" alt=\"Travlocals - Descoper\u0103 Rom\u00e2nia Autentic\u0103\">\n                                    <\/a>\n                <div class=\"service-wishlist \" data-id=\"40215\" data-type=\"hotel\">\n            <i class=\"fa fa-heart\"><\/i>\n        <\/div>\n    <\/div>\n    <div class=\"info-summary\">\n        <div class=\"item-title\">\n            <a  href=\"https:\/\/www.travlocals.com\/hotel\/supporter-chalet\/40215\">\n                                    Supporter Chalet\n            <\/a>\n                    <\/div>\n        <div class=\"location\">\n                                            Transylvania\n                    <\/div>\n                        <div class=\"service-review\">\n            <span class=\"rate\">\n                 <span class=\"rate-text\">Not rated<\/span>\n            <\/span>\n            <span class=\"review\">\n                                    0 Review\n                            <\/span>\n        <\/div>\n                <div class=\"info\">\n            <div class=\"g-price\">\n                <div class=\"prefix\">\n                    <span class=\"fr_text\">from<\/span>\n                <\/div>\n                <div class=\"price\">\n                                        <span class=\"text-price\">\u20ac 1,090 \n                        \n                        <span class=\"unit\">\/stay<\/span><\/span>\n                <\/div>\n            <\/div>\n        <\/div>\n    \n    <\/div>\n<\/div>\n","marker":"https:\/\/www.travlocals.com\/images\/icons\/svg\/hotel-pin.svg"}],"status":1}