/* Mama Ashanti Branches — front-end styles */

:root {
	--mab-accent: #c8541b;      /* warm terracotta */
	--mab-accent-dark: #a4400f;
	--mab-green: #1a7a3c;
	--mab-ink: #1f2328;
	--mab-muted: #6b7280;
}

/* ------------------------------------------------------------------ */
/*  Top branch bar / inline switcher                                  */
/* ------------------------------------------------------------------ */
.mab-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	background: var(--mab-ink);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	padding: 7px 16px;
	text-align: center;
	justify-content: center;
}
.mab-bar__label { opacity: .85; }
.mab-bar__branch { color: #ffd9a8; }
.mab-bar__change,
.mab-switcher .mab-bar__change {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .5);
	color: #fff;
	border-radius: 999px;
	padding: 2px 12px;
	font-size: 13px;
	cursor: pointer;
	transition: background .15s ease;
}
.mab-bar__change:hover { background: rgba(255, 255, 255, .15); }

.mab-switcher {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #faf3ec;
	border: 1px solid #eaddd0;
	border-radius: 999px;
	padding: 5px 14px;
	color: var(--mab-ink);
	font-size: 14px;
}
.mab-switcher .mab-bar__branch { color: var(--mab-accent-dark); font-weight: 700; }
.mab-switcher .mab-bar__change { border-color: var(--mab-accent); color: var(--mab-accent-dark); }
.mab-switcher .mab-bar__change:hover { background: rgba(200, 84, 27, .1); }

/* ------------------------------------------------------------------ */
/*  Modal                                                             */
/* ------------------------------------------------------------------ */
body.mab-modal-open { overflow: hidden; }

.mab-modal[hidden] { display: none; }
.mab-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.mab-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 8, .6);
	backdrop-filter: blur(2px);
}
.mab-modal__dialog {
	position: relative;
	background: #fff;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 16px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	animation: mab-pop .18s ease-out;
	font-family: inherit;
}
@keyframes mab-pop {
	from { transform: translateY(12px) scale(.98); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.mab-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: var(--mab-muted);
	cursor: pointer;
	padding: 4px;
}
.mab-modal__close:hover { color: var(--mab-ink); }
.mab-modal__title {
	margin: 0 0 4px;
	font-size: 22px;
	color: var(--mab-ink);
}
.mab-modal__subtitle {
	margin: 0 0 16px;
	color: var(--mab-muted);
	font-size: 14px;
}

.mab-geo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	justify-content: center;
	background: #faf3ec;
	border: 1px dashed var(--mab-accent);
	color: var(--mab-accent-dark);
	border-radius: 10px;
	padding: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 6px;
}
.mab-geo:hover { background: #f5e8db; }
.mab-geo__status {
	min-height: 16px;
	font-size: 12px;
	color: var(--mab-muted);
	margin-bottom: 8px;
	text-align: center;
}

.mab-branch-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mab-branch-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 12px 14px;
	margin-bottom: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.mab-branch-item:hover { border-color: var(--mab-accent); box-shadow: 0 2px 10px rgba(200, 84, 27, .12); }
.mab-branch-item.is-nearest { border-color: var(--mab-green); background: #f4faf6; }
.mab-branch-item.is-current { background: #fbfbfb; }
.mab-branch-info { min-width: 0; }
.mab-branch-name {
	font-weight: 700;
	color: var(--mab-ink);
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.mab-branch-meta { color: var(--mab-muted); font-size: 12.5px; margin-top: 2px; }
.mab-branch-dist { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--mab-green); font-weight: 600; }
.mab-badge {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	background: #eee;
	color: #555;
	border-radius: 6px;
	padding: 2px 6px;
}
.mab-badge--near { background: var(--mab-green); color: #fff; }

.mab-branch-select {
	flex: 0 0 auto;
	background: var(--mab-accent);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease;
}
.mab-branch-select:hover { background: var(--mab-accent-dark); }
.mab-branch-select:disabled { opacity: .6; cursor: default; }
.mab-branch-item.is-current .mab-branch-select { background: #7a7a7a; }

@media (max-width: 480px) {
	.mab-modal__dialog { padding: 24px 16px 16px; border-radius: 14px; }
	.mab-branch-item { flex-direction: column; align-items: stretch; }
	.mab-branch-select { width: 100%; }
}
