.gtcl-wrap {
	margin: 24px 0;
}

.gtcl-wrap *,
.gtcl-wrap *:before,
.gtcl-wrap *:after {
	box-sizing: border-box;
}

/* Search area */

.gtcl-search-wrap {
	margin-bottom: 24px;
}

.gtcl-wrap #wpsl-search-wrap {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.gtcl-wrap #wpsl-search-wrap form {
	display: block;
	margin: 0;
}

.gtcl-search-main {
	margin-bottom: 14px;
	max-width: 680px;
}

.gtcl-search-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

.gtcl-search-bar {
	display: flex;
	align-items: stretch;
	gap: 12px;
	max-width: 680px;
}

.gtcl-wrap #wpsl-search-input {
	width: 100%;
	height: 56px;
	padding: 0 18px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	line-height: 56px;
	box-shadow: none;
}

.gtcl-wrap #wpsl-search-input:focus {
	outline: none;
	border-color: #999;
}

.gtcl-wrap .wpsl-search-btn-wrap {
	margin: 0;
}

.gtcl-wrap #wpsl-search-btn {
	height: 56px;
	padding: 0 22px;
	border: 1px solid #222;
	border-radius: 8px;
	background: #222;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.gtcl-wrap #wpsl-search-btn:hover,
.gtcl-wrap #wpsl-search-btn:focus {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* Filters */

.gtcl-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 10px;
	align-items: end;
}

.gtcl-filter {
	min-width: 180px;
}

.gtcl-filter label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.gtcl-wrap .gtcl-filter select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	box-shadow: none;
}

/* Layout */

.gtcl-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
	gap: 24px;
	align-items: start;
	margin-top: 20px;
}

.gtcl-layout__results,
.gtcl-layout__map {
	min-width: 0;
}

.gtcl-wrap #wpsl-gmap {
	width: 100%;
	min-height: 620px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	box-shadow: none;
	background: #f3f4f6;
}

/* Map sticky */

@media (min-width: 992px) {
	.gtcl-layout__map {
		position: sticky;
		top: 24px;
	}

	.gtcl-wrap #wpsl-gmap {
		min-height: 70vh;
		max-height: calc(100vh - 48px);
	}
}

/* Results reset */

.gtcl-wrap #wpsl-result-list,
.gtcl-wrap #wpsl-stores,
.gtcl-wrap #wpsl-stores ul,
.gtcl-wrap #wpsl-direction-details,
.gtcl-wrap #wpsl-direction-details ul {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.gtcl-wrap #wpsl-stores ul {
	list-style: none;
}

.gtcl-wrap #wpsl-direction-details {
	display: none;
}

.gtcl-wrap #wpsl-stores hr {
	display: none !important;
}

/* Cards */

.gtcl-card {
	margin: 0 0 16px;
}

.gtcl-card__inner {
	padding: 20px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
}

.gtcl-card__inner:hover {
	border-color: #bbb;
}

.gtcl-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.gtcl-card__title-wrap .wpsl-store-location {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}

.gtcl-card__title-wrap .wpsl-store-location a {
	color: #111;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.gtcl-card__location {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}

.gtcl-card__distance {
	white-space: nowrap;
	font-size: 13px;
	font-weight: 700;
	color: #000;
}

/* BADGES */

.gtcl-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.gtcl-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #d8dce2;
	border-radius: 999px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	color: #333;
}

.gtcl-badge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	line-height: 1;
}

.gtcl-badge__text {
	line-height: 1;
}

/* Accessibility icon colour */

.gtcl-badge--accessible .gtcl-badge__icon {
	color: #1d4ed8;
}

/* Buttons */

.gtcl-card__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.gtcl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
	color: #222;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.gtcl-btn--primary {
	background: #222;
	border-color: #222;
	color: #fff;
}

.gtcl-btn--primary:hover {
	background: #111;
	border-color: #111;
}

/* Remove theme button styling */

.gtcl-wrap input[type="submit"],
.gtcl-wrap button,
.gtcl-wrap .btn,
.gtcl-wrap a.btn {
	box-shadow: none !important;
	background-image: none !important;
}

/* Mobile */

@media (max-width: 991px) {

	.gtcl-layout {
		grid-template-columns: 1fr;
	}

	.gtcl-wrap #wpsl-gmap {
		min-height: 420px;
	}

	.gtcl-card__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 767px) {

	.gtcl-search-bar {
		flex-direction: column;
	}

	.gtcl-wrap #wpsl-search-btn {
		width: 100%;
	}

	.gtcl-search-filters {
		flex-direction: column;
		gap: 12px;
	}

	.gtcl-filter {
		width: 100%;
		min-width: 0;
	}
}

/* Restore full width results layout */
.gtcl-wrap #wpsl-result-list,
.gtcl-wrap #wpsl-stores,
.gtcl-wrap #wpsl-stores ul,
.gtcl-wrap #wpsl-direction-details,
.gtcl-wrap #wpsl-direction-details ul {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Kill WP Store Locator internal scrolling */
.gtcl-wrap #wpsl-stores {
	background: transparent !important;
	height: auto !important;
	overflow: visible !important;
}

/* Ensure cards fill container */
.gtcl-wrap #wpsl-stores li {
	width: 100% !important;
	float: none !important;
	margin: 0 0 16px !important;
}

/* Align map and results top edge */
.gtcl-layout,
.gtcl-layout__results,
.gtcl-layout__map {
	align-self: start;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Ensure sticky map still works */
.gtcl-layout,
.gtcl-layout__map,
.gtcl-layout__results {
	overflow: visible !important;
}


/* --- WP Store Locator hard overrides (do not remove) --- */

/* Remove default separators */
.gtcl-wrap #wpsl-stores hr,
.gtcl-wrap #wpsl-stores li hr,
.gtcl-wrap #wpsl-result-list hr {
	display: none !important;
	height: 0 !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Remove plugin borders/dividers */
.gtcl-wrap #wpsl-stores,
.gtcl-wrap #wpsl-stores ul,
.gtcl-wrap #wpsl-result-list,
.gtcl-wrap #wpsl-direction-details {
	border: 0 !important;
}

/* Disable WP Store Locator internal scrolling */
.gtcl-wrap #wpsl-stores {
	height: auto !important;
	overflow: visible !important;
	background: transparent !important;
}

/* Ensure results fill the container */
.gtcl-wrap #wpsl-stores li {
	width: 100% !important;
	float: none !important;
	margin: 0 0 16px !important;
}

/* Force map + results alignment */
.gtcl-layout {
	align-items: start !important;
}

.gtcl-layout__results,
.gtcl-layout__map {
	align-self: start !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Sticky map (desktop only) */
@media (min-width: 992px) {

	.gtcl-layout,
	.gtcl-layout__results,
	.gtcl-layout__map {
		overflow: visible !important;
	}

	.gtcl-layout__map {
		position: sticky;
		top: 24px;
		align-self: start;
	}

	.gtcl-wrap #wpsl-gmap {
		min-height: 70vh;
		max-height: calc(100vh - 48px);
	}
}

/* Hide any separator line WP Store Locator is still outputting */
.gtcl-wrap #wpsl-result-list hr,
.gtcl-wrap #wpsl-stores hr,
.gtcl-wrap #wpsl-stores li hr {
	display: none !important;
	border: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Kill separator borders on result items and inner wrappers */
.gtcl-wrap #wpsl-stores li,
.gtcl-wrap #wpsl-stores li > div,
.gtcl-wrap #wpsl-stores li > p,
.gtcl-wrap #wpsl-stores li > span,
.gtcl-wrap #wpsl-stores .gtcl-card,
.gtcl-wrap #wpsl-stores .gtcl-card__inner {
	border-top: 0 !important;
	border-bottom: 0 !important;
	box-shadow: none !important;
}

/* Kill pseudo-element separators */
.gtcl-wrap #wpsl-stores li::before,
.gtcl-wrap #wpsl-stores li::after,
.gtcl-wrap #wpsl-stores li > div::before,
.gtcl-wrap #wpsl-stores li > div::after,
.gtcl-wrap #wpsl-stores .gtcl-card::before,
.gtcl-wrap #wpsl-stores .gtcl-card::after,
.gtcl-wrap #wpsl-stores .gtcl-card__inner::before,
.gtcl-wrap #wpsl-stores .gtcl-card__inner::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
}

/* Re-assert clean spacing between cards */
.gtcl-wrap #wpsl-stores li {
	margin: 0 0 16px !important;
	padding: 0 !important;
}

/* --- restore sticky map --- */
.gtcl-wrap,
.gtcl-layout,
.gtcl-layout__results,
.gtcl-layout__map,
.gtcl-wrap #wpsl-result-list,
.gtcl-wrap #wpsl-stores {
	overflow: visible !important;
}

@media (min-width: 992px) {
	.gtcl-layout {
		align-items: start !important;
	}

	.gtcl-layout__map {
		position: sticky !important;
		top: 24px !important;
		align-self: start !important;
		height: fit-content !important;
		overflow: visible !important;
	}

	.gtcl-wrap #wpsl-gmap {
		min-height: 70vh !important;
		max-height: calc(100vh - 48px) !important;
	}
}

/* --- restore full card outline on all 4 sides --- */
.gtcl-wrap #wpsl-stores .gtcl-card__inner {
	border: 1px solid #d8dce2 !important;
	border-top: 1px solid #d8dce2 !important;
	border-right: 1px solid #d8dce2 !important;
	border-bottom: 1px solid #d8dce2 !important;
	border-left: 1px solid #d8dce2 !important;
	border-radius: 8px !important;
	background: #fff !important;
}

.gtcl-wrap #wpsl-stores .gtcl-card__inner:hover {
	border-color: #bbb !important;
}

/* Force CTA button colours */
.gtcl-wrap .gtcl-btn--primary,
.gtcl-wrap .gtcl-btn--primary:visited {
	background: #222 !important;
	border-color: #222 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.gtcl-wrap .gtcl-btn--primary:hover,
.gtcl-wrap .gtcl-btn--primary:focus,
.gtcl-wrap .gtcl-btn--primary:active {
	background: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.gtcl-wrap .gtcl-card__actions a.gtcl-btn,
.gtcl-wrap .gtcl-card__actions a.gtcl-btn:visited,
.gtcl-wrap .gtcl-card__actions a.gtcl-btn:hover,
.gtcl-wrap .gtcl-card__actions a.gtcl-btn:focus,
.gtcl-wrap .gtcl-card__actions a.gtcl-btn:active {
	color: #fff !important;
}

/* Fix search bar vertical alignment */

.gtcl-search-main {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gtcl-search-bar {
	display: flex;
	align-items: center;   /* aligns input + button vertically */
	gap: 12px;
}

.gtcl-wrap #wpsl-search-input {
	height: 56px;
	line-height: 56px;
}

.gtcl-wrap #wpsl-search-btn {
	height: 56px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Search area */

.gtcl-search-wrap {
	margin-bottom: 24px;
}

.gtcl-wrap #wpsl-search-wrap {
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.gtcl-wrap #wpsl-search-wrap form {
	display: block;
	margin: 0;
}

.gtcl-search-main {
	margin-bottom: 14px;
	max-width: 680px;
}

.gtcl-search-label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}

.gtcl-search-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 680px;
}

.gtcl-wrap #wpsl-search-input {
	width: 100%;
	height: 56px;
	padding: 0 18px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
	line-height: 56px;
	box-shadow: none;
}

.gtcl-wrap #wpsl-search-input:focus {
	outline: none;
	border-color: #999;
}

.gtcl-wrap .wpsl-search-btn-wrap {
	margin: 0;
}

.gtcl-wrap #wpsl-search-btn {
	height: 56px;
	padding: 0 22px;
	border: 1px solid #222;
	border-radius: 8px;
	background: #222;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
}

.gtcl-wrap #wpsl-search-btn:hover,
.gtcl-wrap #wpsl-search-btn:focus {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* Filters */

.gtcl-search-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 10px;
	align-items: end;
}

.gtcl-filter {
	min-width: 180px;
}

.gtcl-filter label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.gtcl-wrap .gtcl-filter select {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d8dce2;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	box-shadow: none;
}

/* Desktop: input + button + filters on one row */

@media (min-width: 992px) {
	.gtcl-wrap #wpsl-search-wrap form {
		display: flex;
		align-items: flex-end;
		gap: 16px;
	}

	.gtcl-search-main {
		flex: 1 1 auto;
		max-width: none;
		margin-bottom: 0;
	}

	.gtcl-search-bar {
		max-width: none;
	}

	.gtcl-search-filters {
		flex: 0 0 auto;
		flex-wrap: nowrap;
		margin-bottom: 0;
	}

	.gtcl-filter {
		min-width: 150px;
	}
}

/* Mobile */

@media (max-width: 767px) {
	.gtcl-search-bar {
		flex-direction: column;
	}

	.gtcl-wrap #wpsl-search-btn {
		width: 100%;
	}

	.gtcl-search-filters {
		flex-direction: column;
		gap: 12px;
	}

	.gtcl-filter {
		width: 100%;
		min-width: 0;
	}
}

/* Desktop search layout */
@media (min-width: 992px) {

	.gtcl-search-main {
		display: grid;
		grid-template-columns: 1fr auto auto auto;
		gap: 12px;
		align-items: end;
		max-width: none;
	}

	.gtcl-search-label {
		grid-column: 1 / -1;
		margin-bottom: 4px;
	}

	.gtcl-search-bar {
		display: contents;
	}

	.gtcl-wrap #wpsl-search-input {
		height: 56px;
		line-height: 56px;
	}

	.gtcl-wrap #wpsl-search-btn {
		height: 56px;
		white-space: nowrap;
	}

	.gtcl-search-filters {
		display: contents;
	}

	.gtcl-filter {
		min-width: 160px;
	}
}

/* Fix search button vertical alignment */

.gtcl-wrap .wpsl-search-btn-wrap {
	margin: 0 !important;
	padding: 0 !important;
	display: flex;
	align-items: center;
}

.gtcl-wrap #wpsl-search-btn {
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}