/* Journey Finder — A&K 风格行程查找器 */

.ak-jf,
.ak-jf * {
	box-sizing: border-box;
}

.ak-jf {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 32px;
	color: #1a1a1a;
}

/* 主题对 a 的全局下划线（含 current-page 链接）一律关掉 */
.ak-jf a,
.ak-jf a:hover,
.ak-jf a:focus,
.ak-jf a:visited {
	text-decoration: none !important;
}

.ak-jf__grid {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* ---------- 左栏：行程属性筛选 ---------- */

.ak-jf__side {
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: sticky;
	top: 96px;
	max-height: calc(100vh - 140px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
}

.ak-jf__side::-webkit-scrollbar {
	width: 6px;
}

.ak-jf__side::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.16);
	border-radius: 999px;
}

.ak-jf__sidetitle {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	font-family: "Times New Roman", Georgia, serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #111;
}

.ak-jf__glabel {
	margin: 0 0 12px;
	font-family: "Times New Roman", Georgia, serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #13294b;
}

.ak-jf__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ak-jf__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	font-size: 13px;
	line-height: 1.1;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ak-jf__chip em {
	font-style: normal;
	font-size: 11px;
	opacity: 0.55;
}

.ak-jf__chip svg {
	display: none;
	width: 11px;
	height: 11px;
	flex: 0 0 auto;
}

.ak-jf__chip:hover {
	border-color: #13294b;
	color: #13294b;
}

.ak-jf__chip.is-on {
	background: #13294b;
	border-color: #13294b;
	color: #fff;
}

.ak-jf__chip.is-on svg {
	display: block;
}

.ak-jf__chip.is-on em {
	opacity: 0.75;
}

/* 页面级锁定条件（如 Beijing）：不可取消 */
.ak-jf__chip.is-locked {
	cursor: default;
	background: #13294b;
	border-color: #13294b;
	color: #fff;
}

.ak-jf__reset {
	align-self: flex-start;
	font-size: 13px;
	color: #13294b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- 右栏：结果 ---------- */

.ak-jf__main {
	min-width: 0;
}

.ak-jf__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 14px;
	margin-bottom: 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	font-size: 14px;
	color: #333;
}

.ak-jf__bar strong {
	font-weight: 600;
}

.ak-jf__sort,
.ak-jf__scope {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8378;
}

/* 生效中的筛选条件 */
.ak-jf__activebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: -10px 0 24px;
}

.ak-jf__activelabel {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8378;
}

.ak-jf__activechip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 10px;
	border: 1px solid rgba(19, 41, 75, 0.28);
	border-radius: 999px;
	background: rgba(19, 41, 75, 0.05);
	font-size: 12px;
	line-height: 1.2;
	color: #13294b;
}

.ak-jf__activechip.is-locked {
	border-style: solid;
	border-color: #13294b;
	background: #13294b;
	color: #fff;
}

.ak-jf__activechip a {
	font-size: 14px;
	line-height: 1;
	color: inherit;
	opacity: 0.7;
}

.ak-jf__activechip a:hover {
	opacity: 1;
}

.ak-jf__activeclear {
	font-size: 12px;
	color: #13294b;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ak-jf__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* ---------- 卡片 ---------- */

.ak-jf__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ak-jf__card:hover {
	border-color: rgba(0, 0, 0, 0.42);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.ak-jf__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #e9e5dc;
	overflow: hidden;
}

.ak-jf__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ak-jf__card:hover .ak-jf__media img {
	transform: scale(1.045);
}

.ak-jf__badges {
	position: absolute;
	left: 10px;
	top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ak-jf__badge {
	padding: 4px 8px;
	border-radius: 5px;
	background: #f5f2eb;
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.ak-jf__badge.is-tag {
	background: rgba(19, 41, 75, 0.92);
	color: #fff;
}

.ak-jf__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	padding: 20px 18px 16px;
}

.ak-jf__title {
	margin: 0 0 9px;
	font-family: "Times New Roman", Georgia, serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}

.ak-jf__title a {
	color: #000;
	text-decoration: none;
}

.ak-jf__title a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* 行程属性：年份 / 天数 / 行程包含的地方
   注意：主题对 p 设了大 margin-bottom（约 20px），必须用更高优先级的选择器接管，
   否则三行间距会被撑开。间距目标 ≈ 原来的 1/2（11px / 13px）。 */
.ak-jf .ak-jf__body .ak-jf__year {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8378;
}

.ak-jf .ak-jf__body .ak-jf__days {
	margin: 0 0 10px;
	font-size: 13px;
	color: #333;
}

.ak-jf .ak-jf__body .ak-jf__places {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #6a6459;
}

/* 底栏：只放按钮（价格已移除），右对齐 */
.ak-jf__foot {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 14px 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.ak-jf__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 18px;
	border: 1px solid #111;
	background: #111;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ak-jf__btn:hover {
	background: #333;
	border-color: #333;
	color: #fff;
}

/* ---------- 底部按钮 / 空状态 ---------- */

.ak-jf__more {
	display: flex;
	justify-content: center;
	padding: 34px 0 0;
}

.ak-jf__morebtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 34px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	background: transparent;
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ak-jf__morebtn:hover {
	background: #13294b;
	border-color: #13294b;
	color: #fff;
}

.ak-jf__empty {
	padding: 56px 0;
	text-align: center;
	font-size: 15px;
	color: #5f5a52;
}

/* ---------- 移动端 ---------- */

.ak-jf__mbar {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.ak-jf__mtoggle {
	padding: 9px 16px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	background: #fff;
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.ak-jf__mcount {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8a8378;
}

@media (max-width: 1200px) {
	.ak-jf__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.ak-jf__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.ak-jf__mbar {
		display: flex;
	}

	.ak-jf__side {
		position: static;
		display: none;
		gap: 20px;
		margin-bottom: 24px;
		padding: 20px;
		max-height: none;
		overflow: visible;
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.12);
	}

	.ak-jf__side.is-open {
		display: flex;
	}
}

@media (max-width: 640px) {
	.ak-jf {
		padding: 0 18px;
	}

	.ak-jf__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ak-jf__title {
		font-size: 19px;
	}
}
