/* ==========================================================================
   "Choose Your Room" (template-parts/rooms/room-choice.php).
   Used on the 6 category pages and the 22 course pages. The cards use the Upcoming Dates room styles
   (assets/css/components/stay-gallery.css: .stay-room, green = shared,
   saffron = private). This file adds the soft section background, the
   "10% OFF" ribbon, the course price list and the buttons.
   ========================================================================== */
.room-choice {
	background:
		radial-gradient(circle at 12% 18%, rgba(47, 93, 80, 0.08), transparent 42%),
		radial-gradient(circle at 88% 82%, rgba(217, 138, 61, 0.1), transparent 42%),
		var(--color-bg-alt);
}
.room-choice .stay-room-grid { align-items: stretch; }

/* "10% OFF" ribbon on the shared room photo */
.room-choice-ribbon {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--color-secondary);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	box-shadow: 0 6px 16px rgba(217, 138, 61, 0.4);
	animation: room-choice-pulse 2.6s ease-in-out infinite;
}
@keyframes room-choice-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.07); }
}

/* Course price list */
.room-choice-list-title {
	display: block;
	margin: 0 0 10px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--room-dark);
}
.room-choice-list {
	list-style: none;
	margin: 0 0 22px;
	padding: 6px;
	border-radius: var(--radius-md);
	background: var(--room-tint);
}
.room-choice-list li + li { border-top: 1px dashed rgba(43, 38, 32, 0.12); }
.room-choice-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 12px;
	border-radius: var(--radius-sm);
	color: var(--color-text);
	transition: background 250ms ease, color 250ms ease;
}
.room-choice-list a:hover,
.room-choice-list a:focus-visible { background: var(--color-surface); color: var(--room-dark); outline: none; }
.room-choice-list-name { font-size: 0.92rem; font-weight: 500; min-width: 0; }
.room-choice-list-price { display: inline-flex; align-items: baseline; gap: 8px; flex-shrink: 0; white-space: nowrap; }
.room-choice-list-price del { font-size: 0.8rem; color: var(--color-text-light); opacity: 0.75; }
.room-choice-list-price b { font-family: var(--font-heading); font-size: 1.08rem; color: var(--room-dark); }

/* Buttons: filled in the room's colour + "See dates" link */
.room-choice-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; }
.room-choice .stay-room .room-choice-btn {
	margin-top: 0;
	background: var(--room);
	border-color: var(--room);
	color: #fff;
	box-shadow: 0 8px 20px rgba(43, 38, 32, 0.14);
}
.room-choice .stay-room .room-choice-btn:hover { background: var(--room-dark); border-color: var(--room-dark); color: #fff; transform: translateY(-2px); }
.room-choice-link { font-weight: 600; color: var(--room-dark); }
.room-choice-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
	.room-choice-list a { padding: 10px 8px; }
	.room-choice-list-name { font-size: 0.86rem; }
	.room-choice-list a { flex-wrap: wrap; row-gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.room-choice-ribbon { animation: none; }
	.room-choice .stay-room .room-choice-btn:hover { transform: none; }
}

/* Course pages: this course's price for the room */
.room-choice-deal {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 22px;
	padding: 18px 20px;
	border-radius: var(--radius-md);
	background: var(--room-tint);
	border: 1px dashed var(--room);
}
.room-choice-deal-name { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--room-dark); }
.room-choice-deal-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.room-choice-deal-line strong { font-family: var(--font-heading); font-size: 2rem; line-height: 1.1; color: var(--room-dark); }
.room-choice-deal-line del { font-size: 0.95rem; color: var(--color-text-light); opacity: 0.8; }
.room-choice-deal-line small { font-size: 0.8rem; color: var(--color-text-light); }
.room-choice-deal-save {
	align-self: flex-start;
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--room);
	color: #fff;
	font-size: 0.76rem;
	font-weight: 600;
}
