/*
 * Room detail modal (assets/js/design-room-modal.js).
 *
 * Lives inside .teledom-design wrapper on the home page (declared in
 * template-home.php). Selectors NOT scoped under .teledom-design — kept
 * as-is for parity with .hall-modal which is appended to body root by JS.
 */

.room-modal {
	position: fixed;
	inset: 0;
	background: rgba(13, 13, 13, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 200;
	padding: 30px;
	backdrop-filter: blur(8px);
}

.room-modal.open {
	display: flex;
	animation: teledom-fade-in 0.3s var(--ease);
}

@keyframes teledom-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.room-modal .box {
	background: var(--paper);
	border-radius: var(--r-lg);
	max-width: 780px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.room-modal .close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 0;
	cursor: pointer;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Hide the text "×" glyph (kept for accessibility); draw a clean X via
	 * the two pseudo-elements below — pixel-perfect across fonts. */
	font-size: 0;
	color: transparent;
	transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.room-modal .close::before,
.room-modal .close::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 2px;
	background: var(--ink);
	border-radius: 1px;
	transition: background 0.25s var(--ease);
}

.room-modal .close::before { transform: rotate(45deg); }
.room-modal .close::after  { transform: rotate(-45deg); }

.room-modal .close:hover {
	background: var(--ink);
	transform: rotate(90deg);
}

.room-modal .close:hover::before,
.room-modal .close:hover::after {
	background: #fff;
}

.room-modal .hero-img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.room-modal .body {
	padding: 40px 50px 50px;
}

.room-modal h3 {
	font-family: var(--display);
	font-weight: 400;
	font-size: 36px;
	margin: 0 0 8px;
	color: var(--ink);
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.room-modal .price {
	font-family: var(--display);
	font-size: 26px;
	color: var(--green);
	margin-bottom: 20px;
}

.room-modal .specs {
	display: flex;
	gap: 30px;
	padding: 18px 0;
	border-top: 1px solid var(--line-light);
	border-bottom: 1px solid var(--line-light);
	margin: 20px 0;
}

.room-modal .specs > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.room-modal .specs .l {
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--muted);
}

.room-modal .specs .v {
	font-family: var(--display);
	font-size: 20px;
	color: var(--ink);
}

.room-modal .features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 24px;
	list-style: none;
	padding: 0;
	margin: 20px 0 30px;
	font-size: 14px;
}

.room-modal .features li {
	padding: 6px 0 6px 22px;
	position: relative;
	color: var(--ink-2);
}

.room-modal .features li::before {
	content: "→";
	position: absolute;
	left: 0;
	top: 6px;
	color: var(--green);
}
