/* صفحات مسیر گردشگری — تک‌مسیر و آرشیو */
.bh-route-page,
.bh-route-archive-page {
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	color: #1e293b;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	min-height: 60vh;
}

.bh-route-page-inner,
.bh-route-archive-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.bh-route-hero {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
	margin-bottom: 24px;
}

.bh-route-hero-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.bh-route-hero-body {
	padding: 24px 28px;
}

.bh-route-hero-body h1 {
	margin: 0 0 10px;
	font-size: 1.65rem;
	font-weight: 800;
	color: #0f172a;
}

.bh-route-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.bh-route-meta-pill {
	font-size: 0.78rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	background: #fef2f2;
	color: #a02040;
	border: 1px solid #fecdd3;
}

.bh-route-meta-pill--teal {
	background: #ecfdf5;
	color: #0f766e;
	border-color: #a7f3d0;
}

/* نقشه بالا — آیتم‌ها یک سطر پایین */
.bh-route-page-stack,
.bh-route-archive-layout--stack {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bh-route-map-panel,
.bh-route-archive-map-wrap {
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.bh-route-map-panel--top,
.bh-route-archive-map-wrap--top {
	width: 100%;
}

.bh-route-map-panel h2 {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: 700;
}

.bh-route-detail-map,
.bh-route-archive-map {
	height: 440px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.bh-route-stops-row,
.bh-route-archive-list--row {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 14px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 12px;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.bh-route-stops-row::-webkit-scrollbar,
.bh-route-archive-list--row::-webkit-scrollbar {
	height: 6px;
}

.bh-route-stops-row::-webkit-scrollbar-thumb,
.bh-route-archive-list--row::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 999px;
}

.bh-route-stop-card {
	flex: 0 0 auto;
	width: min(200px, 42vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	background: #fff;
	border-radius: 14px;
	padding: 14px 12px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	scroll-snap-align: start;
}

.bh-route-stop-card:hover,
.bh-route-stop-card.is-active {
	border-color: #d64d5a;
	box-shadow: 0 8px 24px rgba(214, 77, 90, 0.12);
}

.bh-route-stop-order {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: linear-gradient(135deg, #d64d5a, #a02040);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.bh-route-stop-thumb {
	width: 100%;
	height: 100px;
	border-radius: 10px;
	object-fit: cover;
}

.bh-route-stop-card h3 {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.35;
	font-weight: 700;
}

/* آرشیو */
.bh-route-archive-hero {
	text-align: center;
	margin-bottom: 28px;
}

.bh-route-archive-hero h1 {
	margin: 0 0 8px;
	font-size: 1.75rem;
	font-weight: 800;
}

.bh-route-archive-hero p {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.bh-route-archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	background: #fff;
	padding: 14px 18px;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.bh-route-archive-toolbar select {
	font-family: inherit;
	padding: 10px 14px;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
	min-width: 180px;
}

.bh-route-archive-list--row .bh-route-archive-card {
	flex: 0 0 auto;
	width: min(220px, 48vw);
	scroll-snap-align: start;
}

.bh-route-archive-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	transition: box-shadow 0.2s, border-color 0.2s;
	cursor: pointer;
}

.bh-route-archive-card:hover,
.bh-route-archive-card.is-active {
	border-color: #d64d5a;
	box-shadow: 0 8px 24px rgba(214, 77, 90, 0.1);
}

.bh-route-archive-list--row .bh-route-archive-card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 14px;
	text-decoration: none;
	color: inherit;
}

.bh-route-archive-card-thumb {
	width: 100%;
	height: 100px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	background: #f1f5f9;
}

.bh-route-archive-card-body h3 {
	margin: 0 0 4px;
	font-size: 0.95rem;
}

.bh-route-archive-card-body p {
	margin: 0;
	font-size: 0.78rem;
	color: #64748b;
}

.bh-route-archive-map-wrap h2 {
	margin: 0 0 12px;
	font-size: 1rem;
}

.bh-route-archive-layout--stack .bh-route-map-hint {
	margin: 0;
	text-align: center;
}

.bh-route-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
	font-size: 0.72rem;
}

.bh-route-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.bh-route-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

/* پین‌های نقشه */
.bh-map-pin-wrap { background: transparent; border: none; }
.bh-map-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	border: 2px solid #fff;
}
.bh-map-pin-num {
	transform: rotate(45deg);
	font-size: 0.7rem;
	font-weight: 800;
	line-height: 1;
}

/* ثبت‌کننده مسیر */
.bh-route-publisher {
	margin-top: 16px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.bh-route-publisher-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.bh-route-publisher-avatar img,
.bh-route-publisher-avatar .begard-ul-avatar-wrap {
	border-radius: 14px;
}

.bh-route-publisher-label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 4px;
}

.bh-route-publisher-name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 800;
}

.bh-route-publisher-name a {
	color: #0f172a;
	text-decoration: none;
}

.bh-route-publisher-name a:hover {
	color: #d64d5a;
}

.bh-route-publisher-role {
	margin: 4px 0 0;
	font-size: 0.85rem;
	color: #0d9488;
	font-weight: 600;
}

.bh-route-publisher-dl {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 10px 20px;
}

.bh-route-publisher-dl__row {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}

.bh-route-publisher-dl dt {
	font-size: 0.72rem;
	font-weight: 700;
	color: #64748b;
	margin: 0;
}

.bh-route-publisher-dl dd {
	margin: 0;
	font-size: 0.88rem;
	color: #1e293b;
	line-height: 1.5;
}

.bh-route-publisher-socials {
	margin: 0;
	padding-right: 1em;
	list-style: disc;
}

.bh-route-publisher-socials a {
	color: #d64d5a;
	word-break: break-all;
}

.bh-route-publisher-link {
	margin: 12px 0 0;
	font-size: 0.85rem;
}

.bh-route-publisher-link a {
	color: #d64d5a;
	font-weight: 600;
	text-decoration: none;
}

.bh-route-description {
	margin-top: 20px;
	background: #fff;
	border-radius: 16px;
	padding: 22px 24px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.bh-route-description h2 {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 700;
}

.bh-route-content { font-size: 0.95rem; line-height: 1.7; color: #475569; }
.bh-route-content p:first-child { margin-top: 0; }
.bh-route-content p:last-child { margin-bottom: 0; }
.bh-route-legacy-note { color: #64748b; font-size: 0.9rem; }
.bh-route-legacy-list { margin: 0; padding-right: 1.2rem; }
.bh-route-back { margin-top: 28px; }
.bh-route-back a { color: #d64d5a; font-weight: 600; text-decoration: none; }
.bh-route-clear-filter { color: #d64d5a; font-size: 0.85rem; text-decoration: none; }
.bh-route-count-badge { font-size: 0.82rem; color: #64748b; margin-right: auto; }
.bh-route-archive-stops { color: #0d9488 !important; font-weight: 600; }
.bh-route-map-hint { margin: 10px 0 0; font-size: 0.78rem; color: #94a3b8; }
.bh-route-archive-empty { background: #fff; padding: 24px; border-radius: 14px; text-align: center; }
.bh-route-list { display: flex; flex-direction: column; gap: 12px; }

.bh-map-popup { font-family: Vazirmatn, Tahoma, sans-serif; font-size: 0.85rem; min-width: 140px; }
.bh-map-popup-img { max-width: 160px; border-radius: 8px; margin-top: 6px; display: block; }

@media (max-width: 900px) {
	.bh-route-detail-map,
	.bh-route-archive-map {
		height: 280px;
	}
}
