/*
 * Rumvisning.
 *
 * A real stylesheet rather than an inline <style>, because the shortcode can be
 * rendered more than once per request — an excerpt or meta-description pass runs
 * do_shortcode and throws the result away — and a print-once static guard then
 * spends the CSS on output nobody sees. Enqueueing is immune to that.
 *
 * The tabs deliberately match the AR button: same inherited font, same 6px/20px
 * box, same 2px border and 3px radius. Two controls that do the same kind of job
 * on the same page should not look like they came from different plugins.
 */

.ofir-room { margin: 0 0 1em; }

.ofir-room__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: .4em;
	margin-bottom: .75em;
}

.ofir-room__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	font-family: inherit;
	font-size: inherit;
	font-weight: 500;
	line-height: 1.7;
	padding: 6px 20px;
	border: 2px solid #252525;
	border-radius: 3px;
	background: transparent;
	color: #252525;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.ofir-room__tab:hover,
.ofir-room__tab:focus-visible { background: #252525; color: #fff; }
.ofir-room__tab:focus-visible { outline: 2px solid #252525; outline-offset: 2px; }
.ofir-room__tab.is-on { background: #252525; color: #fff; }

.ofir-room__stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #efece7 center / cover no-repeat;
}

/* Size and border are both set in JS, from centimetres. */
.ofir-room__art {
	position: absolute;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-color: transparent;
	border-image-repeat: round;
	box-sizing: content-box;
}

.ofir-room__img {
	display: block;
	width: 100%;
	height: 100%;
	background: center / cover no-repeat;
}

.ofir-room__scenes { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .6em; }

.ofir-room__scene {
	font-family: inherit;
	font-size: .8em;
	line-height: 1.6;
	padding: 3px 12px;
	border: 1px solid #cfcac2;
	border-radius: 3px;
	background: transparent;
	color: #252525;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.ofir-room__scene:hover { border-color: #252525; }
.ofir-room__scene.is-on { border-color: #252525; background: #252525; color: #fff; }

.ofir-room__note { margin: .5em 0 0; font-size: .8em; line-height: 1.4; opacity: .7; }
