/**
 * WLRE Theme — Breadcrumbs.
 *
 * Shared breadcrumb trail used primarily on Property Detail (12B).
 * The chevron-right separator is inlined via wlre_icon() and hidden from
 * screen readers via aria-hidden="true".
 *
 * Sizing uses the canonical --wlre-space-* tokens.
 */

.wlre-breadcrumbs {
	font-family: var(--wlre-font-body);
	font-size: 14px;
	line-height: 1.48;
	color: var(--wlre-color-neutral-600);
	padding-block: 12px;
}

.wlre-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wlre-space-8);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wlre-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: var(--wlre-space-8);
}

/* Chevron separator icon — extracted from Figma, inlined via wlre_icon(). */
.wlre-breadcrumbs__sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	color: var(--wlre-color-neutral-400, #999);
	overflow: hidden;
}

.wlre-breadcrumbs__sep svg {
	width: 12px;
	height: 12px;
	min-width: 12px;
	display: block;
}

.wlre-breadcrumbs__link {
	color: inherit;
	text-decoration: none;
}

.wlre-breadcrumbs__link:hover,
.wlre-breadcrumbs__link:focus-visible {
	color: var(--wlre-color-brand-900);
	text-decoration: underline;
}

/* Current page — bold navy with a short 8px accent line below (Figma: Breadcrumb_part > Divider). */
.wlre-breadcrumbs__current {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	color: var(--wlre-color-text-900);
	font-weight: 700;
	padding-block: 4px;
}

.wlre-breadcrumbs__current::after {
	content: '';
	display: block;
	width: 8px;
	height: 2px;
	background: currentColor;
	margin-top: 2px;
}

/* Account pages: cancel the 40px main padding-top so the breadcrumb
 * sits flush against the header, then restore it on the next sibling
 * to keep the gap between breadcrumb and page content. */
.wlre-account .wlre-breadcrumbs,
.wlre-saved .wlre-breadcrumbs,
.wlre-saved-searches .wlre-breadcrumbs,
.wlre-profile .wlre-breadcrumbs,
.wlre-documents .wlre-breadcrumbs {
	margin-block-start: calc(-1 * var(--wlre-space-40));
}

.wlre-account .wlre-breadcrumbs + *,
.wlre-saved .wlre-breadcrumbs + *,
.wlre-saved-searches .wlre-breadcrumbs + *,
.wlre-profile .wlre-breadcrumbs + *,
.wlre-documents .wlre-breadcrumbs + * {
	margin-block-start: var(--wlre-space-40);
}

/* Search-page breadcrumb row — sits between filter bar and results */
.wlre-search-breadcrumb {
	background: var(--wlre-color-white);
	padding: 12px 0;
}

/* Mobile — breadcrumbs hidden site-wide on small screens. The mobile chrome
 * (fixed header + bottom-nav) already provides the wayfinding affordances
 * the breadcrumb gives on desktop, and the trail eats vertical space that
 * mobile users would rather spend on content. */
@media (max-width: 767px) {
	.wlre-breadcrumbs,
	.wlre-search-breadcrumb {
		display: none;
	}
}
