/* GMAPFP CSS */
/* J4 */

.gmapfp-address dd {
	padding-left: 30px;
}

.com-gmapfp-item {
	padding: 15px;
}
.container-component .com-gmapfp-item {
	padding: 0;
}

.btn-action {
    color: #fff !important;
    background-color: #132f53 !important;
    border-color: #132f53 !important;
}

/* ===================================================================
   Dealer locator - shared "view on map" button
   =================================================================== */

.gmapfp_icons .map.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 8px;
	background: #f1f3f5;
	font-weight: 600;
	font-size: .9rem;
	line-height: 1;
	white-space: nowrap;
	transition: background .2s ease;
}

.gmapfp_icons .map.btn:hover {
	background: #e9ecef;
}

.gmapfp_icons .map.btn .fa-map-marked-alt {
	font-size: 1.15rem;
}

/* ===================================================================
   Dealer locator - filter bar
   =================================================================== */

.gmapfp-filterbar {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gmapfp-filterbar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.gmapfp-filterbar__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	margin: 0;
	white-space: nowrap;
}

.gmapfp-filterbar__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	background: #fff;
}

.gmapfp-filterbar__row--filters .my-select-list,
.gmapfp-filterbar__row--filters .select2-container {
	flex: 1 1 200px;
	min-width: 160px;
	margin: 0 !important;
}

.gmapfp-filterbar__actions {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.gmapfp-filterbar__btn {
	margin: 0 !important;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.gmapfp-filterbar__row--search,
	.gmapfp-filterbar__row--filters {
		flex-direction: column;
		align-items: stretch;
	}

	/* In a column flex container, flex-basis sets the height, so the
	   desktop "flex: 1 1 ..." values (meant to size widths) would blow up
	   these fields to 200-240px+ tall. Reset to auto-height, full width. */
	.gmapfp-filterbar__row--filters .my-select-list,
	.gmapfp-filterbar__row--filters .select2-container {
		flex: 0 0 auto;
		width: 100% !important;
		min-width: 0;
	}

	.gmapfp-filterbar__row--search .gmapfp-filterbar__input {
		flex: 0 0 auto;
		width: 100%;
	}

	.gmapfp-filterbar__actions {
		margin-left: 0;
	}

	.gmapfp-filterbar__actions .gmapfp-filterbar__btn {
		flex: 1;
	}
}

/* ===================================================================
   Dealer locator - results grid
   =================================================================== */

.com-gmapfp-category-blog .com-gmapfp-category-blog__items.blog-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	margin: 0 0 30px;
}

.com-gmapfp-category-blog .com-gmapfp-category-blog__item.blog-item {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

.com-gmapfp-category-blog .blog-item-gmapfp {
	height: 100%;
}

.com-gmapfp-category-blog .com-gmapfp-item {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
	transition: box-shadow .2s ease, transform .2s ease;
}

.com-gmapfp-category-blog .com-gmapfp-item:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

@media (max-width: 600px) {
	.com-gmapfp-category-blog .com-gmapfp-category-blog__items.blog-items {
		grid-template-columns: 1fr;
	}
}

/* --- Card header / title --- */

/* The item title layout nests a second .page-header inside the one
   rendered by the item template, so style the inner one and strip
   the outer one's spacing to avoid a doubled border/gap. */
.com-gmapfp-category-blog .com-gmapfp-item > .page-header {
	padding-bottom: 0;
}

.com-gmapfp-category-blog .com-gmapfp-item .page-header .page-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #f1f1f1;
	padding-bottom: 12px;
	margin-bottom: 14px;
}

.com-gmapfp-category-blog .com-gmapfp-item .page-header h2 {
	font-size: 1.1rem;
	line-height: 1.4;
	font-weight: 700;
	margin: 0;
}

.com-gmapfp-category-blog .gmapfp_main_icons {
	flex-shrink: 0;
}

.com-gmapfp-category-blog .gmapfp_icons .map.btn {
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
	gap: 0;
}

.com-gmapfp-category-blog .gmapfp_icons .map.btn .gmapfp-map-btn-label {
	display: none;
}

.com-gmapfp-category-blog .gmapfp_icons .map.btn .fa-map-marked-alt {
	font-size: 1.1rem;
}

/* --- Address / contact rows --- */

.com-gmapfp-category-blog .com-gmapfp-item__intro {
	--bs-gutter-x: 0;
	margin: 0;
	flex: 1;
}

.gmapfp-info-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 10px;
}

.gmapfp-info-row:last-child {
	margin-bottom: 0;
}

.gmapfp-info-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	opacity: .6;
}

.gmapfp-info-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gmapfp-info-content {
	flex: 1;
	min-width: 0;
	color: #495057;
	line-height: 1.5;
}

.gmapfp-info-content span {
	display: block;
}

/* ===================================================================
   Dealer detail page (single item view)
   =================================================================== */

body.view-item .com-gmapfp-item.item-page {
	max-width: 900px;
	margin: 0 auto;
	padding: 28px;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

/* The item title layout nests a second .page-header inside the one
   rendered by the item template, so style the inner one and strip
   the outer one's spacing to avoid a doubled border/gap. */
body.view-item .com-gmapfp-item.item-page > .page-header {
	padding-bottom: 0;
}

body.view-item .com-gmapfp-item.item-page .page-header .page-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 2px solid #f1f1f1;
	padding-bottom: 18px;
	margin-bottom: 24px;
}

body.view-item .com-gmapfp-item.item-page .page-header h2 {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	flex: 1 1 280px;
}

body.view-item .com-gmapfp-item.item-page .gmapfp_main_icons {
	flex-shrink: 0;
}

body.view-item .com-gmapfp-item.item-page .com-gmapfp-item__intro {
	--bs-gutter-x: 0;
	margin: 0;
}

body.view-item .com-gmapfp-item.item-page .gmapfp-info-row {
	margin-bottom: 16px;
	font-size: 1.05rem;
}

body.view-item .com-gmapfp-item.item-page .gmapfp-info-icon {
	width: 26px;
	height: 26px;
	margin-top: 3px;
}