/* Care Locator — standalone layout (no theme header/footer). */
:root {
	--icl-card-icon-url: url("../images/Background.png");
	--icl-red: #b81824;
	--icl-red-dark: #8f1219;
	--icl-text: #1a1a1a;
	--icl-muted: #5c5c5c;
	--icl-border: #e4e4e7;
	--icl-bg: #f4f4f5;
	--icl-white: #fff;
	--icl-green: #15803d;
	--icl-results-visible: 3;
	--icl-results-card-height: 15rem;
	--icl-results-gap: 1rem;
}

/* ----- Full-width section (matches About-style hero + locator) ----- */
.icl-section {
	width: 100%;
	box-sizing: border-box;
}

.icl-section--in-theme {
	background: var(--icl-bg);
}

/* ----- Red hero banner (no center plus/cross graphic) ----- */
.icl-hero {
    position: relative;
    background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.1), transparent 62%), linear-gradient(180deg, #d31a26 0%, #a40d18 100%);
    color: #fff;
    padding: 110px 230px;
    text-align: center;
    overflow: hidden;
    height: 328px;
}

.icl-hero::before,
.icl-hero::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 38%;
	height: 50px;
	background-repeat: no-repeat;
	background-size: contain;
	opacity: 0.4;
	transform: translateY(-50%);
	pointer-events: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 60' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='0,30 80,30 110,30 130,12 150,48 170,18 190,42 210,30 280,30 320,30 350,8 370,52 390,20 410,40 430,30 510,30 540,30 560,15 580,45 600,25 620,35 640,30 720,30 760,30 800,30'/%3E%3C/svg%3E");
}

.icl-hero::before {
	left: 0;
}

.icl-hero::after {
	right: 0;
	transform: translateY(-50%) scaleX(-1);
}

.icl-hero-inner {
	position: relative;
	max-width: 720px;
	margin: 0 auto;
	z-index: 1;
}

.icl-hero-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.85rem, 3.5vw, 2.75rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1.15;
}

.icl-hero-sub {
	margin: 0 auto;
	max-width: 640px;
	font-size: clamp(0.9rem, 1.5vw, 1.05rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	font-weight: 400;
}

.instinctive-care-locator-body {
	margin: 0;
	min-height: 100vh;
	background: var(--icl-bg);
	color: var(--icl-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.instinctive-care-locator-body .icl-map-wrap {
	position: relative;
	min-height: 55vh;
}

.instinctive-care-locator-body #icl-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.icl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.icl-app {
	display: flex;
	align-items: stretch;
	min-height: 0;
}

.icl-app--in-theme {
	min-height: 0;
	background: var(--icl-bg);
	align-items: stretch;
}

.icl-sidebar {
	flex: 0 0 min(420px, 100%);
	max-width: 440px;
	background: var(--icl-bg);
	border-right: 1px solid var(--icl-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.icl-sidebar-head {
	padding: 1.25rem 1.25rem 0.75rem;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.icl-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.icl-link {
	background: none;
	border: 0;
	padding: 0;
	color: var(--icl-red);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	font-family: inherit;
}

.icl-link:hover {
	color: var(--icl-red-dark);
}

.icl-search-row {
	padding: 0 1.25rem 1rem;
}

.icl-input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--icl-border);
	border-radius: 8px;
	font-size: 1rem;
	background: var(--icl-white);
}

.icl-input:focus {
	outline: 2px solid rgba(184, 24, 36, 0.25);
	outline-offset: 1px;
	border-color: var(--icl-red);
}

.icl-search-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0.65rem;
	gap: 0.75rem;
}

.icl-btn {
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.55rem 1.1rem;
	cursor: pointer;
	font-family: inherit;
	border: 1px solid transparent;
}

.icl-btn-primary {
	background: var(--icl-red);
	color: var(--icl-white);
	border-color: var(--icl-red);
}

.icl-btn-primary:hover {
	background: var(--icl-red-dark);
	border-color: var(--icl-red-dark);
}

.icl-filters {
	padding: 0 1.25rem 1rem;
	border-bottom: 1px solid var(--icl-border);
}

.icl-filter-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--icl-muted);
	margin-bottom: 0.5rem;
}

.icl-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1rem;
}

.icl-pill {
	font-size: 0.8rem;
	font-weight: 600;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid var(--icl-border);
	background: var(--icl-white);
	color: var(--icl-text);
	cursor: pointer;
	font-family: inherit;
}

.icl-pill.is-active {
	background: var(--icl-red);
	border-color: var(--icl-red);
	color: var(--icl-white);
}

.icl-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
	margin-bottom: 1rem;
}

.icl-switch {
	position: relative;
	width: 44px;
	height: 26px;
	display: inline-block;
}

.icl-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.icl-switch-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #d4d4d8;
	border-radius: 999px;
	transition: background 0.2s;
}

.icl-switch-slider::before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background: white;
	border-radius: 50%;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.icl-switch input:checked + .icl-switch-slider {
	background: var(--icl-red);
}

.icl-switch input:checked + .icl-switch-slider::before {
	transform: translateX(18px);
}

.icl-slider-block {
	margin-bottom: 0.25rem;
}

.icl-slider-label {
	display: flex;
	justify-content: space-between;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
}

#icl-distance {
	width: 100%;
	accent-color: var(--icl-red);
}

.icl-results-wrap {
	flex: 0 1 auto;
	min-height: 0;
	overflow: hidden;
	padding: 0.75rem 1rem 1.25rem;
	display: flex;
	flex-direction: column;
}

.icl-results-meta {
	flex-shrink: 0;
	font-size: 0.85rem;
	color: var(--icl-muted);
	margin-bottom: 0.5rem;
}

.icl-results {
	list-style: none;
	margin: 0;
	padding: 0 0.35rem 0 0;
	display: flex;
	flex-direction: column;
	gap: var(--icl-results-gap);
	max-height: calc(
		var(--icl-results-visible) * var(--icl-results-card-height) +
			(var(--icl-results-visible) - 1) * var(--icl-results-gap)
	);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

.icl-results::-webkit-scrollbar {
	width: 6px;
}

.icl-results::-webkit-scrollbar-thumb {
	background: #d4d4d8;
	border-radius: 999px;
}

.icl-results::-webkit-scrollbar-thumb:hover {
	background: #a1a1aa;
}

/* Location card — matches design mockup */
.icl-card {
	background: var(--icl-white);
	border: none;
	border-radius: 18px;
	padding: 1rem 1.1rem 1.1rem;
	box-shadow: 0 4px 22px rgba(15, 23, 42, 0.1);
	cursor: pointer;
	transition: box-shadow 0.15s, transform 0.15s;
	list-style: none;
}

.icl-card:hover {
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
}

.icl-card.is-active {
	box-shadow: 0 8px 28px rgba(184, 24, 36, 0.22);
	outline: 2px solid rgba(184, 24, 36, 0.35);
	outline-offset: 0;
}

.icl-card-head {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.icl-card-icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background-color: transparent;
	background-image: var(--icl-card-icon-url);
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	display: block;
}

.icl-card-title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	color: #111827;
	flex: 1;
	min-width: 0;
}

.icl-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.45rem;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.icl-card-stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	line-height: 1;
}

.icl-star {
	font-size: 0.95rem;
	line-height: 1;
}

.icl-star--full {
	color: #f59e0b;
}

.icl-star--half {
	color: #fcd34d;
}

.icl-star--empty {
	color: #e5e7eb;
}

.icl-card-rating-num {
	font-weight: 500;
	color: #6b7280;
}

.icl-card-meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #9ca3af;
	flex-shrink: 0;
}

.icl-card-distance {
	color: #6b7280;
	font-weight: 500;
}

.icl-card-address {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	margin: 0 0 0.35rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #6b7280;
}

.icl-card-address-line1,
.icl-card-address-line2 {
	display: block;
}

.icl-card-phone {
	margin: 0 0 0.35rem;
	font-size: 0.8125rem;
	color: #6b7280;
	line-height: 1.4;
}

.icl-card-phone:last-of-type {
	margin-bottom: 0.75rem;
}

.icl-card-phone-label {
	font-weight: 600;
	color: #4b5563;
}

.icl-card-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 0.15rem;
}

.icl-card-actions--single {
	grid-template-columns: 1fr;
}

.icl-card-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.65rem 0.5rem;
	border-radius: 10px;
	font-size: 0.8rem;
	font-weight: 600;
	font-family: inherit;
	line-height: 1.2;
	text-decoration: none;
	border: none;
	cursor: pointer;
	white-space: nowrap;
}

.icl-card-btn-icon {
	flex-shrink: 0;
}

.icl-card-btn--open {
	background: #22c55e;
	color: #fff;
}

.icl-card-btn--coming-soon {
	background: #6b7280;
	color: #fff;
	cursor: default;
}

.icl-card-btn--directions {
	background: var(--icl-red);
	color: #fff;
}

.icl-card-btn--directions:hover {
	background: var(--icl-red-dark);
	color: #fff;
}

.icl-map-wrap {
	flex: 1 1 0;
	min-width: 0;
	min-height: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	background: #e7e5e4;
}

.icl-map {
	flex: 1 1 auto;
	width: 100%;
	min-height: 420px;
	height: auto;
}

.icl-map-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	font-weight: 600;
	color: var(--icl-muted);
	background: #fafaf9;
}

@media (max-width: 900px) {
	.icl-hero {
		padding: 2.5rem 1rem 3rem;
	}

	.icl-hero::before,
	.icl-hero::after {
		width: 28%;
		opacity: 0.28;
	}

	.icl-app {
		flex-direction: column;
	}

	.icl-sidebar {
		max-width: none;
		flex: none;
		border-right: 0;
		border-bottom: 1px solid var(--icl-border);
	}

	.icl-map {
		min-height: 45vh;
	}

	.instinctive-care-locator-primary .icl-sidebar {
		flex: none;
		max-width: none;
		width: 100%;
	}

	.instinctive-care-locator-primary .icl-map-wrap {
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
		min-height: 420px;
	}

	.instinctive-care-locator-primary #icl-map {
		position: absolute;
		inset: 0;
		height: 100%;
		min-height: 100%;
	}
}

/* Map popup — same card UI */
.icl-card--map-popup {
	max-width: 300px;
	min-width: 260px;
	cursor: default;
	position: relative;
	margin: 0;
	padding: 1rem 1.1rem 1.1rem;
	box-shadow: 0 6px 28px rgba(15, 23, 42, 0.18);
}

.icl-card--map-popup::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 28px;
	width: 0;
	height: 0;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-right: 9px solid var(--icl-white);
	filter: drop-shadow(-2px 0 2px rgba(15, 23, 42, 0.06));
}

.icl-card--map-popup:hover {
	transform: none;
}

.gm-style .gm-style-iw-c {
	padding: 0 !important;
	border-radius: 18px !important;
	box-shadow: none !important;
}

.gm-style .gm-style-iw-d {
	overflow: hidden !important;
	max-height: none !important;
}

.gm-style .gm-style-iw-chr {
	display: none !important;
}

/* Inside normal Kadence header/footer layout */
.instinctive-care-locator-primary {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: visible;
	margin: auto;
}

.instinctive-care-locator-primary .content-container.site-container {
	max-width: 100%;
	width: 100%;
	padding: 0px;
}

.instinctive-care-locator-primary #main.site-main,
.instinctive-care-locator-primary .content-wrap {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.instinctive-care-locator-primary .content-wrap {
	padding-left: 0;
	padding-right: 0;
}

.instinctive-care-locator-primary .icl-app {
	width: 100%;
	padding: 30px;
}

.instinctive-care-locator-primary .icl-map-wrap {
	flex: 1 1 55%;
	min-width: min(320px, 100%);
	position: relative;
	min-height: min(520px, 62vh);
	height: auto;
	isolation: isolate;
	overflow: hidden;
}

.instinctive-care-locator-primary .icl-app {
	align-items: flex-start;
}

.instinctive-care-locator-primary .icl-sidebar {
	flex: 0 0 min(400px, 42vw);
	max-width: min(440px, 100%);
}

.instinctive-care-locator-primary #icl-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	flex: none;
	z-index: 1;
}

/* Editor / Elementor strip above locator — same article shell Kadence uses for pages */
.icl-page-banner {
	margin-bottom: 0;
}

.icl-page-banner + .icl-app {
	margin-top: 0;
}

.icl-app--in-theme .icl-map-wrap {
	min-height: min(480px, 58vh);
}

.icl-app--in-theme .icl-map {
	min-height: min(460px, 56vh);
}

@media (min-width: 901px) {
	.icl-app--in-theme .icl-map-wrap {
		min-height: min(520px, 62vh);
	}

	.icl-app--in-theme .icl-map {
		min-height: min(500px, 60vh);
	}
}

