<style>
.candee_locations_block {
	position: relative;
    margin: 15px 0 25px 0;
    padding: 28px 5% 0px;
    padding-bottom: 0px;
    padding-bottom: 24px;
	border: 2px solid transparent;
	visibility: visible; 
    opacity: 1;
}

.property_icons a.icon {
    color: #555;
    font-size: 1.2rem;
    margin: 0 5px 5px 0;
    display: inline-block;
    padding: 10px 12px;
    background: #ddd;
    transition: all 0.3s ease-out;
    text-decoration: none;
    border: 2px solid #ddd;
    line-height: 1.5rem;
    width: 48px;
    text-align: center;
    vertical-align: top;
}

.property_icons a.icon .featureIconImage {
    margin: 1px 0;
}

#resultCount {
    display:none;
}

.resultCount-0 {
    display:block !important;
}

.property_icons .selected {
	color: #fff;
    background: #666;
    border: 2px solid #fff !important;
}
.property_icons > .icon:hover {
    border: 2px solid #ddd;
    border-bottom: 2px solid #555;
}

.candee_locations_block_address {
    font-size: .8rem;
    line-height: 1.4rem;
}

.candee_location_buttons{
    padding: 10px 0px;
}

.round_button_1 {
    height:auto;
    width: auto;
    margin: 0px 5px;
}

.masterIcon .icon {
    font-size: 1.2rem;
    margin-right: 5px;
    color: #555;
}

.masterIcon .text {
    position: relative;
    top: -5px;
}

.master_icon_filters_header {
    color: white;
    background-color:#0f497d;
    text-align:center;
    text-transform: uppercase;
    margin-bottom:20px;
}

.master_icon_filters li {
    margin-bottom: 0px !important;
}

li:before{
    content: none !important;
}

.page-template-templates .pageContent {
    padding-top: 0px;
}

.candee .goToMapmarker {
    /* load after map click button */
    display:none;
}
.yellowBTN {	
    display: block !important;
    float: left;
    margin-right: 20px;
    text-decoration: none !important;
    min-width: 115px;
    text-align: center;
}

.filterSettingsButton {
    margin: 0 !important;
}

.candee_locations_block_title a {
    color: inherit;
}

@media (max-width: 600px){
    .candee_locations_block .ten,
    .candee_locations_block .nine {
        margin-left: 0;
    }
}

@media (max-width: 550px) {	
	#radiusUnitsButton{
        margin: 10px 0px;
    }
}</style>{"id":7,"date":"2024-02-22T16:18:06","date_gmt":"2024-02-22T16:18:06","guid":{"rendered":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/"},"modified":"2024-02-22T16:18:06","modified_gmt":"2024-02-22T16:18:06","slug":"candee-locations","status":"publish","type":"page","link":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/","title":{"rendered":"Candee Locations"},"content":{"rendered":"<style>\n    .container.full-width-no-header{max-width:1400px;}    \n    .candeeFeaturedFacility {\n        \n    }\n\n    .candeeFeaturedFacilityLabel {\n        color: white;\n        background-color: var(--candee-primary);\n        padding: 2px 5px;\n        text-align: center;\n        border-radius: 20px;\n        margin-bottom: 5px;\n    }\n\n    .candeeFeaturedBannerLabel {\n        color: var(--candee-primary);\n        border: 1px solid var(--candee-primary);\n        text-align: center;\n        border-radius: 20px;\n    }\n\n    .candeeFeaturedBannerLabel p {\n        margin-bottom: 0 !important;\n        padding-bottom: 0 !important;\n    }\n\n    .candeeLocationStartingPrice {\n        color: var(--candee-primary);\n        font-weight: bold;\n    }\n\n    .candeeLocationOffering {\n        font-weight: bold;\n        color: red;\n    }\n\n    #locations_theme_4 {\n        max-width: 1400px;\n    }\n\n    \/* Filters *\/\n    .locationsTheme4FiltersWrapper {\n        display: block\n    }\n\n    .locationsTheme4FiltersWrapper > *:not(:last-of-type) {\n        margin-bottom: 1rem;\n    }\n    \n    #locations_theme_4 .candee-flex > div {\n        flex-grow: 1;\n    }\n    \n    .locationsTheme4FiltersWrapper input {\n        margin-bottom: 0;\n    }\n    \n    .locationsTheme4FiltersWrapper label {\n        margin: 0;\n        padding: 0;\n        font-weight: bold;\n    }\n\n    \/* Searchbar *\/\n    #locations_theme_4 .mainSearchbarWrapper {\n        position: static;\n        background: transparent !important;\n        display: flex;\n        flex-direction: column;\n        align-items: flex-start;\n        gap: .5rem;\n        width: 100% !important;\n        padding: 0 !important;\n        margin: 0 !important;\n    }\n\n    #locations_theme_4 .mainSearchbarWrapper:after {\n        display: none;\n    }\n\n    #locations_theme_4 .innerSearchWrap {\n        color: #222;\n        display: flex;\n        align-items: flex-end;\n        margin-right: 0 !important;\n    }\n    \n    #locations_theme_4 .innerSearchWrap .content-input-search {\n        flex-direction: column;\n        align-items: flex-start;\n    }\n\n    #locationsTheme4MobileFiltersCloseButton {\n        padding: 10px;\n        height: auto;\n        margin: 0;\n        position: absolute;\n        top: 5px;\n        right: 5px;\n        line-height: normal;\n        border: none;\n        font-weight: bold;\n        font-size: 16px;\n    }\n\n    #locations_theme_4 .locationsTheme4FiltersWrapper .rippleFlashL2R:not(#buttonNearMe) {\n        background: var(--candee-primary);\n        border: 2px solid var(--candee-primary) !important;\n        transition: all 0.2s ease !important;\n        padding: 6px 10px;\n        min-height: 38px;\n        display: flex;\n        justify-content: center;\n        align-items: center;\n    }\n\n    #locations_theme_4 .locationsTheme4FiltersWrapper .rippleFlashL2R:not(#buttonNearMe):hover {\n        transform: scale(1.05);\n    }\n\n    #locations_theme_4 .findButt:before {\n        font-family: \"FontAwesome\";\n        content: \"\\f002\";\n        padding-right: 5px;\n        font-size: 1rem;\n        font-weight: normal;\n        position: static;\n        width: auto;\n        margin-right: 0;\n        transition: none !important;\n        animation: none !important;\n    }\n\n    #locations_theme_4 .findButt:active:before {\n        font-family: \"FontAwesome\";\n        content: \"\\f002\";\n        padding-right: 5px;\n        font-size: 1rem;\n        font-weight: normal;\n        position: static;\n        width: auto;\n        margin-right: 0;\n    }\n\n    #locations_theme_4 .content-button-near-me {\n        width: auto;\n        display: inline-block;\n    }\n\n    #locations_theme_4 #buttonNearMe {\n        line-height: normal;\n        background: transparent;\n        border: none;\n        text-decoration: underline;\n        color: #222;\n        padding: 0;\n        font-weight: normal;\n    }\n\n    #locations_theme_4 #buttonNearMe:hover {\n        transform: none;\n        opacity: .7;\n    }\n\n    #locations_theme_4 #buttonNearMe:before {\n        display: none;\n    }\n\n    \/* Select All button *\/\n    #select_all_checkbox {\n        margin: 0 0 0 .5rem;\n        padding: 0;\n        height: auto;\n        border: none;\n        font-size: inherit;\n        text-transform: none;\n        line-height: normal;\n        letter-spacing: normal;\n        font-weight: normal;\n        text-decoration: underline;\n        transform: opacity .2s;\n    }\n\n    #select_all_checkbox:hover {\n        opacity: .7;\n    }\n\n    \/* Filter Checkboxes *\/\n    .locationsTheme4CheckboxFilters {\n        margin-bottom: 1rem;\n    }\n    \n    .locationsTheme4CheckboxFilters .locationsTheme4CheckboxesWrapper {\n        display: flex;\n        flex-wrap: wrap;\n        gap: .5rem;\n    }\n\n    .locationsTheme4CheckboxFiltersLabel {\n        flex-direction: row !important;\n    }\n\n    .candee .locationsTheme4CheckboxFilters .checkboxes li {\n        padding: 0;\n        margin: 0;\n    }\n\n    .locationsTheme4CheckboxFilters .label-checkbox:not(.liCheckboxInhability) {\n        border: 1px solid #ddd;\n        border-radius: 500px;\n        padding: 4px 16px;\n        transition: background .2s;\n        display: flex;\n        align-items: center;\n        gap: .5rem;\n    }\n    \n    .locationsTheme4CheckboxFilters li:not(.liCheckboxInhability) .label-checkbox:not(.liCheckboxInhability) {\n        cursor: pointer;\n    }\n\n    .locationsTheme4CheckboxFilters .label-checkbox:hover {\n        background: #eee;\n    }\n\n    .locationsTheme4CheckboxFilters .liCheckbox_ripple:hover {\n        background: none;\n    }\n\n    .locationsTheme4CheckboxFilters input[type=\"checkbox\"] {\n        display: inline-block;\n        position: relative;\n        top: 0;\n        left: 0;\n        cursor: pointer;\n    }\n\n    .locationsTheme4CheckboxFilters .item-title {\n        margin: 0 !important;\n    }\n\n    .checkboxListItemWrapper.activeCheckbox label {\n        border: 1px solid var(--candee-primary);\n        background: var(--candee-primary);\n        transition: opacity .2s;\n    }\n\n    .checkboxListItemWrapper.activeCheckbox label:hover {\n        background: var(--candee-primary);\n        opacity: .7;\n    }\n\n    .checkboxListItemWrapper.activeCheckbox .item-title {\n        color: white;\n    }\n\n    .locationsTheme4BottomFilters {\n        display: flex;\n        gap: 1rem;\n    }\n\n    \/* Sort by *\/\n    #locations_theme_4 #sortingOptions {\n        width: auto;\n    }\n\n    \/* Facilities and Map Wrapper *\/\n    .locationsTheme4FacilitiesMapWrapper {\n        gap: 1rem;\n        overflow: hidden;\n        margin-top: 1rem;\n        flex-direction: row !important;\n        width: 100%;\n    }\n\n    .locationsTheme4FacilitiesMapWrapper > div {\n        width: 50%;\n        flex-grow: 1;\n        overflow: auto;\n    }\n\n    .locationsTheme4FacilitiesMapWrapper > div::-webkit-scrollbar {\n        opacity: 1;\n        width: 8px;\n    }\n\n    .locationsTheme4FacilitiesMapWrapper > div::-webkit-scrollbar-track {\n        background: rgba(0, 0, 0, .1);\n        border-radius: 10px;\n    }\n\n    .locationsTheme4FacilitiesMapWrapper > div::-webkit-scrollbar-thumb {\n        background: rgba(0, 0, 0, .1);\n        border-radius: 10px;\n    }\n\n    .locationsTheme4FacilitiesMapWrapper > div::-webkit-scrollbar-thumb:hover {\n        background: rgba(0, 0, 0, .2);\n    }\n\n    #locations_theme_4 #locationsSection {\n        padding-right: .5rem;\n        width: 500px;\n        max-width: 50%;\n        min-height: 100%;\n        margin-top: 0;\n    }\n\n    #locatiosn_theme_4 #facilityMapWrapper {\n        width: 70%;\n    }\n\n    \/* Facility Sidebar *\/\n    .locationsTheme4FacilitiesMapWrapper .formattedAddress {\n        padding: 0;\n    }\n\n    #locations_theme_4 #facilities {\n        overflow-y: auto;\n    }\n\n    #locations_theme_4 #search_text {\n        display: flex;\n        flex-direction: row;\n        gap: .5rem;\n        margin-bottom: 1rem;\n    }\n\n    #locations_theme_4 #search_text > * {\n        margin: 0;\n    }\n\n    #locations_theme_4 #button-search {\n        min-width: auto;\n    }\n    \n    #locations_theme_4 #button-search i {\n        top: -1px;\n        display: block;\n    }\n\n\n    \/* Facility Cards *\/\n    #locations_theme_4 .candee_locations_block,\n    #locations_theme_4 .candee_locations_block_address {\n        padding: 0;\n    }\n    \n    #locations_theme_4 .candee_locations_block {\n        padding: 1.5rem 1rem;\n        margin: 0;\n        border: 1px solid transparent;\n    }\n    \n    #locations_theme_4 .candee_locations_block:not(:last-of-type) {\n        border-bottom: 1px solid #eee;\n    }\n\n    #locations_theme_4 .candee_locations_block > div {\n        display: flex;\n        gap: .5rem;\n    }\n\n    #locations_theme_4 .candee_locations_block .candee-columns {\n        float: none;\n    }\n\n    #locations_theme_4 .candee_locations_block .property_image_wrap_2 img {\n        width: 150px !important;\n        height: 95px !important;\n    }\n\n    #locations_theme_4 .candee_locations_block .property_image_wrap_2 {\n        width: 22%;\n        min-width: 150px;\n    }\n\n    #locations_theme_4 .candee_locations_block_title {\n        margin: 0;\n    }\n\n    #locations_theme_4 .property_icons_wrap {\n        display: flex;\n        flex-wrap: wrap;\n        line-height: normal;\n        gap: 8px;\n    }\n\n    #locations_theme_4 .property_icons_wrap li {\n        margin: 0 5px 0 0;\n        list-style: none;\n        background: rgba(0,0,0,.03);\n        padding: 4px 8px;\n        border-radius: 3px;\n        transition: background .2s;\n        cursor: pointer;\n    }\n\n    #locations_theme_4 .property_icons_wrap li:not(.isChecked):hover,\n    #locations_theme_4 .property_icons_wrap li.isChecked {\n        background: rgba(0,0,0,.07);\n    }\n\n    #locations_theme_4 .candee_location_buttons {\n        display: flex;\n        flex-wrap: wrap;\n        gap: 8px;\n        margin-top: .5rem;\n    }\n    \n    #locations_theme_4 .candee_location_buttons a {\n        float: none;\n        display: inline-block !important;\n        width: auto !important;\n        min-width: auto;\n        margin: 0 !important;\n        transition: all 0.2s ease !important;\n    }\n\n    #locations_theme_4 .candee_location_buttons a:hover {\n        transform: scale(1.05);\n    }\n\n    #locations_theme_4 .fadeAdd {\n        opacity: 0;\n        animation: locationFadeIn 1s forwards;\n    }\n\n    #locations_theme_4 .locationFadeUp {\n        opacity: 0;\n        transform: translateY(0);\n        animation: locationFadeUp .5s forwards;\n    }\n\n    @keyframes locationFadeIn {\n        0% {\n            opacity: 0;\n        }\n        \n        30% {\n            opacity: 0;\n        }\n        \n        100% {\n            opacity: 1;\n        }\n    }\n\n    @keyframes locationFadeUp {\n        0% {\n            opacity: 0;\n            transform: translateY(50px);\n        }\n        \n        10% {\n            opacity: 0;\n            transform: translateY(50px);\n        }\n        \n        100% {\n            opacity: 1;\n            transform: translateY(0);\n        }\n    }\n\n    .candeeLocationLoadingWrapper {\n        opacity: .7;\n    }\n\n    .candeeLocationLoadingWrapper > div {\n        gap: 4%;\n        height: 120px;\n        margin: 1.5rem 0;\n    }\n\n    .candeeLocationLoadingWrapper > div > div:first-of-type {\n        max-width: 22%;\n        height: 50%;\n    }\n\n    @media (min-width: 801px){\n        html {\n            overflow: auto !important;\n        }\n\n        #locations_theme_4 .candee_locations_block:hover {\n            border-right: 1px solid #eee;\n            border-bottom: 1px solid #eee;\n            border-left: 1px solid #eee;\n        }\n        \n        #locations_theme_4 .candee_locations_block:first-of-type:hover {\n            border: 1px solid #eee;\n        }\n    }\n\n    \/* Map *\/\n    #locations_theme_4 #facilityMap {\n        min-height: calc(100vh - 60px);\n        height: calc(100vh - 60px);\n        max-height: calc(100vh - 60px);\n    }\n\n    \/* List and Map Toggle Button *\/\n    .locationsTheme4MobileToggleButtons {\n        display: none !important;\n        margin-top: 1rem;\n    }\n\n    .locationsTheme4MobileToggleButtons > button.yellowBTN {\n        float: none;\n        background: transparent;\n        color: #555 !important;\n        border: 1px solid #a1a1a1;\n        height: auto;\n        width: auto;\n        min-width: 0;\n        padding: 10px 15px;\n        border-radius: 3px;\n        display: inline-block !important;\n        margin: 0 7px 0 0;\n    }\n\n    @media (min-width: 801px){\n        .candee .locationsTheme4CheckboxFilters .checkboxes li.liCheckboxInhability:not(.activeCheckbox) label {\n            background: #f6f6f6;\n        }\n\n        #locationsTheme4MobileFiltersCloseButton,\n        #locationsTheme4MobileFiltersApplyButton {\n            display: none !important;\n        }\n    }\n\n    \/* Mobile *\/\n    @media (max-width: 800px){\n        #locations_theme_4 .candee-flex.locationsTheme4FacilitiesMapWrapper  > div,\n        #locations_theme_4 #locationsSection {\n            width: 0 !important;\n            max-width: 0 !important;\n            padding: 0;\n        }\n\n        #locationsSection:not(.activeToggle){\n            display: none;\n        }\n\n        #locations_theme_4 .candee-flex.locationsTheme4FacilitiesMapWrapper #facilityMapWrapper.activeToggle,\n        #locations_theme_4 #locationsSection.activeToggle {\n            width: 100% !important;\n            max-width: 100% !important;\n            min-width: 100% !important;\n        }\n\n        #facilityMapWrapper {\n            min-height: calc(100vh - 60px) !important;\n            height: calc(100vh - 60px) !important;\n            max-height: calc(100vh - 60px) !important;\n        }\n\n        #facilityMap {\n            height: 100% !important;\n            position: relative !important;\n        }\n\n        .locationsTheme4MobileToggleButtons {\n            display: block !important;\n        }\n\n        \/* Filters modal *\/\n        #locationsTheme4MobileFiltersModalWrapper {\n            display: none;\n            z-index: 100;\n            position: relative;\n            height: 100dvh;\n            max-height: 100dvh;\n            width: 100vw;\n            padding: 20px;\n            left: 0;\n            top: 0;\n            position: fixed;\n            align-items: center;\n        }\n\n        #locationsTheme4MobileFiltersWrapperOverlay {\n            height: 100vh;\n            width: 100vw;\n            top: 0;\n            left: 0;\n            z-index: 1;\n            position: fixed;\n            background: rgba(0,0,0,.1);\n        }\n        \n        #locationsTheme4MobileFiltersWrapper {\n            height: auto;\n            max-height: 100%;\n            overflow: auto;\n            background: white;\n            z-index: 2;\n            width: 100%;\n            padding: 20px;\n            box-shadow: 0 9px 16px -6px rgba(0, 0, 0, 0.1);\n            position: relative;\n        }\n\n        .candee .locationsTheme4CheckboxFilters .checkboxes li {\n            width: 100%;\n        }\n\n        .checkboxListItemWrapper.activeCheckbox label {\n            background: transparent !important;\n        }\n\n        .locationsTheme4CheckboxFilters li:not(.liCheckboxInhability) .label-checkbox:not(.liCheckboxInhability),\n        .locationsTheme4CheckboxFilters .label-checkbox:not(.liCheckboxInhability) {\n            border: none;\n        }\n\n        .checkboxListItemWrapper.activeCheckbox .item-title {\n            color: #444;\n        }\n\n        .locationsTheme4BottomFiltersWrapper {\n            margin-top: 1rem;\n        }\n\n        .locationsTheme4BottomFilters {\n            flex-direction: column;\n        }\n\n        #locations_theme_4 .locationsTheme4BottomFilters #button-search {\n            display: none !important;\n        }\n\n        #locations_theme_4 #sortingOptions {\n            width: 100%;\n        }\n\n        #locationsTheme4MobileFiltersApplyButton {\n            margin-top: .5rem 0;\n        }\n    }\n\n    @media (max-width: 600px){\n        #locations_theme_4 .candee_locations_block > div {\n            flex-direction: column;\n        }\n\n        #locations_theme_4 .candee_locations_block .property_image_wrap_2 {\n            min-width: 200px;\n            margin-bottom: .5rem;\n        }\n\n\n        #locations_theme_4 .property_icons_wrap {\n            margin-top: 0;\n        }\n    }\n\n    @media (max-width: 549px){\n        .locationsTheme4BottomFilters {\n            flex-direction: column;\n        }\n\n        #locations_theme_4 #sortingOptions {\n            width: 100%;\n        }\n\n        #locations_theme_4 .locationsTheme4FiltersWrapper #radiusUnitsButton{\n            margin-top: 1rem;\n        }\n    }\n\n    \n    <\/style>\n<div id=\"locations_theme_4\" class=\"candee candee_locations candee-container\">\n        <div class=\"locationsTheme4Breadcrumbs\">\n        <style>\n\t\n\ta.btn-b.candee.yellowBTN, span.btn-b.disabled.current.candee.yellowBTN {\n\t\tbackground: unset;\n    \tcolor: grey!important;\n\t\tpadding: unset;\n\t\tfont-weight: bold;\n\t\ttext-transform: uppercase;\n\t}\n\tspan.btn-b.disabled.current.candee.yellowBTN{\n\t\tcolor: black!important;\n\t}\n\n\ta.btn-b.candee.yellowBTN::after {\n\t\tcontent: '\/';\n\t\tpadding-left: .5rem;\n\t\tpadding-right: .5rem;\n\t}\n\n\t\/* .candee-container-breadcrumb{\n\t\tmargin-bottom: 1rem;;\n\t} *\/\n<\/style>\n    <\/div>\n    \n        <div class=\"locationsTheme4FiltersWrapper\">\n                <div class=\"locationsTheme4SearchbarWrapper\">\n            \n<script>\n    window.addEventListener('DOMContentLoaded', function(event) {\n        \/\/ console.log('DOM fully loaded and parsed');\n        SHARED.setSearchbarButton(window.location.href);\n    });\n    docReady(function() {\n        cQuery('#mainSearchbarWrapper, .innerSearchWrap').submit(function() {\n            console.log(cQuery('#mainSearchbarWrapper input'));\n            alert(\"sadsd\")\n            return false;\n            cQuery('#mainSearchbarWrapper input').addClass('candee_text_loading')\n            return true;\n        });\n    })\n\n<\/script>        <\/div>\n                    <div id=\"locationsTheme4MobileFiltersModalWrapper\">\n                <div id=\"locationsTheme4MobileFiltersWrapperOverlay\"><\/div>\n                <div id=\"locationsTheme4MobileFiltersWrapper\">\n                    <button aria-label=\"Close filters\" id=\"locationsTheme4MobileFiltersCloseButton\">X<\/button>\n                                                                <div class=\"locationsTheme4CheckboxFilters\" role=\"group\" aria-label=\"Filters: Selecting a filter will update the results.\">\n                            <div class=\"locationsTheme4CheckboxFiltersLabel candee-flex\">\n                                <label>Unit Features:<\/label>\n                                <button id=\"select_all_checkbox\" onclick=\"LOCATIONS.toggleCheck()\">Select All<\/button>\n                            <\/div>\n\n                            <ul class=\"checkboxes locationsTheme4CheckboxesWrapper\">\n                                <li id=\"liCheckbox_1\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_1' data-index='1' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Basement Level\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Basement Level\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='basement level'><div class=\"item-title\">Basement Level<\/div><\/label><\/li><li id=\"liCheckbox_2\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_2' data-index='2' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Drive Up\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Drive Up\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='drive up'><div class=\"item-title\">Drive Up<\/div><\/label><\/li><li id=\"liCheckbox_3\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_3' data-index='3' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Exterior Door\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Exterior Door\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='exterior door'><div class=\"item-title\">Exterior Door<\/div><\/label><\/li><li id=\"liCheckbox_4\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_4' data-index='4' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Ground Level\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Ground Level\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='ground level'><div class=\"item-title\">Ground Level<\/div><\/label><\/li><li id=\"liCheckbox_5\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_5' data-index='5' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Heated\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Heated\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='heated'><div class=\"item-title\">Heated<\/div><\/label><\/li><li id=\"liCheckbox_6\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_6' data-index='6' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Indoor Parking\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Indoor Parking\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='indoor parking'><div class=\"item-title\">Indoor parking<\/div><\/label><\/li><li id=\"liCheckbox_7\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_7' data-index='7' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Inside\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Inside\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='inside'><div class=\"item-title\">Inside<\/div><\/label><\/li><li id=\"liCheckbox_8\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_8' data-index='8' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Interior Door\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Interior Door\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='interior door'><div class=\"item-title\">Interior Door<\/div><\/label><\/li><li id=\"liCheckbox_9\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_9' data-index='9' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Outdoor Parking\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Outdoor Parking\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='outdoor parking'><div class=\"item-title\">Outdoor parking<\/div><\/label><\/li><li id=\"liCheckbox_10\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_10' data-index='10' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Parking\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Parking\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='parking'><div class=\"item-title\">Parking<\/div><\/label><\/li><li id=\"liCheckbox_11\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_11' data-index='11' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Power\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Power\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='power'><div class=\"item-title\">Power<\/div><\/label><\/li><li id=\"liCheckbox_12\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_12' data-index='12' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Temperature Controlled\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Temperature Controlled\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='temperature controlled'><div class=\"item-title\">Temperature Controlled<\/div><\/label><\/li><li id=\"liCheckbox_13\" tabindex=\"0\" class=\"checkboxListItemWrapper ripple liCheckbox_ripple\"><label class=\"label-checkbox\"><input type='checkbox' id='checkbox_13' data-index='13' class='checkbox-2-locations masterFeatureFilterCheckbox input googleTagManager' data-google='{\"facname\":\"Upper Levels\",\"cat\":\"CAS3-filters\",\"action\":\"filter-click\",\"value\":\"Upper Levels\",\"label\":\"feature-locations\"}' style='accent-color: #25B9ED' value='upper levels'><div class=\"item-title\">Upper Levels<\/div><\/label><\/li>                            <\/ul>\n                            \n                            <div class=\"locationsTheme4FilterSearch hidden\"><input id=\"search_feature\" onkeyup=\"LOCATIONS.search()\" class=\"masterFeatureFilterCheckbox searchFeature googleTagManager\" type=\"text\" placeholder=\"Search location, type and press enter\"><\/div>\n                        <\/div> <!-- End filter checkboxes -->\n                                    \n                                        <div class=\"locationsTheme4BottomFiltersWrapper\">\n                        <div class=\"locationsTheme4BottomFilters\">\n                            <div class=\"locationsTheme4SortByWrapper\">\n                                <label for=\"sortingOptions\">Sort by<\/label>\n                                <select id=\"sortingOptions\" aria-label=\"Sort by\">\n                                    <option value=\"0\" selected>Sort by Distance<\/option>\n                                    <option value=\"1\">Sort by Rating<\/option>\n                                <\/select>\n                            <\/div>\n                            <div class=\"locationsTheme4NameSearchWrapper\">\n                                <label for=\"search_text\">Search by Name<\/label>\n                                <div id=\"search_text\" class=\"candee-flex\">\n                                    <input id=\"search_name\" class=\"masterFeatureFilterInput googleTagManager\" type=\"text\" placeholder=\"Enter Facility Name\">\n                                    <button id=\"button-search\" onclick=\"LOCATIONS.searchName()\" class=\"yellowBTN textAlignCenter candeeButtonAni1\"><i class=\"fa fa-search\"><\/i><\/button>\n                                <\/div>\n                            <\/div>\n                        <\/div>\n                    <\/div>\n                    <div style=\"display: flex; justify-content: center; align-items: center;\">\n                        <button id=\"locationsTheme4MobileFiltersApplyButton\" class=\"yellowBTN background_1\" aria-label=\"Apply Filters\">Apply Filters<\/button>\n                    <\/div>\n                <\/div>\n            <\/div> <!-- locationsTheme4MobileFiltersModalWrapper -->\n            <\/div>\n\n    <div class=\"locationsTheme4MobileToggleButtons\">\n        <button id=\"toggleListMap\" class=\"yellowBTN\" data-target=\"map\" aria-label=\"Show map\"><i class=\"fa fa-map fa-fw\"><\/i><\/button>\n        <button id=\"toggleFiltersList\" class=\"yellowBTN\" data-toggle=\"show\" aria-label=\"Show filters\"><i class=\"fa fa-filter fa-fw\"><\/i><\/button>    <\/div>\n\n        <div class=\"locationsTheme4FacilitiesMapWrapper candee-flex\">\n        <div id=\"locationsSection\" class=\"candeeResultsContainer activeToggle\" role=\"group\" aria-label=\"Search results list\">\n            \n                        <div>\n                <div id=\"facilities\" class=\"candee_locations_main_wrapper\"><\/div>\n                <div class=\"noResults candee_translate\">Sorry Search Combination<\/div>\n                <div class=\"candeeLocationLoadingWrapper\">\n                    <div class=\"candee-flex\"><div class=\"candee_text_loading\"><\/div><div class=\"candee_text_loading\"><\/div><\/div>\n                    <div class=\"candee-flex\"><div class=\"candee_text_loading\"><\/div><div class=\"candee_text_loading\"><\/div><\/div>                <\/div>\n            <\/div>\n        <\/div>\n        \n                <div id=\"facilityMapWrapper\"><style>\n.candeeFacilityMap{\n    width:100%;\n    text-align:center;\n    overflow:hidden;\n    position:relative;\n    height: 400px;\n}\n\n.facilityMap{\n    position: absolute;\n    top: 0px;\n    width: 100%;\n    display:none;\n}\n\n@media (max-width: 550px) {\t\n    .candeeFacilityMap{\n    height: 300px;\n    }\n}\n<\/style>\n\n<div id=\"facilityMap\" class=\"candeeFacilityMap\"><\/div>\n\n<script>\n    docReady(function() {\n                    MAP.element_id = 'facilityMap';\n            MAP.loadallGlobal = 'false';\n                \n        MAP.preselect = 'false';\n        MAP.loadMap(false, false);\n    });\n<\/script>\n<\/div>\n    <\/div>\n<\/div>\n\n<script>\n    let lastUnit = '';\n    let countUnits = 33;\n    let dataFacillity = {};     \n    let filterFeature = JSON.parse('[{\"text\":\"\",\"icon\":\"icon-double-door-opened\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Basement Level\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Drive Up\",\"icon\":\"icon-elevator\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Exterior Door\",\"icon\":\"icon-home\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Ground Level\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Heated\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Indoor Parking\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Inside\",\"icon\":\"icon-loading-unloading-area\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Interior Door\",\"icon\":\"icon-double-door-opened\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Outdoor Parking\",\"icon\":\"icon-down-arrow\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Parking\",\"icon\":\"icon-car-inside-a-garage\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Power\",\"icon\":\"icon-flash\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Temperature Controlled\",\"icon\":\"icon-air-conditioner\",\"is_check\":0,\"is_clickeable\":true},{\"text\":\"Upper Levels\",\"icon\":\"icon-stairs\",\"is_check\":0,\"is_clickeable\":true}]');     \n    let dataFacilityFilter  = [];\n    let dataLocationMaps  = [];\n    let showedFacilities = 0;\n    let countFacilityShowPerSecction = 10; \/\/ Location limit before getting more\n    let countDataFacillity = 0;\n    let isSingle = 0;\n    let sortingFacilities = 0;\n    let processingInformationn = false;\n    let sortingName = '';\n    let updateResult = true;\n    let registerSponser = true;                                        \n    let addressGeoLat = '';\n    let addressGeoLng = '';\n    let searchAddress='';\n    \n    \/* Fetch more locations observer (when reaching the bottom of the list) *\/\n    let unitsObserver = new IntersectionObserver((entries, unitsObserver) => {\n\t\tentries.forEach(unit => {\n\t\t\tif (unit.isIntersecting){\n                updateResult = false;\n\t\t\t\tLOCATIONS.showMoreFacility();\n\t\t\t}\n\t\t});\n\t}, {\n\t\trootMargin: '0px 0px 200px 0px',\n\t\tthreshold: 1.0\n\t});\n    \n    \/* Sticky Map *\/\n    function checkStickyMap(){\n        const locationsMapWrapper = document.querySelector('.locationsTheme4FacilitiesMapWrapper');\n        const locationsListEl = document.querySelector('#locationsSection');\n        const facilityMapEl = document.querySelector('#facilityMap');\n        const unitsListElOfssets = document.querySelector('#locationsSection').getBoundingClientRect();\n        const navHeight = 60;\n        \n        const containerWidth = document.querySelector('#facilityMapWrapper').getBoundingClientRect().width \/ window.innerWidth * 100;\n        if (locationsListEl.getBoundingClientRect().height > window.innerHeight){ \/\/ Only sticky if the location list height is tall enough for a full height map\n            if ((unitsListElOfssets.top - navHeight) < 0 && unitsListElOfssets.bottom > window.innerHeight && window.innerWidth > 800){ \/\/ Sticky when the locations list hits the top of the screen (minus a navbar offset)\n                facilityMapEl.style.width = `${containerWidth}vw`; \/\/ Change the map width so it doesn't overflow past the screen\n                facilityMapEl.style.position = 'fixed'; \/\/ \n                facilityMapEl.style.top = `${navHeight}px`;\n                locationsMapWrapper.style.aliWgnAitems = 'flex-start';\n            } else { \/\/ We're below the locations list\n                facilityMapEl.style.width = '100%';\n                facilityMapEl.style.position = 'relative';\n                locationsMapWrapper.style.alignItems = (unitsListElOfssets.top - navHeight) < 0 ? 'flex-end' : 'flex-start';\n                facilityMapEl.style.top = `0`;\n            }\n        } else {\n            facilityMapEl.style.width = '100%';\n            facilityMapEl.style.position = 'relative';\n            locationsMapWrapper.style.alignItems = 'flex-start';\n            facilityMapEl.style.top = `0`;\n        }\n    }\n    \n    document.addEventListener('scroll', () => {\n        checkStickyMap();\n    });\n    \n    \n    window.addEventListener('resize', () => {\n        checkStickyMap();\n    });\n\n    \/* Function to toggle map or locations list on mobile *\/\n    function toggleMapLocationsList(toShow){\n        if (toShow === 'map'){ \/\/ Show map, hide locations list\n            document.getElementById('facilityMapWrapper').classList.add('activeToggle');\n            document.getElementById('locationsSection').classList.remove('activeToggle');\n        } else {\n            document.getElementById('facilityMapWrapper').classList.remove('activeToggle');\n            document.getElementById('locationsSection').classList.add('activeToggle');\n        }\n        togglePageSwapButton(toShow);\n    }\n\n    \/* Function to handle the toggle map or locations button *\/\n    const pageToggleButton = document.getElementById('toggleListMap');\n    function togglePageSwapButton(toShow){\n        if (toShow === 'map'){\n            \/\/ pageToggleButton.innerHTML = `<i class=\"fa fa-list\"><\/i> ${SHARED.candee_translate('Show locations list')}`;\n            pageToggleButton.innerHTML = `<i class=\"fa fa-list fa-fw\"><\/i>`;\n            pageToggleButton.setAttribute('data-target', 'locations');\n            pageToggleButton.setAttribute('aria-label', SHARED.candee_translate('Show locations list'));\n        } else {\n            \/\/ pageToggleButton.innerHTML = `<i class=\"fa fa-map\"><\/i> ${SHARED.candee_translate('Show map')}`;\n            pageToggleButton.innerHTML = `<i class=\"fa fa-map fa-fw\"><\/i>`;\n            pageToggleButton.setAttribute('data-target', 'map');\n            pageToggleButton.setAttribute('aria-label', SHARED.candee_translate('Show map'));\n        }\n    }\n\n    pageToggleButton.addEventListener('click', () => { \/\/ Toggle pages when clicking the page toggle button\n        const currentTarget = pageToggleButton.getAttribute('data-target');\n        toggleMapLocationsList(currentTarget);\n    });\n\n    \n            \/* Filters Mobile Modal *\/\n        const mobileFiltersToggleButton = document.getElementById('toggleFiltersList');\n        const filtersModalEl = document.getElementById('locationsTheme4MobileFiltersModalWrapper');\n        mobileFiltersToggleButton.addEventListener('click', () => { \/\/ Toggle pages when clicking the page toggle button\n            const showHide = mobileFiltersToggleButton.getAttribute('data-toggle');\n            filtersModalToggle(showHide);\n        });\n\n        function filtersModalToggle(showHide){\n            if (showHide === 'show'){\n                mobileFiltersToggleButton.setAttribute('data-toggle', 'hide');\n                mobileFiltersToggleButton.setAttribute('aria-label', SHARED.candee_translate('Hide filters'));\n                filtersModalEl.style.display = 'flex';\n                filtersModalEl.classList.add('locationFadeUp');\n                document.getElementsByTagName('html')[0].style.overflow = 'hidden';\n            } else {\n                mobileFiltersToggleButton.setAttribute('data-toggle', 'show');\n                mobileFiltersToggleButton.setAttribute('aria-label', SHARED.candee_translate('Show filters'));\n                filtersModalEl.style.display = '';\n                filtersModalEl.classList.remove('locationFadeUp');\n                document.getElementsByTagName('html')[0].style.overflow = '';\n                \n                LOCATIONS.searchName();\n            }\n        }\n\n        document.querySelectorAll('#locationsTheme4MobileFiltersWrapperOverlay, #locationsTheme4MobileFiltersCloseButton, #locationsTheme4MobileFiltersApplyButton').forEach(el => {\n            el.addEventListener('click', () => {\n                filtersModalToggle('hide');\n            });\n        });\n        \n    \/* Location fetching functionality *\/\n    MAP.locations = {}; \/\/ Set the locations to empty so they are not fetched right away\n\n    var LOCATIONS = {\n        initialize: function(laty, longy){\n            if(laty != '' && longy != ''){\n                cQuery('.noGeoData').hide();\n                addressGeoLat = laty;\n                addressGeoLng = longy;\n\n                const urlParams = new URLSearchParams(window.location.search);\n                const updatedLocInput =!SHARED.isset(urlParams.get('address'));\n                \n                if (searchAddress === ''){\n                    let loadAddress = true; \/\/ Only get user address if an address was not searched\n                    if (SHARED.isset(LOCALSTORAGE.getItem('candee_storage_address'))){\n                        let candee_storage_address = JSON.parse(LOCALSTORAGE.getItem('candee_storage_address'))\n                        if ((candee_storage_address.lat == laty && candee_storage_address.long == longy)){\n                            loadAddress = false;\n                            if (updatedLocInput){\n                                cQuery(\".searchFormattedAddress\").html( candee_storage_address.formatted_address)\n                                cQuery(\".locInput\").val( candee_storage_address.formatted_address)\n                            }\n                        }\n                        \n                        searchAddress = candee_storage_address.formatted_address;\n                    }\n    \n                    if (loadAddress){\n                        cQuery.ajax({\n                            type: 'POST',\n                            url: ajaxurl,\n                            data: {\n                                action: 'candee_get_addredd_by_coordinates', \/\/ PHP function from candee.php\n                                ajax_data: { lat: laty, long: longy },\n                            },\n                            success: function(response){\n                                if(response){\n                                    let data  = JSON.parse(response);\n                                    if(updatedLocInput){\n                                        cQuery(\".searchFormattedAddress\").html( data.results.formatted_address)\n                                        cQuery(\".locInput\").val( data.results.formatted_address)\n                                    }\n                                    candee_storage_address = JSON.stringify({ lat: laty, long: longy, formatted_address:data.results.formatted_address})\n                                    searchAddress = data.results.formatted_address;\n                                    LOCALSTORAGE.setItem('candee_storage_address', candee_storage_address);\n                                }\n                            },\n                        });\n                    }\n                }\n            }\n            \n            MAP.clearMarkers();\n            cQuery(\"#search_name\").on('keyup', function (e) {\n            var keycode = e.keyCode || e.which;\n                if (keycode == 13) {\n                    LOCATIONS.searchName();\n                }\n            });\n\n                        cQuery(document).on('mouseenter', '#facilities .candee_locations_block', (el) => {\n                if (window.innerWidth > 800){\n                    const target = cQuery(el.target).hasClass('candee_locations_block') ? cQuery(el.target) : cQuery(el.target).closest('.candee_locations_block');\n                    const propid = target.attr('data-propid'); \/\/ Get prop id for the block;\n                    const lat = target.attr('data-lat'); \/\/ Get prop id for the block;\n                    const lng = target.attr('data-lng'); \/\/ Get prop id for the block;\n                    if (lat && lng && propid && MAP.allMarkers[propid]){\n                        google.maps.event.trigger(MAP.allMarkers[propid], 'click');\n                        MAP.gmap.setZoom(candee_js_variables.googleMapZoom);\n                        setTimeout(() => {\n                            MAP.gmap.panTo(MAP.allMarkers[propid].position);\n                        });\n                    }\n                }\n            });\n            \n            \/* Functionality to filter buttons on location cards *\/\n            cQuery(document).on('click', '#locations_theme_4 .property_icons_wrap li', el => {\n                const filterTarget = cQuery(el.target).attr('data-filter');\n                if (filterTarget && filterTarget !== '' && cQuery(`.liCheckbox_ripple:not(.liCheckboxInhability) input[value=\"${filterTarget}\"]`).length > 0){\n                    cQuery(`.liCheckbox_ripple input[value=\"${filterTarget}\"]`).first().click();\n                    checkStickyMap();\n                    cQuery('html, body').animate({ scrollTop: (document.querySelector('.locationsTheme4FacilitiesMapWrapper').offsetTop + 60) }, 500);\n                }\n\n                if (window.innerWidth <= 800){\n                    LOCATIONS.searchName();\n                }\n            });\n            \n            LOCATIONS.repinMap();\n            \/\/listen for google_maps_loaded\n            cQuery('body').on('google_maps_loaded', function( event, param1, param2 ) {\n                \/\/ Sort by distance\n                LOCATIONS.sortByDistance(\"data-distance\", \".candee_locations_main_wrapper\", \".candee_locations_block\", \"asc\");\n                \/\/ Set map click handler\n                cQuery(document).off('click', '.goToMapmarker').on('click', '.goToMapmarker', function(e){\n                    e.preventDefault();\n                    if (window.innerWidth <= 800){\n                        toggleMapLocationsList('map');\n                        cQuery('html, body').animate({ scrollTop: (document.querySelector('.locationsTheme4FacilitiesMapWrapper').offsetTop + 60) }, 0);\n                    }\n\n                    var thisMarker  = cQuery(this).attr('data-marker');\n                    var thisLat     = cQuery(this).attr('data-lat');\n                    var thisLng     = cQuery(this).attr('data-lng');\n\n                    \/\/ Reset all icons\n                    MAP.allMarkers.forEach(function(element) {\n                        element.setIcon(MAP.defaultMarker); \n                    });\n\n                    google.maps.event.trigger(MAP.allMarkers[thisMarker], 'click'); \/\/ Not sure why this was put here\n                    MAP.gmap.setCenter({lat: +thisLat, lng: +thisLng});\n                });\n\n                cQuery(document).trigger('candee_locations_distance_organized');\n                \n                LOCATIONS.loadMiniPitches();\n            }); \/\/ End google map on load\n        }, \/\/ End initialize\n\n\t\tactivateObserver : () => {\n\t\t\tconst unitOnScreem = document.querySelectorAll('#facilities .candee_locations_block.clickandstor:not(.notWithinRadius)');\n\t\t\tlet numberUnitsListed = unitOnScreem.length;\n\n\t\t\tif (lastUnit){\n\t\t\t\tunitsObserver.unobserve(lastUnit);\n\t\t\t}\n\n\t\t\tif (numberUnitsListed > 0 && numberUnitsListed < countUnits){\n\t\t\t\tlastUnit = unitOnScreem[numberUnitsListed - 5]; \/\/ Location to be scrolled on before getting more locations (5th from the bottom)\n\t\t\t\tunitsObserver.observe(lastUnit);\n\t\t\t}\n\t\t},\n        \n        getFacilities: async( data = [])=> {\n            data.searchAddress = searchAddress;\n            data.addressGeoLat = addressGeoLat;\n            data.addressGeoLng = addressGeoLng;\n            \/\/ data.keySession='';\n            data.searchRadius='20000';\n            data.showFilterForFacility='0';\n            data.lang='en';\n            data.registerSponser = registerSponser;\n            data.sortingFacilities = sortingFacilities;\n            data.keywords_filter='false';\n            data.keywords='';\n            data.current_url = SHARED.getCurrentUrl(); \/\/ Current page url\n            data.sortOnMain = 'true';\n\n            let result;\n            try {\n                result = await cQuery.ajax({\n                    url: ajaxurl,\n                    type: 'POST',\n                    data: {\n                        action: 'candee_load_locations_facilities', \/\/ PHP function from candee.php\n                        ajax_data: data,\n                    },\n                    dataType:'JSON'\n                });\n                processingInformationn = false;\n                if(result.state) {\n                    registerSponser = false;\n                    return result;\n                }\n\n                return [];\n\n            } catch (error) {\n                processingInformationn = false;\n                console.error(error);\n            }\n\n            LOCATIONS.loadMiniPitches();\n        },\n        repinMap: function(data=dataFacillity){\n            LOCATIONS.removeAllFacilities();\n            LOCATIONS.showMoreFacility();\n        },\n        drawFacility: async (data)=>{\n            let locationReviewsCount = data.length;\n\n            await data.map(value => {\n                value.data_show_fac_phone = SHARED.isset(value.data_show_fac_phone) ? value.data_show_fac_phone : false;\n                                \/\/ console.log(value);\n                let classSponsoredFacility = '';\n                let sponsored = SHARED.isset(value.sponsored_location) ? value.sponsored_location : 0;\n                if (sponsored === 1){\n                    classSponsoredFacility = 'sponsored_facility';\n                }\n                let facility =`\n                    <div id=\"div-facility_${value.prop_id}\" class=\"candee_locations_block main-facility-block candee_locations_block main-facility-block fadeAdd facilityMasterData lineItem clickandstor\n                    ${classSponsoredFacility}\" \n                        data-propid=\"${value.prop_id}\"\n                        data-lat=\"${value.lat}\" \n                        data-lng=\"${value.lng}\" \n                        data-distance=\"${value.distanceSort}\"\n                >\n                    <div>`;\n                    if(value.data_show_fac_image!== 'hide'){\n                        facility+=`\n                            <div class=\"property_image_wrap_2\">\n                                <img decoding=\"async\" itemprop=\"image\" onerror=\"SHARED.imgError(this);\" src=\"${value.url_fac_image}\" alt=\"${SHARED.candee_translate('Image of')} ${value.facility_name}\" loading=\"lazy\" \/>`;\n\n                        if(value.reviews_total && value.reviews_average ) {\n\n                            facility+=`<div class=\"candee_locations_rating\" \n                                aria-label=\"${value.reviews_average} ${SHARED.candee_translate('star rating', candee_js_variables.lang)}\">\n                                    ${value.reviews_star_rating}\n                                <span class=\"smallInfo\" aria-label=\"${value.reviews_total} ${SHARED.candee_translate('reviews', candee_js_variables.lang)}\">(${value.reviews_total})<\/span>\n                                <\/div>`;\n                        }\n                        facility+=`<\/div>`;\n                    }\n                   \n                    facility+=`\n                        <div class=\"${value.data_fac_data_col} candee-columns property_info_filter_wrap\">\n                            ${value.featured_status == 1 ? `<div class=\"candeeFeaturedFacilityLabel\">${SHARED.candee_translate('Featured Location', candee_js_variables.lang).toUpperCase()}<\/div>` : ''}\n                            <div><\/div>\n                            <div class=\"candee_locations_block_title bold\" ${((value.reviews_total != null && value.reviews_average != null) ? 'style=\"margin-bottom: 0;\"' : '')} itemprop=\"name\">\n                                <a href=${value.data_google_rent_link} title=\"${value.facility_name}\" tabindex=\"-1\" >${SHARED.candee_translate(value.facility_name, candee_js_variables.lang)}<\/a>\n                            <\/div>`\n                            \n                            if(value.facility_phone){ \n                                facility+=`<div class=\"locationPhoneBold\">\n                                    ${SHARED.candee_translate('Call', candee_js_variables.lang)}\n                                    : <a itemprop=\"telephone\" aria-label=\"Call us ${value.facility_phone}\" href=\"tel:  ${value.facility_phone}\"> ${value.facility_phone}<\/a>\n                                <\/div>\n                                    `\n                             } \n                            \n                             if(isSingle == 0){ \n\n                                \/\/ \/blockDis =  SHARED.getDistance(addressGeoLat, addressGeoLng, +value.lat, +value.lng);\n                                distanceText = (SHARED.candee_translate('Distance', candee_js_variables.lang)+': ');\n                                value.distanceSort =parseFloat(value.distanceSort);\n                                if(candee_js_variables.measurement == 'metric'){\n                                    distanceText += SHARED.candee_convert_to_metric(Number.parseFloat(value.distanceSort).toFixed(1), 'miles', candee_js_variables.lang, false);\n                                } else {\n                                    distanceText += Number.parseFloat(value.distanceSort).toFixed(1)+' '+SHARED.candee_translate('Miles', candee_js_variables.lang);\n                                }\n                    \n                                facility+=`<div class=\"candeeDistance\">${distanceText}<\/div>`;\n                            }\n\n                            let facPhone = value.data_show_fac_phone == true && SHARED.isset(value.facility_phone) && value.facility_phone !== '' ? `<a itemprop=\"telephone\" href=\"tel:${value.facility_phone}\">${value.facility_phone}<\/a>` : '';\n\n                            facility+=`\n                            <div class=\"candee_locations_block_address\" itemprop=\"name\">\n                                <div itemprop=\"address\" itemscope=\"\" itemtype=\"http:\/\/schema.org\/PostalAddress\">\n                                    <div class=\"candee_street_address\">\n                                        ${value.facility_address}\n                                    <\/div>\n                                    <div class=\"candee_city_state_zip\">\n                                        ${value.facility_city} \n                                        ${value.facility_region} \n                                        ${value.facility_zipcode}\n                                    <\/div>\n                                <\/div>\n                                ${facPhone}\n                            <\/div>\n                            ${(value.featured_status == 1 && value.featured_banner_text) ? `<div class=\"candeeFeaturedBannerLabel\">${value.featured_banner_text}<\/div>` : ''}                          \n                            `;\n\n                            \n                            facility += `<div class=\"candeeLocationOffering\"><\/div>`;\n                            \n\n                            \n                            facility += `<div class=\"candeeLocationStartingPrice\"><\/div>`;\n                            \n\n                            if (value.location_card_description && value.location_card_description !== ''){\n                                facility += `<div class=\"candee_location_description\" style=\"margin-top: .7rem; line-height: 1.5rem;\">${value.location_card_description}<\/div>`;\n                            }\n                            \n                            if (value.facility_features && value.facility_features_hiden_icons != 'true'){\n                                icons = value.facility_features;\n                                icons = icons.filter(item => item.text !='');\n                                if(icons.length > 0){\n                                    facility +=`<ul class=\"property_icons_wrap\">`;\n                                            icons.map(item =>{\n                                                if(!(SHARED.isset(item.label) && item.label != '' )) {\n                                                    item.label = item.text;\n                                                    item.feature = item.text;\n                                                    item.icon = SHARED.createFeatureIcon(item.text);\n                                                }\n                                                let checked = dataFacilityFilter.find(itemFilter => itemFilter.toLowerCase() == item.feature.toLowerCase());\n                                                facility+=`<li data-filter=\"${item.feature}\" class=\"${checked ? 'isChecked' : ''}\">${item.icon} ${item.feature}<\/li>`;\n                                            });\n                                    facility +=` <\/ul>`;\n                                }\n                            }\n                            \n                            facility+=`<div class=\"candee_location_buttons\">`;\n                            \n                                if (value.data_show_map_buttons !== 'hide'){ \n                                    facility+=`<a tabindex=\"0\" \n                                        class=\"goToMapmarker yellowBTN background_1 action rippleFlashL2R googleTagManager\" \n                                        data-google='${JSON.stringify(value.data_google_map)}' \n                                        aria-label=\"Show ${value.facility_name} on map\" \n                                        title=\"Show ${value.facility_name} on map\" \n                                        href=\"#!\" \n                                        data-marker=\"${value.prop_id}\" \n                                        data-lat=\"${value.lat}\" \n                                        data-lng=\"${value.lng}\">\n                                            ${SHARED.candee_translate('View on Map')}\n                                        <\/a>`;\n                                } \n                                    \n                                facility+=`<a \n                                        tabindex=\"0\" \n                                        class=\"yellowBTN background_1 action rippleFlashL2R goToLocation googleTagManager\" \n                                        data-google='${JSON.stringify(value.data_google_rent)}' \n                                        aria-label=\"${SHARED.candee_translate('More information about', candee_js_variables.lang)} ${value.facility_name}\" \n                                        title=\"More information about ${value.facility_name}\" \n                                        href=\"${value.data_google_rent_link}\">\n                                            ${SHARED.candee_translate(value.data_google_location_rent_button_text)}\n                                        <\/a>`\n                                \n                                if (value.supplies_link.includes('http')){\n                                    facility+=`<a \n                                            tabindex=\"0\" \n                                            class=\"yellowBTN background_1 action rippleFlashL2R googleTagManager\" \n                                            data-google='${JSON.stringify(value.data_google_supplies)}' \n                                            aria-label=\"${SHARED.candee_translate('View supplies')}\" \n                                            title=\"${SHARED.candee_translate('View supplies')}\" \n                                            href=\"${value.supplies_link}\">\n                                                ${SHARED.candee_translate('Supplies')}\n                                            <\/a>`\n                                }\n                                \n                                                            \n                            facility+=`<\/div>`;\n                    facility+=`<\/div>\n                    <\/div>\n                <\/div>\n                `;\n\n                if (cQuery(`#div-facility_${value.prop_id}`).length === 0) {\n                    cQuery(\"#facilities\").append(facility);\n                    LOCATIONS.loadMiniPitches(value.prop_id);\n                }\n            });\n            \n            setTimeout(() => { checkStickyMap(); }, 100); \/\/ Timeout needed due to location cards fading in\n            \n            cQuery('.candeeLocationLoadingWrapper').hide();\n            \n            LOCATIONS.activateObserver();\n            showedFacilities+= data.length;\n\n            if (locationReviewsCount == 0){\n                cQuery('#sortingOptions').hide();\n                cQuery('#search_name').hide();\n            } else {\n                cQuery('#sortingOptions').removeClass('hidden').show();\n                cQuery('#search_name').removeClass('hidden').show();\n                cQuery('#button-search').removeClass('hidden').show();\n            }\n\n            if ('' == ''){ \/\/ Only update cards with user location if search was not made\n                LOCATIONS.updateLongLat();\n            }\n            \n            if (updateResult) {\n                LOCATIONS.setTotalLocations();\n            } else {\n                updateResult = true;\n            }\n        },\n        drawFacilityPin: async (data)=>{\n            if (data.length != dataLocationMaps.length){\n                if (updateResult) {\n                    dataLocationMaps = [];\n                    MAP.clearMarkers();\n                }\n                \n                await data.map(value => {\n                    var dataMarkerTemplate = {\n                        name: value.name,\n                        address: value.address,\n                        longitude: value.longitude,\n                        latitude: value.latitude,\n                        city: value.facility_city,\n                        state: value.facility_region,\n                        zip: value.facility_zipcode,\n                        link: value.link,\n                        map_custom_link: value.map_custom_link || '',\n                    };\n\n                    var info = MAP.markerTemplate(dataMarkerTemplate);\n                    \n                    dataLocationMaps.push({\n                        info,\n                        lat: value.latitude,\n                        lng: value.longitude,\n                        prop_id: value.prop_id\n                    });\n                });\n                \n                let allowMapRedraw = '' === '' && LOCATIONS.mapLoaded === true ? false : true;\n                allowMapRedraw = !document.getElementById('search_name') || document.getElementById('search_name').value !== '' ? true : allowMapRedraw;\n                allowMapRedraw = MAP.allMarkers.length === 0 ? true : allowMapRedraw;\n                \n                if (allowMapRedraw === true){ \/\/ Load the map only once if no location is being searched\n                    LOCATIONS.mapLoaded = true;\n                    MAP.setMapLocations(dataLocationMaps);\n                    cQuery(document).trigger('locations_side_map_loaded');\n                }\n            }\n        },\n\n        mapLoaded: false,\n        initialMapCentered: false,\n\n        removeAllFacilities: () =>{\n            dataLocationMaps  = [];\n            showedFacilities = 0;\n            const list = document.getElementById(\"facilities\");\n\n            if (list.hasChildNodes()) {\n                while (list.hasChildNodes()) {\n                    list.removeChild(list.firstChild);\n                }\n            }\n        },\n\n        showMoreFacility: async ()=> {\n            facilityShowed = [];\n            \n            cQuery.each(cQuery('.candee .candee_locations_block:not(.notWithinRadius)'), function( index, value ) {\n                if (cQuery(this).attr('data-propid')) {\n                    facilityShowed.push(cQuery(this).attr('data-propid'));\n                }\n            });\n\n            cQuery('.liCheckbox_ripple').addClass('liCheckboxInhability')\n            cQuery('.liCheckbox_ripple input[type=checkbox]').attr('disabled', true);\n\n            if(!processingInformationn){\n                processingInformationn = true;\n            } else {\n                return false;\n            }\n            cQuery('.candeeLocationLoadingWrapper').show();\n            cQuery('#show-more-facility').addClass(\"hidden\");\n            \n            data = await LOCATIONS.getFacilities({\n                notInclude: facilityShowed,\n                sortingName,\n                filterFeature: dataFacilityFilter,\n                countShowPerSecction: countFacilityShowPerSecction \n            })\n            cQuery('.candeeLocationLoadingWrapper').hide();\n            \n            if(!SHARED.isset(data.data) || data.data.length == 0){\n                cQuery('.noResults.candee_translate').show();\n                cQuery('.candeeLocationLoadingWrapper').hide();\n                cQuery('.totalRentals').text('0');\n                toggleMapLocationsList('list');\n                \n                \/\/ Reactivate all checkboxes so they can be disabled\n                cQuery('.liCheckbox_ripple').removeClass('liCheckboxInhability')\n                cQuery('.liCheckbox_ripple, .liCheckbox_ripple input').attr(\"disabled\", false);\n                return false\n            }\n\n            countDataFacillity = data.count\n            countUnits = data.count\n            LOCATIONS.habilityFilterFeature(data.filterHability);\n            LOCATIONS.drawFacility(data.data);\n            LOCATIONS.drawFacilityPin(data.data_ping);\n\n            if ((facilityShowed.length + countFacilityShowPerSecction) < countDataFacillity ){\n                cQuery('#show-more-facility').removeClass(\"hidden\");\n            }\n            \n                    },\n\n        checkFilter : async(id) =>{\n            if(!SHARED.isset(filterFeature[id])){\n                return false;\n            }\n            let checked = cQuery('#checkbox_'+id).is(':checked');\n\n            filterFeature[id].is_clickeable = !checked;\n            filterFeature[id].is_check = checked;\n            text = filterFeature[id].text;\n            if(checked){\n                dataFacilityFilter.push(text)\n            }\n            else {\n                dataFacilityFilter = dataFacilityFilter.filter(item=> item !== text)\n            }\n\n            const list = document.getElementById(\"facilities\");\n\n            if (list.hasChildNodes()) {\n                while (list.hasChildNodes()) {\n                    list.removeChild(list.firstChild);\n                }\n            }\n            \n            if (window.innerWidth > 800){\n                cQuery('#show-more-facility').addClass(\"hidden\");\n                await LOCATIONS.removeAllFacilities();\n                \n                LOCATIONS.showMoreFacility();\n            }\n        },\n        toggleCheck : async() => {\n            let checkFilters = true;\n            dataFacilityFilter = [];\n\n            if (cQuery('#select_all_checkbox').attr('data-selected') === 'true'){\n                checkFilters = false;\n\n                cQuery('#select_all_checkbox').text('Select All').attr('data-selected', 'false');\n            } else {\n                cQuery('#select_all_checkbox').text('Deselect All').attr('data-selected', 'true');\n                cQuery('#show-more-facility').addClass(\"hidden\");\n            }\n            \n            filterFeature = filterFeature.map((feature, index) => {\n                feature.is_clickeable = checkFilters;\n                feature.is_check = checkFilters;\n                cQuery('#checkbox_'+index).prop('checked', checkFilters);\n                cQuery('#checkbox_'+index).prop('disabled', false);\n                cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n\n                if (checkFilters === true){\n                    cQuery('#liCheckbox_'+index).addClass('activeCheckbox');\n                } else {\n                    cQuery('#liCheckbox_'+index).removeClass('activeCheckbox');\n                }\n\n                if (checkFilters && feature.text != ''){ dataFacilityFilter.push(feature.text); }\n\n                return feature;\n            });\n\n            if (window.innerWidth > 800){\n                LOCATIONS.removeAllFacilities();\n                LOCATIONS.showMoreFacility();\n            }\n        },\n        search : () =>{\n            let search = cQuery('#search_feature').val();\n\n            filterFeature.map((feature, index) => {\n                search= search.toLowerCase();\n                text= feature.text.toLowerCase();\n                cQuery('#liCheckbox_'+index).hide();\n                if(feature.text.toLowerCase().includes(search)) {\n                    cQuery('#liCheckbox_'+index).show();\n                }                   \n            });\n        },\n        searchName : () =>{\n            sortingName = cQuery('#search_name').val();\n            if (sortingName === ''){ LOCATIONS.mapLoaded = false; }\n\n            cQuery('#show-more-facility').addClass(\"hidden\");\n            LOCATIONS.removeAllFacilities();\n            LOCATIONS.showMoreFacility();\n\n        },\n        habilityFilterFeature: (data) => {\n            cQuery('.liCheckbox_ripple').removeClass('liCheckboxInhability')\n            cQuery('.liCheckbox_ripple').attr(\"disabled\", false);\n            let countItemFilter = dataFacilityFilter.length;\n            filterFeature = filterFeature.map((item, index) =>{\n                cQuery('#checkbox_'+index).prop('disabled', false);\n                cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n                if(countItemFilter > 0) {\n                    item.is_clickeable = data.includes(item.text.toLowerCase());\n                    cQuery('#checkbox_'+index).prop('disabled', !item.is_clickeable);\n\n                    if(!item.is_clickeable){\n                        cQuery('#liCheckbox_'+index).addClass('liCheckboxInhability');\n                    } else{\n                        cQuery('#liCheckbox_'+index).removeClass('liCheckboxInhability');\n\n                    }\n                }\n                return item;\n            })\n\n        },\n        \n        setTotalLocations: function(){\n            \/\/set total facilities\n            countUnits +=cQuery('#facilities .lineItem:not(.clickandstor)').length;\n            cQuery('.totalRentals').text(countUnits);\n\n            if(parseInt(countDataFacillity) > 0){\n                cQuery('.noResults').hide();\n                                    cQuery('#showHeaderMap').click();\n                            }else{\n                cQuery('.noResults').show();\n                if (cQuery('#facilityMap').css('display') == 'block'){\n                    cQuery('#showHeaderMap').click();\n                }\n            }\n        },\n        \n        sortByDistance: function(arg, sel, elem, order){\n            \/\/ try{\n            \/\/     var sortSelector = cQuery(sel),\n            \/\/     sortElement = sortSelector.children(elem);\n            \/\/     sortElement.sort(function(a, b) {\n            \/\/         var an = parseFloat(a.getAttribute(arg)),\n            \/\/         bn = parseFloat(b.getAttribute(arg));\n\n            \/\/         if (order == \"asc\") {\n            \/\/             if (an > bn)\n            \/\/             return 1;\n            \/\/             if (an < bn)\n            \/\/             return -1;\n            \/\/         } else if (order == \"desc\") {\n            \/\/             if (an < bn)\n            \/\/             return 1;\n            \/\/             if (an > bn)\n            \/\/             return -1;\n            \/\/         }\n            \/\/         return 0;\n            \/\/     });\n            \/\/     sortElement.detach().appendTo(sortSelector);\n            \/\/ }catch(er){\n            \/\/     console.warn('Cant sort by location', er);\n            \/\/ }\n        },\n\n        updateLongLat: function(){\n            LOCATIONS.runUpdateLongLat(0);\n        },\n        \n        runUpdateLongLat: function(latUpdateGeo){\n            if (MAP.mapLoaded == true && SHARED.bowserLat && SHARED.bowserLng){\n                var bowserLat = SHARED.bowserLat;\n                var bowserLng = SHARED.bowserLng;\n                \n                cQuery('.candee_locations_block').each(function(index, link){\n                    var blockLat = cQuery(this).attr('data-lat');\n                    var blockLng = cQuery(this).attr('data-lng');\n                    var blockDis =  SHARED.getDistance(bowserLat, bowserLng, +blockLat, +blockLng);\n                    cQuery(this).attr('data-distance', blockDis);\n                    if(candee_js_variables.measurement == 'metric'){\n                        cQuery(this).find('.candeeDistance').text(SHARED.candee_translate('Distance', candee_js_variables.lang)+': '+SHARED.candee_convert_to_metric(blockDis, 'miles', candee_js_variables.lang, false));\n                    } else {\n                        cQuery(this).find('.candeeDistance').text(SHARED.candee_translate('Distance', candee_js_variables.lang)+': '+blockDis+' '+SHARED.candee_translate('Miles', candee_js_variables.lang));\n                    }\n                });\n\n                \/\/ Update location cards after\n                LOCATIONS.sortByDistance(\"data-distance\", \".candee_locations_main_wrapper\", \".candee_locations_block\", \"asc\");\n                \n            } else if (latUpdateGeo == 60) { \/\/ After 60 seconds, stop checking\n               console.warn(\"Map not initiated for Geocoder\");\n            } else {\n                latUpdateGeo++; \/\/ increment attempts\n                setTimeout(function(){ LOCATIONS.runUpdateLongLat(); }, 1000); \/\/ check if map is loaded every second.\n            } \/\/ End if map.mapLoaded conditional\n        },\n\n        loadMiniPitches: function(propid){\n            propid = SHARED.isset(propid) ? propid : '';\n            if (propid == '' || cQuery('.facilityMasterData[data-propid=\"'+propid+'\"]').length < 1) {\n                console.error('Prop id does not have pitchblocks setup ' + propid);\n                return;\n            }\n\n            var facilityEl = cQuery('.facilityMasterData[data-propid=\"'+propid+'\"]');\n            \/\/ If no pitch container exists yet, create one.\n            if (facilityEl.find('.pitchContainer').length == 0) {\n                facilityEl.append('<div class=\"pitchContainer\"><\/div>');\n            }\n            var container = facilityEl.find('.pitchContainer').first();\n\n            \/\/ Prevent loading multiple pitch blocks\n            if (container.find('.pitch_theme_mini').length == 0) {\n                var variables = {\n                    'shortcode': '[candee_pitch ajax=\"false\" theme=\"pitch_theme_mini\" card_limit=\"3\" prop_id=\"'+propid+'\" title_label=\"size\" discount_consistency=\"default\" layout=\"list\"]'\n                };\n\n                cQuery.ajax({\n                    type: 'POST',\n                    url: ajaxurl,\n                    data: {\n                        action: 'candee_ajax_load_template',\n                        query_vars: variables,\n                        current_url: '', \/\/ Current page url\n                        ajax_data: { 'theme' : 'templates\/ajax_load\/ajax_load_theme_2.php' },\n                    },\n                    success: function(response) {\n                        if (container.find('.pitch_theme_mini').length == 0 && response != '') {\n                                                        container.append(response);\n                            setTimeout(function() { \n                                let prices = [];\n                                container.find('.pitchUnitPrice span.bold').each(function() {\n                                    let txt = cQuery(this).text().trim();\n                                    let num = parseFloat(txt.replace(\/[^0-9\\.]+\/g, ''));\n                                    if (!isNaN(num)) {\n                                        prices.push(num);\n                                    }\n                                });\n                                if (prices.length > 0) {\n                                    let minPrice = Math.min(...prices).toFixed(2);\n                                    \/\/ Update the facility starting price for this facility (by prop id)\n                                    cQuery('#div-facility_' + propid)\n                                        .find('.candeeLocationStartingPrice')\n                                        .text(`` + SHARED.candee_translate('Prices starting at:', candee_js_variables.lang) + ` $${minPrice}\/${SHARED.candee_translate('mo', candee_js_variables.lang)}`);\n                                } else {\n                                    console.log(`No prices found in the pitch blocks. Removing from ${propid}`);\n                                    cQuery('.candeeLocationStartingPrice').hide();\n                                }\n\n                                let discountName = container.find('.pitchBlockDiscountName').text().trim();\n                                if (discountName !== '') {\n                                    cQuery('#div-facility_' + propid)\n                                        .find('.candeeLocationOffering')\n                                        .append(\"<span class='discountName'>\" + discountName + \"<\/span>\");\n                                }\n\n                                cQuery('.pitchContainer').hide();\n                            }, 100);\n                        }\n                    },\n                    fail: function(response){\n                        console.warn('ERROR: '+response);\n                    }\n                });\n            }\n        }\n    }\n\n    docReady(function() {\n        cQuery('.hasSearchAddress').val(\"\");\n\n        cQuery('body').addClass('locations_theme_4');\n\n        if (addressGeoLat !== '' && addressGeoLng !== ''){ \/\/ If a default address lng\/lat is used, use that\n            cQuery('#buttonNearMe').removeClass('disabled');\n            LOCATIONS.initialize(addressGeoLat, addressGeoLng);\n        } else if (navigator && navigator.permissions) { \/\/ Otherwise, try to get the users location and initialize\n            navigator.permissions.query({ name: 'geolocation' })\n            .then(response => {\n                if(response.state === 'granted'){\n                    SHARED.getLatLong(LOCATIONS.initialize, null, true);\n                    return false;\n                }\n                cQuery('#buttonNearMe').removeClass('disabled');\n                LOCATIONS.initialize();\n            });\n        } else {\n            cQuery('#buttonNearMe').removeClass('disabled');\n            LOCATIONS.initialize();\n        }\n        \n        cQuery('#buttonNearMe').mouseup(async function(){\n            let refresh = true;\n            let response = await navigator.permissions.query({ name: 'geolocation' });\n            hasPermissionsSearchNear = response.state;\n            if (hasPermissionsSearchNear === 'granted'){\n                SHARED.getLatLong(LOCATIONS.initialize, null, true);\n            } else if(hasPermissionsSearchNear === 'prompt') {\n                navigator.geolocation.watchPosition(function(position) {\n                    if(refresh) {\n                        LOCATIONS.removeAllFacilities();\n                        cQuery('.noResults.candee_translate, #showing_result').hide();\n                        cQuery('.candeeLocationLoadingWrapper').show();\n                        cQuery('#show-more-facility').addClass(\"hidden\");\n                        SHARED.getLatLong(LOCATIONS.initialize, null, true);\n                        if(cQuery('.candee-row.filter.options').length > 0){\n                            cQuery('html, body').animate( { scrollTop: cQuery('.candee-row.filter.options').offset().top - 150 }, 1000, function(){} );\n                        }\n                    }\n                    refresh = false;\n                    return false;\n                });\n            } else {\n                var blurb = `<div class=\"candee white-popup userBarPop  locationConfirmationPopup\" style=\"width: 40%;padding: 2rem;left: 28%;\">`+\n                                '<div class =\"userPopBlurb\">'+\n                                    '<div class=\"userPopIcon background_1 animated fadeInLeft\" style=\"width: 40%\">'+\n                                        '<i class=\"fa fa-map-marker\" aria-hidden=\"true\"><\/i>'+\n                                        '<span class=\"userPopTitle candee_translate\">Location<\/span>'+\n                                    '<\/div>'+\n                                    '<div class=\"userPopDesc\" style=\"width: 50%; border-right: unset;\">'+\n                                        `<p style=\"display: block;\" class=\"candee_translate confirmationMessage hasGeo error\">${SHARED.candee_translate(\"You have blocked geolocation and need to manually reactivate.\",candee_js_variables.lang)}<\/p>`\n                                    '<\/div>'+\n                                '<\/div>'+\n                            '<\/div>';\n\n                cQuery.magnificPopup.open({\n                    items: {\n                        src: blurb,\n                        type: 'inline'\n                    },\n                    mainClass: \"userBarMag\",\n                    callbacks: {\n                        \/\/ close: function() { addUserIndicator(); }\n                    }\n                });\n            }\n        });\n\n        \/\/ Filter button\n        cQuery('.masterFeatureFilterCheckbox').on('click', function(){\n            cQuery('body').trigger('masterFeatureFilterCheckboxClicked'); \/\/ Fire event\n            MAP.clearMarkers(); \/\/ Clear pins\n        });\n\n\t    \/\/ Card icons click to select master checkbox toggle\n\t\tcQuery(document).on('click', '.masterFeatureFilterCheckbox ', function(){\n            let index = cQuery(this).attr('data-index');\n            \n            if (cQuery(this).is(':checked')){\n                cQuery(this).closest('li.checkboxListItemWrapper').addClass('activeCheckbox');\n            } else {\n                cQuery(this).closest('li.checkboxListItemWrapper').removeClass('activeCheckbox');\n            }\n            \n            LOCATIONS.checkFilter(index);\n        })\n\n\t\tcQuery(document).on('click', '.featIconToggle', function(){\n            var selectedFeature = cQuery(this).attr('data-feature').toLowerCase();\n            let id = filterFeature.findIndex(item => item.text.toLowerCase() === selectedFeature)\n            let checked = cQuery('#checkbox_'+id).is(':checked');\n            cQuery('#checkbox_'+id).prop('checked', !checked); \n            LOCATIONS.checkFilter(id);\n        });\n        \n\t\tcQuery('.master_icon_filters li').keypress(function(e){\n\t\t\tif (e.which === 13) {\n\t\t\t\tcQuery(this).find('.masterFeatureFilterCheckbox').click();\n\t\t\t}\n        });\n\n        cQuery('body').on('change', '#sortingOptions', function (e) {\n            var valueSelected  = this.value;\n            sortingFacilities = valueSelected;\n            if (window.innerWidth > 800){\n                LOCATIONS.removeAllFacilities();\n                LOCATIONS.showMoreFacility();\n                cQuery(document).trigger('candee_locations_sorted');\n            }\n        });\n    });\n\n<\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/full-width.php","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Candee Locations - Montreal<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Candee Locations - Montreal\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/\" \/>\n<meta property=\"og:site_name\" content=\"Montreal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/\",\"url\":\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/\",\"name\":\"Candee Locations - Montreal\",\"isPartOf\":{\"@id\":\"https:\/\/www.beta-pinnacle.com\/montreal\/#website\"},\"datePublished\":\"2024-02-22T16:18:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.beta-pinnacle.com\/montreal\/pinnacle-slate-homepage\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Candee Locations\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.beta-pinnacle.com\/montreal\/#website\",\"url\":\"https:\/\/www.beta-pinnacle.com\/montreal\/\",\"name\":\"Montreal\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.beta-pinnacle.com\/montreal\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Candee Locations - Montreal","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/","og_locale":"en_US","og_type":"article","og_title":"Candee Locations - Montreal","og_url":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/","og_site_name":"Montreal","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/","url":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/","name":"Candee Locations - Montreal","isPartOf":{"@id":"https:\/\/www.beta-pinnacle.com\/montreal\/#website"},"datePublished":"2024-02-22T16:18:06+00:00","breadcrumb":{"@id":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.beta-pinnacle.com\/montreal\/candee-locations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.beta-pinnacle.com\/montreal\/pinnacle-slate-homepage\/"},{"@type":"ListItem","position":2,"name":"Candee Locations"}]},{"@type":"WebSite","@id":"https:\/\/www.beta-pinnacle.com\/montreal\/#website","url":"https:\/\/www.beta-pinnacle.com\/montreal\/","name":"Montreal","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.beta-pinnacle.com\/montreal\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.beta-pinnacle.com\/montreal\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}