/* ─── Hike Hub ───────────────────────────────────────────────────────────── */

.hike-hub {
	background: #000000;
	color: #f0ede8;
	font-family: inherit;
	margin: 0 auto;
	box-sizing: border-box;
}


/* ─── Tabs ───────────────────────────────────────────────────────────────── */

.hh-tabs {
	display: flex;
	border-bottom: 0.5px solid #1e1e1e;
	margin-bottom: 1.5rem;
}

.hh-tab {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: rgb(255,255,255,.75);
	font-size: 16px;
    text-transform: uppercase;
	font-family: inherit;
	padding: 10px 4px;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s;
	text-align: center;
}

.hh-tab.hh-tab--active,
.hh-tab:hover {
	color: #ff720d;
	background: none !important;
}

.hh-tab.hh-tab--active {
	border-bottom-color: #ff720d;
}

/* ─── Panes ──────────────────────────────────────────────────────────────── */

.hh-pane         { display: none; }
.hh-pane--active { display: block; }

/* ─── Filter pills ───────────────────────────────────────────────────────── */

.hh-pills {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 1.25rem;
	scrollbar-width: none;
}

.hh-pills::-webkit-scrollbar { display: none; }

.hh-pill {
	background: none !important;
	border: 0.5px solid #252525;
	color: rgb(255,255,255,0.5);
	font-size: 16px;
	font-family: inherit;
	padding: 5px 13px;
	border-radius: 20px;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	transition: all 0.15s;
}

.hh-pill:hover {
	border-color: #ff720d;
	color: #ff720d;
}

.hh-pill.hh-pill--active {
	background: #ff720d;
	border-color: #ff720d;
	color: #fff;
}

.hh-pill-count {
	opacity: 0.75;
	font-size: 13px;
}

/* ─── Section header ─────────────────────────────────────────────────────── */

.hh-divider {
	height: 0.5px;
	background: #181818;
	margin: 0 0 1.25rem;
}

.hh-list-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	margin-bottom: 16px;
	gap: 10px;
}

.hh-list-label {
	font-size: 13px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.hh-list-count {
	font-size: 11px;
	color: #ff720d;
}

/* ─── Card grid ──────────────────────────────────────────────────────────── */

/* Mobile + tablet: 2 columns */
.hh-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

/* Desktop: 3 columns */
@media (min-width: 1025px) {
	.hh-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}


/* ─── Card ───────────────────────────────────────────────────────────────── */

.hh-card {
	background: #1a1a1a;
	border: 0.5px solid #1f1f1f;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.18s;
}

.hh-card:hover {
	border-color: #ff720d !important;
}

/* Thumbnail */
.hh-card-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #161616;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}


/* Card body */
.hh-card-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 10px;
}

.hh-card-cat {
	font-size: 13px;
	color: #ff720d;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 500;
	margin: 0px !important;
}

.hh-card-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	margin-bottom: 15px !important ;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hh-card-title a {
	color: #e0ddd8;
	text-decoration: none;
	transition: color 0.15s;
}

.hh-card-title a:hover {
	color: #fff;
}

.hh-card-excerpt {
	font-size: 13px;
	color: rgb(255,255,255,0.5);
	line-height: 1.45;
	margin-bottom: 15px !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hh-card-more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: #ff720d;
	text-decoration: none;
	text-transform: uppercase;
	margin-top: 2px;
	width: fit-content;
	transition: gap 0.15s;
}

.hh-card-more:hover {
	gap: 8px;
}

/* Card meta: date + author */
.hh-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
	border-top: 0.5px solid rgb(255,255,255,.075);
}

.hh-card-date {
	font-size: 12px;
	color: rgb(255,255,255,.5);
	flex-shrink: 0;
}

.hh-card-author {
	font-size: 12px;
	color: rgb(255,255,255,.5);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 55%;
	text-align: right;
}

/* ─── Image fade-in ──────────────────────────────────────────────────────── */

.hh-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.2s ease;
}

.hh-card-thumb:hover .hh-card-img {
	transform: scale(1.02);
}

.hh-card-img.hh-img--loaded {
	opacity: 1;
}

/* Logo fallback — shown when a post has no featured image.
   Black background so the transparent logo sits on a dark field. */
.hh-thumb-ph {
	width: 100%;
	height: 100%;
	background: #111;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Logo image inside the fallback container */
.hh-thumb-ph-logo {
	width: 48%;
	height: auto;
	object-fit: contain;
	opacity: 0.55;
}

/* ─── Skeleton cards ─────────────────────────────────────────────────────── */

@keyframes hh-shimmer {
	0%   { background-position: -200% 0; }
	100% { background-position:  200% 0; }
}

.hh-skel {
	background: linear-gradient(
		90deg,
		#1e1e1e 25%,
		#2a2a2a 50%,
		#1e1e1e 75%
	);
	background-size: 200% 100%;
	animation: hh-shimmer 1.4s ease infinite;
	border-radius: 4px;
}

.hh-skel--thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.hh-skel--cat    { height: 10px; width: 40%; margin-bottom: 2px; }
.hh-skel--title  { height: 13px; width: 92%; }
.hh-skel--title-short { width: 68%; margin-top: -2px; }
.hh-skel--excerpt { height: 11px; width: 100%; }
.hh-skel--more   { height: 11px; width: 28%; margin-top: 2px; }
.hh-skel--meta   { height: 10px; width: 35%; }

/* ─── State messages ─────────────────────────────────────────────────────── */

.hh-empty,
.hh-error {
	grid-column: 1 / -1;
	text-align: center;
	color: #444;
	font-size: 13px;
	padding: 2.5rem 0;
	margin: 0;
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.hh-pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 1.5rem;
	flex-wrap: wrap;
}

.hh-pg-btn {
	background: none !important;
	border: 0.5px solid rgb(255,255,255,.5);
	color: rgb(255,255,255,.5);
	font-size: 13px;
	font-family: inherit;
	padding: 6px 14px;
	border-radius: 8px;
	cursor: pointer;
	line-height: 1;
	transition: all 0.15s;
}

.hh-pg-btn:hover:not([disabled]):not(.hh-pg-btn--active) {
	border-color: #ffffff;
	color: #ff720d;
}

.hh-pg-btn.hh-pg-btn--active {
	border-color: #ff720d;
	color: #ff720d;
}

.hh-pg-btn[disabled] {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

.hh-pg-sep {
	font-size: 12px;
	color: #333;
}

/* ─── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

.hh-tab {
	font-size: 10px;
	padding: 10px 2px;
}

.hh-pill {
	background: none !important;
	border: 0.5px solid #252525;
	color: rgb(255,255,255,0.5);
	font-size: 12px;
	font-family: inherit;
	padding: 5px 8px;
}

.hh-pill-count {
    font-size: 10px;
}

.hh-grid {
    grid-template-columns: 1fr;
    gap: 12px;
}

}