/* FCB MoneyPass ATM Locator */
.fcb-mp {
	--fcb-primary: #08582D;
	--fcb-secondary: #023A15;
	--fcb-accent: #44A959;
	--fcb-pale: #ECF6EE;
	--fcb-pale-2: #C7E5CD;
	--fcb-text: #505051;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--fcb-text);
}

.fcb-mp__demo-note {
	background: #FFF6DE;
	border: 1px solid #EBD9A2;
	color: #6B5417;
	border-radius: 8px;
	padding: 0.6rem 1rem;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

/* Controls — single row on desktop, stacked on mobile */
.fcb-mp__controls {
	background: #fff;
	border: 1px solid var(--fcb-pale-2);
	border-radius: 12px;
	padding: 1rem;
	margin-bottom: 1rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}
.fcb-mp__search {
	display: flex;
	gap: 0.5rem;
	flex: 1 1 auto;
	min-width: 0;
}
.fcb-mp__input {
	flex: 1 1 160px;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--fcb-pale-2);
	border-radius: 8px;
	font: inherit;
	color: #222;
}
.fcb-mp__input:focus {
	outline: 2px solid var(--fcb-accent);
	outline-offset: 1px;
	border-color: var(--fcb-accent);
}
.fcb-mp__btn {
	padding: 0.65rem 1.2rem;
	border-radius: 8px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.fcb-mp__btn--primary {
	background: var(--fcb-primary);
	color: #fff;
}
.fcb-mp__btn--primary:hover { background: var(--fcb-secondary); color: #fff; }
.fcb-mp__btn--ghost {
	background: #fff;
	color: var(--fcb-primary);
	border-color: var(--fcb-pale-2);
}
.fcb-mp__btn--ghost:hover { background: var(--fcb-pale); color: var(--fcb-secondary); }

.fcb-mp__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	font-size: 0.9rem;
	align-items: center;
	flex: 0 0 auto;
}
.fcb-mp__filter {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
	margin: 0;
}
.fcb-mp__filter input[type="checkbox"] { accent-color: var(--fcb-primary); margin: 0; }
.fcb-mp__filter--radius select {
	margin-left: 0.4rem;
	padding: 0.3rem 0.5rem;
	border: 1px solid var(--fcb-pale-2);
	border-radius: 6px;
	font: inherit;
}

/* Map + list */
.fcb-mp__body {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: stretch;
}
.fcb-mp__map-wrap { position: relative; }
.fcb-mp__map {
	width: 100%;
	height: 540px;
	border-radius: 12px;
	background: var(--fcb-pale);
}
.fcb-mp__btn--area {
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: var(--fcb-primary);
	border: 1px solid var(--fcb-pale-2);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	font-size: 0.85rem;
	padding: 0.45rem 1rem;
	z-index: 5;
}
.fcb-mp__btn--area:hover { background: var(--fcb-pale); }

.fcb-mp__list-wrap {
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: 540px;
	border: 1px solid var(--fcb-pale-2);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.fcb-mp__status {
	padding: 0.75rem 1rem;
	font-size: 0.88rem;
	background: var(--fcb-pale);
	color: var(--fcb-secondary);
	border-bottom: 1px solid var(--fcb-pale-2);
}
.fcb-mp__status--error { background: #FDECEC; color: #8A1F1F; }
.fcb-mp--loading .fcb-mp__status::after { content: ""; display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.5em; border: 2px solid var(--fcb-accent); border-top-color: transparent; border-radius: 50%; animation: fcb-mp-spin 0.7s linear infinite; vertical-align: -0.15em; }
@keyframes fcb-mp-spin { to { transform: rotate(360deg); } }

.fcb-mp__list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1;
}
.fcb-mp__item {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--fcb-pale);
	cursor: pointer;
	transition: background-color 0.12s ease;
}
.fcb-mp__item:hover { background: var(--fcb-pale); }
.fcb-mp__item--active { background: var(--fcb-pale); box-shadow: inset 3px 0 0 var(--fcb-accent); }
.fcb-mp__item--fcb { background: linear-gradient(0deg, rgba(236, 246, 238, 0.5), rgba(236, 246, 238, 0.5)); }
.fcb-mp__item-head {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	align-items: baseline;
	color: #222;
}
.fcb-mp__dist { font-size: 0.8rem; color: var(--fcb-primary); font-weight: 600; white-space: nowrap; }
.fcb-mp__addr { font-size: 0.85rem; margin-top: 0.15rem; }
.fcb-mp__badges { margin-top: 0.35rem; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.fcb-mp__badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.1rem 0.5rem;
	border-radius: 99px;
	background: var(--fcb-pale);
	color: var(--fcb-secondary);
	border: 1px solid var(--fcb-pale-2);
}
.fcb-mp__badge--fcb { background: var(--fcb-primary); color: #fff; border-color: var(--fcb-primary); }
.fcb-mp__directions {
	display: inline-block;
	margin-top: 0.4rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--fcb-primary);
	text-decoration: underline;
}
.fcb-mp__directions:hover { color: var(--fcb-accent); }

/* Legend */
.fcb-mp__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	margin-top: 0.85rem;
	font-size: 0.82rem;
}
.fcb-mp__legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.fcb-mp__dot { width: 0.8em; height: 0.8em; border-radius: 50%; display: inline-block; }
.fcb-mp__dot--fcb { background: var(--fcb-primary); }
.fcb-mp__dot--mp { background: var(--fcb-accent); }
.fcb-mp__legend-note { margin-left: auto; }
.fcb-mp__legend-note a { color: var(--fcb-primary); }

/* Info window */
.fcb-mp__iw { font-family: inherit; font-size: 0.85rem; line-height: 1.45; max-width: 240px; }
.fcb-mp__iw a { color: #08582D; font-weight: 600; }

/* Responsive */
@media (max-width: 880px) {
	.fcb-mp__body { grid-template-columns: 1fr; }
	.fcb-mp__map { height: 400px; }
	.fcb-mp__list-wrap { max-height: 380px; }
	.fcb-mp__legend-note { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 640px) {
	.fcb-mp__search { flex-wrap: wrap; }
	.fcb-mp__input { flex: 1 1 100%; }
	.fcb-mp__search .fcb-mp__btn { flex: 1 1 calc(50% - 0.25rem); }
	.fcb-mp__filters { width: 100%; }
}
