/*
 * The guest space (spec 30). Colours, corners and the font come from the theme stylesheet built for the company
 * (/embeddings/<id>/theme.css: spec 04 RE-WLB-12, RE-WLB-13, then the embedding's own settings, 29 RE-EMB-03):
 * --guest-background, -surface, -text, -muted, -accent, -on_accent, -border, -soft, -header, -on_header, -footer,
 * -on_footer, -radius (cards), -radius_small (buttons, fields), -radius_pill (badges), -spacing, -font.
 * Status colours are fixed. Sides are logical, so the layout mirrors for Arabic.
 */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
	margin: 0; min-height: 100vh; display: flex; flex-direction: column;
	background: var(--guest-background, #F5EFE8); color: var(--guest-text, #111827);
	font-family: var(--guest-font, system-ui, sans-serif); font-size: 15px; line-height: 1.6;
}
a { color: inherit; text-underline-offset: 5px; }
button, input { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--guest-accent); outline-offset: 4px; }
.skip { position: absolute; inset-inline-start: 20px; top: -80px; background: var(--guest-surface); padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header and footer: bands in the company's colours */
.guest-header {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 12px 5%;
	background: var(--guest-header, var(--guest-surface)); color: var(--guest-on_header, var(--guest-text));
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; font-weight: 600; font-size: 17px; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The link back to the company's website (30 RE-GST-08); the arrow points back in either direction */
.guest-back__arrow { margin-inline-end: 6px; }
[dir="rtl"] .guest-back__arrow { display: inline-block; transform: scaleX(-1); }
.brand img { max-width: 200px; max-height: 44px; display: block; }
.guest-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.guest-nav > a, .guest-nav > span { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.guest-nav form { margin: 0; }
.guest-nav .quiet {
	color: inherit; border: 1px solid currentColor; border-radius: var(--guest-radius_small, 8px); padding: 7px 14px;
	opacity: 0.9;
}
.guest-footer { margin-top: auto; background: var(--guest-footer, transparent); color: var(--guest-on_footer, var(--guest-muted)); }
.guest-footer__inner { max-width: 1240px; margin: auto; padding: 20px 5%; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.guest-powered { font-size: 12px; opacity: .8; }
.guest-powered a { color: inherit; text-decoration: none; }
.guest-powered a:hover { text-decoration: underline; }

/* Page */
.guest-main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 44px 5% 64px; flex: 1 0 auto; }
.guest-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; font-size: 14px; }
.guest-toolbar a { text-decoration: none; }
.guest-toolbar form { margin: 0; }
.quiet { border: 0; background: none; color: var(--guest-muted); padding: 8px; }
.eyebrow { margin: 0; font-size: 14px; color: var(--guest-muted); }
.page-heading { margin: 0 0 32px; }
.page-heading--stay { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-heading h1, .sign-in h1 {
	font-size: clamp(32px, 4.5vw, 54px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.08; margin: 10px 0 14px;
}
.page-heading p:not(.eyebrow), .intro { color: var(--guest-muted); max-width: 560px; margin: 0; font-size: 17px; }
h2 { font-size: 21px; font-weight: 500; line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 600; margin: 10px 0 4px; }

/* Tabs and stay cards */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--guest-border); margin-bottom: 28px; }
.tabs a { padding: 12px 0; text-decoration: none; color: var(--guest-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current] { border-color: var(--guest-text); color: var(--guest-text); font-weight: 600; }
.stay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stay-card {
	display: flex; flex-direction: column; border: 1px solid var(--guest-border); background: var(--guest-surface);
	border-radius: var(--guest-radius); overflow: hidden; text-decoration: none; transition: transform .25s;
}
.stay-card:hover { transform: translateY(-3px); }
.card-art {
	display: grid; place-items: center; width: 100%; height: 200px; object-fit: cover;
	background: linear-gradient(135deg, var(--guest-accent), var(--guest-text)); color: var(--guest-on_accent);
}
.card-art span { font-size: 90px; font-family: Georgia, serif; opacity: .4; }
.card-content { padding: 18px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-content h2 { margin: 0; font-size: 21px; }
.card-content p { margin: 0; color: var(--guest-muted); }
.card-bottom {
	border-top: 1px solid var(--guest-border); padding-top: 12px; margin-top: 6px; display: flex; justify-content: space-between;
	gap: 12px; font-size: 14px; color: var(--guest-muted);
}
.card-bottom span:last-child { color: var(--guest-text); font-weight: 600; }

/* Status badges: fixed colours, never branded */
.badge {
	display: inline-block; align-self: flex-start; border-radius: var(--guest-radius_pill, 999px); padding: 4px 11px;
	font-size: 12px; font-weight: 600; color: #3F453D; background: var(--guest-soft, #E9EADE);
}
.badge--confirmed { color: #7A5410; background: #F5EBD3; }
.badge--paid, .badge--checked_in { color: #2E6B3A; background: #E3EEDD; }
.badge--declined, .badge--expired, .badge--cancelled { color: #9A2B2B; background: #F5E0DC; }

/* A stay */
.stay-cover { display: block; width: 100%; height: clamp(180px, 30vw, 320px); object-fit: cover; border-radius: var(--guest-radius); margin-block-end: 14px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 18px; }
.panel {
	background: var(--guest-surface); border: 1px solid var(--guest-border); border-radius: var(--guest-radius);
	padding: var(--guest-spacing, 24px); margin-bottom: 20px;
}
.panel > p { margin: 0 0 8px; color: var(--guest-text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.facts span, .facts small { display: block; color: var(--guest-muted); font-size: 13px; }
.facts strong { display: block; font-weight: 600; font-size: 16px; }
.money-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--guest-border); font-size: 15px; }
.money-row small { display: block; color: var(--guest-muted); font-size: 13px; }
.money-row.total { font-size: 20px; margin: 4px 0 16px; border: 0; }
.primary {
	display: block; width: 100%; background: var(--guest-accent); color: var(--guest-on_accent); border: 1px solid transparent;
	border-radius: var(--guest-radius_small, var(--guest-radius)); padding: 15px 22px; font-weight: 600; text-decoration: none;
	text-align: center; transition: filter .2s;
}
.primary:hover { filter: brightness(1.12); }
.fine { font-size: 13px; color: var(--guest-muted); margin: 14px 0 0; }
.fine--due { color: #7A5410; font-weight: 600; }
.notice { background: var(--guest-soft, var(--guest-background)); border-radius: var(--guest-radius_small, 8px); padding: 16px 18px; margin: 20px 0; font-size: 15px; }
.notice h2 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.notice p { margin: 0; }
.text-link { font-weight: 500; }

/* Sign-in: a centred column, or the company's sign-in image beside it */
.sign-in { max-width: 460px; margin: 24px auto 48px; }
.guest-main--split { max-width: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guest-main--split .sign-in { align-self: center; width: 100%; padding: 48px 5%; margin: 0 auto; max-width: 540px; }
.sign-in-art { min-height: 560px; }
.sign-in-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-form { margin-top: 28px; }
.login-form > label { display: block; font-size: 14px; font-weight: 500; }
.login-form input[type=email] {
	display: block; width: 100%; background: var(--guest-surface); border: 1px solid var(--guest-border);
	border-radius: var(--guest-radius_small, var(--guest-radius)); color: var(--guest-text); padding: 14px; margin: 8px 0 16px;
}
.login-form .check { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--guest-accent); }
.terms { margin: 18px 0 12px; font-size: 14px; }
.terms summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.terms__text { max-height: 280px; overflow-y: auto; padding: 4px 2px; color: var(--guest-muted); }
.terms__text a { color: var(--guest-accent); }
.quote .check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; font-size: 14px; }
.quote .check input { flex: none; margin-top: 2px; }
.agreement { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 0; font-size: 14px; }
.agreement dt { color: var(--guest-muted); }
.agreement dd { margin: 0; overflow-wrap: anywhere; }
.address { display: block; margin: 0 0 14px; font-size: 14px; }
.address span { display: block; margin-bottom: 6px; font-weight: 600; }
.address textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1px solid var(--guest-border); border-radius: var(--guest-radius_small, 8px); background: var(--guest-background); color: inherit; }
.empty { grid-column: 1 / -1; padding: 40px 0; max-width: 550px; }
.empty p { color: var(--guest-muted); }
.pagination { display: flex; gap: 28px; justify-content: center; margin-top: 28px; }
html { scrollbar-width: thin; scrollbar-color: var(--guest-border) var(--guest-background); }

/* Embedded in a website: no header or footer, the page sizes itself */
html.guest-embedded { overflow-y: hidden; }
body[data-embedded="true"] { min-height: 0; display: flow-root; }
body[data-embedded="true"] .guest-main { min-height: 0; padding-top: 24px; }
body[data-embedded="true"] .guest-footer { display: none; }
.guest-preview-mobile { max-width: 390px; margin: auto; }
.guest-preview-mobile .stay-grid { grid-template-columns: 1fr; }

@media (max-width: 700px) {
	.guest-header { min-height: 64px; padding: 8px 4%; }
	.brand img { max-width: 150px; max-height: 34px; }
	.brand__name { font-size: 15px; max-width: 38vw; }
	.guest-nav { gap: 12px; font-size: 13px; }
	.guest-nav > span { display: none; }
	.guest-main { padding: 24px 5% 40px; }
	.stay-grid, .detail-grid { grid-template-columns: 1fr; }
	.detail-grid .quote { order: -1; }
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.guest-footer__inner { flex-direction: column; gap: 4px; }
	.tabs { gap: 22px; }
	.card-art { height: 180px; }
	.guest-main--split { grid-template-columns: 1fr; }
	.sign-in-art { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
