/* Style for the Google Maps container */
.map_component::-webkit-scrollbar {
	width: 10px;
	/* width of the entire scrollbar */
}

/* Google Maps Info Window Close Button Styling */
.gm-ui-hover-effect {
	position: absolute !important;
	right: 0 !important;
}

/* Additional targeting for Google Maps close button */


.map_component {
	scrollbar-width: thin;

}

.map_body.loading:after {
	content: '';
	background: #0000002b;
	position: absolute;
	height: 100%;
	width: 100%;
}

.map_body {
	display: grid;
	grid-template-columns: 50% auto;
	font-family: "Poppins", Sans-serif;
	position: relative
}

.map_body .place_title {
	font-weight: 700;
	font-size: 18px;
	line-height: 21.4286px;
}

.map_body .fc-item-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px
}

.map_body .fc-location-marker {
	margin-top: 12px;
}

.map_body .fc-location-marker a {
	display: block;
	line-height: 28px;
	font-size: 13px;
}

.map_left .map_component {
	display: block;
	overflow-y: auto;
	max-height: 410px;
	min-height: 200px;
	padding-right: 10px;
	border-radius: 8px;
}

/* Loading placeholder */
.loading-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #666;
	font-size: 16px;
}

.loading-placeholder p {
	display: flex;
	align-items: center;
	gap: 10px;
}

.loading-placeholder .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}


.inner_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.inner_list .badges span {
	font-size: 14px;
	line-height: 42px;
	background: #113364;
	padding: 5px;
	border-radius: 3px;
	color: #fff;
}

/* Branch Card Design */
.branch-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 15px;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
}

.branch-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
	border-color: #004083;
}

.branch-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: transparent;
	border-radius: 8px 0 0 8px;
	transition: background 0.3s ease;
}

.branch-card:hover::before {
	background: #004083;
}

.branch-info-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 12px;
}

.branch-info-row:last-of-type {
	margin-bottom: 16px;
}

.branch-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.custom_map_container{
	font-family: "Poppins", Sans-serif;
}
.branch-info-text {
	flex: 1;
	font-size: 14px;
	line-height: 1.6;
	color: #898989;
	font-family: "Poppins", Sans-serif;
}

.branch-info-text strong {
	color: #004083;
	font-weight: 600;
}

.branch-info-text a {
	color: #898989;
	text-decoration: none;
}

.branch-info-text a:hover {
	color: #004083;
	text-decoration: underline;
}

.branch-actions {
	margin-top: 16px;
}

.get-directions-btn {
	display: inline-block;
	background: #004083;
	color: #ffffff;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.get-directions-btn:hover {
	background: #1e40af;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
	color: #ffffff;
}

/* Branch Info Window Popup - Clean Design */
.branch-info-popup {
	max-width: 320px;
	font-family: "Poppins", Sans-serif;
	padding: 5px;
}

.branch-info-popup .popup-title {
	margin: 0 0 15px 0;
	font-size: 18px;
	color: #004083;
	font-weight: 700;
	border-bottom: 2px solid #004083;
	padding-bottom: 10px;
}

.branch-info-popup p {
	margin: 8px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #898989;
}

.branch-info-popup strong {
	font-weight: 600;
	color: #004083;
}

.branch-info-popup a {
	color: #004083;
	text-decoration: none;
}

.branch-info-popup a:hover {
	text-decoration: underline;
}

.branch-info-popup .popup-directions-btn {
	display: inline-block;
	background: #004083;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	margin-top: 10px;
	transition: all 0.3s ease;
}

.branch-info-popup .popup-directions-btn:hover {
	background: #003366;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 64, 131, 0.3);
	text-decoration: none;
}

.map_left .fc-component-6 {
	padding: 10px;
	border: 1px solid #f1f1f1;
	margin-bottom: 10px;
	background: #fff;
}

.map_records {
	padding: 15px 20px;
	background: transparent;
	font-size: 16px;
	color: #004083;
	font-weight: 700;
}

.map_records p {
	margin: 0;
}

.map_records p b {
	font-weight: 700;
}

.map_records .results-number {
	color: #004083;
	font-size: 20px;
}

.map_records .results-text {
	color: #004083;
	font-weight: 400;
}

/* No results message */
.no-results,
.no-results-filter {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	color: #666;
	text-align: center;
	background: #fff;
	border-radius: 8px;
	padding: 20px;
}

.no-results p,
.no-results-filter p {
	font-size: 16px;
	color: #999;
	margin: 0;
}

.map-container {
	position: relative;
	width: 100%;
	height: 600px;
}

/* Custom marker styling with dark blue background */
.custom-hfs-marker {
	width: 40px;
	height: 40px;
	background: #004083;
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	border: 2px solid #003366;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.custom-hfs-marker:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	background: #003366;
}

.custom-hfs-marker img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.social_media {
	display: flex;
	align-items: center;
}

.map_left .pagination {
	display: flex;
	margin-top: 20px;
}

.map_left .pagination a {
	color: #ffffff;
	background-color: #003865;
	padding: 10px;
	margin-right: 4px;
}

.map_left .pagination a.active {
	background: #71b2c9;
}

/* Branch Filters */
.branch-filters {
	display: flex;
	gap: 15px;
	background: #f5f5f5;
}

.map_left {
	background-color: #F0F3F7;
	padding: 40px;
	border-radius: 20px;
}

.filter-select {
	flex: 1;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	color: #898989;
	background: #fff;
	cursor: pointer;
	appearance: none;
	background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%23999" stroke-width="2" stroke-linecap="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 15px center;
	padding-right: 40px;
}

.filter-select option {
	padding: 10px;
	color: #898989;
}

.filter-select option:first-child {
	color: #999;
}

.filter-select:focus {
	outline: none;
	border-color: #004083;
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Style for the search input and radius select box */
.search-container {
	background: #efefef;
	padding: 20px;
	border-radius: 2px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

input[type="text"].pac-target-input {
	width: 100%;
	max-width: 300px;
}

#keywordSearch {
	width: 100%;
	max-width: 300px;
}

.pac-target-input,
.search-input,
#keywordSearch,
.radius-select,
gmp-placeautocomplete {
	padding: 10px;
	margin-right: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* Style for the new PlaceAutocompleteElement */
gmp-placeautocomplete {
	width: 100%;
	max-width: 300px;
	display: inline-block;
}

/* Search button styling */
.search-button {
	background-color: #113364;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.search-button:hover {
	background-color: #0c2447;
}

.search-button:active {
	background-color: #071833;
}

/* Style for the distributor listings */
.distributor-listings {
	list-style: none;
	padding: 0;
}

.distributor-listing {
	padding: 10px;
	border-bottom: 1px solid #eee;
}

.distributor-listing:last-child {
	border-bottom: none;
}

.distributor-name {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 5px;
}

.distributor-info {
	font-size: 14px;
}

/* Button styles */
.btn {
	background-color: #007bff;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-align: center;
	display: inline-block;
}

.btn:hover {
	background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {

	.search-input,
	.radius-select,
	#keywordSearch,
	.search-button {
		margin-bottom: 10px;
		width: 100%;
		max-width: 100%;
	}

	.search-container {
		flex-direction: column;
		align-items: stretch;
	}

	/* Branch filters on mobile */
	.branch-filters {
		flex-direction: column;
		gap: 10px;
	}

	.filter-select {
		width: 100%;
	}

	/* Branch cards on mobile */
	.branch-card {
		padding: 15px;
	}

	.map_left {
		padding: 40px 20px;
	}

	.get-directions-btn {
		width: 100%;
		text-align: center;
	}

	.map_body {
		grid-template-columns: 100%;
	}


	.map_left {
		order: 1
	}

	.map_right {
		order: 0
	}

	.map_left .map_component {
		max-height: none;
		min-height: auto;
	}
}