<!doctype html>
<html class="no-js" lang="en">
	<head>
		<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name='robots' content='index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1' />
	<style>img:is([sizes="auto" i], [sizes^="auto," i]) { contain-intrinsic-size: 3000px 1500px }</style>
	
	<!-- This site is optimized with the Yoast SEO Premium plugin v23.3 (Yoast SEO v24.7) - https://yoast.com/wordpress/plugins/seo/ -->
	<title>7 Best Reasons to Retire in a Small Town | SeniorResource</title>
	<meta name="description" content="If you are planning for retirement, here are the best reasons for retiring in a small town instead of a large city." />
	<link rel="canonical" href="https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/" />
	<meta property="og:locale" content="en_US" />
	<meta property="og:type" content="article" />
	<meta property="og:title" content="7 Best Reasons to Retire in a Small Town" />
	<meta property="og:description" content="Small towns have a number of benefits and a great deal to offer retirees." />
	<meta property="og:url" content="https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/" />
	<meta property="og:site_name" content="SeniorResource" />
	<meta property="article:publisher" content="https://www.facebook.com/seniorresourceofficial/" />
	<meta property="article:published_time" content="2026-01-30T14:41:33+00:00" />
	<meta property="article:modified_time" content="2026-01-30T14:41:37+00:00" />
	<meta property="og:image" content="https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp" />
	<meta property="og:image:width" content="2000" />
	<meta property="og:image:height" content="1333" />
	<meta property="og:image:type" content="image/webp" />
	<meta name="author" content="Robert Fowler" />
	<meta name="twitter:card" content="summary_large_image" />
	<meta name="twitter:creator" content="@SeniorResourceX" />
	<meta name="twitter:site" content="@SeniorResourceX" />
	<meta name="twitter:label1" content="Written by" />
	<meta name="twitter:data1" content="Robert Fowler" />
	<meta name="twitter:label2" content="Est. reading time" />
	<meta name="twitter:data2" content="6 minutes" />
	<script type="application/ld+json" class="yoast-schema-graph">{"@context":"https://schema.org","@graph":[{"@type":"Article","@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#article","isPartOf":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/"},"author":{"name":"Robert Fowler","@id":"https://www.seniorresource.com/#/schema/person/bca12fe5ab196578f1864a42f284c853"},"headline":"7 Best Reasons to Retire in a Small Town","datePublished":"2026-01-30T14:41:33+00:00","dateModified":"2026-01-30T14:41:37+00:00","mainEntityOfPage":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/"},"wordCount":858,"publisher":{"@id":"https://www.seniorresource.com/#organization"},"image":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#primaryimage"},"thumbnailUrl":"https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp","articleSection":["Retirement Locations"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/","url":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/","name":"7 Best Reasons to Retire in a Small Town | SeniorResource","isPartOf":{"@id":"https://www.seniorresource.com/#website"},"primaryImageOfPage":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#primaryimage"},"image":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#primaryimage"},"thumbnailUrl":"https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp","datePublished":"2026-01-30T14:41:33+00:00","dateModified":"2026-01-30T14:41:37+00:00","description":"If you are planning for retirement, here are the best reasons for retiring in a small town instead of a large city.","breadcrumb":{"@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#primaryimage","url":"https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp","contentUrl":"https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp","width":2000,"height":1333},{"@type":"BreadcrumbList","@id":"https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Senior Resources","item":"https://www.seniorresource.com/"},{"@type":"ListItem","position":2,"name":"7 Best Reasons to Retire in a Small Town"}]},{"@type":"WebSite","@id":"https://www.seniorresource.com/#website","url":"https://www.seniorresource.com/","name":"SeniorResource","description":"Retirement Communities and Planning - Assisted Living - Aging in Place - Housing","publisher":{"@id":"https://www.seniorresource.com/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.seniorresource.com/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://www.seniorresource.com/#organization","name":"SeniorResource.com","url":"https://www.seniorresource.com/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.seniorresource.com/#/schema/logo/image/","url":"https://www.seniorresource.com/wp-content/uploads/2024/08/Sr-ONLY-LOGO.png","contentUrl":"https://www.seniorresource.com/wp-content/uploads/2024/08/Sr-ONLY-LOGO.png","width":953,"height":807,"caption":"SeniorResource.com"},"image":{"@id":"https://www.seniorresource.com/#/schema/logo/image/"},"sameAs":["https://www.facebook.com/seniorresourceofficial/","https://x.com/SeniorResourceX"],"email":"seniorresourcecom@gmail.com"},{"@type":"Person","@id":"https://www.seniorresource.com/#/schema/person/bca12fe5ab196578f1864a42f284c853","name":"Robert Fowler","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.seniorresource.com/#/schema/person/image/","url":"https://www.seniorresource.com/wp-content/uploads/2023/06/happyretirement_uwp_avatar_thumb.jpg","contentUrl":"https://www.seniorresource.com/wp-content/uploads/2023/06/happyretirement_uwp_avatar_thumb.jpg","caption":"Robert Fowler"},"description":"Robert Fowler is a retired blogger, previously the President of Retirement Media Inc. He has visited numerous 55+ Active Adult Communities over the years, sharing his experiences along the way with readers.","url":"https://www.seniorresource.com/profile/seniorresourcecommunity/"}]}</script>
	<!-- / Yoast SEO Premium plugin. -->


<link rel='dns-prefetch' href='//www.seniorresource.com' />
<link rel='dns-prefetch' href='//www.recaptcha.net' />
<link rel='dns-prefetch' href='//cdn.jsdelivr.net' />
<link rel='dns-prefetch' href='//js.stripe.com' />
<link rel='dns-prefetch' href='//cdn.openshareweb.com' />
<link rel='dns-prefetch' href='//cdn.shareaholic.net' />
<link rel='dns-prefetch' href='//www.shareaholic.net' />
<link rel='dns-prefetch' href='//analytics.shareaholic.com' />
<link rel='dns-prefetch' href='//recs.shareaholic.com' />
<link rel='dns-prefetch' href='//partner.shareaholic.com' />
<!-- Shareaholic - https://www.shareaholic.com -->
<link rel='preload' href='//cdn.shareaholic.net/assets/pub/shareaholic.js' as='script'/>
<script data-no-minify='1' data-cfasync='false'>
_SHR_SETTINGS = {"endpoints":{"local_recs_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php?action=shareaholic_permalink_related","ajax_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php"},"site_id":"53e37123fd906b7096934a750164ff15","url_components":{"year":"2026","monthnum":"01","day":"30","hour":"09","minute":"41","second":"33","post_id":"2594","postname":"best-reasons-for-retiring-in-a-small-town","category":"retirement-locations"}};
</script>
<script data-no-minify='1' data-cfasync='false' src='//cdn.shareaholic.net/assets/pub/shareaholic.js' data-shr-siteid='53e37123fd906b7096934a750164ff15' async ></script>

<!-- Shareaholic Content Tags -->
<meta name='shareaholic:site_name' content='SeniorResource' />
<meta name='shareaholic:language' content='en-US' />
<meta name='shareaholic:url' content='https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/' />
<meta name='shareaholic:keywords' content='tag:small town retirement, cat:retirement locations, type:post' />
<meta name='shareaholic:article_published_time' content='2026-01-30T09:41:33-05:00' />
<meta name='shareaholic:article_modified_time' content='2026-01-30T09:41:37-05:00' />
<meta name='shareaholic:shareable_page' content='true' />
<meta name='shareaholic:article_author_name' content='Robert Fowler' />
<meta name='shareaholic:site_id' content='53e37123fd906b7096934a750164ff15' />
<meta name='shareaholic:wp_version' content='9.7.13' />
<meta name='shareaholic:image' content='https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp' />
<!-- Shareaholic Content Tags End -->

<!-- Shareaholic Open Graph Tags -->
<meta property='og:image' content='https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp' />
<!-- Shareaholic Open Graph Tags End -->
<link rel='stylesheet' id='wp-block-library-css' href='https://www.seniorresource.com/wp-includes/css/dist/block-library/style.min.css?ver=6.7.2' type='text/css' media='all' />
<link rel='stylesheet' id='dashicons-css' href='https://www.seniorresource.com/wp-includes/css/dashicons.min.css?ver=6.7.2' type='text/css' media='all' />
<link rel='stylesheet' id='ap-block-posts-style-css' href='https://www.seniorresource.com/wp-content/plugins/advanced-post-block-pro/dist/style.css?ver=1.9.7' type='text/css' media='all' />
<link rel='stylesheet' id='ultimate_blocks-cgb-style-css-css' href='https://www.seniorresource.com/wp-content/plugins/ultimate-blocks/dist/blocks.style.build.css?ver=69dfc6f089627' type='text/css' media='all' />
<style id='classic-theme-styles-inline-css' type='text/css'>
/*! This file is auto-generated */
.wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none}
</style>
<style id='global-styles-inline-css' type='text/css'>
:root{--wp--preset--aspect-ratio--square: 1;--wp--preset--aspect-ratio--4-3: 4/3;--wp--preset--aspect-ratio--3-4: 3/4;--wp--preset--aspect-ratio--3-2: 3/2;--wp--preset--aspect-ratio--2-3: 2/3;--wp--preset--aspect-ratio--16-9: 16/9;--wp--preset--aspect-ratio--9-16: 9/16;--wp--preset--color--black: #000000;--wp--preset--color--cyan-bluish-gray: #abb8c3;--wp--preset--color--white: #ffffff;--wp--preset--color--pale-pink: #f78da7;--wp--preset--color--vivid-red: #cf2e2e;--wp--preset--color--luminous-vivid-orange: #ff6900;--wp--preset--color--luminous-vivid-amber: #fcb900;--wp--preset--color--light-green-cyan: #7bdcb5;--wp--preset--color--vivid-green-cyan: #00d084;--wp--preset--color--pale-cyan-blue: #8ed1fc;--wp--preset--color--vivid-cyan-blue: #0693e3;--wp--preset--color--vivid-purple: #9b51e0;--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan: linear-gradient(135deg,rgb(122,220,180) 0%,rgb(0,208,130) 100%);--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange: linear-gradient(135deg,rgba(252,185,0,1) 0%,rgba(255,105,0,1) 100%);--wp--preset--gradient--luminous-vivid-orange-to-vivid-red: linear-gradient(135deg,rgba(255,105,0,1) 0%,rgb(207,46,46) 100%);--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray: linear-gradient(135deg,rgb(238,238,238) 0%,rgb(169,184,195) 100%);--wp--preset--gradient--cool-to-warm-spectrum: linear-gradient(135deg,rgb(74,234,220) 0%,rgb(151,120,209) 20%,rgb(207,42,186) 40%,rgb(238,44,130) 60%,rgb(251,105,98) 80%,rgb(254,248,76) 100%);--wp--preset--gradient--blush-light-purple: linear-gradient(135deg,rgb(255,206,236) 0%,rgb(152,150,240) 100%);--wp--preset--gradient--blush-bordeaux: linear-gradient(135deg,rgb(254,205,165) 0%,rgb(254,45,45) 50%,rgb(107,0,62) 100%);--wp--preset--gradient--luminous-dusk: linear-gradient(135deg,rgb(255,203,112) 0%,rgb(199,81,192) 50%,rgb(65,88,208) 100%);--wp--preset--gradient--pale-ocean: linear-gradient(135deg,rgb(255,245,203) 0%,rgb(182,227,212) 50%,rgb(51,167,181) 100%);--wp--preset--gradient--electric-grass: linear-gradient(135deg,rgb(202,248,128) 0%,rgb(113,206,126) 100%);--wp--preset--gradient--midnight: linear-gradient(135deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%);--wp--preset--font-size--small: 13px;--wp--preset--font-size--medium: 20px;--wp--preset--font-size--large: 36px;--wp--preset--font-size--x-large: 42px;--wp--preset--spacing--20: 0.44rem;--wp--preset--spacing--30: 0.67rem;--wp--preset--spacing--40: 1rem;--wp--preset--spacing--50: 1.5rem;--wp--preset--spacing--60: 2.25rem;--wp--preset--spacing--70: 3.38rem;--wp--preset--spacing--80: 5.06rem;--wp--preset--shadow--natural: 6px 6px 9px rgba(0, 0, 0, 0.2);--wp--preset--shadow--deep: 12px 12px 50px rgba(0, 0, 0, 0.4);--wp--preset--shadow--sharp: 6px 6px 0px rgba(0, 0, 0, 0.2);--wp--preset--shadow--outlined: 6px 6px 0px -3px rgba(255, 255, 255, 1), 6px 6px rgba(0, 0, 0, 1);--wp--preset--shadow--crisp: 6px 6px 0px rgba(0, 0, 0, 1);}:where(.is-layout-flex){gap: 0.5em;}:where(.is-layout-grid){gap: 0.5em;}body .is-layout-flex{display: flex;}.is-layout-flex{flex-wrap: wrap;align-items: center;}.is-layout-flex > :is(*, div){margin: 0;}body .is-layout-grid{display: grid;}.is-layout-grid > :is(*, div){margin: 0;}:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}.has-black-color{color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-color{color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-color{color: var(--wp--preset--color--white) !important;}.has-pale-pink-color{color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-color{color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-color{color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-color{color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-color{color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-color{color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-color{color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-color{color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-color{color: var(--wp--preset--color--vivid-purple) !important;}.has-black-background-color{background-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-background-color{background-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-background-color{background-color: var(--wp--preset--color--white) !important;}.has-pale-pink-background-color{background-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-background-color{background-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-background-color{background-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-background-color{background-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-background-color{background-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-background-color{background-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-background-color{background-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-background-color{background-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-background-color{background-color: var(--wp--preset--color--vivid-purple) !important;}.has-black-border-color{border-color: var(--wp--preset--color--black) !important;}.has-cyan-bluish-gray-border-color{border-color: var(--wp--preset--color--cyan-bluish-gray) !important;}.has-white-border-color{border-color: var(--wp--preset--color--white) !important;}.has-pale-pink-border-color{border-color: var(--wp--preset--color--pale-pink) !important;}.has-vivid-red-border-color{border-color: var(--wp--preset--color--vivid-red) !important;}.has-luminous-vivid-orange-border-color{border-color: var(--wp--preset--color--luminous-vivid-orange) !important;}.has-luminous-vivid-amber-border-color{border-color: var(--wp--preset--color--luminous-vivid-amber) !important;}.has-light-green-cyan-border-color{border-color: var(--wp--preset--color--light-green-cyan) !important;}.has-vivid-green-cyan-border-color{border-color: var(--wp--preset--color--vivid-green-cyan) !important;}.has-pale-cyan-blue-border-color{border-color: var(--wp--preset--color--pale-cyan-blue) !important;}.has-vivid-cyan-blue-border-color{border-color: var(--wp--preset--color--vivid-cyan-blue) !important;}.has-vivid-purple-border-color{border-color: var(--wp--preset--color--vivid-purple) !important;}.has-vivid-cyan-blue-to-vivid-purple-gradient-background{background: var(--wp--preset--gradient--vivid-cyan-blue-to-vivid-purple) !important;}.has-light-green-cyan-to-vivid-green-cyan-gradient-background{background: var(--wp--preset--gradient--light-green-cyan-to-vivid-green-cyan) !important;}.has-luminous-vivid-amber-to-luminous-vivid-orange-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-amber-to-luminous-vivid-orange) !important;}.has-luminous-vivid-orange-to-vivid-red-gradient-background{background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red) !important;}.has-very-light-gray-to-cyan-bluish-gray-gradient-background{background: var(--wp--preset--gradient--very-light-gray-to-cyan-bluish-gray) !important;}.has-cool-to-warm-spectrum-gradient-background{background: var(--wp--preset--gradient--cool-to-warm-spectrum) !important;}.has-blush-light-purple-gradient-background{background: var(--wp--preset--gradient--blush-light-purple) !important;}.has-blush-bordeaux-gradient-background{background: var(--wp--preset--gradient--blush-bordeaux) !important;}.has-luminous-dusk-gradient-background{background: var(--wp--preset--gradient--luminous-dusk) !important;}.has-pale-ocean-gradient-background{background: var(--wp--preset--gradient--pale-ocean) !important;}.has-electric-grass-gradient-background{background: var(--wp--preset--gradient--electric-grass) !important;}.has-midnight-gradient-background{background: var(--wp--preset--gradient--midnight) !important;}.has-small-font-size{font-size: var(--wp--preset--font-size--small) !important;}.has-medium-font-size{font-size: var(--wp--preset--font-size--medium) !important;}.has-large-font-size{font-size: var(--wp--preset--font-size--large) !important;}.has-x-large-font-size{font-size: var(--wp--preset--font-size--x-large) !important;}
:where(.wp-block-post-template.is-layout-flex){gap: 1.25em;}:where(.wp-block-post-template.is-layout-grid){gap: 1.25em;}
:where(.wp-block-columns.is-layout-flex){gap: 2em;}:where(.wp-block-columns.is-layout-grid){gap: 2em;}
:root :where(.wp-block-pullquote){font-size: 1.5em;line-height: 1.6;}
</style>
<link rel='stylesheet' id='wpdp-css-flatpicker-css' href='https://www.seniorresource.com/wp-content/plugins/senior-resource/assests/css/flatpickr.min.css' type='text/css' media='all' />
<link rel='stylesheet' id='wpdp-css-select2-css' href='https://www.seniorresource.com/wp-content/plugins/senior-resource/assests/css/select2_custom_css.css' type='text/css' media='all' />
<link rel='stylesheet' id='wpdp-css-style-css' href='https://www.seniorresource.com/wp-content/plugins/senior-resource/assests/css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='tony-senior-resource-css' href='https://www.seniorresource.com/wp-content/plugins/tony-senior-resource/css/style.css' type='text/css' media='all' />
<link rel='stylesheet' id='ub-extension-style-css-css' href='https://www.seniorresource.com/wp-content/plugins/ultimate-blocks/src/extensions/style.css?ver=6.7.2' type='text/css' media='all' />
<link rel='stylesheet' id='bootstrap-css' href='https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css?ver=6.7.2' type='text/css' media='all' />
<link rel='stylesheet' id='theme_style-css' href='https://www.seniorresource.com/wp-content/themes/bootstrap/style.css?ver=1.2' type='text/css' media='all' />
<script>!(function(m,U,_name,l,p){p=function(){(p.q=p.q||[]).push(arguments)},m[_name=U(U(_name))]=m[_name]||p,m[_name].v=m[_name].v||3,m[_name].s="4"})(window,decodeURI,'%2561%64%6d%25%369%257%32%25%36%31%256%63');!(function(m,U,l,p,I,s,Y,A,a){Y=function(r,s){return r<2&&s},(function i(I,h,e,M){function x(){A||(e&&(e.remove(),e=null),clearTimeout(a),!I&&h&&(h+=-1===h.indexOf("?")?"?r=1":"&r=1"),(h=Y(++I,h))&&i(I,h))}e=m.createElement(l),M=m.getElementsByTagName(l)[0],e.async=1,e.src=h,a=setTimeout(x,6e3),e[p]("error",x),e[p]("load",x),s[h]=!0,U["QS01QkQ4OUUyRTZEREYxQTBCQjA3MzM2RUUtMzQ"]=function(m,U){s[m]||U===e?A=!0:Y(0)},M.parentNode.insertBefore(e,M)})(0,"https://tracecontent.com/scripts/k2ni50/cbpjqtbydgd.main.js")})(document,window,"script","addEventListener",0,{});;</script>
<script>!(function(m,U,l,p,I,s,Y,A,a,i,h,_name,e,M,x,Q,E,b,K,j,u,c){_name=(h=function(m){return U(U(m))})('a%2564mi%25%372%25%36%31%6c'),e=m.localStorage,M=m.sessionStorage,x=h('%255%66%2561%64%256%64r%25%36c%2563k%76%70'),E=m.location;try{0===document.referrer.indexOf(E.origin)?(Q=new URLSearchParams(E.search)).get(h('_%256%31%2563%72%25%36%39'))?((b=Q.get(h('%25%35%66%61c%257%34')))===h('%25%36%35%78%25%374%256%35%6e%64')?K=[[_name+"-extended","true"||_name]]:b===h('%73%25%36%38%25%361%2570%25%36%35')&&(K=[[_name+"-shaped","true"||_name]]),K&&(M[x]=JSON.stringify(K))):K=JSON.parse(M[x]||"[]"):delete M[x]}catch(X){K=[]}function F(U,l){try{U=JSON.parse(e["_aQS01QkQ4OUUyRTZEREYxQTBCQjA3MzM2RUUtMzQ"]||"{}").lgk||[]}catch(X){U=[]}K&&(U=U.concat(K)),U&&U.length&&(l=m[j].pubads())&&U.forEach((function(m){m&&m[0]&&l.setTargeting(m[0],m[1]||"")}))}j=h('%25%367%25%36%66%256%66gl%25%365%74a%2567');try{c=(u=m[j]=m[j]||{}).cmd=u.cmd||[],typeof u.pubads===l?F():typeof c.unshift===l?c.unshift(F):c.push(F)}catch(X){}})(window,decodeURI,"function");;</script>
<script>;;;;!(function(m,U,l,p,I,s,Y,A,a,i,h){function e(){for(var m=[],U=arguments.length,l=0;l<U;l++)m.push(arguments[l]);var p,I=m[1],s=typeof I===Y,A=m[2],e={gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",signalStatus:"not ready",supportedAPIs:["7:usnat"].reduce((function(m,U){return U&&m.push(U),m}),[]),cmpId:9,sectionList:[],applicableSections:[0],gppString:"",parsedSections:{}};function M(m){s&&I(m,!0)}switch(m[0]){case"ping":return M(e);case"queue":return a;case"events":return i;case"addEventListener":return s&&(p=++h,i.push({id:p,callback:I,parameter:A})),M({eventName:"listenerRegistered",listenerId:p,data:!0,pingData:e});case"removeEventListener":for(p=!1,l=0;l<i.length;l++)if(i[l].id===A){i.splice(l,1),p=!0;break}return M(p);case"hasSection":case"getSection":case"getField":return M(null);default:return void a.push(m)}}e.v=2,typeof U[l]!==Y&&(U[l]=U[l]||e,U[A]&&U[A]("message",(function(m,p){var Y="string"==typeof m.data;(p=Y?((function(m){try{return JSON.parse(m)}catch(U){}})(m.data)||{})[I]:(m.data||{})[I])&&U[l](p.command,(function(U,l){var I={__gppReturn:{returnValue:U,success:l,callId:p.callId}};m.source.postMessage(Y?JSON.stringify(I):I,"*")}),s in p?p[s]:null,p.version||1)}),!1),(function M(){if(!U.frames[p]){var l=m.body;if(l){var I=m.createElement("iframe");I.style.display="none",I.name=p,l.appendChild(I)}else U.setTimeout(M,5)}})())})(document,window,"__gpp","__gppLocator","__gppCall","parameter","function","addEventListener",[],[],0);</script><script type="text/javascript" src="https://code.jquery.com/jquery-3.7.0.min.js" id="jquery-core-js"></script>
<script type="text/javascript" id="jquery-js-after">
/* <![CDATA[ */
window.gdSetMap = window.gdSetMap || 'auto';window.gdLoadMap = window.gdLoadMap || 'auto';
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/geodirectory/vendor/ayecode/wp-ayecode-ui/assets/js/select2.min.js?ver=4.0.11" id="select2-js"></script>
<script type="text/javascript" id="bootstrap-dummy-js-after">
/* <![CDATA[ */
function aui_init_greedy_nav(){jQuery('nav.greedy').each(function(i,obj){if(jQuery(this).hasClass("being-greedy")){return true}jQuery(this).addClass('navbar-expand');jQuery(this).off('shown.bs.tab').on('shown.bs.tab',function(e){if(jQuery(e.target).closest('.dropdown-menu').hasClass('greedy-links')){jQuery(e.target).closest('.greedy').find('.greedy-btn.dropdown').attr('aria-expanded','false');jQuery(e.target).closest('.greedy-links').removeClass('show').addClass('d-none')}});jQuery(document).off('mousemove','.greedy-btn').on('mousemove','.greedy-btn',function(e){jQuery('.dropdown-menu.greedy-links').removeClass('d-none')});var $vlinks='';var $dDownClass='';var ddItemClass='greedy-nav-item';if(jQuery(this).find('.navbar-nav').length){if(jQuery(this).find('.navbar-nav').hasClass("being-greedy")){return true}$vlinks=jQuery(this).find('.navbar-nav').addClass("being-greedy w-100").removeClass('overflow-hidden')}else if(jQuery(this).find('.nav').length){if(jQuery(this).find('.nav').hasClass("being-greedy")){return true}$vlinks=jQuery(this).find('.nav').addClass("being-greedy w-100").removeClass('overflow-hidden');$dDownClass=' mt-0 p-0 zi-5 ';ddItemClass+=' mt-0 me-0'}else{return false}jQuery($vlinks).append('<li class="nav-item list-unstyled ml-auto greedy-btn d-none dropdown"><button data-bs-toggle="collapse" class="nav-link greedy-nav-link" role="button"><i class="fas fa-ellipsis-h"></i> <span class="greedy-count badge bg-dark rounded-pill"></span></button><ul class="greedy-links dropdown-menu dropdown-menu-end '+$dDownClass+'"></ul></li>');var $hlinks=jQuery(this).find('.greedy-links');var $btn=jQuery(this).find('.greedy-btn');var numOfItems=0;var totalSpace=0;var closingTime=1000;var breakWidths=[];$vlinks.children().outerWidth(function(i,w){totalSpace+=w;numOfItems+=1;breakWidths.push(totalSpace)});var availableSpace,numOfVisibleItems,requiredSpace,buttonSpace,timer;function check(){buttonSpace=$btn.width();availableSpace=$vlinks.width()-10;numOfVisibleItems=$vlinks.children().length;requiredSpace=breakWidths[numOfVisibleItems-1];if(numOfVisibleItems>1&&requiredSpace>availableSpace){var $li=$vlinks.children().last().prev();$li.removeClass('nav-item').addClass(ddItemClass);if(!jQuery($hlinks).children().length){$li.find('.nav-link').addClass('w-100 dropdown-item rounded-0 rounded-bottom')}else{jQuery($hlinks).find('.nav-link').removeClass('rounded-top');$li.find('.nav-link').addClass('w-100 dropdown-item rounded-0 rounded-top')}$li.prependTo($hlinks);numOfVisibleItems-=1;check()}else if(availableSpace>breakWidths[numOfVisibleItems]){$hlinks.children().first().insertBefore($btn);numOfVisibleItems+=1;check()}jQuery($btn).find(".greedy-count").html(numOfItems-numOfVisibleItems);if(numOfVisibleItems===numOfItems){$btn.addClass('d-none')}else $btn.removeClass('d-none')}jQuery(window).on("resize",function(){check()});check()})}function aui_select2_locale(){var aui_select2_params={"i18n_select_state_text":"Select an option\u2026","i18n_no_matches":"No matches found","i18n_ajax_error":"Loading failed","i18n_input_too_short_1":"Please enter 1 or more characters","i18n_input_too_short_n":"Please enter %item% or more characters","i18n_input_too_long_1":"Please delete 1 character","i18n_input_too_long_n":"Please delete %item% characters","i18n_selection_too_long_1":"You can only select 1 item","i18n_selection_too_long_n":"You can only select %item% items","i18n_load_more":"Loading more results\u2026","i18n_searching":"Searching\u2026"};return{theme:"bootstrap-5",width:jQuery(this).data('width')?jQuery(this).data('width'):jQuery(this).hasClass('w-100')?'100%':'style',placeholder:jQuery(this).data('placeholder'),language:{errorLoading:function(){return aui_select2_params.i18n_searching},inputTooLong:function(args){var overChars=args.input.length-args.maximum;if(1===overChars){return aui_select2_params.i18n_input_too_long_1}return aui_select2_params.i18n_input_too_long_n.replace('%item%',overChars)},inputTooShort:function(args){var remainingChars=args.minimum-args.input.length;if(1===remainingChars){return aui_select2_params.i18n_input_too_short_1}return aui_select2_params.i18n_input_too_short_n.replace('%item%',remainingChars)},loadingMore:function(){return aui_select2_params.i18n_load_more},maximumSelected:function(args){if(args.maximum===1){return aui_select2_params.i18n_selection_too_long_1}return aui_select2_params.i18n_selection_too_long_n.replace('%item%',args.maximum)},noResults:function(){return aui_select2_params.i18n_no_matches},searching:function(){return aui_select2_params.i18n_searching}}}}function aui_init_select2(){var select2_args=jQuery.extend({},aui_select2_locale());jQuery("select.aui-select2").each(function(){if(!jQuery(this).hasClass("select2-hidden-accessible")){jQuery(this).select2(select2_args)}})}function aui_time_ago(selector){var aui_timeago_params={"prefix_ago":"","suffix_ago":" ago","prefix_after":"after ","suffix_after":"","seconds":"less than a minute","minute":"about a minute","minutes":"%d minutes","hour":"about an hour","hours":"about %d hours","day":"a day","days":"%d days","month":"about a month","months":"%d months","year":"about a year","years":"%d years"};var templates={prefix:aui_timeago_params.prefix_ago,suffix:aui_timeago_params.suffix_ago,seconds:aui_timeago_params.seconds,minute:aui_timeago_params.minute,minutes:aui_timeago_params.minutes,hour:aui_timeago_params.hour,hours:aui_timeago_params.hours,day:aui_timeago_params.day,days:aui_timeago_params.days,month:aui_timeago_params.month,months:aui_timeago_params.months,year:aui_timeago_params.year,years:aui_timeago_params.years};var template=function(t,n){return templates[t]&&templates[t].replace(/%d/i,Math.abs(Math.round(n)))};var timer=function(time){if(!time)return;time=time.replace(/\.\d+/,"");time=time.replace(/-/,"/").replace(/-/,"/");time=time.replace(/T/," ").replace(/Z/," UTC");time=time.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");time=new Date(time*1000||time);var now=new Date();var seconds=((now.getTime()-time)*.001)>>0;var minutes=seconds/60;var hours=minutes/60;var days=hours/24;var years=days/365;return templates.prefix+(seconds<45&&template('seconds',seconds)||seconds<90&&template('minute',1)||minutes<45&&template('minutes',minutes)||minutes<90&&template('hour',1)||hours<24&&template('hours',hours)||hours<42&&template('day',1)||days<30&&template('days',days)||days<45&&template('month',1)||days<365&&template('months',days/30)||years<1.5&&template('year',1)||template('years',years))+templates.suffix};var elements=document.getElementsByClassName(selector);if(selector&&elements&&elements.length){for(var i in elements){var $el=elements[i];if(typeof $el==='object'){$el.innerHTML='<i class="far fa-clock"></i> '+timer($el.getAttribute('title')||$el.getAttribute('datetime'))}}}setTimeout(function(){aui_time_ago(selector)},60000)}function aui_init_tooltips(){jQuery('[data-bs-toggle="tooltip"]').tooltip();jQuery('[data-bs-toggle="popover"]').popover();jQuery('[data-bs-toggle="popover-html"]').popover({html:true,sanitize:false});jQuery('[data-bs-toggle="popover"],[data-bs-toggle="popover-html"]').on('inserted.bs.popover',function(){jQuery('body > .popover').wrapAll("<div class='bsui' />")})}$aui_doing_init_flatpickr=false;function aui_init_flatpickr(){if(typeof jQuery.fn.flatpickr==="function"&&!$aui_doing_init_flatpickr){$aui_doing_init_flatpickr=true;try{flatpickr.localize({weekdays:{shorthand:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],longhand:['Sun','Mon','Tue','Wed','Thu','Fri','Sat'],},months:{shorthand:['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'],longhand:['January','February','March','April','May','June','July','August','September','October','November','December'],},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(nth){var s=nth%100;if(s>3&&s<21)return"th";switch(s%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:' to ',weekAbbreviation:'Wk',scrollTitle:'Scroll to increment',toggleTitle:'Click to toggle',amPM:['AM','PM'],yearAriaLabel:'Year',hourAriaLabel:'Hour',minuteAriaLabel:'Minute',time_24hr:false})}catch(err){console.log(err.message)}jQuery('input[data-aui-init="flatpickr"]:not(.flatpickr-input)').flatpickr()}$aui_doing_init_flatpickr=false}$aui_doing_init_iconpicker=false;function aui_init_iconpicker(){if(typeof jQuery.fn.iconpicker==="function"&&!$aui_doing_init_iconpicker){$aui_doing_init_iconpicker=true;jQuery('input[data-aui-init="iconpicker"]:not(.iconpicker-input)').iconpicker()}$aui_doing_init_iconpicker=false}function aui_modal_iframe($title,$url,$footer,$dismissible,$class,$dialog_class,$body_class,responsive){if(!$body_class){$body_class='p-0'}var wClass='text-center position-absolute w-100 text-dark overlay overlay-white p-0 m-0 d-flex justify-content-center align-items-center';var wStyle='';var sStyle='';var $body="",sClass="w-100 p-0 m-0";if(responsive){$body+='<div class="embed-responsive embed-responsive-16by9 ratio ratio-16x9">';wClass+=' h-100';sClass+=' embed-responsive-item'}else{wClass+=' vh-100';sClass+=' vh-100';wStyle+=' height: 90vh !important;';sStyle+=' height: 90vh !important;'}$body+='<div class="ac-preview-loading '+wClass+'" style="left:0;top:0;'+wStyle+'"><div class="spinner-border" role="status"></div></div>';$body+='<iframe id="embedModal-iframe" class="'+sClass+'" style="'+sStyle+'" src="" width="100%" height="100%" frameborder="0" allowtransparency="true"></iframe>';if(responsive){$body+='</div>'}$m=aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class);const auiModal=document.getElementById('aui-modal');auiModal.addEventListener('shown.bs.modal',function(e){iFrame=jQuery('#embedModal-iframe');jQuery('.ac-preview-loading').addClass('d-flex');iFrame.attr({src:$url});iFrame.load(function(){jQuery('.ac-preview-loading').removeClass('d-flex').addClass('d-none')})});return $m}function aui_modal($title,$body,$footer,$dismissible,$class,$dialog_class,$body_class){if(!$class){$class=''}if(!$dialog_class){$dialog_class=''}if(!$body){$body='<div class="text-center"><div class="spinner-border" role="status"></div></div>'}jQuery('.aui-modal').remove();jQuery('.modal-backdrop').remove();jQuery('body').css({overflow:'','padding-right':''});var $modal='';$modal+='<div id="aui-modal" class="modal aui-modal fade shadow bsui '+$class+'" tabindex="-1">'+'<div class="modal-dialog modal-dialog-centered '+$dialog_class+'">'+'<div class="modal-content border-0 shadow">';if($title){$modal+='<div class="modal-header">'+'<h5 class="modal-title">'+$title+'</h5>';if($dismissible){$modal+='<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">'+'</button>'}$modal+='</div>'}$modal+='<div class="modal-body '+$body_class+'">'+$body+'</div>';if($footer){$modal+='<div class="modal-footer">'+$footer+'</div>'}$modal+='</div>'+'</div>'+'</div>';jQuery('body').append($modal);const ayeModal=new bootstrap.Modal('.aui-modal',{});ayeModal.show()}function aui_conditional_fields(form){jQuery(form).find(".aui-conditional-field").each(function(){var $element_require=jQuery(this).data('element-require');if($element_require){$element_require=$element_require.replace("&#039;","'");$element_require=$element_require.replace("&quot;",'"');if(aui_check_form_condition($element_require,form)){jQuery(this).removeClass('d-none')}else{jQuery(this).addClass('d-none')}}})}function aui_check_form_condition(condition,form){if(form){condition=condition.replace(/\(form\)/g,"('"+form+"')")}return new Function("return "+condition+";")()}jQuery.fn.aui_isOnScreen=function(){var win=jQuery(window);var viewport={top:win.scrollTop(),left:win.scrollLeft()};viewport.right=viewport.left+win.width();viewport.bottom=viewport.top+win.height();var bounds=this.offset();bounds.right=bounds.left+this.outerWidth();bounds.bottom=bounds.top+this.outerHeight();return(!(viewport.right<bounds.left||viewport.left>bounds.right||viewport.bottom<bounds.top||viewport.top>bounds.bottom))};function aui_carousel_maybe_show_multiple_items($carousel){var $items={};var $item_count=0;if(!jQuery($carousel).find('.carousel-inner-original').length){jQuery($carousel).append('<div class="carousel-inner-original d-none">'+jQuery($carousel).find('.carousel-inner').html().replaceAll('carousel-item','not-carousel-item')+'</div>')}jQuery($carousel).find('.carousel-inner-original .not-carousel-item').each(function(){$items[$item_count]=jQuery(this).html();$item_count++});if(!$item_count){return}if(jQuery(window).width()<=576){if(jQuery($carousel).find('.carousel-inner').hasClass('aui-multiple-items')&&jQuery($carousel).find('.carousel-inner-original').length){jQuery($carousel).find('.carousel-inner').removeClass('aui-multiple-items').html(jQuery($carousel).find('.carousel-inner-original').html().replaceAll('not-carousel-item','carousel-item'));jQuery($carousel).find(".carousel-indicators li").removeClass("d-none")}}else{var $md_count=jQuery($carousel).data('limit_show');var $md_cols_count=jQuery($carousel).data('cols_show');var $new_items='';var $new_items_count=0;var $new_item_count=0;var $closed=true;Object.keys($items).forEach(function(key,index){if(index!=0&&Number.isInteger(index/$md_count)){$new_items+='</div></div>';$closed=true}if(index==0||Number.isInteger(index/$md_count)){$row_cols_class=$md_cols_count?' g-lg-4 g-3 row-cols-1 row-cols-lg-'+$md_cols_count:'';$active=index==0?'active':'';$new_items+='<div class="carousel-item '+$active+'"><div class="row'+$row_cols_class+' ">';$closed=false;$new_items_count++;$new_item_count=0}$new_items+='<div class="col ">'+$items[index]+'</div>';$new_item_count++});if(!$closed){if($md_count-$new_item_count>0){$placeholder_count=$md_count-$new_item_count;while($placeholder_count>0){$new_items+='<div class="col "></div>';$placeholder_count--}}$new_items+='</div></div>'}jQuery($carousel).find('.carousel-inner').addClass('aui-multiple-items').html($new_items);jQuery($carousel).find('.carousel-item.active img').each(function(){if(real_srcset=jQuery(this).attr("data-srcset")){if(!jQuery(this).attr("srcset"))jQuery(this).attr("srcset",real_srcset)}if(real_src=jQuery(this).attr("data-src")){if(!jQuery(this).attr("srcset"))jQuery(this).attr("src",real_src)}});$hide_count=$new_items_count-1;jQuery($carousel).find(".carousel-indicators li:gt("+$hide_count+")").addClass("d-none")}jQuery(window).trigger("aui_carousel_multiple")}function aui_init_carousel_multiple_items(){jQuery(window).on("resize",function(){jQuery('.carousel-multiple-items').each(function(){aui_carousel_maybe_show_multiple_items(this)})});jQuery('.carousel-multiple-items').each(function(){aui_carousel_maybe_show_multiple_items(this)})}function init_nav_sub_menus(){jQuery('.navbar-multi-sub-menus').each(function(i,obj){if(jQuery(this).hasClass("has-sub-sub-menus")){return true}jQuery(this).addClass('has-sub-sub-menus');jQuery(this).find('.dropdown-menu a.dropdown-toggle').on('click',function(e){var $el=jQuery(this);$el.toggleClass('active-dropdown');var $parent=jQuery(this).offsetParent(".dropdown-menu");if(!jQuery(this).next().hasClass('show')){jQuery(this).parents('.dropdown-menu').first().find('.show').removeClass("show")}var $subMenu=jQuery(this).next(".dropdown-menu");$subMenu.toggleClass('show');jQuery(this).parent("li").toggleClass('show');jQuery(this).parents('li.nav-item.dropdown.show').on('hidden.bs.dropdown',function(e){jQuery('.dropdown-menu .show').removeClass("show");$el.removeClass('active-dropdown')});if(!$parent.parent().hasClass('navbar-nav')){$el.next().addClass('position-relative border-top border-bottom')}return false})})}function aui_lightbox_embed($link,ele){ele.preventDefault();jQuery('.aui-carousel-modal').remove();var $modal='<div class="modal fade aui-carousel-modal bsui" id="aui-carousel-modal" tabindex="-1" role="dialog" aria-labelledby="aui-modal-title" aria-hidden="true"><div class="modal-dialog modal-dialog-centered modal-xl mw-100"><div class="modal-content bg-transparent border-0 shadow-none"><div class="modal-header"><h5 class="modal-title" id="aui-modal-title"></h5></div><div class="modal-body text-center"><i class="fas fa-circle-notch fa-spin fa-3x"></i></div></div></div></div>';jQuery('body').append($modal);const ayeModal=new bootstrap.Modal('.aui-carousel-modal',{});const myModalEl=document.getElementById('aui-carousel-modal');myModalEl.addEventListener('hidden.bs.modal',event=>{jQuery(".aui-carousel-modal iframe").attr('src','')});$container=jQuery($link).closest('.aui-gallery');$clicked_href=jQuery($link).attr('href');$images=[];$container.find('.aui-lightbox-image, .aui-lightbox-iframe').each(function(){var a=this;var href=jQuery(a).attr('href');if(href){$images.push(href)}});if($images.length){var $carousel='<div id="aui-embed-slider-modal" class="carousel slide" >';if($images.length>1){$i=0;$carousel+='<ol class="carousel-indicators position-fixed">';$container.find('.aui-lightbox-image, .aui-lightbox-iframe').each(function(){$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+='<li data-bs-target="#aui-embed-slider-modal" data-bs-slide-to="'+$i+'" class="'+$active+'"></li>';$i++});$carousel+='</ol>'}$i=0;$rtl_class='justify-content-start';$carousel+='<div class="carousel-inner d-flex align-items-center '+$rtl_class+'">';$container.find('.aui-lightbox-image').each(function(){var a=this;var href=jQuery(a).attr('href');$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+='<div class="carousel-item '+$active+'"><div>';var css_height=window.innerWidth>window.innerHeight?'90vh':'auto';var srcset=jQuery(a).find('img').attr('srcset');var sizes='';if(srcset){var sources=srcset.split(',').map(s=>{var parts=s.trim().split(' ');return{width:parseInt(parts[1].replace('w','')),descriptor:parts[1].replace('w','px')}}).sort((a,b)=>b.width-a.width);sizes=sources.map((source,index,array)=>{if(index===0){return `${source.descriptor}`}else{return `(max-width:${source.width-1}px)${array[index-1].descriptor}`}}).reverse().join(', ')}var img=href?jQuery(a).find('img').clone().attr('src',href).attr('sizes',sizes).removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML:jQuery(a).find('img').clone().removeClass().addClass('mx-auto d-block w-auto rounded').css({'max-height':css_height,'max-width':'98%'}).get(0).outerHTML;$carousel+=img;if(jQuery(a).parent().find('.carousel-caption').length){$carousel+=jQuery(a).parent().find('.carousel-caption').clone().removeClass('sr-only visually-hidden').get(0).outerHTML}else if(jQuery(a).parent().find('.figure-caption').length){$carousel+=jQuery(a).parent().find('.figure-caption').clone().removeClass('sr-only visually-hidden').addClass('carousel-caption').get(0).outerHTML}$carousel+='</div></div>';$i++});$container.find('.aui-lightbox-iframe').each(function(){var a=this;var css_height=window.innerWidth>window.innerHeight?'90vh;':'auto;';var styleWidth=$images.length>1?'max-width:70%;':'';$active=$clicked_href==jQuery(this).attr('href')?'active':'';$carousel+='<div class="carousel-item '+$active+'"><div class="modal-xl mx-auto ratio ratio-16x9" style="max-height:'+css_height+styleWidth+'">';var url=jQuery(a).attr('href');var iframe='<div class="ac-preview-loading text-light d-none" style="left:0;top:0;height:'+css_height+'"><div class="spinner-border m-auto" role="status"></div></div>';iframe+='<iframe class="aui-carousel-iframe" style="height:'+css_height+'" src="" data-src="'+url+'?rel=0&amp;showinfo=0&amp;modestbranding=1&amp;autoplay=1" allow="autoplay"></iframe>';var img=iframe;$carousel+=img;$carousel+='</div></div>';$i++});$carousel+='</div>';if($images.length>1){$carousel+='<a class="carousel-control-prev" href="#aui-embed-slider-modal" role="button" data-bs-slide="prev">';$carousel+='<span class="carousel-control-prev-icon" aria-hidden="true"></span>';$carousel+=' <a class="carousel-control-next" href="#aui-embed-slider-modal" role="button" data-bs-slide="next">';$carousel+='<span class="carousel-control-next-icon" aria-hidden="true"></span>';$carousel+='</a>'}$carousel+='</div>';var $close='<button type="button" class="btn-close btn-close-white text-end position-fixed" style="right: 20px;top: 10px; z-index: 1055;" data-bs-dismiss="modal" aria-label="Close"></button>';jQuery('.aui-carousel-modal .modal-content').html($carousel).prepend($close);ayeModal.show();try{if('ontouchstart'in document.documentElement||navigator.maxTouchPoints>0){let _bsC=new bootstrap.Carousel('#aui-embed-slider-modal')}}catch(err){}}}function aui_init_lightbox_embed(){jQuery('.aui-lightbox-image, .aui-lightbox-iframe').off('click').on("click",function(ele){aui_lightbox_embed(this,ele)})}function aui_init_modal_iframe(){jQuery('.aui-has-embed, [data-aui-embed="iframe"]').each(function(e){if(!jQuery(this).hasClass('aui-modal-iframed')&&jQuery(this).data('embed-url')){jQuery(this).addClass('aui-modal-iframed');jQuery(this).on("click",function(e1){aui_modal_iframe('',jQuery(this).data('embed-url'),'',true,'','modal-lg','aui-modal-iframe p-0',true);return false})}})}$aui_doing_toast=false;function aui_toast($id,$type,$title,$title_small,$body,$time,$can_close){if($aui_doing_toast){setTimeout(function(){aui_toast($id,$type,$title,$title_small,$body,$time,$can_close)},500);return}$aui_doing_toast=true;if($can_close==null){$can_close=false}if($time==''||$time==null){$time=3000}if(document.getElementById($id)){jQuery('#'+$id).toast('show');setTimeout(function(){$aui_doing_toast=false},500);return}var uniqid=Date.now();if($id){uniqid=$id}$op="";$tClass='';$thClass='';$icon="";if($type=='success'){$op="opacity:.92;";$tClass='alert bg-success w-auto';$thClass='bg-transparent border-0 text-white';$icon="<div class='h5 m-0 p-0'><i class='fas fa-check-circle me-2'></i></div>"}else if($type=='error'||$type=='danger'){$op="opacity:.92;";$tClass='alert bg-danger  w-auto';$thClass='bg-transparent border-0 text-white';$icon="<div class='h5 m-0 p-0'><i class='far fa-times-circle me-2'></i></div>"}else if($type=='info'){$op="opacity:.92;";$tClass='alert bg-info  w-auto';$thClass='bg-transparent border-0 text-white';$icon="<div class='h5 m-0 p-0'><i class='fas fa-info-circle me-2'></i></div>"}else if($type=='warning'){$op="opacity:.92;";$tClass='alert bg-warning  w-auto';$thClass='bg-transparent border-0 text-dark';$icon="<div class='h5 m-0 p-0'><i class='fas fa-exclamation-triangle me-2'></i></div>"}if(!document.getElementById("aui-toasts")){jQuery('body').append('<div class="bsui" id="aui-toasts"><div class="position-fixed aui-toast-bottom-right pr-3 pe-3 mb-1" style="z-index: 500000;right: 0;bottom: 0;'+$op+'"></div></div>')}$toast='<div id="'+uniqid+'" class="toast fade hide shadow hover-shadow '+$tClass+'" style="" role="alert" aria-live="assertive" aria-atomic="true" data-bs-delay="'+$time+'">';if($type||$title||$title_small){$toast+='<div class="toast-header '+$thClass+'">';if($icon){$toast+=$icon}if($title){$toast+='<strong class="me-auto">'+$title+'</strong>'}if($title_small){$toast+='<small>'+$title_small+'</small>'}if($can_close){$toast+='<button type="button" class="ms-2 mb-1 btn-close" data-bs-dismiss="toast" aria-label="Close"></button>'}$toast+='</div>'}if($body){$toast+='<div class="toast-body">'+$body+'</div>'}$toast+='</div>';jQuery('.aui-toast-bottom-right').prepend($toast);jQuery('#'+uniqid).toast('show');setTimeout(function(){$aui_doing_toast=false},500)}function aui_init_counters(){const animNum=(EL)=>{if(EL._isAnimated)return;EL._isAnimated=true;let end=EL.dataset.auiend;let start=EL.dataset.auistart;let duration=EL.dataset.auiduration?EL.dataset.auiduration:2000;let seperator=EL.dataset.auisep?EL.dataset.auisep:'';jQuery(EL).prop('Counter',start).animate({Counter:end},{duration:Math.abs(duration),easing:'swing',step:function(now){const text=seperator?(Math.ceil(now)).toLocaleString('en-US'):Math.ceil(now);const html=seperator?text.split(",").map(n=>`<span class="count">${n}</span>`).join(","):text;if(seperator&&seperator!=','){html.replace(',',seperator)}jQuery(this).html(html)}})};const inViewport=(entries,observer)=>{entries.forEach(entry=>{if(entry.isIntersecting)animNum(entry.target)})};jQuery("[data-auicounter]").each((i,EL)=>{const observer=new IntersectionObserver(inViewport);observer.observe(EL)})}function aui_init(){aui_init_counters();init_nav_sub_menus();aui_init_tooltips();aui_init_select2();aui_init_flatpickr();aui_init_iconpicker();aui_init_greedy_nav();aui_time_ago('timeago');aui_init_carousel_multiple_items();aui_init_lightbox_embed();aui_init_modal_iframe()}jQuery(window).on("load",function(){aui_init()});jQuery(function($){var ua=navigator.userAgent.toLowerCase();var isiOS=ua.match(/(iphone|ipod|ipad)/);if(isiOS){var pS=0;pM=parseFloat($('body').css('marginTop'));$(document).on('show.bs.modal',function(){pS=window.scrollY;$('body').css({marginTop:-pS,overflow:'hidden',position:'fixed',})}).on('hidden.bs.modal',function(){$('body').css({marginTop:pM,overflow:'visible',position:'inherit',});window.scrollTo(0,pS)})}$(document).on('slide.bs.carousel',function(el){var $_modal=$(el.relatedTarget).closest('.aui-carousel-modal:visible').length?$(el.relatedTarget).closest('.aui-carousel-modal:visible'):'';if($_modal&&$_modal.find('.carousel-item iframe.aui-carousel-iframe').length){$_modal.find('.carousel-item.active iframe.aui-carousel-iframe').each(function(){if($(this).attr('src')){$(this).data('src',$(this).attr('src'));$(this).attr('src','')}});if($(el.relatedTarget).find('iframe.aui-carousel-iframe').length){$(el.relatedTarget).find('.ac-preview-loading').removeClass('d-none').addClass('d-flex');var $cIframe=$(el.relatedTarget).find('iframe.aui-carousel-iframe');if(!$cIframe.attr('src')&&$cIframe.data('src')){$cIframe.attr('src',$cIframe.data('src'))}$cIframe.on('load',function(){setTimeout(function(){$_modal.find('.ac-preview-loading').removeClass('d-flex').addClass('d-none')},1250)})}}})});var aui_confirm=function(message,okButtonText,cancelButtonText,isDelete,large){okButtonText=okButtonText||'Yes';cancelButtonText=cancelButtonText||'Cancel';message=message||'Are you sure?';sizeClass=large?'':'modal-sm';btnClass=isDelete?'btn-danger':'btn-primary';deferred=jQuery.Deferred();var $body="";$body+="<h3 class='h4 py-3 text-center text-dark'>"+message+"</h3>";$body+="<div class='d-flex'>";$body+="<button class='btn btn-outline-secondary w-50 btn-round' data-bs-dismiss='modal'  onclick='deferred.resolve(false);'>"+cancelButtonText+"</button>";$body+="<button class='btn "+btnClass+" ms-2 w-50 btn-round' data-bs-dismiss='modal'  onclick='deferred.resolve(true);'>"+okButtonText+"</button>";$body+="</div>";$modal=aui_modal('',$body,'',false,'',sizeClass);return deferred.promise()};function aui_flip_color_scheme_on_scroll($value,$iframe){if(!$value)$value=window.scrollY;var navbar=$iframe?$iframe.querySelector('.color-scheme-flip-on-scroll'):document.querySelector('.color-scheme-flip-on-scroll');if(navbar==null)return;let cs_original=navbar.dataset.cso;let cs_scroll=navbar.dataset.css;if(!cs_scroll&&!cs_original){if(navbar.classList.contains('navbar-light')){cs_original='navbar-light';cs_scroll='navbar-dark'}else if(navbar.classList.contains('navbar-dark')){cs_original='navbar-dark';cs_scroll='navbar-light'}navbar.dataset.cso=cs_original;navbar.dataset.css=cs_scroll}if($value>0||navbar.classList.contains('nav-menu-open')){navbar.classList.remove(cs_original);navbar.classList.add(cs_scroll)}else{navbar.classList.remove(cs_scroll);navbar.classList.add(cs_original)}}window.onscroll=function(){aui_set_data_scroll();aui_flip_color_scheme_on_scroll()};function aui_set_data_scroll(){document.documentElement.dataset.scroll=window.scrollY}aui_set_data_scroll();aui_flip_color_scheme_on_scroll();
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/dist/vendor/react.min.js?ver=18.3.1.1" id="react-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1" id="react-dom-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/dist/escape-html.min.js?ver=6561a406d2d232a6fbd2" id="wp-escape-html-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/dist/element.min.js?ver=cb762d190aebbec25b27" id="wp-element-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/advanced-post-block-pro/assets/js/swiper-bundle.min.js?ver=7.0.3" id="swiperJS-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/advanced-post-block-pro/assets/js/easy-ticker.min.js?ver=3.2.1" id="easyTicker-js"></script>
<script type="text/javascript" id="ap-block-posts-script-js-extra">
/* <![CDATA[ */
var apbPageData = {"ajaxUrl":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php"};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/advanced-post-block-pro/dist/script.js?ver=1.9.7" id="ap-block-posts-script-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/senior-resource/assests/js/main.js?ver=6.7.2" id="wpdp-js-js"></script>
<script type="text/javascript" id="userswp-js-extra">
/* <![CDATA[ */
var uwp_localize_data = {"uwp_more_char_limit":"100","uwp_more_text":"more","uwp_less_text":"less","error":"Something went wrong.","error_retry":"Something went wrong, please retry.","uwp_more_ellipses_text":"...","ajaxurl":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php","login_modal":"1","register_modal":"1","forgot_modal":"1","uwp_pass_strength":"0","uwp_strong_pass_msg":"Please enter valid strong password.","default_banner":"https:\/\/www.seniorresource.com\/wp-content\/uploads\/2023\/12\/White-Colorful-Abstract-Watercolor-Minimal-Guide-to-Color-Theory-Youtube-Thumbnail-4.png","basicNonce":"e2b4afbb0f"};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/userswp/assets/js/users-wp.min.js?ver=1.2.31" id="userswp-js"></script>
<link rel="alternate" title="oEmbed (JSON)" type="application/json+oembed" href="https://www.seniorresource.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.seniorresource.com%2Fbest-reasons-for-retiring-in-a-small-town%2F" />
<link rel="alternate" title="oEmbed (XML)" type="text/xml+oembed" href="https://www.seniorresource.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fwww.seniorresource.com%2Fbest-reasons-for-retiring-in-a-small-town%2F&#038;format=xml" />
<style type="text/css" title="smsyes_style">.smsyes{display:none;}</style><style type="text/css" title="subyes_style">.subyes{display:none;}</style><meta name="google-site-verification" content="mIbi1hqMBhzbo8JgOSzDnNweHHMJ8HUo2lCfXQsBIfM" />
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-94VKVTLKCJ"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-94VKVTLKCJ');
</script>
<script>
  (function() {
    var a = String(Math.floor(Math.random() * 10000000000000000));
    new Image().src = 'https://pubads.g.doubleclick.net/activity;dc_iu=/6177/DFPAudiencePixel;ord=' + a + ';dc_seg=7462129605?';
  })();
</script>
<noscript>
  <img alt='' src='https://pubads.g.doubleclick.net/activity;dc_iu=/6177/DFPAudiencePixel;ord=1;dc_seg=7462129605?' width=1 height=1 border=0/>
</noscript>
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1242638326681160');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1242638326681160&ev=PageView&noscript=1" /></noscript>
<!-- End Meta Pixel Code -->
<!--<script async type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/f80f8535caf1ba314c4b8ee0a2db402f.js"></script>-->

<!-- LiveConnectTag for advertisers -->
<script type="text/javascript" src="//b-code.liadm.com/b-033i.min.js" async="true" charset="utf-8"></script>
<!-- LiveConnectTag for advertisers -->
	<style>#ub-advanced-video-28a06b95-3b68-40d7-940d-7b3d7f904609.ub-advanced-video-container{width: 100%;}#ub-advanced-video-28a06b95-3b68-40d7-940d-7b3d7f904609 .ub-advanced-video-autofit-youtube{aspect-ratio: 1280/720;}#ub-advanced-video-28a06b95-3b68-40d7-940d-7b3d7f904609 .ub-advanced-video-autofit-youtube > iframe{aspect-ratio: 1280/720;height: auto !important;}#ub-advanced-video-28a06b95-3b68-40d7-940d-7b3d7f904609{border-top: 0px solid ;border-left: 0px solid ;border-right: 0px solid ;border-bottom: 0px solid ;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}#ub-advanced-video-28a06b95-3b68-40d7-940d-7b3d7f904609{}#ub-styled-box-baa71ab2-83a3-4c0d-bef7-7b058e2629e1{}#ub-styled-box-baa71ab2-83a3-4c0d-bef7-7b058e2629e1.ub-notification-box{ background-color: #d9edf7; color: #31708f; border-left-color: #31708f; } #ub-styled-box-80a835e4-310b-4136-ac32-dc405a19efe9{}#ub-styled-box-80a835e4-310b-4136-ac32-dc405a19efe9.ub-notification-box{ background-color: #d9edf7; color: #31708f; border-left-color: #31708f; } #ub-styled-box-7a6bc92b-492b-443d-929d-718f5de1bc8c{}#ub-styled-box-7a6bc92b-492b-443d-929d-718f5de1bc8c.ub-notification-box{ background-color: #d9edf7; color: #31708f; border-left-color: #31708f; } #ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848.ub-advanced-video-container{width: 100%;}#ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848 .ub-advanced-video-autofit-youtube{aspect-ratio: 1280/720;}#ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848 .ub-advanced-video-autofit-youtube > iframe{aspect-ratio: 1280/720;height: auto !important;}#ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848{border-top: 0px solid ;border-left: 0px solid ;border-right: 0px solid ;border-bottom: 0px solid ;border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-left-radius: 0px;border-bottom-right-radius: 0px;}#ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848{}</style>

	<script type="text/javascript">
           var ajaxurl = "https://www.seniorresource.com/wp-admin/admin-ajax.php";
         </script>
<style>
	.getpaid-price-buttons label{
		transition: all .3s ease-out;
		text-align: center;
		padding: 10px 20px;
		background-color: #eeeeee;
		border: 1px solid #e0e0e0;
	}

	.getpaid-price-circles label {
		padding: 0 4px;
		-moz-border-radius:50%;
		-webkit-border-radius: 50%;
		border-radius: 50%;
	}

	.getpaid-price-circles label span{
		display: block;
		padding: 50%;
		margin: -3em -50% 0;
		position: relative;
		top: 1.5em;
		border: 1em solid transparent;
		white-space: nowrap;
	}

	.getpaid-price-buttons input[type="radio"]{
		visibility: hidden;
		height: 0;
		width: 0 !important;
	}

	.getpaid-price-buttons input[type="radio"]:checked + label,
	.getpaid-price-buttons label:hover {
		color: #fff;
		background-color: #1e73be;
		border-color: #1e73be;
	}

	.getpaid-public-items-archive-single-item .inner {
		box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	}

	.getpaid-public-items-archive-single-item:hover .inner{
		box-shadow: 0 1px 4px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.30);
	}

	.wp-block-getpaid-public-items-getpaid-public-items-loop .item-name {
		font-size: 1.3rem;
	}

	.getpaid-subscription-item-actions {
		color: #ddd;
		font-size: 13px;
		padding: 2px 0 0;
		position: relative;
		left: -9999em;
	}

	.getpaid-subscriptions-table-row:hover .getpaid-subscription-item-actions {
		position: static;
	}

	.getpaid-subscriptions table {
		font-size: 0.9em;
		table-layout: fixed;
	}

	.getpaid-subscriptions-table-column-subscription {
		font-weight: 500;
	}

	.getpaid-subscriptions-table-row span.label {
		font-weight: 500;
	}

	.getpaid-subscriptions.bsui .table-bordered thead th {
		border-bottom-width: 1px;
	}

	.getpaid-subscriptions.bsui .table-striped tbody tr:nth-of-type(odd) {
		background-color: rgb(0 0 0 / 0.01);
	}

	.wpinv-page .bsui a.btn {
		text-decoration: none;
		margin-right: 2px;
    	margin-bottom: 2px;
	}

	.getpaid-cc-card-inner {
		max-width: 460px;
	}

	.getpaid-payment-modal-close {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 200;
	}

	.getpaid-form-cart-item-price {
		min-width: 120px !important;
	}

	/* Fabulous Fluid theme fix */
	#primary .getpaid-payment-form p {
		float: none !important;
	}

	.bsui .is-invalid ~ .invalid-feedback, .bsui .is-invalid ~ .invalid-tooltip {
		display: block
	}

	.bsui .is-invalid {
		border-color: #dc3545 !important;
	}

	.getpaid-file-upload-element{
		height: 200px;
		border: 3px dashed #dee2e6;
		cursor: pointer;
	}

	.getpaid-file-upload-element:hover{
		border: 3px dashed #424242;
	}

	.getpaid-file-upload-element.getpaid-trying-to-drop {
	    border: 3px dashed #8bc34a;
		background: #f1f8e9;
	}
</style>
<script id='nitro-telemetry-meta' nitro-exclude>window.NPTelemetryMetadata={missReason: (!window.NITROPACK_STATE ? 'cache not found' : 'hit'),pageType: 'post',isEligibleForOptimization: true,}</script><script id='nitro-generic' nitro-exclude>(()=>{window.NitroPack=window.NitroPack||{coreVersion:"na",isCounted:!1};let e=document.createElement("script");if(e.src="https://nitroscripts.com/BUmFHAhFfrGMpswNseLgbMdAVwxeELWe",e.async=!0,e.id="nitro-script",document.head.appendChild(e),!window.NitroPack.isCounted){window.NitroPack.isCounted=!0;let t=()=>{navigator.sendBeacon("https://to.getnitropack.com/p",JSON.stringify({siteId:"BUmFHAhFfrGMpswNseLgbMdAVwxeELWe",url:window.location.href,isOptimized:!!window.IS_NITROPACK,coreVersion:"na",missReason:window.NPTelemetryMetadata?.missReason||"",pageType:window.NPTelemetryMetadata?.pageType||"",isEligibleForOptimization:!!window.NPTelemetryMetadata?.isEligibleForOptimization}))};(()=>{let e=()=>new Promise(e=>{"complete"===document.readyState?e():window.addEventListener("load",e)}),i=()=>new Promise(e=>{document.prerendering?document.addEventListener("prerenderingchange",e,{once:!0}):e()}),a=async()=>{await i(),await e(),t()};a()})(),window.addEventListener("pageshow",e=>{if(e.persisted){let i=document.prerendering||self.performance?.getEntriesByType?.("navigation")[0]?.activationStart>0;"visible"!==document.visibilityState||i||t()}})}})();</script><link rel="icon" href="https://www.seniorresource.com/wp-content/uploads/2023/09/cropped-SRYouTube-32x32.png" sizes="32x32" />
<link rel="icon" href="https://www.seniorresource.com/wp-content/uploads/2023/09/cropped-SRYouTube-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://www.seniorresource.com/wp-content/uploads/2023/09/cropped-SRYouTube-180x180.png" />
<meta name="msapplication-TileImage" content="https://www.seniorresource.com/wp-content/uploads/2023/09/cropped-SRYouTube-270x270.png" />
<meta name="generator" content="WP Super Duper v1.2.19" data-sd-source="userswp" />	</head>
	<body class="post-template-default single single-post postid-2594 single-format-standard geodir_custom_posts aui_bs5 gd-map-auto">
	<!-- body test -->
		<nav class="navbar navbar-expand-md navbar-light bg-light sticky-top" role="navigation">
  		<div class="container">
    		<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#bs-example-navbar-collapse-1" aria-controls="bs-example-navbar-collapse-1" aria-expanded="false" aria-label="Toggle navigation">
        		<span class="navbar-toggler-icon"></span>
    		</button>
    		<a class="navbar-brand py-0" href="/"><img src="https://www.seniorresource.com/wp-content/themes/bootstrap/images/senior-resource-logo.svg" alt="SeniorResource" class="mx-auto d-block" style="height:40px;" /></a>
	  		<div id="bs-example-navbar-collapse-1" class="collapse navbar-collapse"><ul id="menu-primary" class="navbar-nav mr-auto" itemscope itemtype="http://www.schema.org/SiteNavigationElement"><li  id="menu-item-5572" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-5572 nav-item"><a itemprop="url" href="/senior-housing" class="nav-link"><span itemprop="name">Senior Housing</span></a></li>
<li  id="menu-item-20239" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20239 nav-item"><a itemprop="url" href="/estate-planning/" class="nav-link"><span itemprop="name">Estate Planning</span></a></li>
<li  id="menu-item-104825" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104825 nav-item"><a itemprop="url" href="https://www.seniorresource.com/medicare-more/" class="nav-link"><span itemprop="name">Medicare</span></a></li>
<li  id="menu-item-104832" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104832 nav-item"><a itemprop="url" href="https://www.seniorresource.com/health-wellness-for-seniors-and-retirees/" class="nav-link"><span itemprop="name">Senior Wellness</span></a></li>
<li  id="menu-item-5579" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-5579 nav-item"><a href="#" data-toggle="dropdown" aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-5579"><span itemprop="name">Senior Care</span></a>
<ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-5579">
	<li  id="menu-item-5583" class="gd-menu-item menu-item menu-item-type-post_type_archive menu-item-object-gd_adult_day_care menu-item-5583 nav-item"><a itemprop="url" href="https://www.seniorresource.com/adult_day_care/" class="dropdown-item"><span itemprop="name">Adult Day Care</span></a></li>
	<li  id="menu-item-5573" class="gd-menu-item menu-item menu-item-type-post_type_archive menu-item-object-gd_aging_in_place menu-item-5573 nav-item"><a itemprop="url" href="https://www.seniorresource.com/aging_in_place/" class="dropdown-item"><span itemprop="name">Aging in Place</span></a></li>
	<li  id="menu-item-5575" class="gd-menu-item menu-item menu-item-type-post_type_archive menu-item-object-gd_home_care menu-item-5575 nav-item"><a itemprop="url" href="https://www.seniorresource.com/home_care/" class="dropdown-item"><span itemprop="name">Home Care</span></a></li>
	<li  id="menu-item-5582" class="gd-menu-item menu-item menu-item-type-post_type_archive menu-item-object-gd_hospice_care menu-item-5582 nav-item"><a itemprop="url" href="https://www.seniorresource.com/hospice_care/" class="dropdown-item"><span itemprop="name">Hospice Care</span></a></li>
	<li  id="menu-item-105816" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-105816 nav-item"><a itemprop="url" href="https://www.seniorresource.com/alzheimers-dementia/" class="dropdown-item"><span itemprop="name">Alzheimer’s &#038; Dementia Care</span></a></li>
	<li  id="menu-item-105815" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-105815 nav-item"><a itemprop="url" href="https://www.seniorresource.com/long-term-care-planning/" class="dropdown-item"><span itemprop="name">Long-Term Care Planning</span></a></li>
</ul>
</li>
<li  id="menu-item-20244" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-20244 nav-item"><a itemprop="url" href="/finance-for-seniors-and-retirees/" class="nav-link"><span itemprop="name">Financial Planning</span></a></li>
<li  id="menu-item-20237" class="gd-menu-item menu-item menu-item-type-post_type_archive menu-item-object-gd_senior_education menu-item-20237 nav-item"><a itemprop="url" href="https://www.seniorresource.com/senior-education/" class="nav-link"><span itemprop="name">Senior Education</span></a></li>
<li  id="menu-item-124211" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-124211 nav-item"><a itemprop="url" href="https://podcasts.seniorresource.com/" class="nav-link"><span itemprop="name">Podcasts</span></a></li>
<li  id="menu-item-83038" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children dropdown menu-item-83038 nav-item"><a href="#" data-toggle="dropdown" aria-expanded="false" class="dropdown-toggle nav-link" id="menu-item-dropdown-83038"><span itemprop="name">My Account</span></a>
<ul class="dropdown-menu" aria-labelledby="menu-item-dropdown-83038">
	<li  id="menu-item-83039" class="users-wp-menu users-wp-login-nav menu-item menu-item-type-custom menu-item-object-custom menu-item-83039 nav-item"><a itemprop="url" href="https://www.seniorresource.com/login/" class="dropdown-item"><span itemprop="name">Login</span></a></li>
	<li  id="menu-item-83044" class="users-wp-menu users-wp-register-nav menu-item menu-item-type-custom menu-item-object-custom menu-item-83044 nav-item"><a itemprop="url" href="https://www.seniorresource.com/register/" class="dropdown-item"><span itemprop="name">Register</span></a></li>
	<li  id="menu-item-83040" class="users-wp-menu users-wp-forgot-nav menu-item menu-item-type-custom menu-item-object-custom menu-item-83040 nav-item"><a itemprop="url" href="https://www.seniorresource.com/forgot/" class="dropdown-item"><span itemprop="name">Forgot Password?</span></a></li>
</ul>
</li>
</ul></div>	  		<button type="button" class="btn btn-primary menu-search" data-bs-toggle="modal" data-bs-target="#exampleModalCenter">Search</button>
    	</div>
	</nav>
	<!-- Modal -->
	<div class="modal fade popup-serch-box" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
		<div class="modal-dialog modal-dialog-centered" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<div class="modal-title" id="exampleModalLongTitle">Search</div>
					<button type="button" class="close search-close" data-bs-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
					</button>
				</div>
				<div class="modal-body">
					<!-- Tabs navs -->
					<ul class="nav nav-tabs mb-3" id="ex1" role="tablist">
						<li class="nav-item" role="presentation">
							<a class="nav-link active" id="ex1-tab-1" data-mdb-toggle="tab" href="#ex1-tabs-1" role="tab" aria-controls="ex1-tabs-1" aria-selected="true">Directory Search </a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="ex1-tab-2" data-mdb-toggle="tab" href="#ex1-tabs-2" role="tab" aria-controls="ex1-tabs-2" aria-selected="false">Article Search</a>
						</li>
					</ul>
					<!-- Tabs navs -->
					<!-- Tabs content -->
					<div class="tab-content" id="ex1-content">
						<div class="tab-pane fade show active" id="ex1-tabs-1" role="tabpanel" aria-labelledby="ex1-tab-1"> 
							<div class="geodir-search-container bsui sdel-18189a27 geodir-advance-search-always"  data-show-adv="always"><div class="geodir-search-form-wrapper mb-3">
	<form class="w-100 d-block geodir-listing-search gd-search-bar-style geodir-search-show-main" data-show="main" name="geodir-listing-search" action="https://www.seniorresource.com/search/" method="get" style="box-sizing:content-box;">
		<input type="hidden" name="geodir_search" value="1" />
		
		<div class="geodir-search row gap-2 gy-2 px-3 align-items-center" style="row-gap:0!important;">
				<div class='gd-search-field-search col-auto flex-fill
 px-0' style="flex-grow:9999 !important;" data-rule-key="s" data-rule-type="text">
	<div class=" "  ><label  class="sr-only   form-label" >Search for</label><div class="input-group-inside position-relative w-100"  ><div class="input-group-text  bg-transparent border-0"><span class="geodir-search-input-label hover-swap text-muted" onclick="jQuery('.search_text').val('').trigger('change').trigger('keyup');"><i class="fas fa-search hover-content-original"></i><i class="fas fa-times geodir-search-input-label-clear hover-content c-pointer" title="Clear field"></i></span></div><input type="text"  name="s"  placeholder="Search for"  class="form-control search_text gd_search_text w-100 "  onkeydown="if(event.keyCode == 13) geodir_click_search(this);"  onClick="this.select();"  autocomplete="off"  size="16"  aria-label="Search for"  data-bs-toggle="dropdown"  data-bs-flip="false"  ></div></div></div>
<div class='gd-search-input-wrapper gd-search-field-cpt  col-auto flex-fill px-0'data-rule-key="type" data-rule-type="select"><div class="mb-3"><label class="sr-only sr-only ">Select search type</label>			<select name="stype" class="search_by_post  form-control form-select" aria-label="Post Type">
				<option value="">Select a category...</option>
									<option  data-slug="senior-education"  data-label="https://www.seniorresource.com/senior-education/" value="gd_senior_education" >Senior Education</option>

									<option  data-slug="adult_day_care"  data-label="https://www.seniorresource.com/adult_day_care/" value="gd_adult_day_care" >Adult Day Care</option>

									<option  data-slug="aging_in_place"  data-label="https://www.seniorresource.com/aging_in_place/" value="gd_aging_in_place" >Aging In Place</option>

									<option  data-slug="assisted_living"  data-label="https://www.seniorresource.com/assisted_living/" value="gd_assisted_livin" >Assisted Living</option>

									<option  data-slug="cohousing"  data-label="https://www.seniorresource.com/cohousing/" value="gd_cohousing" >Cohousing</option>

									<option  data-slug="elder_law"  data-label="https://www.seniorresource.com/elder_law/" value="gd_elder_law" >Elder Law & Estate Planning</option>

									<option  data-slug="home_care"  data-label="https://www.seniorresource.com/home_care/" value="gd_home_care" >Home Care</option>

									<option  data-slug="senior_apartments"  data-label="https://www.seniorresource.com/senior_apartments/" value="gd_senior_apartme" >Senior Apartments</option>

									<option  data-slug="nursing_homes"  data-label="https://www.seniorresource.com/nursing_homes/" value="gd_nursing_homes" >Nursing Homes</option>

									<option  data-slug="hospice_care"  data-label="https://www.seniorresource.com/hospice_care/" value="gd_hospice_care" >Hospice Care</option>

									<option  data-slug="modular_home"  data-label="https://www.seniorresource.com/modular_home/" value="gd_mhc" >Modular Home Communities</option>

									<option  data-slug="shared_housing"  data-label="https://www.seniorresource.com/shared_housing/" value="gd_shared_housing" >Shared Housing</option>

									<option  data-slug="housekeeping"  data-label="https://www.seniorresource.com/housekeeping/" value="gd_housekeeping" >Housekeeping & Cleaning Services</option>

									<option  data-slug="retirement_community"  data-label="https://www.seniorresource.com/retirement_community/" value="gd_retirement_com" >Retirement Communities</option>

							</select>
			</div></div><div class='gd-search-field-near col-auto flex-fill
 px-0' style="flex-grow:9999 !important;" data-rule-key="near" data-rule-type="text">
	<div class=" "  ><label  class="sr-only sr-only visually-hidden  form-label" >Enter City, State, or Zip code</label><div class="input-group-inside position-relative w-100"  ><label class="sr-only sr-only ">Location</label><input type="text"  name="snear"  placeholder="Enter City, State, or Zip code"  class="form-control snear w-100 "  onkeydown="javascript: if(event.keyCode == 13) geodir_click_search(this);"  onClick="this.select();"  autocomplete="off"  size="16"  aria-label="Enter City, State, or Zip code"  data-bs-toggle="dropdown"  data-bs-flip="false"  ></div></div></div>
<div class='gd-search-field-search col-auto flex-grow-1 px-0'>
	<div class=''>
		<button type="button"  class="geodir_submit_search btn w-100  btn-primary"  data-title="Search"  aria-label="Search"  >Search<span class="sr-only visually-hidden">Search</span></button>
	</div>
</div>
		</div>
				<input name="sgeo_lat" class="sgeo_lat" type="hidden" value=""/>
		<input name="sgeo_lon" class="sgeo_lon" type="hidden" value=""/>
		<input class="geodir-location-search-type" name="" type="hidden" value=""><div class="geodir-keep-args" style="display:none!important">{"hide_search_input":"","hide_near_input":"","show":"main","filters_pos":"","input_size":"","bar_flex_wrap":"","bar_flex_wrap_md":"","bar_flex_wrap_lg":"","input_border":"","input_border_opacity":"","input_rounded_size":"","btn_bg":"","btn_rounded_size":"","btn_rounded_size_md":"","btn_rounded_size_lg":"","bg":"","mt":"","mr":"","mb":"3","ml":"","pt":"","pr":"","pb":"","pl":"","border":"","rounded":"","rounded_size":"","rounded_size_md":"","rounded_size_lg":"","shadow":"","css_class":""}</div>	</form>
</div>
</div>						</div>
						<div class="tab-pane fade" id="ex1-tabs-2" role="tabpanel" aria-labelledby="ex1-tab-2">
						<form role="search" method="get" class="search-form" action="https://www.seniorresource.com/">
							<label>
								<!-- <span class="screen-reader-text">Search for:</span> -->
								<input type="search" class="search-field"
									placeholder="Search Article …"
									value="" name="s"
									title="Search for:" />
							</label>
							<input type="submit" class="search-submit"
								value="Search" />
						</form>
						</div>
					</div>
					<!-- Tabs content -->
				</div>
				<!-- <div class="modal-footer">
					<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
					<button type="button" class="btn btn-primary">Save changes</button>
				</div> -->
			</div>
		</div>
	</div>
	<div class="container"><div class="row"><div class="col"><div  class="mx-auto text-center my-3 eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_leaderboard" ad_size="970x250" ad_size_mapping="leaderboard"> </div></div></div><div class="row"><div class="col"><span><span><a href="https://www.seniorresource.com/">Senior Resources</a></span> » <span class="breadcrumb_last" aria-current="page">7 Best Reasons to Retire in a Small Town</span></span></div></div><div class="row expanded">
	<article class="col-md-7 col-lg-8">
		<div class="col-12"><h1>7 Best Reasons to Retire in a Small Town</h1></div><div class="col-12"><div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='7 Best Reasons to Retire in a Small Town' data-link='https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/' data-summary='Small towns have a number of benefits and a great deal to offer retirees.' data-app-id-name='post_above_content'></div><div  class="mx-auto text-center pb-3 eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_leaderboard" ad_size="320x50" ad_size_mapping="mobile_leaderboard">Advertisement.</div>
<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="2000" height="1333" src="https://www.seniorresource.com/wp-content/uploads/2025/07/small-town-main-street.webp" alt="main street usa small town" class="wp-image-126718"/><figcaption class="wp-element-caption"><sup><sub>Marcia Straub / Getty Images</sub></sup></figcaption></figure>



<p>Are you planning your retirement? If so, you are likely trying to determine the best place to live out your golden years. Not only do you want a location that&#8217;s affordable, but you&#8217;re also looking for a place where you can live life to the fullest! Many people think of large, bustling cities for an active retirement, but here&#8217;s an option you may not have considered: a small town!  Small towns actually have a number of benefits and a great deal to offer retirees. Let&#8217;s talk about the best reasons for retiring in a small town!</p><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_in_article/position_1" ad_size="300x250" ad_size_mapping="inarticle">Advertisement.</div>



<h2 class="wp-block-heading" id="h-1-moving-to-a-small-town-doesn-t-mean-you-ll-lose-out-on-modern-conveniences">1. Moving to a small town doesn&#8217;t mean you&#8217;ll lose out on modern conveniences!</h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="682" src="https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue-1024x682.jpg" alt="interior of a home, fancy blues" class="wp-image-14535" srcset="https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue-1024x682.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue-300x200.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue-768x512.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue-1536x1024.jpg 1536w, https://www.seniorresource.com/wp-content/uploads/2022/12/interior-blue.jpg 2000w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>In the past, many people felt that small towns were not the ideal places to retire for one primary reason: lack of modern conveniences. Today, that&#8217;s not exactly true! Most small towns won&#8217;t force you to swap convenience for a simpler life. You&#8217;ll likely still have easy internet access, email, and internet phone services. Shopping opportunities and a variety of restaurants are still plentiful too. You&#8217;ll enjoy all the same perks of big city living just located in closer proximity to one another.</p>



<h2 class="wp-block-heading" id="h-2-enjoy-a-sense-of-community">2. Enjoy a sense of community. </h2>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="683" src="https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-1024x683.jpg" alt="senior friends hugging" class="wp-image-9222" srcset="https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-1024x683.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-300x200.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-768x512.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-1536x1025.jpg 1536w, https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging-640x427.jpg 640w, https://www.seniorresource.com/wp-content/uploads/2022/09/senior-friends-hugging.jpg 2000w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>When you live in a small town, you can enjoy a better quality of life because of the sense of community. Enjoy a slower pace with the added benefit of friends and neighbors who are always within arm’s reach!</p><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_in_article/position_2" ad_size="300x250" ad_size_mapping="inarticle">Advertisement.</div>


<div class="wp-block-ub-styled-box ub-styled-box ub-notification-box" id="ub-styled-box-baa71ab2-83a3-4c0d-bef7-7b058e2629e1">


<p class="has-white-background-color has-background" id="ub-styled-box-notification-content-"><strong>Read Next: </strong><a href="https://www.seniorresource.com/what-makes-a-small-town-perfect-for-retirement/">What Makes A Small Town Perfect For Retirement?</a></p>


</div>


<h2 class="wp-block-heading" id="h-3-less-traffic-for-less-frustration">3. Less traffic for less frustration!</h2>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.seniorresource.com/wp-content/uploads/2023/04/road-1024x682.jpg" alt="road in a rural farm like area" class="wp-image-23247"/></figure>



<p>When living in a smaller community, you can avoid the frustration of dealing with large volumes of traffic &#8211; something you don&#8217;t need to deal with in your retirement! In fact, you may opt to walk to local stores or restaurants, as they&#8217;ll all be close to one another anyhow.</p>



<h2 class="wp-block-heading" id="h-4-hobbies">4. Hobbies!</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="682" src="https://www.seniorresource.com/wp-content/uploads/2022/10/reading-1024x682.jpg" alt="reading a book in the park" class="wp-image-10907" srcset="https://www.seniorresource.com/wp-content/uploads/2022/10/reading-1024x682.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2022/10/reading-300x200.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2022/10/reading-768x512.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2022/10/reading-1536x1024.jpg 1536w, https://www.seniorresource.com/wp-content/uploads/2022/10/reading-640x427.jpg 640w, https://www.seniorresource.com/wp-content/uploads/2022/10/reading.jpg 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Living in a small town even makes it easier for you to enjoy some of<a href="https://www.seniorresource.com/15-low-cost-hobbies-for-boomers/"> your favorite hobbies</a>. Depending on the town you move to, you can enjoy hunting or fishing on a regular basis. Or, you can play softball in your backyard or in the neighborhood park. You can even start your own vegetable or perennial garden or participate in a community garden!</p>



<h2 class="wp-block-heading" id="h-5-small-towns-can-offer-more-safety-and-a-sense-of-security">5. Small towns can offer more safety and a sense of security.</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.seniorresource.com/wp-content/uploads/2019/09/couplewalking-2-1024x576.jpg" alt="elderly couple walking" class="wp-image-1740" srcset="https://www.seniorresource.com/wp-content/uploads/2019/09/couplewalking-2-1024x576.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2019/09/couplewalking-2-300x169.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2019/09/couplewalking-2-768x432.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2019/09/couplewalking-2.jpg 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Retiring to a small community also makes it possible to live a more carefree and safer life. After all, small communities do not have the same crime rates as larger cities. Therefore, you can walk down the street feeling safe and secure in the fact that you likely will not get mugged or hurt.</p><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_in_article/position_3" ad_size="300x250" ad_size_mapping="inarticle">Advertisement.</div>


<div class="wp-block-ub-styled-box ub-styled-box ub-notification-box" id="ub-styled-box-80a835e4-310b-4136-ac32-dc405a19efe9">


<p class="has-white-background-color has-background" id="ub-styled-box-notification-content-"><strong>Read Next: </strong><a href="https://www.seniorresource.com/senior-housing-considerations-for-safety/">Consider These Senior Housing Options If Safety Is Your Top Priority</a></p>


</div>


<h2 class="wp-block-heading" id="h-6-your-health-will-thank-you">6. Your health will thank you.</h2>



<figure class="wp-block-image size-large"><img decoding="async" src="https://www.seniorresource.com/wp-content/uploads/2023/04/elderly-couple-happy-1024x682.jpg" alt="elderly happy couple" class="wp-image-23098"/></figure>



<p>Less traffic, less factories, and fewer other pollution-causing businesses mean less pollution! You won&#8217;t have to deal with the smog that is common in big cities. And, your lungs will thank you! With better air quality comes more opportunities to get your exercise outdoors too.</p>



<p>Also great for your health is the lack of stress in a small town. After all, when you get away from it all, you are more likely to feel rested and relaxed. As a result, you will be able to keep your blood pressure down and keep your heart healthy. Getting away from the hustle and bustle of the city is a welcome reprieve for any retiree.</p>



<h2 class="wp-block-heading" id="h-7-choosing-a-small-town-over-a-retirement-community">7. Choosing a Small Town Over a Retirement Community</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="684" src="https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali-1024x684.jpg" alt="Small Town in California" class="wp-image-7131" srcset="https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali-1024x684.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali-300x200.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali-768x513.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali-1536x1026.jpg 1536w, https://www.seniorresource.com/wp-content/uploads/2022/09/small-town-cali.jpg 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p>Although <a href="https://www.seniorresource.com/retirement_community/">retirement communities</a> can certainly be a great place for living out your retirement years, moving to a small town has advantages over this type of retirement living. Living in a small town allows you to still live within a mixed-age community. And, for many retirees, the thought of living with only older individuals within a retirement community is undesirable. In fact, many prefer to live in a more diverse community where they can feed off of the energy of younger groups of people!</p>


<div class="wp-block-ub-styled-box ub-styled-box ub-notification-box" id="ub-styled-box-7a6bc92b-492b-443d-929d-718f5de1bc8c">


<p class="has-white-background-color has-background" id="ub-styled-box-notification-content-"><strong>Read Next: </strong><a href="https://www.seniorresource.com/5-simple-ways-to-save-money-on-retirement-housing/">5 Simple Ways To Save Money On Retirement Housing</a></p><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_in_article/position_4" ad_size="300x250" ad_size_mapping="inarticle">Advertisement.</div>


</div>


<p>When moving to a small town rather than a retirement community, you can also enjoy having a good parcel of land that is all your own. Since homes in small towns are not as costly as those in the city, you can stretch your dollars further and purchase a nice home in a small town to retire to that has a good amount of land.</p>



<h2 class="wp-block-heading" id="h-so-should-i-move-to-a-small-town-for-retirement">So, should I move to a small town for retirement?</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="682" src="https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz-1024x682.jpg" alt="small town in PA" class="wp-image-2849" srcset="https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz-1024x682.jpg 1024w, https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz-300x200.jpg 300w, https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz-768x512.jpg 768w, https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz-1536x1024.jpg 1536w, https://www.seniorresource.com/wp-content/uploads/2022/06/Lititz.jpg 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p><strong>Is small-town retirement for you?</strong> <a href="https://www.seniorresource.com/is-small-town-retirement-for-you/">Small communities</a> offer a certain amount of charm that cannot be found in retirement communities or in large cities. In addition, you can get closer to nature when living in small towns since these little gems are not filled with city skyscrapers, freeways, and other sites common to big cities.</p>



<p>Although retiring to a small town may not be the right choice for everyone, many retirees find small-town living to be the perfect way to live out their retirement years. Perhaps you are one of them!</p>


<div class="ub-advanced-video-container wp-block-ub-advanced-video" id="ub-advanced-video-795eb3ad-f500-4c3a-8d26-febb3ff17848" ><div class="ub-advanced-video-embed ub-advanced-video-autofit-youtube"><iframe loading="lazy" width="1280" height="720" src="//www.youtube.com/embed/PcLW8xOaUaU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div></div>


<p class="has-small-font-size"><sub>Image Credits: Shutterstock</sub></p>



<p></p>
<style type="text/css">#postup_article_bottom .container{
	background:#ededed;
}
#postup_article_bottom .fade-overlay{
	position:relative;
}
#postup_article_bottom .fade-overlay:after{
	width:25%;
	height:100%;
	background-image:linear-gradient(to right, rgba(237,237,237,1), rgba(237,237,237,0));
	content:'';
	position:absolute;
	left:0;
	top:0;
}</style><script type="text/javascript"></script><div class="postup-widget-class subno" id="postup_article_bottom"><div class="row grey-background align-items-center">
<div class="col-md-7 py-3">
<span class="h2">Get weekly tips on housing, retirement living, senior care, and more sent right to your inbox.</span>
<form data-package="4249" class="eaglepostupform" action="https://www.seniorresource.com/signups/signup-above-footer/" target="_blank" method="post" novalidate><input type="hidden" name="signupcode" value="FSRFOOTER" /><input type="hidden" name="signupurl" value="www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/" />
<input name="emailAddress" placeholder="Enter Your Email Here" type="email" class="form-control" />
<div class="d-grid gap-2">
<input type="submit" name="k"  value="Send me weekly tips" value="Send me weekly tips" class="btn btn-danger round bold btn-block my-3" />
</div>
</form>
</div>
<div class="col-md-5 px-0">
<div class="fade-overlay">
<img decoding="async" loading="lazy" class="" src="https://www.seniorresource.com/wp-content/uploads/2022/08/0-600x300.jpg" alt="Get Senior Resource in Your Inbox" />
</div>
</div>
</div></div><div style='display:none;' class='shareaholic-canvas' data-app='share_buttons' data-title='7 Best Reasons to Retire in a Small Town' data-link='https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/' data-summary='Small towns have a number of benefits and a great deal to offer retirees.' data-app-id-name='post_below_content'></div><div style='display:none;' class='shareaholic-canvas' data-app='recommendations' data-title='7 Best Reasons to Retire in a Small Town' data-link='https://www.seniorresource.com/best-reasons-for-retiring-in-a-small-town/' data-summary='Small towns have a number of benefits and a great deal to offer retirees.' data-app-id-name='post_below_content'></div></div><h2>Popular Articles About Retirement Locations</h2><div class="row"><aside class="col-lg-4"><aaria-label="10 Most Tax-Friendly States for Retirees in 2026" href="https://www.seniorresource.com/10-most-tax-friendly-states-for-retirees-in-2026/"><img width="315" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/07/us-map-economy-dollars.webp" class="fit-image wp-post-image" alt="10 Most Tax-Friendly States for Retirees in 2026" decoding="async" loading="lazy" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/10-most-tax-friendly-states-for-retirees-in-2026/">10 Most Tax-Friendly States for Retirees in 2026</a></h3></aside><aside class="col-lg-4"><aaria-label="Retiring Abroad? Don&#8217;t Make These 9 Mistakes!" href="https://www.seniorresource.com/retiring-abroad-dont-make-these-9-mistakes/"><img width="310" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/02/couple-retiring-abroad-map.webp" class="fit-image wp-post-image" alt="Retiring Abroad? Don&#8217;t Make These 9 Mistakes!" decoding="async" loading="lazy" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/retiring-abroad-dont-make-these-9-mistakes/">Retiring Abroad? Don&#8217;t Make These 9 Mistakes!</a></h3></aside><aside class="col-lg-4"><aaria-label="11 Best Cities in Florida for Retirement" href="https://www.seniorresource.com/11-best-cities-in-florida-for-retirement/"><img width="313" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/04/11-Best-Cities-in-Florida-for-Retirement.webp" class="fit-image wp-post-image" alt="11 Best Cities in Florida for Retirement" decoding="async" loading="lazy" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/11-best-cities-in-florida-for-retirement/">11 Best Cities in Florida for Retirement</a></h3></aside></div><div class="row">
					<div class="col-md-12">
						<div class="post-publish-date">
							<p>Originally published January 30, 2026</p>
						</div>
					</div>
				</div>
				<h3>Author(s):</h3>
				<div class="row post-author-box">
					<div class="col-12 col-lg-2">
						<div class="user-avatar"><a href="https://www.seniorresource.com/profile/seniorresourcecommunity/"><div class="card shadow-0 border-0 mw-100 bg-transparent">
<div class="card-body  mt-xl-0 pt-0">

	<div class="row justify-content-center">

		<div class="col  text-center tofront ">
						<img class="rounded-circle shadow border border-white border-width-4 p-0 mw-100"
			     src="https://www.seniorresource.com/wp-content/uploads/2023/06/happyretirement_uwp_avatar_thumb.jpg" alt="User avatar" height="100" width="100">
			
					</div>

	</div>

</div>

</div></a></div>
					</div>
					<div class="col-12 col-lg-10">
						<div class="user-info-box">
							<div class="user-info-header">
								<div class="user-info-social-media">
									<ul>
										
									</ul>
								</div>
								<div class="user-title">
									<p><a href="https://www.seniorresource.com/profile/seniorresourcecommunity/">Robert Fowler</a></p>
								</div>
								<p><a href="https://www.seniorresource.com/contributors/">Read More About Our Contributors</a></p>
							</div>
							<div class="user-meta"><div class="user-meta">Robert Fowler is a retired blogger, previously the President of Retirement Media Inc. He has visited numerous 55+ Active Adult Communities over the years, sharing his experiences along the way with readers.</div></div>
						</div>
					</div>
				</div>	</article>
    <div class="col-md-5 col-lg-4 sidebar">
    <div id="block-49" class="widget widget_block"><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_sidebar/senior_resource_sidebar_2" ad_size="300x600" ad_size_mapping="sidebar">Show this content while the ad loads.</div></div><div id="block-48" class="widget widget_block">
<div style="height:15px" aria-hidden="true" class="wp-block-spacer"></div>
</div><div id="block-8" class="widget widget_block"><p><div class="h3">Popular Articles About Retirement Locations</div><aaria-label="10 Most Tax-Friendly States for Retirees in 2026" href="https://www.seniorresource.com/10-most-tax-friendly-states-for-retirees-in-2026/"><img loading="lazy" decoding="async" width="315" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/07/us-map-economy-dollars.webp" class="fit-image wp-post-image" alt="10 Most Tax-Friendly States for Retirees in 2026" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/10-most-tax-friendly-states-for-retirees-in-2026/">10 Most Tax-Friendly States for Retirees in 2026</a></h3><aaria-label="Retiring Abroad? Don&#8217;t Make These 9 Mistakes!" href="https://www.seniorresource.com/retiring-abroad-dont-make-these-9-mistakes/"><img loading="lazy" decoding="async" width="310" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/02/couple-retiring-abroad-map.webp" class="fit-image wp-post-image" alt="Retiring Abroad? Don&#8217;t Make These 9 Mistakes!" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/retiring-abroad-dont-make-these-9-mistakes/">Retiring Abroad? Don&#8217;t Make These 9 Mistakes!</a></h3><aaria-label="11 Best Cities in Florida for Retirement" href="https://www.seniorresource.com/11-best-cities-in-florida-for-retirement/"><img loading="lazy" decoding="async" width="313" height="210" src="https://www.seniorresource.com/wp-content/uploads/2024/04/11-Best-Cities-in-Florida-for-Retirement.webp" class="fit-image wp-post-image" alt="11 Best Cities in Florida for Retirement" /></a><h3 class="pb-3"><a href="https://www.seniorresource.com/11-best-cities-in-florida-for-retirement/">11 Best Cities in Florida for Retirement</a></h3></p>
</div><div id="block-32" class="widget widget_block"><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_sidebar" ad_size="300x250" ad_size_mapping="sidebar">Show this content while the ad loads.</div></div><div id="media_image-5" class="widget widget_media_image"><a href="https://amac.us/secured/?ofid=4000&#038;utm_objective=membership_new&#038;utm_source=affiliate&#038;utm_campaign=senior_resource&#038;utm_medium=senior_resource_various"><img width="1080" height="900" src="https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B.png" class="image wp-image-124612  attachment-full size-full" alt="join amac ad" style="max-width: 100%; height: auto;" decoding="async" loading="lazy" srcset="https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B.png 1080w, https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B-300x250.png 300w, https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B-1024x853.png 1024w, https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B-768x640.png 768w, https://www.seniorresource.com/wp-content/uploads/2025/03/join-banner-300x250-032425-B-640x533.png 640w" sizes="auto, (max-width: 1080px) 100vw, 1080px" /></a></div>    </div>
</div>

<script nitro-exclude>
    document.cookie = 'nitroCachedPage=' + (!window.NITROPACK_STATE ? '0' : '1') + '; path=/; SameSite=Lax';
</script>
<script nitro-exclude>
    if (!window.NITROPACK_STATE || window.NITROPACK_STATE != 'FRESH') {
        var proxyPurgeOnly = 0;
        if (typeof navigator.sendBeacon !== 'undefined') {
            var nitroData = new FormData(); nitroData.append('nitroBeaconUrl', 'aHR0cHM6Ly93d3cuc2VuaW9ycmVzb3VyY2UuY29tL2Jlc3QtcmVhc29ucy1mb3ItcmV0aXJpbmctaW4tYS1zbWFsbC10b3duLw=='); nitroData.append('nitroBeaconCookies', 'W10='); nitroData.append('nitroBeaconHash', '6cc768322df3db18e058a33047983fc0cfa0287c52844e3d8abcb23b18c3f693ed65c3eb272792f57910b48b4e8277940c67a7c30c0f254f28c0272b38283004'); nitroData.append('proxyPurgeOnly', ''); nitroData.append('layout', 'post'); navigator.sendBeacon(location.href, nitroData);
        } else {
            var xhr = new XMLHttpRequest(); xhr.open('POST', location.href, true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.send('nitroBeaconUrl=aHR0cHM6Ly93d3cuc2VuaW9ycmVzb3VyY2UuY29tL2Jlc3QtcmVhc29ucy1mb3ItcmV0aXJpbmctaW4tYS1zbWFsbC10b3duLw==&nitroBeaconCookies=W10=&nitroBeaconHash=6cc768322df3db18e058a33047983fc0cfa0287c52844e3d8abcb23b18c3f693ed65c3eb272792f57910b48b4e8277940c67a7c30c0f254f28c0272b38283004&proxyPurgeOnly=&layout=post');
        }
    }
</script><div class="row p-3"><div class="col-12"><h2>Free Senior Resources</h2></div><div id="senior_resource_homepage_report-7" class="col-12 col-md-3 text-center widget widget_senior_resource_homepage_report"><div class="row"><div class="col-4 col-md-12"><div class="report-container book p-md-4"><div class="flip-box"><div class="flip-box-inner"><img width="706" height="890" src="https://www.seniorresource.com/wp-content/uploads/2024/03/ultimate-retirement-comm.png" class="report" alt="Ultimate Guide to Retirement Communities" decoding="async" loading="lazy" /></div></div></div></div><div class="col-8 col-md-12"><div class="h3 my-3">The Ultimate Guide to Retirement Communities</div><a class="btn blue-button round bold btn-block btn-lg" href="/signups/ultimate-guide-to-retirement-communities/?signupcode=UGRC">Get The Guide</a></div></div></div><div id="senior_resource_homepage_report-9" class="col-12 col-md-3 text-center widget widget_senior_resource_homepage_report"><div class="row"><div class="col-4 col-md-12"><div class="report-container book p-md-4"><div class="flip-box"><div class="flip-box-inner"><img width="512" height="697" src="https://www.seniorresource.com/wp-content/uploads/2024/11/aging-in-place-cover-512x697.png" class="report" alt="complete guide to aging in place cover" decoding="async" loading="lazy" /></div></div></div></div><div class="col-8 col-md-12"><div class="h3 my-3">Your Complete Guide to Aging in Place</div><a class="btn blue-button round bold btn-block btn-lg" href="/signups/your-complete-guide-to-aging-in-place/">Get The Guide</a></div></div></div><div id="senior_resource_homepage_report-8" class="col-12 col-md-3 text-center widget widget_senior_resource_homepage_report"><div class="row"><div class="col-4 col-md-12"><div class="report-container book p-md-4"><div class="flip-box"><div class="flip-box-inner"><img width="512" height="697" src="https://www.seniorresource.com/wp-content/uploads/2023/06/uepg-512x697.png" class="report" alt="ultimate estate planning checklist and guide" decoding="async" loading="lazy" /></div></div></div></div><div class="col-8 col-md-12"><div class="h3 my-3">Ultimate Estate Planning Checklist &#038; Guide</div><a class="btn blue-button round bold btn-block btn-lg" href="/signups/ultimate-estate-planning-checklist-and-guide/?signupcode=FSRUEPG">Get The Guide</a></div></div></div><div id="senior_resource_homepage_report-6" class="col-12 col-md-3 text-center widget widget_senior_resource_homepage_report"><div class="row"><div class="col-4 col-md-12"><div class="report-container book p-md-4"><div class="flip-box"><div class="flip-box-inner"><img width="512" height="659" src="https://www.seniorresource.com/wp-content/uploads/2024/02/adc2.png" class="report" alt="" decoding="async" loading="lazy" /></div></div></div></div><div class="col-8 col-md-12"><div class="h3 my-3">Guide to Adult Day Care</div><a class="btn blue-button round bold btn-block btn-lg" href="/signups/guide-to-adult-day-care/?signupcode=SRGTADC">Get The Guide</a></div></div></div></div><div id="block-33" class="widget widget_block"><div  class="mx-auto text-center eagle_dfp_ad" ad_slot="/6177/senior_resource/senior_resource_bottom_leaderboard" ad_size="970x250" ad_size_mapping="bottom_leaderboard" email_acquisition_eligible="true">Show this content while the ad loads.</div></div></div>
<footer id="footer">
	<div class="container">
		<div class="row">
			<div class="col-12 pt-3">
			<p>SeniorResource.com is your number-one source for retirement planning, caregiving tips, and senior living help. Discover directories, guides, and expert advice on the most important topics in retirement and 55+ lifestyle today, from estate planning and Medicare to senior housing, aging in place, senior wellness, and more &#8211; we&#8217;re educating and empowering Boomers &#038; Beyond!</p>
			</div>
		</div>
		<div class="row footer-buttons">
			<div class="col-lg-6">
				<a href="/senior-resources-by-topic/" class="btn btn-footer btn-footer-left">Browse Resources by Topic</a>
			</div>
			<div class="col-lg-6">
				<a href="/united-states/" class="btn btn-footer btn-footer-right">Browse Resources by State</a>
			</div>
		</div>
		<div class="row">
			<div class="col-12 text-center">
				<a href="/"><img loading="lazy" src="https://www.seniorresource.com/wp-content/themes/bootstrap/images/senior-resource-logo-white.svg" alt="SeniorResource" class="mx-auto" style="width:300px;" /></a>
			</div>
		</div>	
		<div class="row">
			<div class="col-lg-12">
				<div class="footer-menu"><ul id="menu-footer-menu" class="menu" itemscope itemtype="http://www.schema.org/SiteNavigationElement"><li id="menu-item-83022" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-home menu-item-83022"><a href="https://www.seniorresource.com/">Home</a></li>
<li id="menu-item-104830" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104830"><a href="https://www.seniorresource.com/about-us/">About Us</a></li>
<li id="menu-item-104828" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104828"><a href="https://www.seniorresource.com/contact-us/">Contact Us</a></li>
<li id="menu-item-104827" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104827"><a href="https://www.seniorresource.com/write-for-us/">Write For Us</a></li>
<li id="menu-item-104829" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-104829"><a href="https://www.seniorresource.com/ad-order/">Advertise With Senior Resource</a></li>
</ul></div>			</div>
		</div>	
		<div class="shareaholic-canvas" data-app="follow_buttons" data-app-id="28701884"></div>
		<div class="row">
			<div class="col-lg-12">
				<div class="footer-secondary-menu"><ul id="menu-footer-secondary-menu" class="menu" itemscope itemtype="http://www.schema.org/SiteNavigationElement"><li id="menu-item-107552" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-107552"><a target="_blank" rel="nofollow" href="https://salemmedia.com/terms-of-use/">Terms Of Use</a></li>
<li id="menu-item-107551" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-107551"><a target="_blank" rel="nofollow" href="https://salemmedia.com/privacy-policy/">Privacy Policy</a></li>
<li id="menu-item-126730" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-126730"><a href="/"><div id="us-nat-optout" data-google-interstitial="false"></div></a></li>
</ul></div>			</div>
		</div>	
		<div class="row">
			<div class="col-12 text-center pt-3">
				<p>&copy; 1996-2026 SeniorResource.com. Born in Irvine, CA, serving the nation. All Rights Reserved.</p>
			</div>
		</div>
	</div>
</footer>
    <script>
		function eagle_dfp_get_cookie(cname){
			var name = cname + "=";
			var ca = document.cookie.split(';');
			for(var i=0; i<ca.length; i++) 
			{
				var c = ca[i].trim();
				if (c.indexOf(name)==0) return c.substring(name.length,c.length);
			}
			return "";
		}
	</script>
    <style>
div[ad_size_mapping="leaderboard"] {
	/*height: 250px;*/
	height: 0px;
}
div[ad_size_mapping="mobile_leaderboard"] {
	height: 0px;
	display:none;
}
div[ad_size_mapping="inarticle"] {
	height: 250px;
}
@media screen and (max-width: 767px){
	div[ad_size_mapping="mobile_leaderboard"] {
		height: 50px;
		display:block;
	}
}
@media screen and (min-width: 768px) and (max-width: 969px){
	div[ad_size_mapping="leaderboard"] {
		height: 90px;
	}
}
@media screen and (min-width: 970px){
	div[ad_size_mapping="leaderboard"] {
		height: 250px;
	}
}
div[ad_size_mapping="sidebar"] {
	min-height: 250px;
}
@media screen and (min-width: 980px) {
	div[ad_size_mapping="sidebar"] {
		min-height: 250px;
	}
}
div[ad_size_mapping="bottom_leaderboard"] {
	height: 250px;
}
@media screen and (min-width: 336px) and (max-width: 969px){
	div[ad_size_mapping="bottom_leaderboard"] {
		height: 280px;
	}
}
</style>
<!--<script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>-->
<script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>
<script>
	var googletag = googletag || {};
	googletag.cmd = googletag.cmd || [];
</script>
<script>
	var mappings = {};
        googletag.cmd.push(function() {
		mappings.leaderboard = googletag.sizeMapping().
			addSize([970, 0], [970, 250]). //tablet
			addSize([768, 0], [728, 90]). //tablet
			addSize([0, 0], []). //other
		build();

		mappings.mobile_leaderboard = googletag.sizeMapping().
			addSize([768, 0], []). //other
			addSize([0, 0], [320, 50]). //other
		build();
			
		mappings.sticky = googletag.sizeMapping().
			addSize([728, 0], [728, 90]). //tablet
			addSize([468, 0], [468, 60]). //tablet
			addSize([0, 0], [320, 50]). //other
		build();
	
		mappings.sidebar = googletag.sizeMapping().
			addSize([1024, 0], [[300, 600], [300, 250]]). //desktop
			addSize([980, 0], [160, 600]). //mobile
			addSize([0, 0], [300, 250]). //other
		build();
	
		mappings.sidebar_home = googletag.sizeMapping().
			addSize([1024, 0], [300, 600]). //desktop
			addSize([980, 0], [160, 600]). //mobile
			addSize([0, 0], [300, 250]). //other
		build();
	
		mappings.inarticle = googletag.sizeMapping().
			addSize([0, 0], [300, 250]). //other
		build();

		mappings.bottom_leaderboard = googletag.sizeMapping().
			addSize([970, 0], [970, 250]). //tablet
			addSize([336, 0], [336, 280]). //tablet
			addSize([0, 0], [300, 250]). //other
		build();
console.log(window.location.href);
		googletag.pubads().setTargeting('environment', 'production');
		googletag.pubads().setTargeting('eagle_url', window.location.href);
			if(postupGetCookie('acq') === "")
			{
				googletag.pubads().setTargeting('email_collected', 'false');
			}

		interstitialSlot = googletag.defineOutOfPageSlot('/6177/senior_resource/senior_resource_interstitial', googletag.enums.OutOfPageFormat.INTERSTITIAL);
		interstitialSlot.addService(googletag.pubads());

		anchorSlot = googletag.defineOutOfPageSlot('/6177/senior_resource/senior_resource_anchor', googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR).defineSizeMapping(mappings.anchor);
		anchorSlot.addService(googletag.pubads());
	
		popup = googletag.defineOutOfPageSlot('/6177/senior_resource/senior_resource_out_of_page', 'popup');
		popup.addService(googletag.pubads());

		googletag.pubads().disableInitialLoad();
		googletag.enableServices();
		googletag.cmd.push(function(){
			//googletag.display(interstitialSlot);
			//googletag.pubads().refresh([interstitialSlot]);
			googletag.display('popup');
			googletag.pubads().refresh([popup]);
		});
        });
</script>
<!--
<script type='text/javascript'>
  !function(a9,a,p,s,t,A,g){if(a[a9])return;function q(c,r){a[a9]._Q.push([c,r])}a[a9]={init:function(){q("i",arguments)},fetchBids:function(){q("f",arguments)},setDisplayBids:function(){},targetingKeys:function(){return[]},_Q:[]};A=p.createElement(s);A.async=!0;A.src=t;g=p.getElementsByTagName(s)[0];g.parentNode.insertBefore(A,g)}("apstag",window,document,"script","//c.amazon-adsystem.com/aax2/apstag.js");

  // initialize apstag and have apstag set bids on the googletag slots when they are returned to the page
  apstag.init({
    pubID: '283e9fa1-d023-407d-ade0-2e634ed1e1ad',
    adServer: 'googletag',
    simplerGPT: true,
    bidTimeout: 2e3
  });
</script>
-->
<!--<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8232785921907140" crossorigin="anonymous"></script>-->    <script>
        jQuery(document).ready(function($){
			var eagle_dfp_slots = [];
			var eagle_dfp_slots_loaded = [];
			function eagle_is_in_viewport(el){
				var docViewTop = $(window).scrollTop();
				var docViewBottom = docViewTop + $(window).height();
				var elemTop = $(el).offset().top;
				return ((elemTop <= docViewBottom) && (elemTop >= docViewTop));
			}
			function eagle_dfp_do_ads_prep(){
							}
			function eagle_dfp_do_ads(){
				eagle_dfp_do_ads_prep();
				$(".eagle_dfp_ad").each(function(i){
					var ad_div = $(this);
					var el_id = $(this).attr('id');
					var email_acquisition_eligible = $(this).attr('email_acquisition_eligible');
					if(typeof el_id === 'undefined')
					{
						$(this).attr('id', 'eagle_dfp_ad_'+i+'_'+Math.floor(Math.random() * 99));
						el_id = $(this).attr('id');
					}
					var ad_slot = $(this).attr('ad_slot');
					if(typeof ad_slot === 'undefined')
					{
						ad_slot = '/6177/test_ads';
					}
					var ad_size = $(this).attr('ad_size');
					if(typeof ad_size === 'string' && ad_size.includes('x'))
					{
						ad_size = ad_size.split("x").map(function(i){
							return parseInt(i, 10);
						})
					}
					if(typeof ad_size === 'undefined')
					{
						ad_size = [300, 250];
					}
					var ad_size_mapping = $(this).attr('ad_size_mapping');
					if(eagle_is_in_viewport(this) && $(this).is(':visible'))
					{
						googletag.cmd.push(function(){
							if(eagle_dfp_slots.includes(el_id) === false)
							{
								eagle_dfp_slots.push(el_id);
								if(typeof mappings[ad_size_mapping] === 'undefined')
								{
									var this_ad = googletag.defineSlot(ad_slot, ad_size,  el_id).addService(googletag.pubads());
									/*
									if(typeof apstag !== 'undefined')
									{
										apstag.fetchBids({
											slots: [slot1],
											timeout: 2000
												slotID: el_id,
												slotName: ad_slot,
										//console.log('no map ok');
									}
									else
									{
										//console.log('no map fail');
									}
									*/
								}
								else
								{
									var this_ad = googletag.defineSlot(ad_slot, ad_size,  el_id).defineSizeMapping(mappings[ad_size_mapping]).addService(googletag.pubads());
									/*
									if(typeof apstag !== 'undefined')
									{
										amznads.setTargetingForGPTAsync('amznslots');
										//console.log('map ok');
									}
									else
									{
										//console.log('map fail');
									}
									*/
								}
								if(email_acquisition_eligible === "true")
								{
									this_ad.setTargeting('email_acquisition_eligible', 'true');
								}
								//var this_ad = googletag.defineSlot(ad_slot, ad_size,  el_id).defineSizeMapping(mappings[ad_size_mapping]).addService(googletag.pubads());
								ad_div.html('');
								googletag.display(el_id);
								/*
								if(typeof amznads !== 'undefined')
								{
									var myCallbackFunction = function() {
										amznads.setTargetingForGPTAsync('amznslots');
										googletag.pubads().refresh([this_ad]);
									}
									amznads.getAdsCallback('3281', myCallbackFunction, 1000);
									googletag.pubads().clearTargeting('amznslots');
								}
								else
								{
									googletag.pubads().refresh([this_ad]);
									//console.log('refresh');
								}
								*/
								if(typeof apstag !== 'undefined')
								{
									apstag.fetchBids({
										slots: [this_ad],
										timeout: 2000,
									},
									function(bids) {
										console.log(bids);
										apstag.setDisplayBids(); 
										googletag.pubads().refresh([this_ad]);
									}); 
								}
								else
								{
									googletag.pubads().refresh([this_ad]);
								}
								googletag.pubads().addEventListener("impressionViewable", function(event){
									//console.log('impressionViewable');
								});
								googletag.pubads().addEventListener("slotRenderEnded", function(event){
									if(event.slot === this_ad)
									{
										eagle_dfp_slots_loaded.push(el_id);
										//console.log(event);
										//console.log(event.slot.getSlotElementId()+' loaded');
									}
								});
								/*
								googletag.pubads().addEventListener("slotOnload", function(event){
									if(event.slot === this_ad)
									{
										eagle_dfp_slots_loaded.push(el_id);
										//console.log(event.slot.getSlotElementId()+' rendered');
									}
									//console.log(event.slot.getSlotElementId()+' rendered 2');
								});
								*/
							}
						});
					}
				});
			}
			eagle_dfp_do_ads();
			$(window).on("resize scroll",function(e){
				eagle_dfp_do_ads();
			});
		});
    </script>
    <div id="popup"></div>
<script>
googletag.cmd.push(function(){
	try
	{
		consent = JSON.parse(postupGetCookie('CookieScriptConsent'))
		if(consent.action == 'accept')
		{
			googletag.display(anchorSlot);
			googletag.display(interstitialSlot);
			if(typeof apstag !== 'undefined')
			{
				apstag.fetchBids({
					slots: [anchorSlot, interstitialSlot],
					timeout: 2000,
				},
				function(bids) {
					console.log(bids);
					apstag.setDisplayBids(); 
					googletag.pubads().refresh([anchorSlot]);
					googletag.pubads().refresh([interstitialSlot]);
				}); 
			}
			else
			{
				googletag.pubads().refresh([anchorSlot]);
				googletag.pubads().refresh([interstitialSlot]);
			}
		}
	}
	catch(e)
	{
		console.log(e);
	}
});
</script>		<script type="text/javascript">
			var default_location = 'Philadelphia';
			var latlng;
			var address;
			var dist = 0;
			var Sgeocoder = (typeof google!=='undefined' && typeof google.maps!=='undefined') ? new google.maps.Geocoder() : {};

						jQuery(function($) {
				if ($('.geodir-listing-search input[name="snear"]').length && !window.geodirMapAllScriptsLoaded) {
					$('.geodir-listing-search input[name="snear"]').each(function() {
						if (!window.geodirMapAllScriptsLoaded) {
							$(this).on('focus', function(e){
								/* Load lazy load scripts */
								if (!window.geodirMapAllScriptsLoaded && !window.geodirApiScriptLoading) {
									$(this).geodirLoadMap({loadJS: true});
									jQuery(window).trigger('resize');
								}
							});
						}
					});
				}
			});
			
			function geodir_setup_submit_search($form) {
				jQuery('.geodir_submit_search').off('click');// unbind any other click events
				jQuery('.geodir_submit_search').on("click",function(e) {
					e.preventDefault();

					var s = ' ';
					var $form = jQuery(this).closest('form');
					
					if (jQuery("#sdistance input[type='radio']:checked").length != 0) dist = jQuery("#sdistance input[type='radio']:checked").val();
					if (jQuery('.search_text', $form).val() == '' || jQuery('.search_text', $form).val() == 'Search for') jQuery('.search_text', $form).val(s);

					// Disable location based search for disabled location post type.
					if (jQuery('.search_by_post', $form).val() != '' && typeof gd_cpt_no_location == 'function') {
						if (gd_cpt_no_location(jQuery('.search_by_post', $form).val())) {
							jQuery('.snear', $form).remove();
							jQuery('.sgeo_lat', $form).remove();
							jQuery('.sgeo_lon', $form).remove();
							jQuery('select[name="sort_by"]', $form).remove();
							jQuery($form).trigger("submit");
							return;
						}
					}

					if (
						dist > 0
						|| (jQuery('select[name="sort_by"]').val() == 'nearest'
						|| jQuery('select[name="sort_by"]', $form).val() == 'farthest')
						|| (jQuery(".snear", $form).val() != '' && jQuery(".snear", $form).val() != 'Enter City, State, or Zip code' && !jQuery('.geodir-location-search-type', $form).val() )
					) {

						var vNear = jQuery(".snear", $form).val();
						/* OSM can't handle post code with no space so we test for it and add one if needed */
						if(window.gdMaps === 'osm'){
							var $near_val = vNear;
							var $is_post_code = $near_val.match("^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]??[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$");
							if($is_post_code){
								$near_val = $near_val.replace(/.{3}$/,' $&');
								jQuery(".snear", $form).val($near_val);
							}
						}

						geodir_setsearch($form);
					} else {
						jQuery(".snear", $form).val('');
						jQuery($form).trigger("submit");
					}
				});
				// Clear near search GPS for core
				if (!jQuery('input.geodir-location-search-type').length && jQuery('[name="snear"]').length){
					jQuery('[name="snear"]').off('keyup');
					jQuery('[name="snear"]').on('keyup', function($){
						jQuery('.sgeo_lat').val('');
						jQuery('.sgeo_lon').val('');
					});
				}
			}

			jQuery(document).ready(function() {
				geodir_setup_submit_search();
				//setup advanced search form on form ajax load
				jQuery("body").on("geodir_setup_search_form", function($form){
					geodir_setup_submit_search($form);
				});
			});

			function geodir_setsearch($form) {
				if ((dist > 0 || (jQuery('select[name="sort_by"]', $form).val() == 'nearest' || jQuery('select[name="sort_by"]', $form).val() == 'farthest')) && (jQuery(".snear", $form).val() == '' || jQuery(".snear", $form).val() == 'Enter City, State, or Zip code')) jQuery(".snear", $form).val(default_location);
				geocodeAddress($form);
			}

			function updateSearchPosition(latLng, $form) {
				if (window.gdMaps === 'google') {
					jQuery('.sgeo_lat').val(latLng.lat());
					jQuery('.sgeo_lon').val(latLng.lng());
				} else if (window.gdMaps === 'osm') {
					jQuery('.sgeo_lat').val(latLng.lat);
					jQuery('.sgeo_lon').val(latLng.lon);
				}
				jQuery($form).trigger("submit"); // submit form after inserting the lat long positions
			}

			function geocodeAddress($form) {
				// Call the geocode function
				Sgeocoder = window.gdMaps == 'google' ? new google.maps.Geocoder() : null;

				if (jQuery('.snear', $form).val() == '' || ( jQuery('.sgeo_lat').val() != '' && jQuery('.sgeo_lon').val() != ''  ) || (jQuery('.snear', $form).val() && jQuery('.snear', $form).val().match("^In:"))) {
					if (jQuery('.snear', $form).val() && jQuery('.snear', $form).val().match("^In:")) {
						jQuery(".snear", $form).val('');
					}
					jQuery($form).trigger("submit");
				} else {
					var address = jQuery(".snear", $form).val();

					if (address && address.trim() == 'Enter City, State, or Zip code') {
						initialise2();
					} else if(address && address.trim() == 'Near: My Location') {
						jQuery($form).trigger("submit");
					} else {
												var search_address = address;
												if (window.gdMaps === 'google') {
							var geocodeQueryParams = {'address': search_address};
							if (geodirIsZipCode(address)) {
								if (typeof geocodeQueryParams['componentRestrictions'] != 'undefined') {
									if (typeof geocodeQueryParams['componentRestrictions']['postalCode'] == 'undefined') {
										geocodeQueryParams['componentRestrictions']['postalCode'] = address;
									}
								} else {
									geocodeQueryParams['componentRestrictions'] = {'postalCode': address};
								}
							}
							if (typeof geocodeQueryParams['componentRestrictions'] != 'undefined') { if (typeof geocodeQueryParams['componentRestrictions']['country'] == 'undefined') { geocodeQueryParams['componentRestrictions']['country'] = 'US'; } } else { geocodeQueryParams['componentRestrictions'] = {'country': 'US'}; }
							Sgeocoder.geocode(geocodeQueryParams,
								function (results, status) {
																		if (status == google.maps.GeocoderStatus.OK) {
										updateSearchPosition(results[0].geometry.location, $form);
									} else {
										alert("Search was not successful for the following reason :" + status);
									}
								});
						} else if (window.gdMaps === 'osm') {
							var osmCountryCodes = false;
							 osmCountryCodes = 'us';							geocodePositionOSM(false, search_address, osmCountryCodes, false,
								function(geo) {
																		if (typeof geo !== 'undefined' && geo.lat && geo.lon) {
										updateSearchPosition(geo, $form);
									} else {
										alert("Search was not successful for the requested address.");
									}
								});
						} else {
							jQuery($form).trigger("submit");
						}
					}
				}
			}

			function geodirIsZipCode(string) {
				if (/^\d+$/.test(string)) {
					if (string.length > 3 && string.length < 7) {
						return true;
					}
				}
				return false;
			}

			function initialise2() {
				if (!window.gdMaps) {
					return;
				}

				if (window.gdMaps === 'google') {
					var latlng = new google.maps.LatLng(56.494343, -4.205446);
					var myOptions = {
						zoom: 4,
						mapTypeId: google.maps.MapTypeId.TERRAIN,
						disableDefaultUI: true
					}
				} else if (window.gdMaps === 'osm') {
					var latlng = new L.LatLng(56.494343, -4.205446);
					var myOptions = {
						zoom: 4,
						mapTypeId: 'TERRAIN',
						disableDefaultUI: true
					}
				}
				try { prepareGeolocation(); } catch (e) {}
				doGeolocation();
			}

			function doGeolocation() {
				if (navigator.geolocation) {
					navigator.geolocation.getCurrentPosition(positionSuccess, positionError);
				} else {
					positionError(-1);
				}
			}

			function positionError(err) {
				var msg;
				switch (err.code) {
					case err.UNKNOWN_ERROR:
						msg = "Unable to find your location";
						break;
					case err.PERMISSION_DENINED:
						msg = "Permission denied in finding your location";
						break;
					case err.POSITION_UNAVAILABLE:
						msg = "Your location is currently unknown";
						break;
					case err.BREAK:
						msg = "Attempt to find location took too long";
						break;
					default:
						msg = "Location detection not supported in browser";
				}
				jQuery('#info').html(msg);
			}

			function positionSuccess(position) {
				var coords = position.coords || position.coordinate || position;
				jQuery('.sgeo_lat').val(coords.latitude);
				jQuery('.sgeo_lon').val(coords.longitude);

				jQuery('.geodir-listing-search').trigger("submit");
			}

			/**
			 * On unload page do some cleaning so back button cache does not store these values.
			 */
			jQuery(window).on("beforeunload", function(e) {
				if(jQuery('.sgeo_lat').length ){
					jQuery('.sgeo_lat').val('');
					jQuery('.sgeo_lon').val('');
				}
			});
		</script>
		<script type="text/javascript">
var gdasac_selected = '', gdasac_li_type = '', gdasac_categories = [], gdasac_tags = [], gdasac_listings = [], gdasac_do_not_close = false, gdasac_doing_search = 0, gdasac_is_search = false, gdasac_keyup_timeout = null, gdasac_suggestions_with = '', gdasac_with_tags = false;
jQuery(function($) {
	/*Init*/
	gdas_ac_init('.gd_search_text');
		if ($('.gd_search_text').length){$('.gd_search_text').each(function(){if(!$(this).parent().find(".gdas-search-suggestions").length){jQuery(this).after("<div class='dropdown-menu dropdown-caret-0 w-100 scrollbars-ios overflow-auto p-0 m-0 gd-suggestions-dropdown gdas-search-suggestions gd-ios-scrollbars'><ul class='gdasac-listing list-unstyled p-0 m-0'></ul><ul class='gdasac-category list-unstyled p-0 m-0'></ul></div>");}});}
		/*On CPT change*/
	jQuery("body").on("geodir_setup_search_form",function(){gdas_ac_init('.gd_search_text');});
});
function gdas_ac_init($field){jQuery($field).on("focusin",function(){gdasac_selected=this;gdas_ac_focus_in(this)}).on("focusout",function(){gdasac_selected="";gdas_ac_focus_out(this)});jQuery(window).on("resize",function(){gdas_ac_resize_suggestions()})}
function gdas_ac_focus_in($input){
	var $suggestions = jQuery($input).parent().find(".gdas-search-suggestions"), gdas_fire = false;
	if($suggestions.length){gdas_fire = true}else{jQuery($input).after("<div class='dropdown-menu dropdown-caret-0 w-100 scrollbars-ios overflow-auto p-0 m-0 gd-suggestions-dropdown gdas-search-suggestions gd-ios-scrollbars'><ul class='gdasac-listing list-unstyled p-0 m-0'></ul></div>");gdas_fire = true;}
	/* Fire search */
	if(gdas_fire&&!$suggestions.hasClass("gdasac-focused")){$suggestions.addClass("gdasac-focused");gdas_ac_init_suggestions($input);if(gdasac_suggestions_with!="posts"){gdas_ac_categories($input)}}
	/* Resize */
	gdas_ac_resize_suggestions();
	/* Set if is search near */
	if(jQuery('.gdlm-location-suggestions:visible').prev().hasClass('snear')){gdasac_is_search = true;}else{gdasac_is_search = false;}
}
function gdas_ac_focus_out($input){setTimeout(function() {if (!gdasac_do_not_close) {}},200);}
/* Get the current post_type categories as suggestions. */
function gdas_ac_categories(el){
	$input=jQuery(gdasac_selected);var post_type=jQuery($input).parent().parent().find("input[name='stype']").val();var post_type_slug=jQuery($input).closest(".geodir-search").find("input[name='stype']").data("slug");if(!post_type_slug){post_type_slug=jQuery($input).closest(".geodir-search").find(".search_by_post").find(":selected").data("slug")}if(typeof post_type_slug=="undefined"){post_type_slug=jQuery(".search_by_post").find(":selected").data("slug")}var search=jQuery($input).val();if(typeof search=="undefined"){search=""}request_url=geodir_params.api_url+""+post_type_slug+"/categories/?orderby=count&order=desc&search="+search+"&per_page="+geodir_search_params.autocompleter_max_results;if(geodir_search_params.autocompleter_filter_location&&el&&jQuery(el).closest("form.geodir-listing-search").length){$form=jQuery(el).closest("form.geodir-listing-search");lname=jQuery(".geodir-location-search-type",$form).prop("name");lval=jQuery(".geodir-location-search-type",$form).val();if(lval&&(lname=="country"||lname=="region"||lname=="city"||lname=="neighbourhood")){request_url+="&"+lname+"="+lval}}
	jQuery.ajax({
		type: "GET",
		url: request_url,
		dataType: 'json',
		success: function (data) {
			gdasac_categories = data;gdasac_doing_search--;
			html = '';
			gdasac_li_type = 'category';
			jQuery.each(gdasac_categories, function (index, value) {html = html + gdas_ac_create_li('category', value);});
			var gdasCe = gdasac_selected ? gdasac_selected : el;
			jQuery(gdasCe).parent().find("ul.gdasac-category").empty().append(html);
			if(html && gdasac_selected && !jQuery(el).closest('form.geodir-listing-search').find('.gdas-search-suggestions').is(':visible')){try{jQuery(gdasCe).dropdown('show');}catch(err){console.log(err.message);}}		},
		error: function (xhr, textStatus, errorThrown) {console.log(errorThrown);}
	});
}
function gdas_ac_tags(el){$input=jQuery(gdasac_selected);var post_type=jQuery($input).parent().parent().find("input[name='stype']").val();var post_type_slug=jQuery($input).closest(".geodir-search").find("input[name='stype']").data("slug");if(!post_type_slug){post_type_slug=jQuery($input).closest(".geodir-search").find(".search_by_post").find(":selected").data("slug")}var search=jQuery($input).val(),gdasPe=gdasac_selected?gdasac_selected:el;if(search&&search.length>=geodir_search_params.autocomplete_min_chars){request_url=geodir_params.api_url+""+post_type_slug+"/tags/?orderby=count&order=desc&search="+search+"&per_page="+geodir_search_params.autocompleter_max_results;if(geodir_search_params.autocompleter_filter_location&&el&&jQuery(el).closest("form.geodir-listing-search").length){$form=jQuery(el).closest("form.geodir-listing-search");lname=jQuery(".geodir-location-search-type",$form).prop("name");lval=jQuery(".geodir-location-search-type",$form).val();if(lval&&(lname=="country"||lname=="region"||lname=="city"||lname=="neighbourhood")){request_url+="&"+lname+"="+lval}}jQuery.ajax({type:"GET",url:request_url,dataType:"json",success:function(data){gdasac_tags=data;gdasac_doing_search--;html="";gdasac_li_type="tag";jQuery.each(gdasac_tags,function(index,value){html=html+gdas_ac_create_li("tag",value)});jQuery(gdasPe).parent().find("ul.gdasac-tag").empty().append(html);if(html&&gdasac_selected&&!jQuery(el).closest("form.geodir-listing-search").find(".gdas-search-suggestions").is(":visible")){try{jQuery(gdasPe).dropdown("show")}catch(err){console.log(err.message)}}},error:function(xhr,textStatus,errorThrown){console.log(errorThrown)}})}else{jQuery(gdasPe).parent().find("ul.gdasac-tag").empty()}}
/* Get the current post_type categories as suggestions. */
function gdas_ac_listings(el){
	$input = jQuery(gdasac_selected);
	var post_type = jQuery($input).parent().parent().find("input[name='stype']").val();
	var post_type_slug = jQuery($input).closest('.geodir-search').find("input[name='stype']").data("slug");
	if(!post_type_slug) {
		post_type_slug = jQuery($input).closest('.geodir-search').find(".search_by_post").find(':selected').data("slug");
	}
	var search = jQuery($input).val(), gdasLe = gdasac_selected ? gdasac_selected : el;
	if(search && search.length >= geodir_search_params.autocomplete_min_chars){
		request_url = geodir_params.api_url + "" + post_type_slug+"/?search="+search+"&per_page="+geodir_search_params.autocompleter_max_results;
		if (geodir_search_params.autocompleter_filter_location && el && jQuery(el).closest('form.geodir-listing-search').length) {
			$form = jQuery(el).closest('form.geodir-listing-search');
			lname = jQuery('.geodir-location-search-type', $form).prop('name');
			lval = jQuery('.geodir-location-search-type', $form).val();
			if (lval && (lname == 'country' || lname == 'region' || lname == 'city' || lname == 'neighbourhood')) {
				request_url += '&' + lname + '=' + lval;
			}
		}
		jQuery.ajax({
			type: "GET",
			url: request_url,
			dataType: 'json',
			success: function (data) {
				gdasac_listings = data;gdasac_doing_search--;
				html = '';
				gdasac_li_type = 'listing';
				jQuery.each(gdasac_listings, function (index, value) {
					html = html + gdas_ac_create_li('listing', value);
				});
				jQuery(gdasLe).parent().find("ul.gdasac-listing").empty().append(html);
				if(html && gdasac_selected && !jQuery(el).closest('form.geodir-listing-search').find('.gdas-search-suggestions').is(':visible')){try{jQuery(gdasLe).dropdown('show');}catch(err){console.log(err.message);}}			},
			error: function (xhr, textStatus, errorThrown) {console.log(errorThrown);}
		});
	}else{jQuery(gdasLe).parent().find("ul.gdasac-listing").empty();}
}
/* Set the max height for the suggestion div so to never scroll past the bottom of the page. */
function gdas_ac_resize_suggestions(){setTimeout(function(){if(jQuery(".gd-suggestions-dropdown:visible").length){var offset=jQuery(".gd-suggestions-dropdown:visible").offset().top;var windowHeight=jQuery(window).height();var maxHeight=windowHeight-(offset-jQuery(window).scrollTop());if(jQuery(".gd-suggestions-dropdown:visible").prev().hasClass("gd_search_text")){jQuery(".gd-suggestions-dropdown:visible").css("max-height",windowHeight-40)}else{jQuery(".gd-suggestions-dropdown:visible").css("max-height",maxHeight)}}},50)}
function gdas_ac_init_suggestions($input){setTimeout(function(){gdas_ac_resize_suggestions()},250);jQuery($input).on("keyup",function(e){gdasac_doing_search=3;/*city, region, country*/if(gdasac_keyup_timeout!=null)clearTimeout(gdasac_keyup_timeout);gdasac_keyup_timeout=setTimeout(function(){gdas_ac_maybe_fire_suggestions($input)},500)})}
function gdas_ac_maybe_fire_suggestions(el){gdasac_keyup_timeout=null;if(gdasac_suggestions_with!="terms"){gdas_ac_listings(el)}if(gdasac_suggestions_with!="posts"){gdas_ac_categories(el)}if(gdasac_with_tags){gdas_ac_tags(el)}}
function gdas_ac_create_li($type,$data){
	var output = '', history = '', $delete = '';
	var $common_class = 'list-group-item-action c-pointer p-0 m-0 d-flex justify-content-start  align-items-center text-muted';
	var $common_class_icon = ' d-flex align-items-center justify-content-center p-0 m-0 me-2';
	var $common_class_title = 'dropdown-header h6 p-2 m-0 bg-light';
	var $icon_size = 'height:38px;width:38px;';
	if(gdasac_li_type != ''){if($type=='category'){output += '<li class="gdas-section-title '+$common_class_title+'" onclick="var event = arguments[0] || window.event; geodir_cancelBubble(event);">Categories</li>';}else if($type=='tag'){output += '<li class="gdas-section-title '+$common_class_title+'" onclick="var event = arguments[0] || window.event; geodir_cancelBubble(event);">Tags</li>';}else if($type=='listing'){output += '<li class="gdas-section-title '+$common_class_title+'">Listings</li>';}else{output += '<li class="gdas-section-title '+$common_class_title+'">'+$type.charAt(0).toUpperCase() + $type.slice(1)+'</li>';}}
	gdasac_li_type = '';
	if($data.history){
		history = '<i class="far fa-clock" title="Search history"></i> ';
		$delete = '<i onclick="var event=arguments[0]||window.event;geodir_cancelBubble(event);gdas_ac_del_location_history(\''+$data.slug+'\');jQuery(this).parent().remove();" class="fas fa-times" title="Remove from history"></i> ';
	}else if($type == 'category' && $data.fa_icon){
		var icon_color = $data.fa_icon_color ? '#fff' : '';
		history = '<span class="gdasac-icon '+$common_class_icon+'" style="background-color:'+$data.fa_icon_color+';color:'+icon_color+';'+$icon_size+'"><i class="'+$data.fa_icon+' fa-fw"></i></span> ';
	}else if($type == 'category'){
		history = '<span class="gdasac-icon '+$common_class_icon+'" style="'+$icon_size+'"><i class="fas fa-folder-open"></i></span> ';
	}else if($type == 'tag'){
		history = '<span class="gdasac-icon '+$common_class_icon+' fs-base" style="'+$icon_size+'"><i class="fas fa-tag"></i></span>';
	}else if($type == 'listing' && $data.featured_image.thumbnail){
		history = '<span class="gdasac-icon '+$common_class_icon+'" style="'+$icon_size+'"><img src="'+$data.featured_image.thumbnail+'" class="w-100"></span> ';
	}else{
		history = '<span class="gdasac-icon '+$common_class_icon+'" style="'+$icon_size+'"><i class="fas fa-map-marker-alt"></i></span> ';
	}
	if($type=='category' || $type=='tag'){
		if($data.area){$data.city = $data.area;}
		output += '<li class="'+$common_class+'" data-type="'+$type+'" onclick="gdasac_click_action(\''+$type+'\',\''+$data.link+'\','+$data.id+',\''+geodirSearchEscapeQuote($data.name)+'\');">'+history+'<b>'+ $data.name + '</b>'+$delete+'</li>';
	}else if($type=='listing'){
		if($data.area){$data.region = $data.area;}
		output += '<li class="'+$common_class+'" data-type="'+$type+'" onclick="gdasac_click_action(\''+$type+'\',\''+$data.link+'\','+$data.id+',\'\');">'+history+'<b>'+ $data.title.rendered + '</b>'+$delete+'</li>';
	}
	return output;
}
function geodirSearchEscapeQuote(str){if(str){str=str.replace(/"/g, "&quot;");str=str.replace(/'/g, "\\'");str=str.replace(/&#039;/g, "\\'");}return str;}
function gdasac_click_action($type,$url,$id, $name){
    if($type=='category'){
        window.location = $url;    }else if($type=='tag'){window.location = $url;    }else if($type=='listing'){window.location = $url}
}
</script>    <script type="text/javascript">
        map_id_arr = [];
        gdUmarker = '';
        my_location = '';
        lat = '';
        lon = '';
        gdUmarker = '';
        userMarkerActive = false;
        gdLocationOptions = {
            enableHighAccuracy: true,
            timeout: 5000,
            maximumAge: 0
        };


        jQuery("body").on("map_show", function(event, map_id) {
            map_id_arr.push(map_id);
            if (lat && lon) {
                setTimeout(function(map_id) {
                    geodir_search_setUserMarker(lat, lon, map_id);
                }, 1, map_id);
            }
        });
    </script>
    
<div class="bsui">
	<div  id="getpaid-payment-modal" class="modal" tabindex="-1" role="dialog">
		<div class="modal-dialog modal-dialog-centered modal-lg" role="checkout" style="max-width: 650px;">
			<div class="modal-content">
				<div class="modal-body">
					<button type="button" class=" btn-close p-2 getpaid-payment-modal-close d-sm-none" data-bs-dismiss="modal" aria-label="">
											</button>
					<div class="modal-body-wrapper"></div>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- Modal -->
		<div class="modal fade bsui" id="gdlm-switcher" tabindex="-1" aria-labelledby="dlm-switcher-title" aria-hidden="true">
			<div class="modal-dialog ">
				<div class="modal-content ">
					<div class="modal-header text-center">
						<div class="modal-title text-center w-100">
							<h5 class="w-100" id="dlm-switcher-title">Change Location</h5>
							<h6 class="w-100 h6 text-muted">Find awesome listings near you!</h6>
						</div>
													<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
											</div>
					<div class="modal-body text-center">
						<div class="dropdown">
							<div class="mb-3"  ><label  class="sr-only   form-label" >Change Location</label><input type="text"  placeholder="city, region, country"  class="form-control geodir-location-search"  data-bs-toggle="dropdown"  aria-label="city, region, country"  ></div>						</div>
					</div>
				</div>
			</div>
		</div>
		<script>
var gdlmls_selected = '';
var gdlmls_nearest = [];
var gdlmls_country = [];
var gdlmls_region = [];
var gdlmls_city = [];
var gdlmls_neighbourhood = [];
var gdlmls_google_sessionToken = '';// google session token
var gdlmls_google_service = '';// google service
var gdlmls_do_not_close = false;
var gdlmls_doing_search = 0;
var gdlmls_doing_nearest = false;
var gdlmls_is_search = false;
var gdlmls_keyup_timeout = null;

jQuery(function() {
	// init
	gdlm_ls_init('.geodir-location-search');
	gdlm_ls_init('.snear');	gdlm_is_search_input_location();

	// on CPT change
	jQuery("body").on("geodir_setup_search_form", function(){
		gdlm_ls_init('.geodir-location-search');
		gdlm_ls_init('.snear');		gdlm_is_search_input_location();
	});
});

function gdlm_is_search_input_location(){
	/* Check for on change */
	jQuery(".snear").on("change", function(){
		setTimeout(function(){
			if (typeof geodir_search_params !== 'undefined' && geodir_search_params.autocompleter_filter_location) {
				jQuery('.gd-search-field-search .gd-suggestions-dropdown').remove();
			}
			var $type = jQuery('.geodir-location-search-type').attr('name');
			if($type ){
				jQuery('.gd-search-field-near').removeClass('in-location in-neighbourhood in-city in-region in-country').addClass('in-location in-'+$type);
			}else{
				jQuery('.gd-search-field-near').removeClass('in-location in-neighbourhood in-city in-region in-country');
			}
		}, 100);
	}).on("keyup", function () {
		if (!(jQuery(this).val().trim() == geodir_params.txt_near_my_location && jQuery(this).closest('form').find('.geodir-location-search-type').val()=='me')) {
			jQuery('.gd-search-field-near').removeClass('in-location in-neighbourhood in-city in-region in-country');
			jQuery('.geodir-location-search-type').val('').attr('name','');
			jQuery('.sgeo_lat').val('');
			jQuery('.sgeo_lon').val('');
		}
	});
}

function gdlm_ls_init($field){
	jQuery($field).on("focusin", 
		function(){
			gdlmls_selected = this;
			gdlm_ls_focus_in(this);
		}).on("focusout",
		function(){
			gdlmls_selected = '';
			gdlm_ls_focus_out(this);
		});

	// window resize tasks
	jQuery(window).on("resize", function(){
		gdls_ls_resize_suggestions();
	});
}

function gdlm_ls_focus_in($input){
	if(jQuery($input).parent().find(".gdlm-location-suggestions").length){
				gdlm_ls_current_location_suggestion($input);

	}else{
		jQuery($input).after("<div class='dropdown-menu dropdown-caret-0 w-100 scrollbars-ios overflow-auto p-0 m-0 gd-suggestions-dropdown gdlm-location-suggestions gd-ios-scrollbars'>" +
			"<ul class='gdlmls-near list-unstyled p-0 m-0 '></ul>" +
			"<ul class='gdlmls-neighbourhood list-unstyled p-0 m-0'></ul>" +
			"<ul class='gdlmls-city list-unstyled p-0 m-0'></ul>" +
			"<ul class='gdlmls-region list-unstyled p-0 m-0'></ul>" +
			"<ul class='gdlmls-country list-unstyled p-0 m-0'></ul>" +
			"<ul class='gdlmls-more list-unstyled p-0 m-0'></ul>" +
			"</div>");
		gdlm_ls_init_suggestions($input);
		gdlm_ls_current_location_suggestion($input);
	}

	// resize
	gdls_ls_resize_suggestions();

	// set if is search near
	if(jQuery('.gdlm-location-suggestions:visible').prev().hasClass('snear') || jQuery($input).hasClass('snear')){
		gdlmls_is_search = true;
	}else{
		gdlmls_is_search = false;
	}
}

function gdlm_ls_focus_out($input) {
	setTimeout(function() {
		_ua = navigator.userAgent.toLowerCase();
		isChrome = /chrome/.test(_ua);
		isWin10 = /windows nt 10.0/.test(_ua);
		if (!gdlmls_do_not_close) {
					}
	}, 200);
}

/**
 * Set the max height for the suggestion div so to never scroll past the bottom of the page.
 */
function gdls_ls_resize_suggestions() {
	setTimeout(function() {
		if (jQuery('.gdlm-location-suggestions:visible').length) {
			var offset = jQuery('.gdlm-location-suggestions:visible').offset().top;
			var windowHeight = jQuery(window).height();
			var maxHeight = windowHeight - (offset - jQuery(window).scrollTop());

			if (jQuery('.gdlm-location-suggestions:visible').prev().hasClass('snear')) {
				jQuery('.gdlm-location-suggestions:visible').css('max-height', windowHeight - 40);
			} else {
				jQuery('.gdlm-location-suggestions:visible').css('max-height', maxHeight);
			}
		}
	}, 50);
}

function gdlm_ls_init_suggestions($input) {
	setTimeout(function() {
		gdls_ls_resize_suggestions();
	}, 250);
		jQuery($input).off("keypress").on("keypress",function(e) {
		if(e.keyCode && e.keyCode == 13 && !gdlmls_is_search && !jQuery($input).parent().find(".gdlm-location-suggestions").hasClass('show')) {
			jQuery($input).attr('aria-expanded','true').addClass('show');jQuery($input).parent().find(".gdlm-location-suggestions").addClass('show');
		}
	});
		jQuery($input).on("keyup", function($input) {
		gdlmls_doing_search = 3; // city, region, country
		if (gdlmls_keyup_timeout != null) clearTimeout(gdlmls_keyup_timeout);
		gdlmls_keyup_timeout = setTimeout(gdlm_ls_maybe_fire_suggestions, 500);
	});
}

function gdlm_ls_maybe_fire_suggestions(){
	/* Reset timer */
	gdlmls_keyup_timeout = null;
	/* Do suggestions */
	gdlm_ls_current_location_suggestion();
	_value = gdlmls_selected ? jQuery(gdlmls_selected).val().trim() : '';
	_chars = parseInt( geodir_location_params.autocompleter_min_chars );
	if ((!_value || _chars < 1 || _chars > 0 && _value && parseInt(_value.length) >= _chars) && !(_value == geodir_params.txt_near_my_location && jQuery(gdlmls_selected).closest("form").find(".geodir-location-search-type").val() == "me")) {
		gdlm_ls_city_suggestion();
				gdlm_ls_region_suggestion();			}
}

function gdlm_ls_maybe_suggest_more() {
	if (
		gdlmls_doing_search == 0 &&
		gdlmls_country.length == 0 &&
		gdlmls_region.length == 0 &&
		gdlmls_city.length == 0 &&
		gdlmls_neighbourhood.length == 0
	) {
		$input = jQuery(gdlmls_selected).val();
		if ($input) {
						if ((typeof google !== 'undefined' && typeof google.maps !== 'undefined')) {
								gdlm_ls_google_suggestions($input);
			}
		} else {
			jQuery(gdlmls_selected).parent().find("ul.gdlmls-more").empty();
		}
	}
}

function gdlm_ls_neighbourhood_suggestion() {
	var $search = jQuery(gdlmls_selected).val();
	if ($search) {
		jQuery.ajax({
			type: "GET",
			url: geodir_params.api_url + "locations/neighbourhoods/?search=" + $search,
			success: function(data) {
				gdlmls_neighbourhood = data;
				gdlmls_doing_search--;
				gdlm_ls_maybe_suggest_more();
				html = '';
				jQuery.each(gdlmls_neighbourhood, function(index, value) {
					html = html + gdlm_ls_create_li('neighbourhood', value);
				});
				jQuery(gdlmls_selected).parent().find("ul.gdlmls-neighbourhood").empty().append(html);
				if (html && gdlmls_is_search){
					geodirLMShowDropdown(gdlmls_selected);
				}
			},
			error: function(xhr, textStatus, errorThrown) {
				console.log(errorThrown);
			}
		});
	} else {
		gdlmls_neighbourhood = [];
		gdlmls_doing_search--;
		gdlm_ls_maybe_suggest_more();
		jQuery(gdlmls_selected).parent().find("ul.gdlmls-city").empty();
	}
}

function gdlm_ls_city_suggestion() {
	var $search = jQuery(gdlmls_selected).val();
	if ($search) {
		jQuery.ajax({
			type: "GET",
			url: geodir_params.api_url + "locations/cities/?search=" + $search,
			success: function(data) {
				gdlmls_city = data;
				gdlmls_doing_search--;
				gdlm_ls_maybe_suggest_more();
				html = '';
				jQuery.each(gdlmls_city, function(index, value) {
					html = html + gdlm_ls_create_li('city', value);
				});
				jQuery(gdlmls_selected).parent().find("ul.gdlmls-city").empty().append(html);
				if (html && gdlmls_is_search){
					geodirLMShowDropdown(gdlmls_selected);
				}
			},
			error: function(xhr, textStatus, errorThrown) {
				console.log(errorThrown);
			}
		});
	} else {
		gdlmls_city = [];
		gdlmls_doing_search--;
		gdlm_ls_maybe_suggest_more();
		jQuery(gdlmls_selected).parent().find("ul.gdlmls-city").empty();
	}
}

function gdlm_ls_region_suggestion() {
	var $search = jQuery(gdlmls_selected).val();
	if ($search) {
		jQuery.ajax({
			type: "GET",
			url: geodir_params.api_url + "locations/regions/?search=" + $search,
			success: function(data) {
				gdlmls_region = data;
				gdlmls_doing_search--;
				gdlm_ls_maybe_suggest_more();
				html = '';
				jQuery.each(gdlmls_region, function(index, value) {
					html = html + gdlm_ls_create_li('region', value);
				});
				jQuery(gdlmls_selected).parent().find("ul.gdlmls-region").empty().append(html);
				if (html && gdlmls_is_search){
					geodirLMShowDropdown(gdlmls_selected);
				}
			},
			error: function(xhr, textStatus, errorThrown) {
				console.log(errorThrown);
			}
		});
	} else {
		gdlmls_region = [];
		gdlmls_doing_search--;
		gdlm_ls_maybe_suggest_more();
		jQuery(gdlmls_selected).parent().find("ul.gdlmls-region").empty();
	}
}

function gdlm_ls_country_suggestion() {
	var $search = jQuery(gdlmls_selected).val();
	if ($search) {
		jQuery.ajax({
			type: "GET",
			url: geodir_params.api_url + "locations/countries/?search=" + $search,
			success: function(data) {
				gdlmls_country = data;
				gdlmls_doing_search--;
				gdlm_ls_maybe_suggest_more();
				html = '';
				jQuery.each(gdlmls_country, function(index, value) {
					html = html + gdlm_ls_create_li('country', value);
				});

				jQuery(gdlmls_selected).parent().find("ul.gdlmls-country").empty().append(html);
				if (html && gdlmls_is_search){
					geodirLMShowDropdown(gdlmls_selected);
				}
			},
			error: function(xhr, textStatus, errorThrown) {
				console.log(errorThrown);
			}
		});
	} else {
		gdlmls_country = [];
		gdlmls_doing_search--;
		gdlm_ls_maybe_suggest_more();
		jQuery(gdlmls_selected).parent().find("ul.gdlmls-country").empty();
	}
}

function gdlm_ls_current_location_suggestion() {
	jQuery(gdlmls_selected).parent().find("ul.gdlmls-near").empty();

	// Near me
	jQuery(gdlmls_selected).parent().find("ul.gdlmls-near").empty().append(gdlm_ls_create_li('near', {
		type: "near",
		slug: "me",
		title: geodir_params.txt_form_my_location
	}));

	if (jQuery(gdlmls_selected).val() == '') {
		var $search_history = JSON.parse(gdlm_ls_get_location_history());

		if ($search_history) {
			jQuery.each($search_history, function(index, value) {
				jQuery(gdlmls_selected).parent().find("ul.gdlmls-near").append(gdlm_ls_create_li(value.type, value));
			});
		}

		if ( ! geodir_location_params.disable_nearest_cities ) {
			// Add near cities from ip
			gdlm_ls_nearest_cities();
		}
	}
	console.log(JSON.parse(gdlm_ls_get_location_history()));
}

function gdlm_ls_nearest_cities() {
	if(!gdlmls_doing_nearest){
		gdlmls_doing_nearest = true;
		jQuery.ajax({
			type: "GET",
			url: geodir_params.api_url + "locations/cities/?orderby=ip",
			success: function(data) {
				if (data) {
					jQuery.each(data, function(index, value) {
						jQuery(gdlmls_selected).parent().find("ul.gdlmls-near").append(gdlm_ls_create_li('city', value));
					});
				}
				gdlmls_doing_nearest = false;
			},
			error: function(xhr, textStatus, errorThrown) {
				console.log(errorThrown);
				gdlmls_doing_nearest = false;
			}
		});
	}
}

function gdlm_ls_create_li($type,$data){
	var output;
	var history = '';
	var $delete = '';
	var $common_class = 'list-group-item-action c-pointer px-1 py-1 m-0 d-flex justify-content-between';
	if($data.history){
		history = '<i class="fas fa-history" title="Search history"></i> ';
		$delete = '<span><i onclick="var event = arguments[0] || window.event; geodir_cancelBubble(event);gdlm_ls_del_location_history(\''+$data.slug+'\');jQuery(this).parent().parent().remove();" class="fas fa-times" title="Remove from history"></i></span> ';
	}else if($type == 'neighbourhood' || $type == 'city' || $type == 'region' || $type == 'country'){
		history = '<i class="fas fa-map-marker-alt"></i> ';
	}
	if($type=='neighbourhood'){
		if($data.area){$data.city = $data.area;}
		output = '<li class="'+$common_class+'" data-type="'+$type+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.title)+'\',\''+geodirLMEscapeQuote($data.city)+'\',\''+$data.country_slug+'\',\''+$data.region_slug+'\',\''+$data.city_slug+'\',\''+$data.slug+'\');"><span>'+history+'In: <b>'+ $data.title + '</b>, '+ $data.city + ' (Neighbourhood)</span>'+$delete+'</li>';
	}else if($type=='city'){
		if($data.area){$data.region = $data.area;}
		output = '<li class="'+$common_class+'" data-type="'+$type+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.title)+'\',\''+geodirLMEscapeQuote($data.region)+'\',\''+$data.country_slug+'\',\''+$data.region_slug+'\',\''+$data.slug+'\');"><span>'+history+'In: <b>'+ $data.title + '</b>, '+$data.region+' (City)</span>'+$delete+'</li>';
	}else if($type=='region'){
		if($data.area){$data.country = $data.area;}
		output = '<li class="'+$common_class+'" data-type="'+$type+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.title)+'\',\''+geodirLMEscapeQuote($data.country)+'\',\''+$data.country_slug+'\',\''+$data.slug+'\');"><span>'+history+'In: <b>'+ $data.title + '</b>, '+$data.country_title+' (Region)</span>'+$delete+'</li>';
	}else if($type=='country'){
		output = '<li class="'+$common_class+'" data-type="'+$type+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.title)+'\',\'\',\''+$data.slug+'\');"><span>'+history+'In: <b>'+ $data.title + '</b> (Country)</span>'+$delete+'</li>';
	}else if($type=='near'){
		output = '<li data-type="'+$type+'" class="gd-near-me text-primary '+$common_class+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.title)+'\',\'\',\''+$data.slug+'\');"><span><i class="fas fa-location-arrow"></i> Near: '+ $data.title + '</span></li>';
	}else if($type=='near-search'){
		output = '<li class="'+$common_class+'" data-type="'+$type+'" ontouchstart="this.click();return false;" onclick="gdlm_click_action(\''+$type+'\',\''+geodirLMEscapeQuote($data.description)+'\');"><span><i class="fas fa-search"></i> Near: '+ $data.description + '</span></li>';
	}

	return output;
}

function gdlm_click_action($type,$title,$area,$country_slug,$region_slug,$city_slug,$hood_slug){
	if(gdlmls_is_search){
		if($type=='neighbourhood' || $type=='city' || $type=='region' || $type=='country'){
			$slug = '';
			if($type=='neighbourhood'){$slug = $hood_slug;}
			else if($type=='city'){$slug = $city_slug;}
			else if($type=='region'){$slug = $region_slug;}
			else if($type=='country'){$slug = $country_slug;}
			gdlm_search_fill_location($type,$slug,$title);
		}else if($type=='near-search'){
			gdlm_search_fill_location($type,'',$title);
		}else if($type=='near'){
			gd_get_user_position(gdlm_search_near_me);
		}
	}else{
		if($type=='neighbourhood' || $type=='city' || $type=='region' || $type=='country'){
			gdlm_go_location($type,$title,$area,$country_slug,$region_slug,$city_slug,$hood_slug);
		}else if($type=='near-search'){
			gdlm_go_search($title);
		}else if($type=='near'){
			gd_get_user_position(gdlm_ls_near_me);
		}
	}
	setTimeout(function() {
		_ua = navigator.userAgent.toLowerCase();
		isChrome = /chrome/.test(_ua);
		isWin10 = /windows nt 10.0/.test(_ua);
		if (isChrome && isWin10) {
			jQuery(".gdlm-location-suggestions").hide();
		}
	},200);
}

function gdlm_ls_near_me($lat,$lon){
	window.location = geodir_params.location_base_url+"near/me/"+$lat+","+$lon+"/";
}

function gdlm_ls_near_gps($lat,$lon){
	window.location = geodir_params.location_base_url+"near/gps/"+$lat+","+$lon+"/";
}

function gdlm_search_near_me($lat,$lon){
	gdlm_search_fill_location('near','me',"Near: "+geodir_params.txt_form_my_location,$lat,$lon)
}

function gdlm_search_fill_location($type,$slug,$title,$lat,$lon){
	if($type=='near'){

	}else if($type=='near-search'){
		$type='';
	}else{
		var txtType;
		if ($type == 'country') {
			txtType = '(Country)';
		} else if ($type == 'region') {
			txtType = '(Region)';
		} else if ($type == 'city') {
			txtType = '(City)';
		} else if ($type == 'neighbourhood') {
			txtType = '(Neighbourhood)';
		} else {
			txtType = "("+$type+")";
		}
		$title = "In: "+$title+" "+txtType;
	}

	jQuery('.geodir-location-search-type').val($slug).attr('name', $type);
	jQuery('.sgeo_lat').val($lat);
	jQuery('.sgeo_lon').val($lon);
	jQuery('.snear').val($title).trigger('change'); // fire change event so we can check if we need to add in-location class
}

function gdlm_go_search($text){
	if (window.gdMaps === 'google') {
		var geocoder = new google.maps.Geocoder();
		geocoder.geocode({'address': $text},
			function (results, status) {
				if (status == 'OK') {
					$lat = results[0].geometry.location.lat();
					$lon = results[0].geometry.location.lng();
					gdlm_ls_near_gps($lat,$lon);
				} else {
					alert("Search was not successful for the following reason :" + status);
				}
			});
	} else if (window.gdMaps === 'osm') {
		geocodePositionOSM(false, $text, false, false,
			function(geo) {
				if (typeof geo !== 'undefined' && geo.lat && geo.lon) {
					console.log(results);
				} else {
					alert("Search was not successful for the requested address.");
				}
			});
	}
}

function gdlm_ls_search_location($type,$term){
	jQuery.ajax({
		type: "GET",
		url: geodir_params.api_url+$type+"/?search="+$term,
		success: function(data) {
			console.log(data);
			return data;
		},
		error: function(xhr, textStatus, errorThrown) {
			console.log(errorThrown);
		}
	});
}

function gdlm_go_location($type,$title,$area,$country_slug,$region_slug,$city_slug,$hood_slug){
	// save search history before redirect
	gdlm_ls_set_location_history($type,$title,$area,$country_slug,$region_slug,$city_slug,$hood_slug);
	window.location = gdlm_ls_location_url($country_slug,$region_slug,$city_slug,$hood_slug);
	//console.log( gdlm_ls_location_url($country_slug,$region_slug,$city_slug,$hood_slug));
}

function gdlm_ls_location_url($country_slug,$region_slug,$city_slug,$hood_slug){
	//$url = geodir_params.location_url.slice(0, -1); // get location url without the ending slash
	$url = geodir_params.location_base_url; // get location url without the ending slash
	var show_country = 0;
	var show_region = 1;
	var show_city = 1;
	var show_hood = 0;

	if(show_country && $country_slug){
		$url += ""+$country_slug+"/";
	}

	if(show_region && $region_slug){
		$url += ""+$region_slug+"/";
	}

	if(show_city && $city_slug){
		$url += ""+$city_slug+"/";
	}

	if(show_hood && $hood_slug){
		$url += ""+$hood_slug+"/";
	}

	return $url;
}

function gdlm_ls_get_location_history(){
	if (geodir_is_localstorage() === true) {
		return gdlm_ls_history = localStorage.getItem("gdlm_ls_history");
	}else{
		return '';
	}
}

function gdlm_ls_del_location_history($slug){
	gdlmls_do_not_close = true;
	if (geodir_is_localstorage() === true) {
		gdlm_ls_history = JSON.parse(localStorage.getItem("gdlm_ls_history"));
		var found  = '';
		jQuery.each(gdlm_ls_history, function(index, value) {
			if($slug && $slug==value.slug){
				// its already in the list so bail.
				//gdlm_ls_history.splice(index, 1);
				found = index;
			}
		});

		if(found!==''){
			gdlm_ls_history.splice(found, 1);
			// store the user selection
			localStorage.setItem("gdlm_ls_history", JSON.stringify(gdlm_ls_history));
		}
	}

	setTimeout(function(){gdlmls_do_not_close = false;}, 200);
}

function gdlm_ls_set_location_history($type,$title,$area,$country_slug,$region_slug,$city_slug,$hood_slug){
	// set a searched location
	if (geodir_is_localstorage() === true) {
		var gdlm_ls_history = localStorage.getItem("gdlm_ls_history");
		var $exists = false;

		if (!gdlm_ls_history || gdlm_ls_history === undefined) {
			gdlm_ls_history = []
		}else{
			gdlm_ls_history = JSON.parse(gdlm_ls_history);
			jQuery.each(gdlm_ls_history, function(index, value) {
				if(value.type == $type && value.title==$title){
					// its already in the list so bail.
					$exists = true;
				}
			});
		}

		if(!$exists){
			$slug = $city_slug;
			if($type=='neighbourhood'){
				$slug = $hood_slug;
			}if($type=='city'){
				$slug = $city_slug;
			}else if($type=='region'){
				$slug = $region_slug;
			}else if($type=='country'){
				$slug = $country_slug;
			}

			var $location = {
				history:true, // set it as historical
				type:$type,
				title:$title,
				country_slug:$country_slug,
				region_slug:$region_slug,
				city_slug:$city_slug,
				hood_slug:$hood_slug,
				slug:$slug,
				area:$area
			};
			gdlm_ls_history.unshift($location);
			// only keep latest 5 searches
			if(gdlm_ls_history.length > 5){
				gdlm_ls_history.pop();
			}
		}

		// store the user selection
		localStorage.setItem("gdlm_ls_history", JSON.stringify(gdlm_ls_history));
	}
}

function gdlm_ls_google_suggestions($search){
	// Create a new session token.
	if(!gdlmls_google_sessionToken){
		gdlmls_google_sessionToken = new google.maps.places.AutocompleteSessionToken();
	}

	// display function
	var displaySuggestions = function(predictions, status) {
		if (status != google.maps.places.PlacesServiceStatus.OK) {
			return;
		}
		console.log(predictions);
		html = '';
		predictions.forEach(function(prediction) {
			html = html + gdlm_ls_create_li('near-search', prediction);
		});
		jQuery(gdlmls_selected).parent().find("ul.gdlmls-more").empty().append(html);
		if (html && gdlmls_is_search){
			geodirLMShowDropdown(gdlmls_selected);
		}
	};

	if(!gdlmls_google_service){
		gdlmls_google_service = new google.maps.places.AutocompleteService();
	}
	gdlmls_google_service.getPlacePredictions({input: $search, sessionToken: gdlmls_google_sessionToken, types: ['geocode']}, displaySuggestions);
}

function geodirLMEscapeQuote(str) {
	if (str) {
		str = str.replace(/"/g, "&quot;");
		str = str.replace(/'/g, "\\'");
		str = str.replace(/&#039;/g, "\\'");
	}
	return str;
}

/**
 * Open the location switcher
 */
function geodir_lm_setup_switcher_trigger() {
	var no_show = false;
	// Clear the location and redirect to the base location page
	jQuery(".gdlmls-menu-icon").on("click", function(event){
		no_show = true;
		event.preventDefault();
				window.location = geodir_params.location_base_url;
			});

	// detect the menu item location switcher click
	jQuery('a[href$="#location-switcher"]').on("click", function(event){
				// prevent the hash being added to the url
		event.preventDefault();
		// only fire if the click is not the clear location button.
		if(!no_show){
						jQuery('#gdlm-switcher').modal('show').on('shown.bs.modal', function (e) {
				jQuery('.modal .geodir-location-search').trigger("focus").trigger("click");
				// second open might not trigger dropdown so we check.
				setTimeout(function(){
					if( jQuery('.modal .geodir-location-search').attr('aria-expanded')=='false' ){
						jQuery('.modal .geodir-location-search').dropdown('show');
					}
				}, 200);
			});
					}
	});
}
function geodirLMShowDropdown(el) {
	/* Windows 11 Edge/Chrome dropdown fix */
	var uA = navigator.userAgent.toLowerCase();
	if (navigator.platform.toLowerCase().indexOf('win') !== -1 && uA.indexOf("windows nt 10") !== -1 && (uA.match(/chrome/i) || uA.match(/edge/i))) {
		jQuery(el).dropdown('show');
		setTimeout(function(){
			jQuery('.gd-search-field-near .gdlm-location-suggestions').css('display',"").show();
		}, 30);
	} else if (jQuery(el).attr('aria-expanded')=='false'){
		jQuery(el).dropdown('show');
	}
}
jQuery(document).ready(function() {geodir_lm_setup_switcher_trigger()});
</script><style>html{font-size:16px;}</style><link rel='stylesheet' id='jcrop-css' href='https://www.seniorresource.com/wp-includes/js/jcrop/jquery.Jcrop.min.css?ver=0.9.15' type='text/css' media='all' />
<link rel='stylesheet' id='jquery-ui-css' href='https://www.seniorresource.com/wp-content/plugins/userswp/assets/css/jquery-ui.css?ver=6.7.2' type='text/css' media='all' />
<script type="text/javascript" id="geodir-js-extra">
/* <![CDATA[ */
var geodir_search_params = {"geodir_advanced_search_plugin_url":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodir_advance_search_filters","geodir_admin_ajax_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php","request_param":"{\"geo_url\":\"is_location\"}","msg_Near":"Near:","default_Near":"Enter City, State, or Zip code","msg_Me":"Me","unom_dist":"miles","autocomplete_field_name":"s","geodir_enable_autocompleter":"1","search_suggestions_with":"","geodir_location_manager_active":"1","msg_User_defined":"User defined","ask_for_share_location":"","geodir_autolocate_ask":"","geodir_autolocate_ask_msg":"Do you wish to be geolocated to listings near you?","UNKNOWN_ERROR":"Unable to find your location.","PERMISSION_DENINED":"Permission denied in finding your location.","POSITION_UNAVAILABLE":"Your location is currently unknown.","BREAK":"Attempt to find location took too long.","GEOLOCATION_NOT_SUPPORTED":"Geolocation is not supported by this browser.","DEFAUTL_ERROR":"Browser unable to find your location.","text_more":"More","text_less":"Less","msg_In":"In:","txt_in_country":"(Country)","txt_in_region":"(Region)","txt_in_city":"(City)","txt_in_hood":"(Neighbourhood)","compass_active_color":"#087CC9","onload_redirect":"no","onload_askRedirect":"","onload_redirectLocation":"","autocomplete_min_chars":"3","autocompleter_max_results":"10","autocompleter_filter_location":"1","time_format":"g:i a","am_pm":"[\"am\", \"AM\", \"pm\", \"PM\"]","open_now_format":"{label}, {time}","ajaxPagination":"","txt_loadMore":"Load More","txt_loading":"Loading..."};
var geodir_location_params = {"select_merge_city_msg":"Please select merge city.","confirm_set_default":"Are sure you want to make this city default?","LISTING_URL_PREFIX":"Please enter listing url prefix","LISTING_URL_PREFIX_INVALID_CHAR":"Invalid character in listing url prefix","LOCATION_URL_PREFIX":"Please enter location url prefix","LOCATOIN_PREFIX_INVALID_CHAR":"Invalid character in location url prefix","LOCATION_CAT_URL_SEP":"Please enter location and category url separator","LOCATION_CAT_URL_SEP_INVALID_CHAR":"Invalid character in location and category url separator","LISTING_DETAIL_URL_SEP":"Please enter listing detail url separator","LISTING_DETAIL_URL_SEP_INVALID_CHAR":"Invalid character in listing detail url separator","LOCATION_PLEASE_WAIT":"Please wait...","LOCATION_CHOSEN_NO_RESULT_TEXT":"Sorry, nothing found!","LOCATION_CHOSEN_KEEP_TYPE_TEXT":"Please wait...","LOCATION_CHOSEN_LOOKING_FOR_TEXT":"We are searching for","select_location_translate_msg":"Please select country to update translation.","select_location_translate_confirm_msg":"Are you sure?","gd_text_search_city":"Search City","gd_text_search_region":"Search Region","gd_text_search_country":"Search Country","gd_text_search_location":"Search location","gd_base_location":"https:\/\/www.seniorresource.com\/location\/","UNKNOWN_ERROR":"Unable to find your location.","PERMISSION_DENINED":"Permission denied in finding your location.","POSITION_UNAVAILABLE":"Your location is currently unknown.","BREAK":"Attempt to find location took too long.","DEFAUTL_ERROR":"Browser unable to find your location.","msg_Near":"Near:","msg_Me":"Me","msg_User_defined":"User defined","confirm_delete_location":"Deleting location will also DELETE any LISTINGS in this location. Are you sure want to DELETE this location?","confirm_delete_neighbourhood":"Are you sure you want to delete this neighbourhood?","delete_bulk_location_select_msg":"Please select at least one location.","neighbourhood_is_active":"","text_In":"In:","autocompleter_min_chars":"0","disable_nearest_cities":""};
var geodir_params = {"siteurl":"https:\/\/www.seniorresource.com","plugin_url":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory","ajax_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php","gd_ajax_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php?gd-ajax=1","has_gd_ajax":"1","gd_modal":"0","is_rtl":"","basic_nonce":"e810fc044f","text_add_fav":"Add to Favorites","text_fav":"Favorite","text_remove_fav":"Remove from Favorites","text_unfav":"Unfavorite","icon_fav":"fas fa-heart","icon_unfav":"fas fa-heart","api_url":"https:\/\/www.seniorresource.com\/wp-json\/geodir\/v2\/","location_base_url":"https:\/\/www.seniorresource.com\/location\/","location_url":"https:\/\/www.seniorresource.com\/location\/","search_base_url":"https:\/\/www.seniorresource.com\/search\/","custom_field_not_blank_var":"Field label must not be blank","custom_field_not_special_char":"Please do not use special character and spaces in field key Variable Name.","custom_field_unique_name":"Field key must be unique.","custom_field_delete":"Are you sure you wish to delete this field?","custom_field_delete_children":"You must move or remove child elements first.","tax_meta_class_succ_del_msg":"File has been successfully deleted.","tax_meta_class_not_permission_to_del_msg":"You do NOT have permission to delete this file.","tax_meta_class_order_save_msg":"Order saved!","tax_meta_class_not_permission_record_img_msg":"You do not have permission to reorder images.","address_not_found_on_map_msg":"Address not found for:","my_place_listing_del":"Are you sure you wish to delete this listing?","confirmPostAuthorAction":"Are you sure you wish to perform this action?","my_main_listing_del":"Deleting the main listing of a franchise will turn all franchises in regular listings. Are you sure wish to delete this main listing?","rating_error_msg":"Error : please retry","listing_url_prefix_msg":"Please enter listing url prefix","invalid_listing_prefix_msg":"Invalid character in listing url prefix","location_url_prefix_msg":"Please enter location url prefix","invalid_location_prefix_msg":"Invalid character in location url prefix","location_and_cat_url_separator_msg":"Please enter location and category url separator","invalid_char_and_cat_url_separator_msg":"Invalid character in location and category url separator","listing_det_url_separator_msg":"Please enter listing detail url separator","invalid_char_listing_det_url_separator_msg":"Invalid character in listing detail url separator","loading_listing_error_favorite":"Error loading listing.","field_id_required":"This field is required.","valid_email_address_msg":"Please enter valid email address.","default_marker_icon":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/images\/pin.png","default_marker_w":"50","default_marker_h":"50","latitude_error_msg":"A numeric value is required. Please make sure you have either dragged the marker or clicked the button: Set Address On Map","longgitude_error_msg":"A numeric value is required. Please make sure you have either dragged the marker or clicked the button: Set Address On Map","gd_cmt_btn_post_reply":"Post Reply","gd_cmt_btn_reply_text":"Reply text","gd_cmt_btn_post_review":"Post Review","gd_cmt_btn_review_text":"Review text","gd_cmt_err_no_rating":"Please select star rating, you can't leave a review without stars.","err_max_file_size":"File size error : You tried to upload a file over %s","err_file_upload_limit":"You have reached your upload limit of %s files.","err_pkg_upload_limit":"You may only upload %s files with this package, please try again.","action_remove":"Remove","txt_all_files":"Allowed files","err_file_type":"File type error. Allowed file types: %s","gd_allowed_img_types":"jpg,jpe,jpeg,gif,png,bmp,ico,webp,avif","txt_form_wait":"Wait...","txt_form_searching":"Searching...","txt_form_my_location":"My Location","txt_near_my_location":"Near: My Location","rating_type":"fa","reviewrating":"","multirating":"","map_name":"auto","osmStart":"Start","osmVia":"Via {viaNumber}","osmEnd":"Enter Your Location","osmPressEnter":"Press Enter key to search","geoMyLocation":"My Location","geoErrUNKNOWN_ERROR":"Unable to find your location","geoErrPERMISSION_DENINED":"Permission denied in finding your location","geoErrPOSITION_UNAVAILABLE":"Your location is currently unknown","geoErrBREAK":"Attempt to find location took too long","geoErrDEFAULT":"Location detection not supported in browser","i18n_set_as_default":"Set as default","i18n_no_matches":"No matches found","i18n_ajax_error":"Loading failed","i18n_input_too_short_1":"Please enter 1 or more characters","i18n_input_too_short_n":"Please enter %item% or more characters","i18n_input_too_long_1":"Please delete 1 character","i18n_input_too_long_n":"Please delete %item% characters","i18n_selection_too_long_1":"You can only select 1 item","i18n_selection_too_long_n":"You can only select %item% items","i18n_load_more":"Loading more results\u2026","i18n_searching":"Searching\u2026","txt_choose_image":"Choose an image","txt_use_image":"Use image","img_spacer":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/images\/media-button-image.gif","txt_post_review":"Post Review","txt_post_reply":"Post reply","txt_leave_a_review":"Leave a Review","txt_leave_a_reply":"Leave a reply","txt_reply_text":"Reply text","txt_review_text":"Review text","txt_read_more":"Read more","txt_about_listing":"about this listing","txt_open_now":"Open now","txt_closed_now":"Closed now","txt_closed_today":"Closed today","txt_closed":"Closed","txt_single_use":"This field is single use only and is already being used.","txt_page_settings":"Page selections should not be the same, please correct the issue to continue.","txt_save_other_setting":"Please save the current setting before adding a new one.","txt_previous":"Previous","txt_next":"Next","txt_lose_changes":"You may lose changes if you navigate away now!","txt_are_you_sure":"Are you sure?","txt_saving":"Saving...","txt_saved":"Saved","txt_order_saved":"Order saved","txt_preview":"Preview","txt_edit":"Edit","txt_delete":"Delete","txt_cancel":"Cancel","txt_confirm":"Confirm","txt_continue":"Continue","txt_yes":"Yes","txt_deleted":"Deleted","txt_google_key_error":"Google API key Error","txt_documentation":"Documentation","txt_google_key_verifying":"Verifying API Key","txt_google_key_enable_billing":"Enable Billing","txt_google_key_error_project":"Key invalid, you might have entered the project number instead of the API key","txt_google_key_error_invalid":"Key invalid, please double check you have entered it correctly","txt_google_key_error_referer":"This URL is not allowed for this API Key","txt_google_key_error_billing":"You must enable billing on your Google account.","txt_google_key_error_brave":"Brave browser shield will block this check and return a false positive","confirm_new_wp_template":"Are you sure want to create a new template to customize?","gmt_offset":"-6:00","timezone_string":"America\/Denver","autosave":"10000","search_users_nonce":"b41e051bed","google_api_key":"AIzaSyACScZyNlfyTvFH_VsMTyHQHbigm_LK4wg","mapLanguage":"en","osmRouteLanguage":"en","markerAnimation":"bounce","confirm_set_location":"Would you like to manually set your location?","confirm_lbl_error":"ERROR:","label_title":"Title","label_caption":"Caption","button_set":"Set","BH_altTimeFormat":"h:i K","splitUK":"0","time_ago":{"prefix_ago":"","suffix_ago":" ago","prefix_after":"after ","suffix_after":"","seconds":"less than a minute","minute":"about a minute","minutes":"%d minutes","hour":"about an hour","hours":"about %d hours","day":"a day","days":"%d days","month":"about a month","months":"%d months","year":"about a year","years":"%d years"},"resize_marker":"","marker_max_width":"50","marker_max_height":"50","hasAjaxSearch":""};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/geodirectory/assets/aui/js/geodirectory.min.js?ver=2.8.105" id="geodir-js"></script>
<script type="text/javascript" id="geodir-js-after">
/* <![CDATA[ */
document.addEventListener("DOMContentLoaded",function(){geodir_search_setup_advance_search();jQuery("body").on("geodir_setup_search_form",function(){geodir_search_setup_advance_search()});if(jQuery('.geodir-search-container form').length){geodir_search_setup_searched_filters()}if(jQuery('.geodir-search-container select[name="sopen_now"]').length){setInterval(function(e){geodir_search_refresh_open_now_times()},60000);geodir_search_refresh_open_now_times()}if(!window.gdAsBtnText){window.gdAsBtnText=jQuery('.geodir_submit_search').html();window.gdAsBtnTitle=jQuery('.geodir_submit_search').data('title')}jQuery(document).on("click",".geodir-clear-filters",function(e){window.isClearFilters=true;jQuery('.gd-adv-search-labels .gd-adv-search-label').each(function(e){if(!jQuery(this).hasClass('geodir-clear-filters')){jQuery(this).trigger('click')}});window.isClearFilters=false;geodir_search_trigger_submit()});geodir_distance_popover_trigger();var bsDash='bs-';jQuery(document).on('change','.geodir-distance-trigger',function(){var $cont=jQuery(this).closest('.geodir-popover-content'),$_distance=jQuery('#'+$cont.attr('data-'+bsDash+'container'));if(jQuery(this).val()=='km'||jQuery(this).val()=='mi'){jQuery('.geodir-units-wrap .btn',$cont).removeClass('active');jQuery('.geodir-units-wrap .btn.geodir-unit-'+jQuery(this).val(),$cont).addClass('active')}if($_distance.length){var dist=parseInt($cont.find('[name="_gddist"]').val());var unit=$cont.find('[name="_gdunit"]:checked').val();if(!unit){unit='miles';if(unit=='miles'){unit='mi'}}var title=dist+' '+$cont.find('[name="_gdunit"]:checked').parent().attr('title');jQuery('[name="dist"]',$_distance).remove();jQuery('[name="_unit"]',$_distance).remove();var $btn=$_distance.find('.geodir-distance-show');$_distance.append('<input type="hidden" name="_unit" value="'+unit+'" data-ignore-rule>');if(dist>0){$_distance.append('<input type="hidden" name="dist" value="'+dist+'">');$btn.removeClass('btn-secondary').addClass('btn-primary');jQuery('.-gd-icon',$btn).addClass('d-none');jQuery('.-gd-range',$btn).removeClass('d-none').text(dist+' '+unit).attr('title',title)}else{$_distance.append('<input type="hidden" name="dist" value="">');$btn.removeClass('btn-primary').addClass('btn-secondary');jQuery('.-gd-icon',$btn).removeClass('d-none');jQuery('.-gd-range',$btn).addClass('d-none')}if($_distance.closest('form').find('[name="snear"]').val()){jQuery('[name="dist"]',$_distance).trigger('change')}geodir_popover_show_distance($_distance.closest('form'),dist,unit)}});jQuery(document).on('input','.geodir-distance-range',function(){var $cont=jQuery(this).closest('.geodir-popover-content'),$_distance=jQuery('#'+$cont.attr('data-'+bsDash+'container'));geodir_popover_show_distance($_distance.closest('form'),parseInt(jQuery(this).val()))});jQuery('body').on('click',function(e){if(e&&!e.isTrigger&&jQuery('.geodir-distance-popover[aria-describedby]').length){jQuery('.geodir-distance-popover[aria-describedby]').each(function(){if(!jQuery(this).is(e.target)&&jQuery(this).has(e.target).length===0&&jQuery('.popover').has(e.target).length===0){jQuery(this).popover('hide')}})}});jQuery("body").on("geodir_setup_search_form",function($_form){if(typeof aui_cf_field_init_rules==="function"){setTimeout(function(){aui_cf_field_init_rules(jQuery),100})}})});function geodir_distance_popover_trigger(){if(!jQuery('.geodir-distance-popover').length){return}var bsDash='bs-';jQuery('.geodir-distance-popover').popover({html:true,placement:'top',sanitize:false,customClass:'geodir-popover',template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><div class="popover-body p-2"></div></div>'}).on('hidden.bs.popover',function(e){var dist=parseInt(jQuery(this).closest('.gd-search-field-distance').find('[name="dist"]').val());var unit=jQuery(this).closest('.gd-search-field-distance').find('[name="_unit"]').val();var content=jQuery(this).attr('data-'+bsDash+'content');content=content.replace(' geodir-unit-mi active"',' geodir-unit-mi"');content=content.replace(' geodir-unit-km active"',' geodir-unit-km"');content=content.replace("checked='checked'",'');content=content.replace('checked="checked"','');content=content.replace('geodir-drange-values','geodir-drange-values d-none');content=content.replace(' d-none d-none',' d-none');content=content.replace('value="'+unit+'"','value="'+unit+'" checked="checked"');content=content.replace(' geodir-unit-'+unit+'"',' geodir-unit-'+unit+' active"');content=content.replace(' value="'+jQuery(this).attr('data-value')+'" ',' value="'+dist+'" ');jQuery(this).attr('data-'+bsDash+'content',content);jQuery(this).attr('data-value',dist)}).on('shown.bs.popover',function(e){geodir_popover_show_distance(jQuery(this).closest('form'))})}function geodir_popover_show_distance($form,dist,unit){if(!$form){$form=jQuer('body')}if(typeof dist=='undefined'){dist=parseInt(jQuery('[name="dist"]',$form).val())}jQuery('.geodir-drange-dist').text(dist);if(typeof unit=='undefined'){unit=jQuery('[name="_unit"]',$form).val();if(unit&&jQuery('.btn.geodir-unit-'+unit,$form).length&&!jQuery('.btn.geodir-unit-'+unit,$form).hasClass('active')){jQuery('.geodir-units-wrap .geodir-distance-trigger',$form).removeAttr('checked');jQuery('.geodir-units-wrap .geodir-distance-trigger[value="'+unit+'"]',$form).attr('checked','checked');jQuery('.geodir-units-wrap .btn',$form).removeClass('active');jQuery('.btn.geodir-unit-'+unit,$form).addClass('active')}}if(unit){jQuery('.geodir-drange-unit').text(unit)}if(dist>0){if(jQuery('.geodir-drange-values').hasClass('d-none')){jQuery('.geodir-drange-values').removeClass('d-none')}}else{if(!jQuery('.geodir-drange-values').hasClass('d-none')){jQuery('.geodir-drange-values').addClass('d-none')}}}function geodir_search_setup_advance_search(){jQuery('.geodir-search-container.geodir-advance-search-searched').each(function(){var $el=this;if(jQuery($el).attr('data-show-adv')=='search'){jQuery('.geodir-show-filters',$el).trigger('click')}});jQuery('.geodir-more-filters','.geodir-filter-container').each(function(){var $cont=this;var $form=jQuery($cont).closest('form');var $adv_show=jQuery($form).closest('.geodir-search-container').attr('data-show-adv');if($adv_show=='always'&&typeof jQuery('.geodir-show-filters',$form).html()!='undefined'){jQuery('.geodir-show-filters',$form).remove();if(!jQuery('.geodir-more-filters',$form).is(":visible")){jQuery('.geodir-more-filters',$form).slideToggle(500)}}});geodir_distance_popover_trigger()}function geodir_search_setup_searched_filters(){jQuery(document).on('click','.gd-adv-search-labels .gd-adv-search-label',function(e){if(!jQuery(this).hasClass('geodir-clear-filters')){var $this=jQuery(this),$form,name,to_name;name=$this.data('name');to_name=$this.data('names');if((typeof name!='undefined'&&name)||$this.hasClass('gd-adv-search-near')){jQuery('.geodir-search-container form').each(function(){$form=jQuery(this);if($this.hasClass('gd-adv-search-near')){name='snear';jQuery('.sgeo_lat,.sgeo_lon,.geodir-location-search-type',$form).val('');jQuery('.geodir-location-search-type',$form).attr('name','')}if(jQuery('[name="'+name+'"]',$form).closest('.gd-search-has-date').length){jQuery('[name="'+name+'"]',$form).closest('.gd-search-has-date').find('input').each(function(){geodir_search_deselect(jQuery(this))})}else{geodir_search_deselect(jQuery('[name="'+name+'"]',$form));if(typeof to_name!='undefined'&&to_name){geodir_search_deselect(jQuery('[name="'+to_name+'"]',$form))}if((name=='snear'||name=='dist')&&jQuery('.geodir-distance-popover',$form).length){if(jQuery('[name="_unit"]',$form).length){jQuery('[name="dist"]',$form).remove();var $btn=jQuery('.geodir-distance-show',$form);$btn.removeClass('btn-primary').addClass('btn-secondary');jQuery('.-gd-icon',$btn).removeClass('d-none');jQuery('.-gd-range',$btn).addClass('d-none')}}}});if(!window.isClearFilters){$form=jQuery('.geodir-search-container form');if($form.length>1){$form=jQuery('.geodir-current-form:visible').length?jQuery('.geodir-current-form:visible:first'):jQuery('.geodir-search-container:visible:first form')}geodir_search_trigger_submit($form)}}$this.remove()}})}function geodir_search_refresh_open_now_times(){jQuery('.geodir-search-container select[name="sopen_now"]').each(function(){geodir_search_refresh_open_now_time(jQuery(this))})}function geodir_search_refresh_open_now_time($this){var $option=$this.find('option[value="now"]'),label,value,d,date_now,time,$label,open_now_format=geodir_search_params.open_now_format;if($option.length&&open_now_format){if($option.data('bkp-text')){label=$option.data('bkp-text')}else{label=$option.text();$option.attr('data-bkp-text',label)}d=new Date();date_now=d.getFullYear()+'-'+(("0"+(d.getMonth()+1)).slice(-2))+'-'+(("0"+(d.getDate())).slice(-2))+'T'+(("0"+(d.getHours())).slice(-2))+':'+(("0"+(d.getMinutes())).slice(-2))+':'+(("0"+(d.getSeconds())).slice(-2));time=geodir_search_format_time(d);open_now=geodir_search_params.open_now_format;open_now=open_now.replace("{label}",label);open_now=open_now.replace("{time}",time);$option.text(open_now);$option.closest('select').data('date-now',date_now);$label=jQuery('.gd-adv-search-open_now .gd-adv-search-label-t');if(jQuery('.gd-adv-search-open_now').length&&jQuery('.gd-adv-search-open_now').data('value')=='now'){if($label.data('bkp-text')){label=$label.data('bkp-text')}else{label=$label.text();$label.attr('data-bkp-text',label)}open_now=geodir_search_params.open_now_format;open_now=open_now.replace("{label}",label);open_now=open_now.replace("{time}",time);$label.text(open_now)}}}function geodir_search_format_time(d){var format=geodir_search_params.time_format,am_pm=eval(geodir_search_params.am_pm),hours,aL,aU;hours=d.getHours();if(hours<12){aL=0;aU=1}else{hours=hours>12?hours-12:hours;aL=2;aU=3}time=format.replace("g",hours);time=time.replace("G",(d.getHours()));time=time.replace("h",("0"+hours).slice(-2));time=time.replace("H",("0"+(d.getHours())).slice(-2));time=time.replace("i",("0"+(d.getMinutes())).slice(-2));time=time.replace("s",'');time=time.replace("a",am_pm[aL]);time=time.replace("A",am_pm[aU]);return time}function geodir_search_deselect(el){var fType=jQuery(el).prop('type');switch(fType){case'checkbox':case'radio':jQuery(el).prop('checked',false);jQuery(el).trigger('gdclear');break;default:jQuery(el).val('');jQuery(el).trigger('gdclear');break}}function geodir_search_trigger_submit($form){if(!$form){$form=jQuery('.geodir-current-form').length?jQuery('.geodir-current-form'):jQuery('form[name="geodir-listing-search"]')}if($form.data('show')=='advanced'){if(jQuery('form.geodir-search-show-all:visible').length){$form=jQuery('form.geodir-search-show-all')}else if(jQuery('form.geodir-search-show-main:visible').length){$form=jQuery('form.geodir-search-show-main')}else if(jQuery('[name="geodir_search"]').closest('form:visible').length){$form=jQuery('[name="geodir_search"]').closest('form')}}geodir_click_search($form.find('.geodir_submit_search'))}function geodir_search_update_button(){return'<i class=\"fas fa-sync\" aria-hidden=\"true\"></i><span class=\"sr-only visually-hidden\">Update Results</span>'}var aui_cf_field_rules=[],aui_cf_field_key_rules={},aui_cf_field_default_values={};jQuery(function($){aui_cf_field_init_rules($)});function aui_cf_field_init_rules($){if(!$('[data-has-rule]').length){return}$('input.select2-search__field').attr('data-ignore-rule','');$('[data-rule-key]').on('change keypress keyup gdclear','input, textarea',function(){if(!$(this).hasClass('select2-search__field')){aui_cf_field_apply_rules($(this))}});$('[data-rule-key]').on('change change.select2 gdclear','select',function(){aui_cf_field_apply_rules($(this))});aui_cf_field_setup_rules($)}function aui_cf_field_setup_rules($){var aui_cf_field_keys=[];$('[data-rule-key]').each(function(){var key=$(this).data('rule-key'),irule=parseInt($(this).data('has-rule'));if(key){aui_cf_field_keys.push(key)}var parse_conds={};if($(this).data('rule-fie-0')){$(this).find('input,select,textarea').each(function(){if($(this).attr('required')||$(this).attr('oninvalid')){$(this).addClass('aui-cf-req');if($(this).attr('required')){$(this).attr('data-rule-req',true)}if($(this).attr('oninvalid')){$(this).attr('data-rule-oninvalid',$(this).attr('oninvalid'))}}});for(var i=0;i<irule;i++){var field=$(this).data('rule-fie-'+i);if(typeof parse_conds[i]==='undefined'){parse_conds[i]={}}parse_conds[i].action=$(this).data('rule-act-'+i);parse_conds[i].field=$(this).data('rule-fie-'+i);parse_conds[i].condition=$(this).data('rule-con-'+i);parse_conds[i].value=$(this).data('rule-val-'+i)}$.each(parse_conds,function(j,data){var item={field:{key:key,action:data.action,field:data.field,condition:data.condition,value:data.value,rule:{key:key,action:data.action,condition:data.condition,value:data.value}}};aui_cf_field_rules.push(item)})}aui_cf_field_default_values[$(this).data('rule-key')]=aui_cf_field_get_default_value($(this))});$.each(aui_cf_field_keys,function(i,fkey){aui_cf_field_key_rules[fkey]=aui_cf_field_get_children(fkey)});$('[data-rule-key]:visible').each(function(){var conds=aui_cf_field_key_rules[$(this).data('rule-key')];if(conds&&conds.length){var $main_el=$(this),el=aui_cf_field_get_element($main_el);if($(el).length){aui_cf_field_apply_rules($(el))}}})}function aui_cf_field_apply_rules($el){if(!$el.parents('[data-rule-key]').length){return}if($el.data('no-rule')){return}var key=$el.parents('[data-rule-key]').data('rule-key');var conditions=aui_cf_field_key_rules[key];if(typeof conditions==='undefined'){return}var field_type=aui_cf_field_get_type($el.parents('[data-rule-key]')),current_value=aui_cf_field_get_value($el);var $keys={},$keys_values={},$key_rules={};jQuery.each(conditions,function(index,condition){if(typeof $keys_values[condition.key]=='undefined'){$keys_values[condition.key]=[];$key_rules[condition.key]={}}$keys_values[condition.key].push(condition.value);$key_rules[condition.key]=condition});jQuery.each(conditions,function(index,condition){if(typeof $keys[condition.key]=='undefined'){$keys[condition.key]={}}if(condition.condition==='empty'){var field_value=Array.isArray(current_value)?current_value.join(''):current_value;if(!field_value||field_value===''){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='not empty'){var field_value=Array.isArray(current_value)?current_value.join(''):current_value;if(field_value&&field_value!==''){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='equals to'){var field_value=(Array.isArray(current_value)&&current_value.length===1)?current_value[0]:current_value;if(((condition.value&&condition.value==condition.value)||(condition.value===field_value))&&aui_cf_field_in_array(field_value,$keys_values[condition.key])){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='not equals'){var field_value=(Array.isArray(current_value)&&current_value.length===1)?current_value[0]:current_value;if(jQuery.isNumeric(condition.value)&&parseInt(field_value)!==parseInt(condition.value)&&field_value&&!aui_cf_field_in_array(field_value,$keys_values[condition.key])){$keys[condition.key][index]=true}else if(condition.value!=field_value&&!aui_cf_field_in_array(field_value,$keys_values[condition.key])){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='greater than'){var field_value=(Array.isArray(current_value)&&current_value.length===1)?current_value[0]:current_value;if(jQuery.isNumeric(condition.value)&&parseInt(field_value)>parseInt(condition.value)){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='less than'){var field_value=(Array.isArray(current_value)&&current_value.length===1)?current_value[0]:current_value;if(jQuery.isNumeric(condition.value)&&parseInt(field_value)<parseInt(condition.value)){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}else if(condition.condition==='contains'){var avalues=condition.value;if(!Array.isArray(avalues)){if(jQuery.isNumeric(avalues)){avalues=[avalues]}else{avalues=avalues.split(",")}}switch(field_type){case'multiselect':var found=false;for(var key in avalues){var svalue=jQuery.isNumeric(avalues[key])?avalues[key]:(avalues[key]).trim();if(!found&&current_value&&((!Array.isArray(current_value)&&current_value.indexOf(svalue)>=0)||(Array.isArray(current_value)&&aui_cf_field_in_array(svalue,current_value)))){found=true}}if(found){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}break;case'checkbox':if(current_value&&((!Array.isArray(current_value)&&current_value.indexOf(condition.value)>=0)||(Array.isArray(current_value)&&aui_cf_field_in_array(condition.value,current_value)))){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}break;default:if(typeof $keys[condition.key][index]==='undefined'){if(current_value&&current_value.indexOf(condition.value)>=0&&aui_cf_field_in_array(current_value,$keys_values[condition.key],false,true)){$keys[condition.key][index]=true}else{$keys[condition.key][index]=false}}break}}});jQuery.each($keys,function(index,field){if(aui_cf_field_in_array(true,field)){aui_cf_field_apply_action($el,$key_rules[index],true)}else{aui_cf_field_apply_action($el,$key_rules[index],false)}});if($keys.length){$el.trigger('aui_cf_field_on_change')}}function aui_cf_field_get_element($el){var el=$el.find('input:not("[data-ignore-rule]"),textarea,select'),type=aui_cf_field_get_type($el);if(type&&window._aui_cf_field_elements&&typeof window._aui_cf_field_elements=='object'&&typeof window._aui_cf_field_elements[type]!='undefined'){el=window._aui_cf_field_elements[type]}return el}function aui_cf_field_get_type($el){return $el.data('rule-type')}function aui_cf_field_get_value($el){var current_value=$el.val();if($el.is(':checkbox')){current_value='';if($el.parents('[data-rule-key]').find('input:checked').length>1){$el.parents('[data-rule-key]').find('input:checked').each(function(){current_value=current_value+jQuery(this).val()+' '})}else{if($el.parents('[data-rule-key]').find('input:checked').length>=1){current_value=$el.parents('[data-rule-key]').find('input:checked').val()}}}if($el.is(':radio')){current_value=$el.parents('[data-rule-key]').find('input[type=radio]:checked').val()}return current_value}function aui_cf_field_get_default_value($el){var value='',type=aui_cf_field_get_type($el);switch(type){case'text':case'number':case'date':case'textarea':case'select':value=$el.find('input:text,input[type="number"],textarea,select').val();break;case'phone':case'email':case'color':case'url':case'hidden':case'password':case'file':value=$el.find('input[type="'+type+'"]').val();break;case'multiselect':value=$el.find('select').val();break;case'radio':if($el.find('input[type="radio"]:checked').length>=1){value=$el.find('input[type="radio"]:checked').val()}break;case'checkbox':if($el.find('input[type="checkbox"]:checked').length>=1){if($el.find('input[type="checkbox"]:checked').length>1){var values=[];values.push(value);$el.find('input[type="checkbox"]:checked').each(function(){values.push(jQuery(this).val())});value=values}else{value=$el.find('input[type="checkbox"]:checked').val()}}break;default:if(window._aui_cf_field_default_values&&typeof window._aui_cf_field_default_values=='object'&&typeof window._aui_cf_field_default_values[type]!='undefined'){value=window._aui_cf_field_default_values[type]}break}return{type:type,value:value}}function aui_cf_field_reset_default_value($el,bHide,setVal){if(!($el&&$el.length)){return}var type=aui_cf_field_get_type($el),key=$el.data('rule-key'),field=aui_cf_field_default_values[key];if(typeof setVal==='undefined'||(typeof setVal!=='undefined'&&setVal===null)){setVal=field.value}switch(type){case'text':case'number':case'date':case'textarea':$el.find('input:text,input[type="number"],textarea').val(setVal);break;case'phone':case'email':case'color':case'url':case'hidden':case'password':case'file':$el.find('input[type="'+type+'"]').val(setVal);break;case'select':$el.find('select').find('option').prop('selected',false);$el.find('select').val(setVal);$el.find('select').trigger('change');break;case'multiselect':$el.find('select').find('option').prop('selected',false);if((typeof setVal==='object'||typeof setVal==='array')&&!setVal.length&&$el.find('select option:first').text()==''){$el.find('select option:first').remove()}if(typeof setVal==='string'){$el.find('select').val(setVal)}else{jQuery.each(setVal,function(i,v){$el.find('select').find('option[value="'+v+'"]').prop('selected',true)})}$el.find('select').trigger('change');break;case'checkbox':if($el.find('input[type="checkbox"]:checked').length>=1){$el.find('input[type="checkbox"]:checked').prop('checked',false).removeAttr('checked')}if(Array.isArray(setVal)){jQuery.each(setVal,function(i,v){$el.find('input[type="checkbox"][value="'+v+'"]').prop('checked',true)})}else{$el.find('input[type="checkbox"][value="'+setVal+'"]').prop('checked',true)}break;case'radio':setTimeout(function(){if($el.find('input[type="radio"]:checked').length>=1){$el.find('input[type="radio"]:checked').prop('checked',false).removeAttr('checked')}$el.find('input[type="radio"][value="'+setVal+'"]').prop('checked',true)},100);break;default:jQuery(document.body).trigger('aui_cf_field_reset_default_value',type,$el,field);break}if(!$el.hasClass('aui-cf-field-has-changed')){var el=aui_cf_field_get_element($el);if(type==='radio'||type==='checkbox'){el=el.find(':checked')}if(el){el.trigger('change');$el.addClass('aui-cf-field-has-changed')}}}function aui_cf_field_get_children(field_key){var rules=[];jQuery.each(aui_cf_field_rules,function(j,rule){if(rule.field.field===field_key){rules.push(rule.field.rule)}});return rules}function aui_cf_field_in_array(find,item,exact,match){var found=false,key;exact=!!exact;for(key in item){if((exact&&item[key]===find)||(!exact&&item[key]==find)||(match&&(typeof find==='string'||typeof find==='number')&&(typeof item[key]==='string'||typeof item[key]==='number')&&find.length&&find.indexOf(item[key])>=0)){found=true;break}}return found}function aui_cf_field_apply_action($el,rule,isTrue){var $destEl=jQuery('[data-rule-key="'+rule.key+'"]'),$inputEl=(rule.key&&$destEl.find('[name="'+rule.key+'"]').length)?$destEl.find('[name="'+rule.key+'"]'):null;if(rule.action==='show'&&isTrue){if($destEl.is(':hidden')&&!($destEl.hasClass('aui-cf-skip-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset')))){aui_cf_field_reset_default_value($destEl)}aui_cf_field_show_element($destEl)}else if(rule.action==='show'&&!isTrue){if((!$destEl.is(':hidden')||($destEl.is(':hidden')&&($destEl.hasClass('aui-cf-force-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset'))||($destEl.closest('.aui-cf-use-parent').length&&$destEl.closest('.aui-cf-use-parent').is(':hidden')))))&&!($destEl.hasClass('aui-cf-skip-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset')))){var _setVal=$destEl.hasClass('aui-cf-force-empty')||($inputEl&&$inputEl.hasClass('aui-cf-force-empty'))?'':null;aui_cf_field_reset_default_value($destEl,true,_setVal)}aui_cf_field_hide_element($destEl)}else if(rule.action==='hide'&&isTrue){if((!$destEl.is(':hidden')||($destEl.is(':hidden')&&($destEl.hasClass('aui-cf-force-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset'))||($destEl.closest('.aui-cf-use-parent').length&&$destEl.closest('.aui-cf-use-parent').is(':hidden')))))&&!($destEl.hasClass('aui-cf-skip-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset')))){var _setVal=$destEl.hasClass('aui-cf-force-empty')||($inputEl&&$inputEl.hasClass('aui-cf-force-empty'))?'':null;aui_cf_field_reset_default_value($destEl,true,_setVal)}aui_cf_field_hide_element($destEl)}else if(rule.action==='hide'&&!isTrue){if($destEl.is(':hidden')&&!($destEl.hasClass('aui-cf-skip-reset')||($inputEl&&$inputEl.hasClass('aui-cf-skip-reset')))){aui_cf_field_reset_default_value($destEl)}aui_cf_field_show_element($destEl)}return $el.removeClass('aui-cf-field-has-changed')}function aui_cf_field_show_element($el){$el.removeClass('d-none').show();$el.find('.aui-cf-req').each(function(){if(jQuery(this).data('rule-req')){jQuery(this).removeAttr('required').prop('required',true)}if(jQuery(this).data('rule-oninvalid')){jQuery(this).removeAttr('oninvalid').attr('oninvalid',jQuery(this).data('rule-oninvalid'))}});if(window&&window.navigator.userAgent.indexOf("MSIE")!==-1){$el.css({"visibility":"visible"})}}function aui_cf_field_hide_element($el){$el.addClass('d-none').hide();$el.find('.aui-cf-req').each(function(){if(jQuery(this).data('rule-req')){jQuery(this).removeAttr('required')}if(jQuery(this).data('rule-oninvalid')){jQuery(this).removeAttr('oninvalid')}});if(window&&window.navigator.userAgent.indexOf("MSIE")!==-1){$el.css({"visibility":"hidden"})}}
			
		
/* ]]> */
</script>
<script type="text/javascript" id="postup-valid-js-extra">
/* <![CDATA[ */
var postup_ajax = {"ajaxurl":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php","nonce":"000a22249d"};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/postup-integrate/js/signupform-valid.js?ver=2.0.134" id="postup-valid-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/ultimate-blocks/src/blocks/advanced-video/front.build.js?ver=3.2.7" id="ultimate_blocks-advanced-video-front-script-js"></script>
<script type="text/javascript" id="uwp_recaptcha_js_api-js-extra">
/* <![CDATA[ */
var uwp_recaptcha_data = {"site_key":"6Lec5G4mAAAAANpSV2kopyUiAYWENzfhNSnJq9hK","captcha_version":"default","captcha_theme":"light","ajaxurl":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php"};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.recaptcha.net/recaptcha/api.js?onload=uwp_init_recaptcha&amp;hl=en&amp;render=explicit&amp;ver=1.3.20" id="uwp_recaptcha_js_api-js"></script>
<script type="text/javascript" id="uwp_recaptcha_js_api-js-after">
/* <![CDATA[ */
            
                function uwp_init_recaptcha() {
                    if ( jQuery('.uwp-captcha-render').length) {
                        jQuery('.uwp-captcha-render').each(function() {
                            if(jQuery(this).html()==''){
                                var container = jQuery(this).attr('id');
                                if (container) {
                                    try {
                                        eval(container + '()');
                                    } catch(err) {
                                        console.log(err);
                                    }
                                }
                            }
                        });
                    }
                }

                function uwp_reset_captcha(element){
                    if(uwp_recaptcha_data.captcha_version == 'v3') {
                        if (typeof grecaptcha != 'undefined') {
                            holderId = grecaptcha.execute(uwp_recaptcha_data.site_key, {action: 'uwp_captcha'}).then(function (token) {
                                document.getElementById(element).value = token;
                            });
                        }

                    } else {
                        if (typeof grecaptcha != 'undefined') {
                            grecaptcha.reset();
                        }
                    }
                }
            
            
/* ]]> */
</script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" id="bootstrap-js"></script>
<script type="text/javascript" src="https://js.stripe.com/v3/?ver=2.3.13" id="stripe-js"></script>
<script type="text/javascript" id="wpinv-stripe-script-js-extra">
/* <![CDATA[ */
var GetPaid_Stripe = {"stripePublishableKey":"pk_live_GUCoblY6fK4SjeLj67W2RE8m00kI1TMeGn","elementStyle":"","locale":"auto","button_type":"default","button_theme":"dark","unknownError":"An unknown error occurred. Please try again."};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/getpaid-stripe-payments/assets/js/wpinv-stripe.js?ver=1740454726" id="wpinv-stripe-script-js"></script>
<script type="text/javascript" id="wpinv-front-script-js-extra">
/* <![CDATA[ */
var WPInv = {"ajax_url":"https:\/\/www.seniorresource.com\/wp-admin\/admin-ajax.php","thousands":",","decimals":".","nonce":"5ab694a0b6","txtComplete":"Continue","UseTaxes":"","formNonce":"51b54e1604","loading":"Loading...","connectionError":"Could not establish a connection to the server.","recaptchaSettings":{"enabled":false,"version":"v2"}};
/* ]]> */
</script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/invoicing/assets/js/payment-forms.min.js?ver=2.8.23" id="wpinv-front-script-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-content/plugins/geodirectory/vendor/ayecode/wp-ayecode-ui/assets/js/flatpickr.min.js?ver=0.2.34" id="flatpickr-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/jcrop/jquery.Jcrop.min.js?ver=0.9.15" id="jcrop-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3" id="jquery-ui-core-js"></script>
<script type="text/javascript" src="https://www.seniorresource.com/wp-includes/js/jquery/ui/progressbar.min.js?ver=1.13.3" id="jquery-ui-progressbar-js"></script>
<script type="text/javascript">
/* <![CDATA[ */
var geodir_map_params={"api":"auto","lazyLoad":"auto","language":"en","lazyLoadButton":"<div class=\"btn btn-light text-center mx-auto align-self-center shadow-lg c-pointer w-auto z-index-1\"><i class=\"far fa-map\"><\/i> Load Map<\/div>","lazyLoadPlaceholder":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/images\/placeholder.svg","apis":{"google":{"key":"AIzaSyACScZyNlfyTvFH_VsMTyHQHbigm_LK4wg","scripts":[{"id":"geodir-google-maps-script","src":"https:\/\/maps.googleapis.com\/maps\/api\/js?key=AIzaSyACScZyNlfyTvFH_VsMTyHQHbigm_LK4wg&libraries=places&language=en&callback=geodirInitGoogleMap&ver=2.8.105","main":true,"onLoad":true,"onError":true},{"id":"geodir-gomap-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/js\/goMap.min.js?ver=2.8.105"},{"id":"geodir-g-overlappingmarker-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/jawj\/oms.min.js?ver=2.8.105","check":true},{"id":"geodir-map-widget-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/aui\/js\/map.min.js?ver=2.8.105"}]},"osm":{"styles":[{"id":"geodir-leaflet-css","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/leaflet\/leaflet.css?ver=2.8.105"},{"id":"geodir-leaflet-routing-machine-css","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/leaflet\/routing\/leaflet-routing-machine.css","check":true}],"scripts":[{"id":"geodir-leaflet-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/leaflet\/leaflet.min.js?ver=2.8.105","main":true},{"id":"geodir-leaflet-geo-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/leaflet\/osm.geocode.min.js?ver=2.8.105"},{"id":"leaflet-routing-machine-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/leaflet\/routing\/leaflet-routing-machine.min.js?ver=2.8.105","check":true},{"id":"geodir-o-overlappingmarker-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/jawj\/oms-leaflet.min.js?ver=2.8.105","check":true},{"id":"geodir-gomap-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/js\/goMap.min.js?ver=2.8.105"},{"id":"geodir-map-widget-script","src":"https:\/\/www.seniorresource.com\/wp-content\/plugins\/geodirectory\/assets\/aui\/js\/map.min.js?ver=2.8.105"}]}}};var el=document.createElement("script");el.setAttribute("type","text/javascript");el.setAttribute("id",'geodir-map-js');el.setAttribute("src",'https://www.seniorresource.com/wp-content/plugins/geodirectory/assets/js/geodir-map.min.js');el.setAttribute("async",true);document.getElementsByTagName("head")[0].appendChild(el);function geodirInitGoogleMap(){window.geodirGoogleMapsCallback=true;try{jQuery(document).trigger("geodir.googleMapsCallback")}catch(err){}}/* ]]> */
</script></body>
</html>