/**
 * Branch Finder — content + search + map.
 * Presets: dark (navy), light.
 */

.uckg-branch-finder {
	--uckg-bf-navy: #0d1b36;
	--uckg-bf-blue: #1D77F1;
	--uckg-bf-red: #d62828;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	color: #fff;
	scrollbar-width: none;
	&::-webkit-scrollbar {
		display: none;
	}
}

.elementor-widget-uckg_branch_finder,
.elementor-widget-uckg_branch_finder > .elementor-widget-container {
	width: 100%;
	max-width: none;
	overflow: visible;
}

.uckg-branch-finder *,
.uckg-branch-finder *::before,
.uckg-branch-finder *::after {
	box-sizing: border-box;
}

.uckg-branch-finder--light {
	background: #f4f7fa;
	color: #0a1128;
}

/* Full-width row; left/right share space (width controls set each side) */
.uckg-branch-finder__inner {
	--uckg-bf-inner-x: 0;
	--uckg-bf-inner-y: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	transform: translate(var(--uckg-bf-inner-x), var(--uckg-bf-inner-y));
}

.uckg-branch-finder--has-locations .uckg-branch-finder__inner {
	align-items: center;
}

.uckg-branch-finder__content {
	order: 0;
	overflow: visible;
}

.uckg-branch-finder__media {
	order: 0;
}

.uckg-branch-finder--map-left .uckg-branch-finder__media {
	order: -1;
}

.uckg-branch-finder__content,
.uckg-branch-finder__media {
	min-width: 0;
	flex: 1 1 0;
	width: auto;
	max-width: none;
}

.uckg-branch-finder__media {
	display: flex;
	flex-direction: column;
}

.uckg-branch-finder__map {
	width: 100%;
}

.uckg-branch-finder__eyebrow {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.95);
}

.uckg-branch-finder--light .uckg-branch-finder__eyebrow {
	color: var(--uckg-bf-blue);
}

.uckg-branch-finder__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: capitalize;
}

.uckg-branch-finder--light .uckg-branch-finder__title {
	color: #0a1128;
}

.uckg-branch-finder__accent {
	display: block;
	width: 48px;
	height: 4px;
	margin: 14px 0 0;
	border-radius: 2px;
	background: var(--uckg-bf-red);
}

.uckg-branch-finder__desc {
	margin: 16px 0 0;
	max-width: 34em;
	font-size: 1rem;
	line-height: 1.55;
	text-transform: capitalize;
	color: rgba(255, 255, 255, 0.9);
}

.uckg-branch-finder--light .uckg-branch-finder__desc {
	color: #4a5568;
}

.uckg-branch-finder__search-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	margin-top: 28px;
	width: 100%;
	overflow: visible;
}

.uckg-branch-finder__search {
	position: relative;
	display: block;
	max-width: 520px;
	width: 100%;
	overflow: hidden;
	border-radius: 999px;
}

.uckg-branch-finder__input {
	display: block;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	height: 52px;
	margin: 0;
	padding: 0 140px 0 22px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 52px;
	outline: none;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.uckg-branch-finder__input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.uckg-branch-finder--light .uckg-branch-finder__input {
	background: #eef1f6;
	color: #0a1128;
	box-shadow: none;
}

.uckg-branch-finder--light .uckg-branch-finder__input::placeholder {
	color: #8a94a6;
}

.uckg-branch-finder__submit {
	position: absolute;
	top: 2px;
	right: 2px;
	bottom: auto;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--uckg-bf-blue);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition:
		opacity 0.2s ease,
		padding-right 0.35s ease,
		gap 0.35s ease,
		right 0.35s ease,
		color 0.2s ease,
		background-color 0.2s ease;
}

.uckg-branch-finder__submit-label {
	display: inline-block;
}

.uckg-branch-finder__submit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 0;
	max-width: 0;
	margin-left: 0;
	overflow: hidden;
	opacity: 0;
	line-height: 0;
	color: inherit;
	height: var(--uckg-btn-icon-size, 24px);
	transform: translateX(8px);
	transition:
		width 0.35s ease,
		max-width 0.35s ease,
		margin 0.35s ease,
		opacity 0.35s ease,
		transform 0.35s ease;
}

.uckg-branch-finder__submit-icon svg {
	display: block;
	width: var(--uckg-btn-icon-size, 24px);
	height: var(--uckg-btn-icon-size, 24px);
}

.uckg-branch-finder__submit-icon svg,
.uckg-branch-finder__submit-icon svg path {
	fill: none;
	stroke: currentColor;
}

.uckg-branch-finder__submit:hover,
.uckg-branch-finder__submit:focus-visible,
.elementor .elementor-element.elementor-widget .uckg-branch-finder__search .uckg-branch-finder__submit:hover,
.elementor .elementor-element.elementor-widget .uckg-branch-finder__search .uckg-branch-finder__submit:focus-visible {
	opacity: 1;
	color: #fff;
	right: 2px;
	left: auto;
	gap: 0;
	padding-right: 24px;
	outline: none;
}

.uckg-branch-finder__submit:hover .uckg-branch-finder__submit-icon,
.uckg-branch-finder__submit:focus-visible .uckg-branch-finder__submit-icon,
.elementor .uckg-branch-finder__submit:hover .uckg-branch-finder__submit-icon,
.elementor .uckg-branch-finder__submit:focus-visible .uckg-branch-finder__submit-icon {
	width: var(--uckg-btn-icon-size, 24px);
	max-width: var(--uckg-btn-icon-size, 24px);
	margin-left: 8px;
	opacity: 1;
	transform: translateX(0);
}

.uckg-branch-finder__links {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	margin-top: 0;
}

.uckg-branch-finder__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: inherit;
	text-decoration: none;
	cursor: pointer;
	user-select: none;
}

.uckg-branch-finder__link:hover {
	opacity: 0.88;
}

.uckg-branch-finder__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.95em;
	line-height: 1;
	pointer-events: none;
}

.uckg-branch-finder__link-icon i,
.uckg-branch-finder__link-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	pointer-events: none;
}

.uckg-branch-finder__link > span {
	pointer-events: none;
}

.uckg-branch-finder__media {
	min-width: 0;
}

.uckg-branch-finder__map {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-height: 420px;
	height: 420px;
	border: 3px solid #fff;
	border-radius: 16px;
	background: #e8eef5;
}

.uckg-branch-finder--light .uckg-branch-finder__map {
	border-color: #fff;
}

.uckg-branch-finder__iframe,
.uckg-branch-finder__map-img {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.uckg-branch-finder__results-map {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	background: #e8eef5;
}

.uckg-branch-finder__results-map[hidden] {
	display: none;
}

.uckg-branch-finder__map.is-results > .uckg-branch-finder__iframe,
.uckg-branch-finder__map.is-results > .uckg-branch-finder__map-gd,
.uckg-branch-finder__map.is-results > .uckg-branch-finder__map-img,
.uckg-branch-finder__map.is-results > .uckg-branch-finder__empty {
	display: none;
}

.uckg-branch-finder__pin {
	background: transparent;
	border: 0;
}

.uckg-branch-finder__pin img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.uckg-branch-finder__results-map .leaflet-container {
	width: 100%;
	height: 100%;
	font: inherit;
}

.uckg-branch-finder__none {
	margin: 16px 0 0;
	font-size: 0.9rem;
	line-height: 1.4;
}

.uckg-branch-finder__none[hidden] {
	display: none !important;
}

.uckg-branch-finder__map .uckg-branch-finder__iframe {
	position: absolute;
	inset: 0;
}

.uckg-branch-finder__empty {
	margin: 20px 0 0;
	font-size: 0.92rem;
	line-height: 1.45;
	opacity: 0.8;
}

.uckg-branch-finder__locations {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
	max-height: 280px;
	overflow: auto;
	padding-right: 4px;
}

/* Hidden until search or “View all locations”. */
.uckg-branch-finder__locations.is-hidden,
.uckg-branch-finder__locations[hidden] {
	display: none !important;
}

/* No List/Map mode switch — map stays available with the list. */
.uckg-branch-finder__view-tabs,
.uckg-branch-finder__tabs,
.uckg-branch-finder [data-uckg-bf-view-tabs],
.uckg-branch-finder [data-uckg-bf-view-toggle] {
	display: none !important;
}

.uckg-branch-finder__loc {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	font: inherit;
}

.uckg-branch-finder__loc:hover {
	background: rgba(255, 255, 255, 0.14);
}

.uckg-branch-finder__loc.is-selected {
	outline-offset: 0;
	background: rgba(29, 122, 242, 0.22);
}

.uckg-branch-finder--light .uckg-branch-finder__loc {
	background: #fff;
	box-shadow: 0 1px 3px rgba(10, 17, 40, 0.08);
	max-width: 473px
}

.uckg-branch-finder--light .uckg-branch-finder__loc:hover {
	background: #f8fafc;
}

.uckg-branch-finder--light .uckg-branch-finder__loc.is-selected {
	background: #eef5ff;
	margin:2px;
}

.uckg-branch-finder__iframe.is-hidden,
.uckg-branch-finder__map-gd.is-hidden,
.uckg-branch-finder__iframe[hidden],
.uckg-branch-finder__map-gd[hidden] {
	display: none;
}

.uckg-branch-finder__loc-title {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}

.uckg-branch-finder__loc-meta {
	font-size: 0.85rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.75);
}

.uckg-branch-finder--light .uckg-branch-finder__loc-meta {
	color: #5a6578;
}

.uckg-branch-finder__map .geodir_map_container,
.uckg-branch-finder__map .geodir-map-wrap,
.uckg-branch-finder__map .gd-map-canvas,
.uckg-branch-finder__map .geodir-map-canvas {
	width: 100%;
	height: 100%;
	min-height: 100%;
	margin: 0;
	border: 0;
}

@media (max-width:1024px) {
	.uckg-branch-finder {
		padding: 36px 24px;
	}

	.uckg-branch-finder__inner,
	.uckg-branch-finder--map-left .uckg-branch-finder__inner {
		flex-direction: column;
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.uckg-branch-finder__content,
	.uckg-branch-finder__media {
		width: 100%;
		max-width: 100%;
		flex: 1 1 100%;
	}

	.uckg-branch-finder--stack-map .uckg-branch-finder__media {
		order: -1;
	}

	.uckg-branch-finder--stack-map .uckg-branch-finder__content,
	.uckg-branch-finder--stack-content .uckg-branch-finder__media,
	.uckg-branch-finder--stack-content .uckg-branch-finder__content {
		order: 0;
	}

	.uckg-branch-finder--stack-content .uckg-branch-finder__content {
		order: -1;
	}

	.uckg-branch-finder__map {
		min-height: 320px;
		height: 320px;
	}

	/* Mobile: always show the map; list can appear under search after action. */
	.uckg-branch-finder__media,
	.uckg-branch-finder__map {
		display: flex !important;
		visibility: visible !important;
	}

	.uckg-branch-finder__map {
		display: block !important;
	}
}
/* 
@media (max-width: 575px) {
	.uckg-branch-finder__submit {
		width: 100%;
	}
} */

@media (max-width: 480px) {
.uckg-branch-finder__input{
	height: 59px;
}
.uckg-branch-finder__submit,
.uckg-branch-finder__submit:hover,
.uckg-branch-finder__submit:focus-visible,
.elementor .uckg-branch-finder__search .uckg-branch-finder__submit:hover,
.elementor .uckg-branch-finder__search .uckg-branch-finder__submit:focus-visible {
	top: 6px;
	right: 6px;
}
.uckg-branch-finder__links {
	flex-direction: column;
	align-items: flex-start;
}
}
