/* =========================================================================
 * TSF Reviews — single-review layout
 * All rules are scoped under .tsf-review so nothing leaks into the theme.
 * Dark theme matching the CMO PDF concept and the archive cards.
 * ===================================================================== */

.tsf-review {
	--tsfrv-bg: #0e0e0e;
	--tsfrv-panel: #1a1a1a;
	--tsfrv-border: #333;
	--tsfrv-red: #e10600;
	--tsfrv-red-bright: #ff0000;
	--tsfrv-text: #e8e8e8;
	--tsfrv-muted: #9a9a9a;

	max-width: 1000px;
	margin: 0 auto;
	padding: 10px 16px 40px;
	color: var(--tsfrv-text);
	font-size: 16px;
	line-height: 1.6;
	box-sizing: border-box;
}

.tsf-review *,
.tsf-review *::before,
.tsf-review *::after {
	box-sizing: border-box;
}

.tsf-review img {
	max-width: 100%;
	height: auto;
}

/* ── Section shell + red rule heading ─────────────────────────────────── */
.tsf-review__section {
	margin: 34px 0 0;
	padding-top: 24px;
	border-top: 2px solid var(--tsfrv-red);
}

.tsf-review__section-title {
	margin: 0 0 16px;
	color: var(--tsfrv-red-bright);
	font-size: 1.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	line-height: 1.15;
}

/* ── Header band ──────────────────────────────────────────────────────── */
.tsf-review__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	padding: 8px 0 4px;
}

.tsf-review__logo {
	flex: 0 0 auto;
	max-width: 200px;
}

.tsf-review__logo img {
	max-height: 160px;
	object-fit: contain;
}

.tsf-review__header-main {
	flex: 1 1 320px;
	min-width: 0;
}

.tsf-review__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 2.4rem;
	font-weight: 900;
	line-height: 1.1;
	text-transform: uppercase;
}

.tsf-review__final-score {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--tsfrv-red-bright);
	text-transform: uppercase;
}

.tsf-review__final-score-num {
	font-size: 2rem;
}

.tsf-review__final-score-max {
	font-size: 1rem;
	color: var(--tsfrv-muted);
}

.tsf-review__meta {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tsf-review__address a {
	color: var(--tsfrv-text);
	text-decoration: none;
}

.tsf-review__address a:hover {
	color: var(--tsfrv-red-bright);
}

.tsf-review__pin {
	margin-right: 4px;
}

.tsf-review__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tsf-review__badge {
	display: inline-block;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ddd;
	background: #222;
	border: 1px solid #444;
	border-radius: 12px;
}

.tsf-review__badge--primary {
	color: #fff;
	background: rgba(225, 6, 0, 0.18);
	border-color: var(--tsfrv-red);
}

.tsf-review__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.tsf-review__link img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	transition: transform 0.15s ease;
}

.tsf-review__link:hover img {
	transform: scale(1.12);
}

/* ── Quick Facts ──────────────────────────────────────────────────────── */
.tsf-review__facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.tsf-review__fact {
	background: var(--tsfrv-panel);
	border: 1px solid var(--tsfrv-border);
	border-radius: 8px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tsf-review__fact-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--tsfrv-red-bright);
}

.tsf-review__fact-value {
	font-size: 1.15rem;
	font-weight: 700;
	color: #fff;
}

/* ── Summary ──────────────────────────────────────────────────────────── */
.tsf-review__summary-body p {
	margin: 0 0 1em;
}

.tsf-review__summary-body :last-child {
	margin-bottom: 0;
}

/* ── Category sections ────────────────────────────────────────────────── */
.tsf-review__cat-title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.tsf-review__cat-score {
	color: #fff;
	font-size: 1.4rem;
	font-weight: 800;
}

.tsf-review__cat-score::before {
	content: ": ";
	color: var(--tsfrv-muted);
}

.tsf-review__cat-content {
	margin-bottom: 12px;
}

.tsf-review__cat-content p {
	margin: 0 0 1em;
}

.tsf-review__cat-content :last-child {
	margin-bottom: 0;
}

/* Read Full Category expander */
.tsf-review__expand {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	padding: 8px 16px;
	background: transparent;
	color: var(--tsfrv-red-bright);
	border: 1px solid var(--tsfrv-red);
	border-radius: 6px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tsf-review__expand:hover {
	background: rgba(225, 6, 0, 0.12);
}

.tsf-review__chevron {
	transition: transform 0.2s ease;
}

.tsf-review__expand[aria-expanded="true"] .tsf-review__chevron {
	transform: rotate(180deg);
}

.tsf-review__cat-detail {
	margin-top: 16px;
	padding: 16px;
	background: var(--tsfrv-panel);
	border: 1px solid var(--tsfrv-border);
	border-radius: 8px;
}

.tsf-review__explanation {
	margin-bottom: 14px;
}

.tsf-review__explanation-q {
	font-weight: 700;
	color: #fff;
}

.tsf-review__explanation-a {
	color: var(--tsfrv-muted);
}

.tsf-review__questions {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}

.tsf-review__q-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-bottom: 1px solid #2a2a2a;
}

.tsf-review__q-score {
	color: var(--tsfrv-red-bright);
	font-weight: 700;
	white-space: nowrap;
}

/* Galleries */
.tsf-review__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.tsf-review__gallery-item {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	cursor: zoom-in;
	line-height: 0;
}

.tsf-review__gallery-img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.tsf-review__gallery-item:hover .tsf-review__gallery-img {
	transform: scale(1.05);
}

/* ── Know Before You Go ───────────────────────────────────────────────── */
.tsf-review__kbyg-list {
	columns: 2;
	column-gap: 32px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.tsf-review__kbyg-list li {
	break-inside: avoid;
	padding: 6px 0 6px 22px;
	position: relative;
	text-transform: uppercase;
	font-size: 0.9rem;
	letter-spacing: 0.4px;
}

.tsf-review__kbyg-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 13px;
	width: 8px;
	height: 8px;
	background: var(--tsfrv-red);
	border-radius: 50%;
}

/* ── Walkthrough video ────────────────────────────────────────────────── */
.tsf-review__video {
	position: relative;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
}

.tsf-review__video iframe,
.tsf-review__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 8px;
}

/* ── Scream Scores ────────────────────────────────────────────────────── */
.tsf-review__scream-list {
	margin: 0;
	padding-left: 22px;
}

.tsf-review__scream-name {
	color: #ff6600;
	font-weight: 700;
}

.tsf-review__scream-val {
	color: #fff;
}

/* ── Nearby reviewed haunts ───────────────────────────────────────────── */
.tsf-review__nearby-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.tsf-review__nearby-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 16px;
	background: var(--tsfrv-panel);
	border: 1px solid var(--tsfrv-border);
	border-radius: 10px;
	text-decoration: none;
	color: var(--tsfrv-text);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.tsf-review__nearby-card:hover {
	transform: translateY(-4px);
	border-color: var(--tsfrv-red);
}

.tsf-review__nearby-logo-wrap {
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsf-review__nearby-logo {
	max-height: 90px;
	object-fit: contain;
}

.tsf-review__nearby-name {
	font-weight: 700;
	color: #fff;
}

.tsf-review__nearby-loc {
	font-size: 0.8rem;
	color: var(--tsfrv-muted);
	text-transform: uppercase;
}

.tsf-review__nearby-score {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--tsfrv-red-bright);
}

.tsf-review__nearby-score span {
	font-size: 0.75rem;
	color: var(--tsfrv-muted);
}

.tsf-review__nearby-score em {
	font-size: 0.8rem;
	color: var(--tsfrv-muted);
	font-style: normal;
}

/* ── Attribution ──────────────────────────────────────────────────────── */
.tsf-review__attribution {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.95rem;
	color: var(--tsfrv-muted);
}

.tsf-review__attr-logo {
	max-height: 44px;
	width: auto;
	vertical-align: middle;
}

.tsf-review__attr-text a {
	color: var(--tsfrv-red-bright);
	text-decoration: none;
}

/* ── Lightbox (injected by JS) ────────────────────────────────────────── */
.tsf-review-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	padding: 24px;
}

.tsf-review-lightbox[hidden] {
	display: none;
}

.tsf-review-lightbox__img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	border-radius: 4px;
}

.tsf-review-lightbox__btn {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border: none;
	font-size: 2rem;
	line-height: 1;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tsf-review-lightbox__btn:hover {
	background: var(--tsfrv-red);
}

.tsf-review-lightbox__close {
	top: 20px;
	right: 20px;
}

.tsf-review-lightbox__prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}

.tsf-review-lightbox__next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.tsf-review__header {
		flex-direction: column;
		text-align: center;
	}

	.tsf-review__meta {
		align-items: center;
	}

	.tsf-review__title {
		font-size: 1.9rem;
	}

	.tsf-review__kbyg-list {
		columns: 1;
	}

	.tsf-review-lightbox__prev {
		left: 8px;
	}

	.tsf-review-lightbox__next {
		right: 8px;
	}
}
