/* Room Offers — customer page */

:root {
	--ro-navy: #12263a;
	--ro-navy-2: #1c3a58;
	--ro-paper: #edeff2;
	--ro-white: #ffffff;
	--ro-ink: #1b2a41;
	--ro-muted: #5b6675;
	--ro-line: #d9dee5;
	--ro-line-soft: #e8ecf1;
	--ro-action: #1d5fd1;
	--ro-good: #177245;
	--ro-good-bg: #e6f4ec;
	--ro-amber: #b7791f;
	--ro-amber-bg: #fbf1dc;
	--ro-amber-light: #f6c15b;
	--ro-radius: 14px;
	--ro-font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.ro-body {
	margin: 0;
	font-family: var(--ro-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ro-ink);
	background: var(--ro-paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: var(--ro-action); }
:focus-visible { outline: 3px solid var(--ro-action); outline-offset: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.2; }
ul { list-style: none; margin: 0; padding: 0; }
.ro-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
svg { width: 1em; height: 1em; flex: none; }

/* Agent bar */
.ro-agentbar {
	position: sticky; top: 0; z-index: 30;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	padding: 8px 20px;
	background: #fff4d6; color: var(--ro-navy);
	font-size: 0.85rem; font-weight: 600;
}
.ro-agentbar a { color: var(--ro-navy); }

/* Hero */
.ro-hero {
	background: var(--ro-navy);
	color: #fff;
	padding: 24px 0 30px;
}
.ro-hero-top {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	margin-bottom: 28px;
}
.ro-brand { display: flex; align-items: center; min-height: 36px; }
.ro-brand img { max-height: 40px; width: auto; }
.ro-brand span { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }

.ro-deadline {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 14px 8px 12px;
	border: 1px solid rgba(255,255,255,0.22);
	background: rgba(255,255,255,0.07);
	border-radius: 999px;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.85);
}
.ro-deadline svg { font-size: 18px; color: var(--ro-amber-light); }
.ro-deadline-text { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ro-countdown {
	font-weight: 800; color: #fff;
	font-variant-numeric: tabular-nums;
	min-width: 5ch;
}

.ro-greeting { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.78); margin-bottom: 6px; }
.ro-title {
	font-size: clamp(1.55rem, 1rem + 2.2vw, 2.35rem);
	letter-spacing: -0.02em;
	max-width: 26ch;
}
.ro-hotel-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.ro-stars { display: inline-flex; gap: 2px; color: var(--ro-amber-light); font-size: 14px; }

.ro-stay { display: flex; flex-wrap: wrap; row-gap: 12px; margin-top: 22px; }
.ro-stay li { display: flex; flex-direction: column; padding: 0 20px 0 0; margin-right: 20px; border-right: 1px solid rgba(255,255,255,0.18); }
.ro-stay li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ro-stay-k { font-size: 0.75rem; color: rgba(255,255,255,0.62); font-weight: 600; }
.ro-stay-v { font-weight: 700; font-size: 1rem; white-space: nowrap; }

/* Sticky countdown */
.ro-sticky {
	position: fixed; top: 0; left: 0; right: 0; z-index: 25;
	background: var(--ro-navy); color: #fff;
	font-size: 0.85rem;
	transform: translateY(-100%);
	transition: transform 0.25s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.ro-sticky .ro-wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.ro-sticky svg { font-size: 16px; color: var(--ro-amber-light); }
.ro-sticky.is-visible { transform: translateY(0); }
.ro-body.has-agentbar .ro-sticky { display: none; }

/* Main */
.ro-main { padding: 28px 0 56px; }
.ro-intro { font-size: 1rem; color: var(--ro-ink); max-width: 68ch; margin-bottom: 24px; }

.ro-banner {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 16px 18px; border-radius: var(--ro-radius);
	margin-bottom: 20px;
	border: 1px solid transparent;
}
.ro-banner strong { display: block; font-size: 1.02rem; }
.ro-banner span { font-size: 0.92rem; }
.ro-banner-expired { background: var(--ro-amber-bg); border-color: #f0d9a6; color: #6b4a0f; flex-direction: column; gap: 2px; }
.ro-banner-booked { background: var(--ro-good-bg); border-color: #bfe3cd; color: #0f4d2e; }
.ro-banner-booked svg { font-size: 30px; color: var(--ro-good); margin-top: 2px; }
.ro-banner-closed { background: #fff; border-color: var(--ro-line); color: var(--ro-ink); flex-direction: column; gap: 2px; }

.ro-empty { background: #fff; border: 1px dashed var(--ro-line); border-radius: var(--ro-radius); padding: 40px 24px; text-align: center; color: var(--ro-muted); }

/* Cards */
.ro-cards { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) {
	.ro-cards-2, .ro-cards-3 { grid-template-columns: repeat(2, 1fr); }
	.ro-cards-1 { max-width: 440px; }
}
@media (min-width: 980px) {
	.ro-cards-3 { grid-template-columns: repeat(3, 1fr); }
	.ro-cards-2 { max-width: 780px; }
}

.ro-card {
	background: var(--ro-white);
	border: 1px solid var(--ro-line);
	border-radius: var(--ro-radius);
	overflow: hidden;
	display: flex; flex-direction: column;
}

/* Gallery */
.ro-gallery {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ro-line-soft);
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
}
.ro-gallery-track {
	display: flex; height: 100%;
	transition: transform 0.3s ease;
	will-change: transform;
}
.ro-gallery-track img { width: 100%; height: 100%; flex: none; object-fit: cover; }
.ro-gallery-placeholder {
	height: 100%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #dfe4ea, #eef1f5);
	color: #a9b3bf; font-size: 44px;
}
.ro-gallery-btn {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border-radius: 50%;
	border: 0; background: rgba(255,255,255,0.92); color: var(--ro-navy);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; font-size: 18px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	opacity: 0; transition: opacity 0.15s ease;
}
.ro-gallery-prev { left: 10px; }
.ro-gallery-next { right: 10px; }
.ro-gallery:hover .ro-gallery-btn,
.ro-gallery:focus-within .ro-gallery-btn,
.ro-gallery:focus .ro-gallery-btn { opacity: 1; }
@media (hover: none) { .ro-gallery-btn { opacity: 1; } }
.ro-gallery-btn:disabled { opacity: 0 !important; pointer-events: none; }
.ro-gallery-count {
	position: absolute; right: 10px; bottom: 10px;
	padding: 3px 9px; border-radius: 999px;
	background: rgba(18,38,58,0.78); color: #fff;
	font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ro-badge {
	position: absolute; left: 10px; top: 10px;
	padding: 5px 10px; border-radius: 8px;
	background: var(--ro-navy); color: #fff;
	font-size: 0.75rem; font-weight: 700;
}

/* Card body */
.ro-card-body { padding: 16px 18px 12px; }
.ro-room-name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.ro-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.ro-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--ro-muted); font-weight: 600; }
.ro-facts svg { font-size: 17px; color: #8a94a3; }
.ro-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ro-amenities li {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 9px; border-radius: 7px;
	background: var(--ro-paper); color: var(--ro-ink);
	font-size: 0.8rem; font-weight: 600;
}
.ro-amenities svg { font-size: 14px; color: var(--ro-good); }
.ro-details-link {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 12px; padding: 0;
	background: none; border: 0; cursor: pointer;
	color: var(--ro-action); font-weight: 700; font-size: 0.875rem;
	text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.ro-details-link svg { font-size: 16px; }

/* Rates */
.ro-rates { margin-top: auto; border-top: 1px solid var(--ro-line-soft); }
.ro-rate { padding: 16px 18px; border-top: 1px solid var(--ro-line-soft); }
.ro-rate:first-child { border-top: 0; }
.ro-rate-row { display: flex; justify-content: space-between; gap: 14px; }
.ro-rate-info { min-width: 0; flex: 1 1 auto; }
.ro-rate-label { display: flex; align-items: flex-start; gap: 6px; font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.ro-rate-label svg { font-size: 17px; color: #8a94a3; margin-top: 1px; }
.ro-rate-good { color: var(--ro-good); }
.ro-rate-good svg { color: var(--ro-good); }
.ro-rate-sub { font-size: 0.8rem; color: var(--ro-muted); margin-top: 2px; }
.ro-rate-note { font-size: 0.8rem; color: var(--ro-ink); font-weight: 600; margin-top: 6px; }
.ro-rate-price { text-align: right; flex: 0 0 auto; max-width: 52%; display: flex; flex-direction: column; align-items: flex-end; }
.ro-nightly { font-size: 0.8rem; color: var(--ro-muted); font-weight: 600; }
.ro-total { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ro-total s { font-size: 0.95rem; font-weight: 600; color: var(--ro-muted); margin-right: 5px; letter-spacing: 0; }
.ro-total-note { font-size: 0.72rem; color: var(--ro-muted); margin-top: 2px; }
.ro-save { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--ro-good-bg); color: var(--ro-good); font-size: 0.75rem; font-weight: 700; }

.ro-book {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; margin-top: 14px;
	padding: 13px 16px; border-radius: 10px;
	background: var(--ro-action); color: #fff;
	font-weight: 800; font-size: 1rem; text-decoration: none;
	transition: filter 0.15s ease, transform 0.05s ease;
}
.ro-book svg { font-size: 17px; opacity: 0.85; }
.ro-book:hover { filter: brightness(1.08); }
.ro-book:active { transform: translateY(1px); }
.ro-book.is-sending { pointer-events: none; opacity: 0.7; }
.ro-book-off { background: #e4e8ee; color: var(--ro-muted); cursor: default; font-weight: 700; }
.ro-book-off:hover { filter: none; }

.ro-more-rates {
	width: 100%; padding: 12px 18px;
	background: none; border: 0; border-top: 1px dashed var(--ro-line);
	color: var(--ro-action); font-weight: 700; font-size: 0.875rem; cursor: pointer;
}

/* Footer */
.ro-foot { margin-top: 44px; text-align: center; }
.ro-foot-note { color: var(--ro-ink); font-weight: 600; margin-bottom: 14px; }
.ro-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ro-contact a {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 16px; border-radius: 999px;
	background: #fff; border: 1px solid var(--ro-line);
	color: var(--ro-navy); font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.ro-contact svg { font-size: 18px; color: var(--ro-navy-2); }
.ro-fine { font-size: 0.78rem; color: var(--ro-muted); max-width: 62ch; margin: 18px auto 0; }
.ro-fine + .ro-fine { margin-top: 8px; }
.ro-fine-brand { font-weight: 600; }

/* Dialog */
.ro-dialog {
	width: min(760px, calc(100% - 28px));
	max-height: min(88vh, 900px);
	border: 0; border-radius: 16px; padding: 0;
	background: #fff; color: var(--ro-ink);
	box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.ro-dialog[open] { display: flex; flex-direction: column; }
.ro-dialog::backdrop { background: rgba(18,38,58,0.62); }
.ro-dialog-body { overflow: auto; -webkit-overflow-scrolling: touch; }
.ro-dialog-close {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0;
	background: var(--ro-paper); color: var(--ro-navy);
	display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}
.ro-dialog-body { padding: 24px; }
.ro-dialog-head { padding-right: 44px; }
.ro-dialog-head h2 { font-size: 1.35rem; letter-spacing: -0.015em; }
.ro-dialog-head .ro-facts { margin-top: 8px; }
.ro-dialog-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.ro-dialog-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--ro-line-soft); }
.ro-dialog-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ro-dialog h3 { font-size: 0.95rem; font-weight: 800; margin-top: 22px; margin-bottom: 8px; }
.ro-dialog-amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; }
.ro-dialog-amenities li { font-size: 0.9rem; padding-left: 18px; position: relative; }
.ro-dialog-amenities li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--ro-good); }
.ro-dialog-text { font-size: 0.95rem; color: var(--ro-ink); }
.ro-dialog-text p { margin: 0 0 10px; }
.ro-dialog-text p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
	.ro-hero { padding-top: 16px; }
	.ro-hero-top { margin-bottom: 22px; }
	.ro-deadline { padding: 7px 12px 7px 10px; font-size: 0.8rem; }
	.ro-stay li { margin-right: 14px; padding-right: 14px; }
	.ro-dialog-body { padding: 18px; }
	.ro-dialog-amenities { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.ro-gallery-track, .ro-sticky, .ro-book { transition: none; }
}

@media print {
	.ro-sticky, .ro-agentbar, .ro-gallery-btn, .ro-details-link, .ro-more-rates { display: none !important; }
	.ro-hero { background: #fff; color: #000; border-bottom: 2px solid #000; }
	.ro-hero .ro-stay-k, .ro-hero .ro-greeting, .ro-hero .ro-hotel-meta { color: #333; }
	.ro-cards { display: block; }
	.ro-card { break-inside: avoid; margin-bottom: 16px; }
	.ro-rate-extra[hidden] { display: block !important; }
}
