/* ============================================================
   BMW Maps Updates — Extra Styles
   Finder bar · new home sections · location pages
   Uses existing design tokens from bmw-design.css
   ============================================================ */


/* ============================================================
   FIND MY UPDATE — finder bar (after header)
   ============================================================ */
.bmw-finder {
	background: var(--ink);
	border-bottom: 1px solid rgba(255,255,255,.08);
	padding: 16px 0;
	position: relative;
	z-index: 20;
}
.bmw-finder .container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}
.bmw-finder-form {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	flex-wrap: wrap;
}
.bmw-finder-lead {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	padding-bottom: 10px;
	flex-shrink: 0;
}
.bmw-finder-icon {
	display: inline-flex;
	color: var(--brand-sky, #2da6ff);
}
.bmw-finder-title {
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 16px;
	letter-spacing: -.01em;
	white-space: nowrap;
}
.bmw-finder-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 150px;
}
.bmw-finder-field label {
	font-family: var(--f-mono);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	font-weight: 500;
}
.bmw-finder-ctrl {
	height: 46px;
	width: 100%;
	padding: 0 38px 0 14px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--r-md);
	background-color: rgba(255,255,255,.05);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	-webkit-appearance: none; -moz-appearance: none; appearance: none;
	font-family: var(--f-body);
	font-size: 14px;
	color: #fff;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.bmw-finder-ctrl option { color: #0b1220; }
.bmw-finder-ctrl:hover { border-color: rgba(255,255,255,.3); }
.bmw-finder-ctrl:focus {
	outline: none;
	border-color: var(--brand);
	background-color: rgba(255,255,255,.08);
}
.bmw-finder-ctrl.invalid { border-color: var(--accent); }
.bmw-finder-btn {
	height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--r-pill);
	background: var(--brand);
	color: #fff;
	font-family: var(--f-body);
	font-weight: 600;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s, transform .2s;
	flex-shrink: 0;
}
.bmw-finder-btn:hover { background: #154fc4; transform: translateY(-1px); }

@media (max-width: 900px) {
	.bmw-finder-form { gap: 10px; }
	.bmw-finder-lead { width: 100%; padding-bottom: 2px; }
	.bmw-finder-field { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); }
	.bmw-finder-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
	.bmw-finder-field { min-width: 100%; flex: 1 1 100%; }
}


/* ============================================================
   PREMIUM SERVICES — svc-grid
   ============================================================ */
.svc-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 40px;
}
.svc-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	text-decoration: none;
	color: var(--ink);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -20px rgba(11,18,32,.25);
	border-color: var(--brand);
}
.svc-icon {
	width: 52px; height: 52px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--r-md);
	background: rgba(28,100,242,.08);
	color: var(--brand);
}
.svc-card h4 {
	font-family: var(--f-display);
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	letter-spacing: -.01em;
}
.svc-card p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	margin: 0;
	flex: 1;
}
.svc-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--brand);
	font-weight: 500;
}
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }


/* ============================================================
   OEM SCIENCE — split + comparison
   ============================================================ */
.oem-split {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 56px;
	align-items: center;
}
.oem-copy .eyebrow { display: block; margin-bottom: 14px; }
.oem-copy h2 { margin: 0 0 20px; }
.oem-copy p { color: var(--muted); line-height: 1.7; margin: 0 0 16px; font-size: 16px; }
.oem-copy em { color: var(--ink); font-style: italic; }
.oem-points {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 28px;
}
.oem-point { display: flex; flex-direction: column; gap: 3px; }
.oem-point strong { font-family: var(--f-display); font-size: 15px; color: var(--ink); }
.oem-point span { font-size: 13px; color: var(--muted); line-height: 1.5; }

.oem-compare {
	background: var(--ink);
	border-radius: var(--r-xl);
	padding: 28px;
	color: #fff;
}
.oem-compare-head,
.oem-compare-row {
	display: grid;
	grid-template-columns: 1fr 64px 64px;
	align-items: center;
	gap: 8px;
}
.oem-compare-head {
	padding-bottom: 16px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255,255,255,.12);
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.55);
}
.oem-compare-head span:not(:first-child),
.oem-compare-row span:not(.oem-feat) { text-align: center; justify-self: center; }
.oem-compare-row { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.oem-compare-row:last-child { border-bottom: 0; }
.oem-feat { font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.4; }
.oem-yes { color: #34d399; display: inline-flex; }
.oem-no  { color: rgba(255,255,255,.3); display: inline-flex; }

@media (max-width: 900px) {
	.oem-split { grid-template-columns: 1fr; gap: 36px; }
	.oem-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.oem-points { grid-template-columns: 1fr; }
}


/* ============================================================
   GLOBAL COVERAGE — region pills
   ============================================================ */
.coverage-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 40px;
}
.coverage-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	text-decoration: none;
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
	transition: border-color .2s, transform .2s, color .2s;
}
.coverage-pill svg { color: var(--brand); flex-shrink: 0; }
.coverage-pill:hover {
	border-color: var(--brand);
	transform: translateY(-2px);
	color: var(--brand);
}
@media (max-width: 1024px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .coverage-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .coverage-grid { grid-template-columns: 1fr; } }


/* ============================================================
   LOCATION PAGES
   ============================================================ */
.bmw-location { overflow-x: hidden; }

/* Hero */
.loc-hero {
	position: relative;
	padding: 90px 0 70px;
	background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
	overflow: hidden;
}
.loc-hero .map,
.loc-hero .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.loc-hero .container { position: relative; z-index: 2; }
.loc-hero-inner { max-width: 820px; }
.loc-hero .tag {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--brand);
	background: rgba(28,100,242,.08);
	border: 1px solid rgba(28,100,242,.18);
	padding: 6px 14px;
	border-radius: var(--r-pill);
	margin-bottom: 22px;
}
.loc-hero h1 {
	font-family: var(--f-display);
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.02em;
	margin: 0 0 20px;
	color: var(--ink);
}
.loc-hero .lede { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 30px; max-width: 660px; }
.loc-hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.loc-hero-countries { font-size: 14px; color: var(--muted); }

/* Trust row */
.loc-trust { border-block: 1px solid var(--line); background: var(--bg); padding: 26px 0; }
.loc-trust-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}
.loc-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink);
	text-align: center;
}
.loc-trust-item svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 900px) {
	.loc-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.loc-trust-item { justify-content: flex-start; }
}
@media (max-width: 480px) { .loc-trust-grid { grid-template-columns: 1fr; } }

/* Intro */
.loc-intro { max-width: 860px; }
.loc-intro p { font-size: 17px; line-height: 1.75; color: var(--muted); margin: 0; }

/* Steps */
.loc-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 40px;
}
.loc-step {
	padding: 28px 24px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}
.loc-step-num {
	font-family: var(--f-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand);
	letter-spacing: .1em;
}
.loc-step h4 { font-family: var(--f-display); font-size: 18px; font-weight: 600; margin: 14px 0 8px; }
.loc-step p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
@media (max-width: 1024px) { .loc-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .loc-steps { grid-template-columns: 1fr; } }

/* Versions table */
.loc-versions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.loc-versions-copy .eyebrow { display: block; margin-bottom: 14px; }
.loc-versions-copy h2 { margin: 0 0 16px; }
.loc-versions-copy .lede { color: var(--muted); line-height: 1.7; margin: 0 0 26px; }
.loc-versions-table {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.loc-versions-table table { width: 100%; border-collapse: collapse; }
.loc-versions-table th {
	text-align: left;
	font-family: var(--f-mono);
	font-size: 11px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	padding: 14px 20px;
	background: var(--bg-2);
	border-bottom: 1px solid var(--line);
}
.loc-versions-table td {
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
	font-weight: 500;
	color: var(--ink);
}
.loc-versions-table tr:last-child td { border-bottom: 0; }
.loc-versions-table td:last-child { text-align: right; }
.loc-ver-badge {
	display: inline-block;
	font-family: var(--f-mono);
	font-size: 13px;
	font-weight: 500;
	color: var(--brand);
	background: rgba(28,100,242,.08);
	padding: 4px 12px;
	border-radius: var(--r-pill);
}
@media (max-width: 900px) { .loc-versions { grid-template-columns: 1fr; gap: 32px; } }

/* Feature split */
.loc-feature {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 48px;
	align-items: center;
}
.loc-feature-copy .eyebrow { display: block; margin-bottom: 14px; }
.loc-feature-copy h2 { margin: 0 0 18px; }
.loc-feature-copy p { color: var(--muted); line-height: 1.7; margin: 0 0 22px; font-size: 16px; }
.loc-feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.loc-feature-list li {
	display: flex; align-items: center; gap: 10px;
	font-size: 15px; color: var(--ink);
}
.loc-feature-list svg { color: var(--brand); flex-shrink: 0; }
.loc-feature-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}
.loc-feature-stat {
	background: var(--bg);
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.loc-feature-stat strong { font-family: var(--f-display); font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.loc-feature-stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .loc-feature { grid-template-columns: 1fr; gap: 32px; } }

/* CTA banner reused on location pages — ensure copy width */
.bmw-location .cta-banner .cta-copy { max-width: 560px; }


/* ============================================================
   HERO FINDER (homepage) — light "panel" variant
   ============================================================ */
.bmw-hero-finder {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	padding: 28px 28px 30px;
	box-shadow: 0 24px 60px -34px rgba(11,18,32,.30);
}
.bmw-hero-finder-head { margin-bottom: 18px; }
.bmw-hero-finder-head h3 {
	font-family: var(--f-display);
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -.01em;
	margin: 0 0 6px;
	color: var(--ink);
}
.bmw-hero-finder-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Panel variant overrides the dark-bar finder look */
.bmw-finder--panel { background: transparent; border: 0; padding: 0; }
.bmw-finder--panel .container { padding: 0; max-width: none; }
.bmw-finder--panel .bmw-finder-lead { display: none; } /* heading handled by hero-finder-head */
.bmw-finder--panel .bmw-finder-field label { color: var(--muted); }
.bmw-finder--panel .bmw-finder-ctrl {
	background-color: var(--bg-2);
	border-color: var(--line);
	color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%235b6473' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.bmw-finder--panel .bmw-finder-ctrl option { color: var(--ink); }
.bmw-finder--panel .bmw-finder-ctrl:hover { border-color: #c7ccd6; }
.bmw-finder--panel .bmw-finder-ctrl:focus { border-color: var(--brand); background-color: var(--bg); }


/* ============================================================
   RELATED PRODUCTS — 4-up grid on the product page
   ============================================================ */
.product-grid.related-grid {
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
@media (max-width: 1100px) { .product-grid.related-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .product-grid.related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .product-grid.related-grid { grid-template-columns: 1fr; } }
