/* Travel Guides Feed —— 沉浸式卡片网格 + 筛选 + 数字分页 */

.ak-tg {
	--ak-tg-gold: #c1aa7f;
	--ak-tg-ink: #1a1a1a;
}

/* ---------- 筛选 ---------- */
.ak-tg__filters {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 2rem;
}
.ak-tg__select-wrap {
	position: relative;
	width: 100%;
}
@media (min-width: 768px) {
	.ak-tg__select-wrap { width: calc(33% - 8px); }
}
.ak-tg__select {
	width: 100%;
	padding: 12px 40px 12px 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ak-tg-ink);
	background: #fff;
	border: 1px solid var(--ak-tg-ink);
	border-radius: 2px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}
.ak-tg__select:focus {
	outline: none;
	border-color: var(--ak-tg-gold);
	box-shadow: 0 0 0 1px var(--ak-tg-gold);
}
.ak-tg__caret {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 10px;
	height: 6px;
	transform: translateY(-50%);
	color: var(--ak-tg-ink);
	pointer-events: none;
}

/* ---------- 网格 ---------- */
.ak-tg__grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-template-rows: auto;
	gap: 1.5rem;
	transition: opacity .2s ease;
}
@media (min-width: 544px) {
	.ak-tg__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
	.ak-tg__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
	.ak-tg__grid { gap: 2.625rem; grid-template-columns: repeat(4, 1fr); }
}
.ak-tg.is-loading .ak-tg__grid {
	opacity: .35;
	pointer-events: none;
}
.ak-tg__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #666;
	margin: 2rem 0;
}

/* ---------- 卡片 ---------- */
.ak-tg__card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.ak-tg__link {
	position: relative;
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	padding-top: 100%;              /* 1:1 正方形 */
	overflow: hidden;
	background: #ccc;
	cursor: pointer;
	text-decoration: none;
	transform: scale(1);
	transform-origin: center center;
	transition: transform .2s ease-in-out;
}
.ak-tg__link:hover { transform: scale(1.01); }
.ak-tg__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(26,26,26,0), rgba(26,26,26,.85));
	opacity: .9;
	z-index: 1;
}
.ak-tg__pic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
}
.ak-tg__pic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ak-tg__body {
	position: absolute;
	bottom: 55px;
	left: 0;
	width: 100%;
	z-index: 2;
}
.ak-tg__title {
	color: #fff;
	margin: 0;
	padding: 0 25px;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.35;
	word-wrap: break-word;
}
.ak-tg__label {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: inline-block;
	color: var(--ak-tg-gold);
	font-size: 13px;
	letter-spacing: .06em;
	padding: 16px 25px 25px;
	white-space: nowrap;
}

/* ---------- 分页 ---------- */
.ak-tg__pagination { margin-top: 2.5rem; }
.ak-tg__pages {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	flex-wrap: wrap;
}
.ak-tg__nav {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .5rem .875rem;
	font-size: 13px;
	letter-spacing: .125em;
	color: var(--ak-tg-ink);
	background: transparent;
	border: 1px solid var(--ak-tg-ink);
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: color .25s ease-in-out, background-color .25s ease-in-out;
}
.ak-tg__nav:hover {
	background: var(--ak-tg-ink);
	color: #fff;
}
.ak-tg__nav[disabled],
.ak-tg__nav.is-disabled {
	opacity: .25;
	pointer-events: none;
}
.ak-tg__num {
	min-width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: var(--ak-tg-ink);
	background: transparent;
	border: 0;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.ak-tg__num:hover { background: #f2f0ea; }
.ak-tg__num.is-current {
	background: var(--ak-tg-gold);
	color: #fff;
	cursor: default;
}
.ak-tg__dots { color: #888; padding: 0 .25rem; }

@media (max-width: 543px) {
	.ak-tg__body { bottom: 48px; }
	.ak-tg__title { font-size: 1.0625rem; padding: 0 18px; }
	.ak-tg__label { font-size: 12px; padding: 12px 18px 18px; }
}
