/* ─── Expedition Grid ────────────────────────────────────────────────────── */

.eg-wrap {
	color: #f0ede8;
	font-family: inherit;
	box-sizing: border-box;
}

/* ─── Filter pills ───────────────────────────────────────────────────────── */

.eg-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 1.25rem;
	scrollbar-width: none;
}

.eg-filters::-webkit-scrollbar { display: none; }

.eg-pill {
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.30);
	color: rgba(255, 255, 255, 0.45);
	font-size: 16px;
	font-family: inherit;
	padding: 6px 18px;
	border-radius: 30px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: border-color 0.18s, color 0.18s, background 0.18s;
	line-height: 1;
}

.eg-pill:hover {
	border-color: #ff720d;
	color: #ff720d;
}

.eg-pill.eg-pill--active {
	background: #ff720d;
	border-color: #ff720d;
	color: #fff;
}

/* ─── Count row ──────────────────────────────────────────────────────────── */

.eg-count-row {
	margin: 0 0 1rem;
	padding: 0;
}

.eg-count {
	font-size: 12px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* ─── Grid ───────────────────────────────────────────────────────────────── */

/* Mobile first: 1 column */
.eg-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* Tablet: 2 columns */
@media (min-width: 600px) {
	.eg-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
	.eg-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

/* ─── Card ───────────────────────────────────────────────────────────────── */

.eg-card {
	background: #111;
	border: 1px solid #1e1e1e;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.25s ease;
	will-change: transform;
}

.eg-card:hover {
	border-color: #ff720d;
	transform: translateY(-4px);
}

/* Hidden when filtered out */
.eg-card[hidden] { display: none; }

/* Sold-out — desaturate image */
.eg-card--sold-out .eg-card__thumb img {
	filter: grayscale(50%);
	opacity: 0.6;
}

/* ─── Thumbnail ──────────────────────────────────────────────────────────── */

.eg-card__thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #161616;
	flex-shrink: 0;
}

.eg-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.eg-card:hover .eg-card__thumb img {
	transform: scale(1.06);
}

/* Gradient scrim — stronger at bottom so meta bar text reads clearly */
.eg-card__thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.04) 0%,
		rgba(0, 0, 0, 0.18) 45%,
		rgba(0, 0, 0, 0.72) 100%
	);
	pointer-events: none;
}

/* ─── Top pills row (location + sold-out) ───────────────────────────────── */

.eg-img-pills {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 2;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 6px;
	pointer-events: none;
}

.eg-img-pill {
	font-size: 12px;
	line-height: 1.5;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 0.5px solid rgba(255, 255, 255, 0.12);
	background: rgba(0, 0, 0, 0.5);
	color: rgba(255, 255, 255, 0.85);
	letter-spacing: 0.04em;
}

.eg-img-pill--location {
	background: rgba(0, 0, 0, 0.5);
	border-color: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.85);
	margin-left: auto;
}

.eg-img-pill--sold {
	background: rgba(140, 20, 20, 0.6);
	border-color: rgba(255, 70, 70, 0.3);
	color: #ff9090;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 12px;
}

.eg-img-pill--spots {
	background: rgba(15, 100, 50, 0.65);
	border-color: rgba(60, 200, 100, 0.35);
	color: #7ee8a2;
	font-weight: 600;
	font-size: 12px;
}

.eg-img-pill--spots-low {
	background: rgba(180, 80, 0, 0.65);
	border-color: rgba(255, 140, 30, 0.4);
	color: #ffb366;
	font-weight: 600;
	font-size: 12px;
}

/* ─── Bottom meta bar: grade + duration + peak ───────────────────────────── */

.eg-img-meta {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	pointer-events: none;
	flex-wrap: wrap;
}

.eg-img-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #ffffff;
	white-space: nowrap;
	letter-spacing: 0.02em;
	line-height: 1;
	padding-bottom: 10px;
}

/* ─── Thumbnail placeholder ──────────────────────────────────────────────── */

.eg-thumb-ph {
	width: 100%;
	height: 100%;
	background: #161616;
}

/* ─── Card body ──────────────────────────────────────────────────────────── */

.eg-card__body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 9px;
}

/* Title */
.eg-card__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}

.eg-card__title a {
	color: #f0ede8;
	text-decoration: none;
	transition: color 0.15s;
}

.eg-card__title a:hover {
	color: #ff720d;
}

/* Meta row: duration + peak */
.eg-card__meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.eg-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: #555;
	line-height: 1;
}

/* Excerpt */
.eg-card__excerpt {
	font-size: 12.5px;
	color: rgb(255, 255, 255, 0.65);
	line-height: 1.5;
	margin-bottom: 20px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Next date */
.eg-card__date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: rgb(255, 255, 255, 0.65);
}

.eg-card__date strong {
	color: #ff720d;
	font-weight: 500;
}

/* ─── Card footer ────────────────────────────────────────────────────────── */

.eg-card__footer {
	margin-top: auto;
	padding-top: 12px;
	border-top: 0.5px solid #1d1d1d;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.eg-card__left {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

/* Price */
.eg-card__price {
	font-size: 15px;
	font-weight: 700;
	color: #f0ede8;
	line-height: 1;
}

.eg-card__price .woocommerce-Price-amount,
.eg-card__price bdi {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.eg-card__price ins {
	text-decoration: none;
}

/* Seats */
.eg-card__seats {
	font-size: 10.5px;
	color: #444;
	line-height: 1;
}

.eg-card__seats--none {
	color: #6b2020;
}

/* CTA button */
.eg-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 500;
	color: #fff;
	background: #ff720d;
	border-radius: 8px;
	padding: 8px 16px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s, gap 0.15s;
}

.eg-card__cta:hover {
	background: #e06000;
	gap: 8px;
}

.eg-card__cta--disabled {
	background: #1e1e1e;
	color: #3a3a3a;
	cursor: default;
	pointer-events: none;
}

/* ─── Mobile: stack footer vertically on very small screens ─────────────── */

@media (max-width: 380px) {
	.eg-card__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.eg-card__cta {
		width: 100%;
		justify-content: center;
	}
}

/* ─── Filter transition ──────────────────────────────────────────────────── */

.eg-card {
	animation: eg-fade-in 0.22s ease both;
}

@keyframes eg-fade-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─── No results ─────────────────────────────────────────────────────────── */

.eg-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #333;
	font-size: 13px;
	padding: 3.5rem 0;
	margin: 0;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.eg-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.eg-pg-btn {
	background: none !important;
	border: 1px solid rgba(255, 255, 255, 0.30);
	color: #555;
	font-size: 12px;
	font-family: inherit;
	padding: 7px 16px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
	transition: border-color 0.15s, color 0.15s;
}

.eg-pg-btn:hover:not([disabled]):not(.eg-pg-btn--active) {
	border-color: #ff720d;
	color: #ff720d;
}

.eg-pg-btn.eg-pg-btn--active {
	border-color: #ff720d;
	color: #ff720d;
}

.eg-pg-btn[disabled] {
	opacity: 0.5;
	cursor: default;
	pointer-events: none;
}

.eg-pg-sep {
	font-size: 12px;
	color: #2a2a2a;
}
