/* Terrain360 journey block (single entries, analyses, place pages). v2.20.0
 * .t360j--hero: full-bleed variant used as the masthead on place pages. */

.t360j-inner { min-width: 0; }

.t360j--hero {
	border-radius: 0;
	margin: 0;
	padding: 2rem clamp(1rem, 4vw, 3rem) 1.6rem;
	box-shadow: none;
}
.t360j--hero .t360j-inner { max-width: 1240px; margin: 0 auto; }
.t360j--hero .t360j-title { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.t360j--hero .t360j-tile { width: 152px; }
.t360j--hero .t360j-thumb img { width: 152px; height: 152px; }

.t360j {
	margin: 2.25rem 0;
	background: #221610;
	border-radius: 12px;
	padding: 1.5rem 1.5rem 1.25rem;
	color: #f4ece1;
	box-shadow: 0 10px 30px rgba(44, 24, 16, 0.25);
}
.t360j-eyebrow {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #c9a227;
	margin: 0 0 0.35rem;
}
.t360j-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.55rem;
	line-height: 1.2;
	color: #faf6ed;
	margin: 0 0 0.4rem;
}
.t360j-meta {
	font-size: 0.82rem;
	color: rgba(244, 236, 225, 0.75);
	margin: 0 0 1rem;
}
.t360j-disclose {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: rgba(244, 236, 225, 0.55);
	font-style: italic;
}

/* Viewer frame */
.t360j-viewer {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}
.t360j-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.t360j-viewer iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.t360j-enter {
	position: absolute;
	inset: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: linear-gradient(rgba(20, 12, 8, 0.15), rgba(20, 12, 8, 0.55));
	border: 0;
	cursor: pointer;
	color: #faf6ed;
	transition: background 0.25s;
}
.t360j-enter:hover,
.t360j-enter:focus-visible { background: linear-gradient(rgba(20, 12, 8, 0.05), rgba(20, 12, 8, 0.45)); }
.t360j-roundel {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: rgba(250, 246, 237, 0.94);
	color: #221610;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s;
}
.t360j-enter:hover .t360j-roundel { transform: scale(1.06); }
.t360j-enter-label { font-weight: 600; font-size: 1rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }
.t360j-enter-hint { font-size: 0.75rem; color: rgba(250, 246, 237, 0.8); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }

/* Journey strip */
.t360j-strip {
	display: flex;
	gap: 0.6rem;
	overflow-x: auto;
	padding: 1rem 0 0.5rem;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 39, 0.5) transparent;
}
.t360j-tile {
	position: relative;
	flex: 0 0 auto;
	width: 132px;
	text-decoration: none;
	scroll-snap-align: start;
}
.t360j-thumb {
	position: relative;
	display: block;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s, transform 0.2s;
}
.t360j-thumb img {
	width: 132px;
	height: 132px;
	object-fit: cover;
	display: block;
	transition: transform 0.35s;
}
.t360j-tile:hover .t360j-thumb img { transform: scale(1.07); }
.t360j-tile:hover .t360j-thumb,
.t360j-tile:focus-visible .t360j-thumb { border-color: #c9a227; }
.t360j-tile.is-active .t360j-thumb { border-color: #c9a227; box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35); }
.t360j-spin {
	position: absolute;
	right: 6px;
	bottom: 6px;
	font-size: 0.62rem;
	font-weight: 700;
	background: rgba(20, 12, 8, 0.75);
	color: #f4ece1;
	padding: 0.15rem 0.4rem;
	border-radius: 999px;
}
.t360j-num {
	display: block;
	margin-top: 0.3rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #c9a227;
}
.t360j-tile.is-anchor .t360j-num::after { content: ' · tagged location'; color: rgba(244, 236, 225, 0.6); font-weight: 400; letter-spacing: 0; }
.t360j-anchor-dot { display: none; }
.t360j-striplabel {
	font-size: 0.72rem;
	color: rgba(244, 236, 225, 0.55);
	margin: 0.1rem 0 0;
}

.t360j-foot {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin-top: 0.9rem;
	padding-top: 0.9rem;
	border-top: 1px solid rgba(244, 236, 225, 0.12);
}
.t360j-foot a {
	color: #c9a227;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}
.t360j-foot a:hover { color: #e6c14a; text-decoration: underline; }

/* Compact nearest-capture / fallback card (light, sits on parchment) */
.t360j-nearcard {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: 1.75rem 0;
	padding: 0.9rem 1.15rem;
	background: #f4ece1;
	border: 1px solid rgba(184, 115, 51, 0.3);
	border-radius: 10px;
}
.t360j-nearcard > i { font-size: 1.4rem; color: #b87333; }
.t360j-nearcard strong { display: block; color: #2C1810; font-size: 0.92rem; }
.t360j-nearcard span { display: block; color: #5a3a20; font-size: 0.8rem; margin-top: 0.1rem; }
.t360j-nearcard > a {
	margin-left: auto;
	white-space: nowrap;
	color: #b87333;
	font-weight: 600;
	font-size: 0.85rem;
	text-decoration: none;
}
.t360j-nearcard > a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.t360j { padding: 1.1rem 1rem 1rem; border-radius: 10px; }
	.t360j--hero { border-radius: 0; margin: 0; }
	.t360j-title { font-size: 1.3rem; }
	.t360j-roundel { width: 68px; height: 68px; font-size: 1rem; }
	.t360j-tile { width: 108px; }
	.t360j-thumb img { width: 108px; height: 108px; }
	.t360j-nearcard { flex-wrap: wrap; }
	.t360j-nearcard > a { margin-left: 0; }
}
