/**
 * FNBMaps Recommend — frontend only (prefix: fnbr-).
 * Do NOT load admin.css on the public site.
 */

.fnbr-why {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e8ecf1;
}

.fnbr-why__title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--fnb-primary, #b48c66);
	margin-bottom: 4px;
}

.fnbr-why__text {
	margin: 0 0 6px;
	font-size: 12px;
	line-height: 1.45;
	color: #475569;
}

.fnbr-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.fnbr-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fnb-primary-soft, #f7f1ea);
	border: 1px solid var(--fnb-primary-border, #e5d2bc);
	color: var(--fnb-primary, #b48c66);
	font-size: 11px;
	line-height: 1.4;
	font-weight: 500;
}

/*
 * Geo status under theme header search.
 * MUST stay out of document flow — .search-box uses h100; a block banner
 * stretches header-bot and pushes hotline. Absolute overlay only.
 */
.header-bot .search-box > .fnbr-geo {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: #f8fafc;
	border: 1px solid #eef1f5;
	font-size: 12px;
	line-height: 1.35;
	color: #64748b;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
	pointer-events: auto;
}

.header-bot .search-box > .fnbr-geo *,
.header-bot .search-box > .fnbr-geo *::before,
.header-bot .search-box > .fnbr-geo *::after {
	box-sizing: border-box;
}

.header-bot .search-box > .fnbr-geo[hidden] {
	display: none !important;
}

/* Dropdown results own this space — hide geo while open */
.header-bot .search-box.show-result > .fnbr-geo {
	display: none !important;
}

.header-bot .search-box > .fnbr-geo .fnbr-geo__dot {
	width: 8px;
	height: 8px;
	margin-top: 0;
	border-radius: 50%;
	background: #cbd5e1;
	flex: 0 0 auto;
}

.header-bot .search-box > .fnbr-geo.is-wait .fnbr-geo__dot {
	background: #94a3b8;
}

.header-bot .search-box > .fnbr-geo.is-ready {
	background: var(--fnb-primary-soft, #f7f1ea);
	border-color: var(--fnb-primary-border, #e5d2bc);
	color: var(--fnb-primary-hover, #9a734f);
}

.header-bot .search-box > .fnbr-geo.is-ready .fnbr-geo__dot {
	background: var(--fnb-primary, #b48c66);
	box-shadow: 0 0 0 3px rgba(var(--fnb-primary-rgb, 180, 140, 102), 0.18);
}

.header-bot .search-box > .fnbr-geo.is-denied {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.header-bot .search-box > .fnbr-geo.is-denied .fnbr-geo__dot {
	background: #f59e0b;
}

.header-bot .search-box > .fnbr-geo .fnbr-geo__text {
	flex: 1 1 auto;
	min-width: 0;
}

.header-bot .search-box > .fnbr-geo .fnbr-geo__btn {
	flex: 0 0 auto;
	border: 0;
	background: transparent;
	color: var(--fnb-primary, #b48c66);
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
	white-space: nowrap;
}

.header-bot .search-box > .fnbr-geo.is-denied .fnbr-geo__btn {
	color: #b45309;
}

/* Search-level AI / far-distance note (theme header results) */
.fnbr-note {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 10px;
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--fnb-primary-soft, #f7f1ea);
	border: 1px solid var(--fnb-primary-border, #e5d2bc);
	font-size: 12px;
	line-height: 1.45;
	color: var(--fnb-primary-hover, #9a734f);
	box-sizing: border-box;
	width: 100%;
}

.fnbr-note__dot {
	width: 8px;
	height: 8px;
	margin-top: 4px;
	border-radius: 50%;
	background: var(--fnb-primary, #b48c66);
	flex: 0 0 auto;
	box-shadow: 0 0 0 3px rgba(var(--fnb-primary-rgb, 180, 140, 102), 0.18);
}

.fnbr-note__text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}

/* Theme header search — reinforce loading affordance */
.header-bot .search-box.is-fnbr-loading {
	position: relative;
}

.header-bot .search-box.is-fnbr-loading::after {
	content: "";
	position: absolute;
	right: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border: 2px solid rgba(180, 140, 102, 0.25);
	border-top-color: #b48c66;
	border-radius: 50%;
	animation: fnbr-spin 0.7s linear infinite;
	pointer-events: none;
	z-index: 2;
}

@keyframes fnbr-spin {
	to { transform: rotate(360deg); }
}
