/*
 * Single Room — styling aligned with the Sand & Ember homepage aesthetic.
 * Uses global CSS variables from style.css (--sd-brand, --sd-font-heading, etc.)
 */

/* ── Page background ─────────────────────────────────────────── */

.single-sd_room body {
	background: #fdf8f0;
}

/* Lift the header above the fixed room background image */
.single-sd_room header.site-header {
	position: relative;
	z-index: 1;
}

/* ── Fixed blurred BG image ──────────────────────────────────── */

.sd-room-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-size: cover;
	background-position: center;
	opacity: 0.12;
	filter: grayscale(1) contrast(1.05) saturate(0.6);
}

.sd-room-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(253, 248, 240, 0.72);
}

/* ── Hero banner ─────────────────────────────────────────────── */

.sd-room-hero {
	position: relative;
	width: 100%;
	height: clamp(280px, 40vw, 520px);
	overflow: hidden;
	margin-bottom: 0;
}

.sd-room-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.sd-room-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		160deg,
		rgba(20, 12, 4, 0.18) 0%,
		rgba(20, 12, 4, 0.55) 100%
	);
}

.sd-room-hero__title {
	position: absolute;
	bottom: 36px;
	left: 0;
	right: 0;
	/* Align with .wrap (max-width 1100px, 20px side padding) */
	padding-left: max(20px, calc((100% - 1100px) / 2 + 20px));
	padding-right: max(20px, calc((100% - 1100px) / 2 + 20px));
	font-family: var(--sd-font-heading);
	font-size: clamp(2rem, 5vw, 3.8rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	text-transform: uppercase;
	color: #fff;
	margin: 0;
	line-height: 1.0;
	text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* ── Page layout ─────────────────────────────────────────────── */

.sd-room-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: start;
	position: relative;
	z-index: 1;
	padding-top: 48px;
}

@media (min-width: 960px) {
	.sd-room-layout {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 48px;
	}
}

.sd-room-layout__polaroids {
	position: relative;
}

/* ── Room content typography ─────────────────────────────────── */

.sd-room-layout__content h1,
.sd-room-layout__content h2,
.sd-room-layout__content h3 {
	font-family: var(--sd-font-heading);
	letter-spacing: -0.03em;
}

/* Hide the default post title — rendered in the hero instead */
.sd-room-layout__content .entry-title {
	display: none;
}

.sd-room-layout__content .entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--sd-text);
}

.sd-room-layout__content .entry-content a {
	color: var(--sd-brand);
}

/* ── Featured image (below content) ─────────────────────────── */

.sd-room-featured {
	margin: 28px 0 0;
}

.sd-room-featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}

/* ── Divider ─────────────────────────────────────────────────── */

.sd-divider {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	margin: 56px 0;
}

/* ── "Other Rooms" section ───────────────────────────────────── */

.sd-other-rooms {
	padding-bottom: 64px;
}

.sd-other-rooms__heading {
	font-family: var(--sd-font-heading);
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	text-transform: uppercase;
	color: var(--sd-heading);
	margin: 0 0 28px;
}
