/**
 * TPO Article Archive — travel article listing page.
 * Fonts/colors from the Elementor Kit (--e-global-*); cards come from
 * tpo-articles.css (shared Travel Articles card set).
 */

.tpo-aa {
	--tpo-aa-font: var(--e-global-typography-text-font-family, inherit);
	--tpo-aa-font-head: var(--e-global-typography-primary-font-family, var(--tpo-aa-font));
	--tpo-aa-font-ui: var(--e-global-typography-accent-font-family, var(--tpo-aa-font));
	--tpo-aa-ink: var(--e-global-color-text, #1b1b1b);
	--tpo-aa-accent: var(--e-global-color-primary, #2563eb);
	--tpo-aa-accent-2: var(--e-global-color-secondary, #1abfc4);
	--tpo-aa-muted: color-mix(in srgb, var(--tpo-aa-ink) 60%, transparent);
	--tpo-aa-line: color-mix(in srgb, var(--tpo-aa-ink) 10%, transparent);
	--tpo-aa-soft: color-mix(in srgb, var(--tpo-aa-accent) 8%, #fff);
	--tpo-aa-feat-img: 56%;
	width: 100%;
	color: var(--tpo-aa-ink);
}

.elementor-widget-tpo-article-archive {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}

/* Beat tpo-base's `.tpo-root { font-family: system-ui; max-width: 1200px }`. */
.elementor-widget-tpo-article-archive .tpo-root.tpo-aa {
	max-width: none;
	font-family: var(--tpo-aa-font);
}

.tpo-root.tpo-aa h1,
.tpo-root.tpo-aa h2,
.tpo-root.tpo-aa h3,
.tpo-root.tpo-aa p,
.tpo-root.tpo-aa input,
.tpo-root.tpo-aa button {
	font-family: inherit;
}

.tpo-aa__shell {
	display: flex;
	flex-direction: column;
	gap: 36px;
	max-width: 1300px;
	margin: 0 auto;
}

/* —— Breadcrumb (shared Ui::breadcrumb) —— */
.tpo-aa__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--tpo-aa-muted);
}
.tpo-root.tpo-aa .tpo-aa__shell > .tpo-aa__crumbs {
	margin: 0 0 calc(var(--tpo-aa-crumb-space, 16px) - 36px);
}
.tpo-aa__crumb-link {
	color: inherit;
	text-decoration: none;
}
.tpo-aa__crumb-link:hover {
	color: var(--tpo-aa-accent);
}
.tpo-aa__crumb-current {
	font-weight: 600;
	color: var(--tpo-aa-ink);
}
.tpo-aa__crumb-sep {
	opacity: 0.4;
}
.tpo-root.tpo-aa .tpo-aa__crumbs a,
.tpo-root.tpo-aa .tpo-aa__crumbs span {
	width: auto !important;
	margin-left: 0 !important;
}

/* —— Page head —— */
.tpo-aa__head {
	position: relative;
	overflow: hidden;
	padding: 36px 44px;
	border-radius: 28px;
	/* Kit primary → secondary (Site Settings colours drive it). */
	background:
		radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 42%),
		linear-gradient(135deg, var(--tpo-aa-accent), var(--tpo-aa-accent-2));
	border: 0;
	color: #fff;
	transition: background-color 0.3s ease;
}
.tpo-aa__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}
.tpo-aa__eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}
.tpo-root.tpo-aa .tpo-aa__title {
	margin: 0;
	font-family: var(--tpo-aa-font-head);
	font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}
.tpo-aa__lead {
	max-width: 64ch;
	margin: 10px 0 0;
	font-size: 1rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
}
.tpo-aa__head[style*="center"] .tpo-aa__lead {
	margin-inline: auto;
}

/* —— Toolbar: chips + search —— */
.tpo-aa__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}
.tpo-aa__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tpo-root.tpo-aa a.tpo-aa__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: auto;
	margin: 0;
	padding: 9px 18px;
	border: 1px solid var(--tpo-aa-line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tpo-aa-ink);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tpo-root.tpo-aa a.tpo-aa__chip:hover {
	border-color: var(--tpo-aa-accent);
	color: var(--tpo-aa-accent);
}
.tpo-root.tpo-aa a.tpo-aa__chip.is-active {
	border-color: var(--tpo-aa-accent);
	background: var(--tpo-aa-accent);
	color: #fff;
}
.tpo-aa__chip-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tpo-aa-soft);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--tpo-aa-accent);
}
.tpo-aa__chip.is-active .tpo-aa__chip-count {
	background: rgba(255, 255, 255, 0.24);
	color: inherit;
}

.tpo-aa__search {
	display: flex;
	flex: 0 1 380px;
	margin-left: auto;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 5px 5px 5px 16px;
	border: 1px solid var(--tpo-aa-line);
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.tpo-aa__search:focus-within {
	border-color: var(--tpo-aa-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--tpo-aa-accent) 14%, transparent);
}
.tpo-aa__search svg {
	flex: none;
	width: 18px;
	height: 18px;
	color: var(--tpo-aa-muted);
}
.tpo-root.tpo-aa .tpo-aa__search-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0.9375rem;
	color: var(--tpo-aa-ink);
	outline: none;
}
.tpo-root.tpo-aa .tpo-aa__search-btn {
	flex: none;
	height: 38px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--tpo-aa-accent);
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.tpo-root.tpo-aa .tpo-aa__search-btn:hover {
	background: color-mix(in srgb, var(--tpo-aa-accent) 85%, #000);
}

/* —— Featured —— */
.tpo-aa__featured {
	display: grid;
	grid-template-columns: var(--tpo-aa-feat-img) minmax(0, 1fr);
	height: var(--tpo-aa-feat-h, 440px);
	overflow: hidden;
	border: 1px solid var(--tpo-aa-line);
	border-radius: 24px;
	background: #fff;
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.tpo-aa__featured:hover {
	box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35);
}
.tpo-aa__featured-media {
	display: block;
	overflow: hidden;
	min-height: 0;
	background: var(--tpo-aa-soft);
}
.tpo-root.tpo-aa .tpo-aa__featured-media img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.3s ease;
}
.tpo-aa__featured:hover .tpo-aa__featured-media img {
	transform: scale(1.04);
}
.tpo-aa__featured-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 40px 44px;
}
.tpo-aa__featured-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.8125rem;
	color: var(--tpo-aa-muted);
}
.tpo-aa__badge {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tpo-aa-soft);
	font-weight: 600;
	color: var(--tpo-aa-accent);
}
.tpo-root.tpo-aa .tpo-aa__featured-title {
	margin: 0;
	font-family: var(--tpo-aa-font-head);
	font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
	font-weight: 700;
	line-height: 1.35;
}
.tpo-aa__featured-title a {
	color: var(--tpo-aa-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}
.tpo-aa__featured-title a:hover {
	color: var(--tpo-aa-accent);
}
.tpo-aa__featured-text {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--tpo-aa-muted);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.tpo-root.tpo-aa a.tpo-aa__featured-btn {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	width: auto;
	margin: 6px 0 0;
	padding: 12px 24px;
	border-radius: 999px;
	background: var(--tpo-aa-accent);
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.9375rem;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.tpo-aa__featured-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}
.tpo-aa__featured-btn:hover svg {
	transform: translateX(4px);
}

/* —— Grid / status / empty / pager —— */
.tpo-aa__grid .tpo-articles__list {
	gap: 24px;
}
.tpo-aa__status {
	margin: -12px 0 0;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.9375rem;
	color: var(--tpo-aa-muted);
}
.tpo-aa__clear {
	margin-left: 8px;
	color: var(--tpo-aa-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tpo-aa__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 56px 24px;
	border: 1px dashed var(--tpo-aa-line);
	border-radius: 24px;
	text-align: center;
}
.tpo-root.tpo-aa a.tpo-aa__clear-btn {
	width: auto;
	padding: 10px 22px;
	border-radius: 999px;
	background: var(--tpo-aa-accent);
	font-family: var(--tpo-aa-font-ui);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
}
.tpo-aa .tpo-pager {
	justify-content: center;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
	.tpo-aa__featured {
		grid-template-columns: 1fr;
		height: auto;
	}
	.tpo-aa__featured-media {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}
	.tpo-aa__featured-body {
		padding: 28px 32px;
	}
}

@media (max-width: 767px) {
	.tpo-aa__shell {
		gap: 24px;
	}
	.tpo-root.tpo-aa .tpo-aa__shell > .tpo-aa__crumbs {
		margin-bottom: calc(var(--tpo-aa-crumb-space, 12px) - 24px);
	}
	.tpo-aa__head {
		padding: 28px 22px;
		border-radius: 20px;
	}
	.tpo-aa__toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.tpo-aa__chips {
		flex-wrap: nowrap;
		margin: 0 -16px;
		padding: 0 16px 4px;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tpo-aa__chips::-webkit-scrollbar {
		display: none;
	}
	.tpo-root.tpo-aa a.tpo-aa__chip {
		flex: none;
	}
	.tpo-aa__search {
		flex-basis: auto;
		width: 100%;
		max-width: none;
		margin-left: 0;
	}
	.tpo-root.tpo-aa .tpo-aa__search-input {
		font-size: 16px;
	}
	.tpo-aa__featured {
		border-radius: 18px;
	}
	.tpo-aa__featured-body {
		padding: 22px 20px 24px;
	}
	.tpo-root.tpo-aa a.tpo-aa__featured-btn {
		align-self: stretch;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpo-aa__featured-media img,
	.tpo-aa__featured-btn svg {
		transition: none;
	}
}

/* —— Head count, featured trip row —— */
.tpo-aa__count {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	vertical-align: middle;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.8125rem;
	font-weight: 600;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.tpo-aa__trip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	font-family: var(--tpo-aa-font-ui);
	font-size: 0.875rem;
	color: var(--tpo-aa-ink);
}
.tpo-aa__trip-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.tpo-aa__trip svg {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--tpo-aa-accent);
}
.tpo-root.tpo-aa .tpo-aa__featured-title {
	font-size: clamp(1.375rem, 1.05rem + 1vw, 2rem);
}

