/* Locate DGPP: search + results UI. Scoped to .dgpp so it never leaks into the site header/footer. */

.dgpp {
	--ink: #0c2230;
	--muted: #4b6272;
	--line: #d9e5ed;
	--field-line: #aebfcb;
	--tint: #eef7fc;
	--accent: #0b78b8;
	--accent-deep: #085d91;
	--bg: #f4f8fb;
	--radius: 14px;
	--ease: cubic-bezier(0.23, 1, 0.32, 1);

	font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

.dgpp-wrap {
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 clamp(24px, 6vw, 120px);
}

/* ---------- Hero ---------- */

.dgpp-hero {
	position: relative;
	padding: 168px 0 120px;
	overflow: hidden;
	background: #dfeef6;
}

.dgpp-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.dgpp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(244, 248, 251, 0.97) 0%, rgba(244, 248, 251, 0.9) 36%, rgba(244, 248, 251, 0.35) 72%, rgba(244, 248, 251, 0) 100%);
}

.dgpp-hero__inner {
	position: relative;
	z-index: 1;
}

.dgpp-hero h1 {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: clamp(2.125rem, 4.4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.dgpp-hero p {
	max-width: 44ch;
	margin: 0;
	color: var(--muted);
	font-size: 1.125rem;
	line-height: 1.55;
	text-wrap: pretty;
}

/* ---------- Search card ---------- */

.dgpp-search {
	position: relative;
	z-index: 2;
	margin-top: -64px;
	padding: 28px 32px 32px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(12, 34, 48, 0.04), 0 18px 40px -18px rgba(12, 34, 48, 0.22);
}

.dgpp-search h2 {
	margin: 0 0 20px;
	color: var(--ink);
	font-size: 1.25rem;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.dgpp-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 16px;
	align-items: end;
	margin: 0;
}

.dgpp-field label {
	display: block;
	margin: 0 0 8px;
	color: var(--muted);
	font-size: 0.875rem;
	font-weight: 500;
}

.dgpp-select,
.dgpp-btn {
	height: 52px;
	font-family: inherit;
	border-radius: 10px;
}

.dgpp-select {
	display: block;
	width: 100%;
	padding: 0 44px 0 16px;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.2;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b6272' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
	border: 1px solid var(--field-line);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out;
}

.dgpp-select option {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1rem;
	color: var(--ink);
}

.dgpp-select:hover:not(:disabled) {
	border-color: #7f9aac;
}

.dgpp-select:focus-visible {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(11, 120, 184, 0.22);
}

.dgpp-select:disabled {
	color: #6b7f8d;
	background-color: #f0f4f7;
	cursor: not-allowed;
}

.dgpp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 30px;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	background: var(--accent);
	border: 0;
	cursor: pointer;
	transition: background-color 0.16s ease-out, transform 0.16s var(--ease);
}

.dgpp-btn:hover {
	background: var(--accent-deep);
}

.dgpp-btn:active {
	transform: scale(0.97);
}

.dgpp-btn:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
}

.dgpp-btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* ---------- Results ---------- */

.dgpp-results {
	display: none;
	padding: 56px 0 96px;
	scroll-margin-top: 110px;
}

.dgpp-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.dgpp-results__head h2 {
	margin: 0;
	color: var(--ink);
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	font-weight: 650;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.dgpp-results__head p {
	margin: 6px 0 0;
	color: var(--muted);
	font-size: 0.9375rem;
}

.dgpp-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 4px;
	color: var(--accent-deep);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	background: none;
	border: 0;
	cursor: pointer;
}

.dgpp-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dgpp-link:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
	border-radius: 6px;
}

.dgpp-layout {
	display: grid;
	grid-template-columns: minmax(340px, 5fr) 7fr;
	gap: 24px;
	align-items: start;
}

.dgpp .outlet-list {
	display: grid;
	gap: 12px;
	max-height: 640px;
	margin: 0;
	padding: 2px 6px 2px 2px;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.dgpp .outlet-item {
	padding: 18px 20px 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background-color 0.16s ease-out;
	animation: dgpp-in 0.28s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 32ms);
}

.dgpp .outlet-item:hover {
	border-color: #92bdd6;
}

.dgpp .outlet-item:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
}

.dgpp .outlet-item.active {
	background: var(--tint);
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.dgpp .outlet-name {
	margin: 0 0 4px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.35;
	text-transform: none;
}

.dgpp .outlet-city {
	display: inline-block;
	margin: 0 0 10px;
	padding: 2px 10px;
	color: var(--accent-deep);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	background: var(--tint);
	border-radius: 999px;
}

.dgpp .outlet-item.active .outlet-city {
	background: #fff;
}

.dgpp .outlet-address {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.9375rem;
	line-height: 1.55;
	text-transform: capitalize;
}

.dgpp .outlet-phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	margin-bottom: 12px;
	color: var(--ink);
	font-size: 0.9375rem;
	font-weight: 550;
	text-decoration: none;
}

.dgpp .outlet-phone .fa {
	color: var(--accent);
	font-size: 0.875rem;
}

.dgpp .outlet-phone:hover {
	color: var(--accent-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.dgpp .outlet-link {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dgpp .outlet-link a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	color: var(--accent-deep);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--field-line);
	border-radius: 999px;
	transition: background-color 0.16s ease-out, border-color 0.16s ease-out, transform 0.16s var(--ease);
}

.dgpp .outlet-link a:hover {
	background: var(--tint);
	border-color: var(--accent);
}

.dgpp .outlet-link a:active {
	transform: scale(0.97);
}

.dgpp .outlet-link a:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
}

.dgpp-map {
	position: sticky;
	top: 110px;
	height: 640px;
	overflow: hidden;
	background: #e4eef4;
	border: 1px solid var(--line);
	border-radius: 16px;
}

.dgpp-map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.dgpp-empty {
	padding: 48px 24px;
	color: var(--muted);
	text-align: center;
	background: #fff;
	border: 1px dashed var(--field-line);
	border-radius: var(--radius);
}

.dgpp-empty strong {
	display: block;
	margin-bottom: 6px;
	color: var(--ink);
	font-size: 1.0625rem;
}

@keyframes dgpp-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.dgpp-hero {
		padding: 128px 0 96px;
	}

	.dgpp-hero::after {
		background: linear-gradient(180deg, rgba(244, 248, 251, 0.94) 0%, rgba(244, 248, 251, 0.78) 100%);
	}

	.dgpp-search {
		padding: 22px 20px 24px;
	}

	.dgpp-form {
		grid-template-columns: 1fr;
	}

	.dgpp-btn {
		width: 100%;
	}

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

	.dgpp .outlet-list {
		max-height: none;
		padding-right: 2px;
	}

	.dgpp-map {
		position: static;
		height: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dgpp .outlet-item {
		animation: none;
	}

	.dgpp *,
	.dgpp *::before,
	.dgpp *::after {
		transition-duration: 0.01ms !important;
	}
}

/* Neutralise legacy theme rules (numbered pin badge, indented details) */
.dgpp .outlet-item::before,
.dgpp .outlet-item::after {
	content: none;
	display: none;
}

.dgpp .outlet-item .details {
	padding: 0;
	margin: 0;
	background: none;
}

.dgpp .outlet-item .outlet-address,
.dgpp .outlet-item .outlet-name,
.dgpp .outlet-item .outlet-city {
	padding-left: 0;
}

.dgpp .dgpp-wrap:has(> .dgpp-search) {
	padding-bottom: 72px;
}

/* Align field + button baselines: the legacy theme adds bottom margins to form controls */
.dgpp .dgpp-field,
.dgpp .dgpp-select,
.dgpp .dgpp-btn {
	margin: 0;
}

/* ======================================================
   Locate Dealer: stepped flow (model > location > outlet)
   ====================================================== */

.dgpp-panel {
	padding-bottom: 36px;
}

.dgpp-steps {
	display: flex;
	gap: 12px;
	margin: 0 0 32px;
	padding: 0 0 24px;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.dgpp-steps li {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: #5f7585;
	font-size: 0.9375rem;
	font-weight: 550;
}

.dgpp-steps li + li::before {
	content: "";
	flex: 0 0 auto;
	width: clamp(16px, 4vw, 56px);
	height: 2px;
	margin-right: 4px;
	background: var(--line);
	border-radius: 2px;
}

.dgpp-steps .num {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 30px;
	height: 30px;
	font-size: 0.8125rem;
	font-weight: 650;
	background: #fff;
	border: 1.5px solid var(--field-line);
	border-radius: 50%;
	transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}

.dgpp-steps li.active {
	color: var(--ink);
}

.dgpp-steps li.active .num {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
}

.dgpp-steps li.done {
	color: var(--accent-deep);
}

.dgpp-steps li.done .num {
	color: var(--accent-deep);
	background: var(--tint);
	border-color: var(--accent);
}

.dgpp-steps .label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dgpp-step {
	display: none;
}

.dgpp-step.is-active {
	display: block;
	animation: dgpp-in 0.28s var(--ease) both;
}

.dgpp-step > h2 {
	margin: 0 0 6px;
	color: var(--ink);
	font-size: 1.25rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.dgpp-step > .sub {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 0.9375rem;
}

.dgpp-models {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dgpp .product-link {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 12px 12px 16px;
	color: var(--ink);
	font-family: inherit;
	text-align: left;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
	transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, transform 0.16s var(--ease);
}

.dgpp .product-link:hover {
	border-color: var(--accent);
	box-shadow: 0 10px 24px -14px rgba(12, 34, 48, 0.35);
}

.dgpp .product-link:active {
	transform: scale(0.98);
}

.dgpp .product-link:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
}

.dgpp .product-link .product-img {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	margin-bottom: 14px;
	overflow: hidden;
	background: var(--tint);
	border-radius: 10px;
}

.dgpp .product-link .product-img img {
	width: 100%;
	height: 100%;
	padding: 10px;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.dgpp .product-link .product-name {
	padding: 0 4px;
	font-size: 1rem;
	font-weight: 650;
	letter-spacing: 0.01em;
}

.dgpp .chip-row {
	margin: 0 0 20px;
}

.dgpp-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 6px 6px 14px;
	color: var(--ink);
	font-size: 0.875rem;
	background: var(--tint);
	border-radius: 999px;
}

.dgpp-chip strong {
	font-weight: 650;
}

.dgpp-chip .dgpp-link {
	min-height: 32px;
	padding: 0 12px;
	font-size: 0.8125rem;
}

.dgpp-or {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 32px 0 20px;
	color: var(--muted);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.dgpp-or::before,
.dgpp-or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.dgpp-store-title {
	margin: 0 0 14px;
	color: var(--ink);
	font-size: 1rem;
	font-weight: 650;
}

.dgpp-stores {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dgpp-stores a {
	display: grid;
	place-items: center;
	width: 168px;
	height: 64px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, transform 0.16s var(--ease);
}

.dgpp-stores a:hover {
	border-color: var(--accent);
	box-shadow: 0 10px 24px -14px rgba(12, 34, 48, 0.35);
}

.dgpp-stores a:active {
	transform: scale(0.97);
}

.dgpp-stores a:focus-visible {
	outline: 3px solid rgba(11, 120, 184, 0.35);
	outline-offset: 2px;
}

.dgpp-stores img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.dgpp-results__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

@media (max-width: 900px) {
	.dgpp-steps {
		gap: 8px;
		padding-bottom: 20px;
	}

	.dgpp-steps .label {
		display: none;
	}

	.dgpp-steps li.active .label {
		display: block;
	}

	.dgpp-steps li + li::before {
		width: 12px;
	}

	.dgpp-models {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}

/* Neutralise legacy .product-* theme rules inside the new model grid */
.dgpp .dgpp-models .product-link {
	height: 100%;
	margin: 0;
	background: #fff;
}

.dgpp .dgpp-models .product-link .product-name {
	display: block;
	width: auto;
	margin: 0;
	padding: 0 4px;
	color: var(--ink);
	font-size: 1rem;
	line-height: 1.3;
	text-align: left;
	background: none;
}

.dgpp .dgpp-models .product-link .product-img {
	width: 100%;
	height: auto;
	padding: 0;
}