/*  ReBBu Unified Web: the design system of the website of both hotels.
    Colours: night (header and panels), sky (the page, like the hotel view), classic green, modern violet, ReBBu gold.
    Type: Ubuntu, the font of the modern client, in bold for headings and buttons. Shape: smooth panels with round
    corners and a soft shadow on the sky; buttons with a darker lower edge, like the hotels' buttons, pressed in on a
    click. Classes start with "uw-" so they never meet the old styles. */

@font-face { font-family: "Ubuntu"; src: url(../fonts/ubuntu.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url(../fonts/ubuntu-medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url(../fonts/ubuntu-bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
	--uw-night: #151c2b;
	--uw-panel: #1f2840;
	--uw-panel-raised: #28334f;
	--uw-line: #33405e;
	--uw-text: #eef2fb;
	--uw-muted: #a3b3cf;
	--uw-link: #6fc0ff;
	--uw-sky: #86c8e8;
	--uw-sky-deep: #5ea9d4;
	--uw-classic-green: #4caf3f;
	--uw-classic-dark: #2f7a25;
	--uw-modern-purple: #a052df;
	--uw-modern-dark: #6c2dab;
	--uw-gold: #ffc21a;
	--uw-ember: #ff8a14;
	--uw-danger: #e5484d;
	--uw-ok: #46c37b;
	--uw-font-display: "Ubuntu", "Segoe UI", Roboto, sans-serif;
	--uw-font: "Ubuntu", "Segoe UI", Roboto, sans-serif;
	--uw-radius: 18px;
	--uw-radius-small: 12px;
	--uw-shadow: 0 14px 34px rgba(12, 26, 52, .28), 0 2px 6px rgba(12, 26, 52, .18);
	/* room: a wide page, a side gutter that grows with the screen, space inside and between the panels */
	--uw-width: 1480px;
	--uw-gutter: clamp(16px, 3.4vw, 48px);
	--uw-gap: 32px;
	--uw-pad: 32px;
	--uw-pad-top: 28px;
	/* the designable area of personal and group pages: the page width less the gutters and the frame */
	--uw-canvas: 1326px;
}
@media (max-width: 760px) {
	:root { --uw-gap: 20px; --uw-pad: 20px; --uw-pad-top: 18px; }
}

/* page ------------------------------------------------------------------------------------------------------------ */

body.uw-page {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--uw-sky) url(../img/bg/pattern.png) repeat;
	color: var(--uw-text);
	font: 400 16px/1.6 var(--uw-font);
	-webkit-font-smoothing: antialiased;
}

/* the page's blocks may be narrower than their widest content (wide old tables scroll inside their box) */
body.uw-page > * { min-width: 0; }

/* links without the browser's underline: the link blue in medium weight, brighter while pointed at (lowest
   specificity, so buttons and components keep their own weight); not on the page a user designed (#mypage-bg),
   whose widgets keep their old look */
.uw-page a:where(:not(#mypage-bg, #mypage-bg *)) { color: var(--uw-link); }
.uw-page a:where(:not(#mypage-bg, #mypage-bg *)):hover { color: #b3ddff; }
:where(.uw-page) a:where(:not(#mypage-bg, #mypage-bg *)) { font-weight: 500; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
/* form fields take the design's font (browsers give them their own); not on the page a user designed */
.uw-page :is(input, textarea, select, button):where(:not(#mypage-bg, #mypage-bg *)) { font-family: var(--uw-font); }
.uw-page :focus-visible { outline: 3px solid var(--uw-gold); outline-offset: 2px; }

.uw-main {
	flex: 1 0 auto;
	width: 100%;
	max-width: var(--uw-width);
	margin: 0 auto;
	padding: 48px var(--uw-gutter) 80px var(--uw-gutter);
	box-sizing: border-box;
}

.uw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.uw-h1, .uw-h2, .uw-h3 { font-family: var(--uw-font-display); font-weight: 700; margin: 0; }
.uw-h1 { font-size: 50px; line-height: 1.1; letter-spacing: -.01em; }
.uw-h2 { font-size: 18px; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; }
.uw-h3 { font-size: 17px; line-height: 1.3; }
.uw-lead { font-size: 20px; line-height: 1.5; color: var(--uw-muted); margin: 12px 0 0 0; }
.uw-muted { color: var(--uw-muted); }

/* header ---------------------------------------------------------------------------------------------------------- */

.uw-header { background: var(--uw-night); box-shadow: 0 4px 18px rgba(8, 14, 28, .35); position: relative; z-index: 20; }
.uw-header-inner { max-width: var(--uw-width); margin: 0 auto; padding: 0 var(--uw-gutter); display: flex; align-items: center; gap: 36px; min-height: 84px; box-sizing: border-box; }
.uw-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.uw-brand img { display: block; }

.uw-nav { display: flex; gap: 2px; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; }
.uw-nav a { display: block; padding: 10px 16px; color: #e3e9f5; text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 10px; }
.uw-page .uw-nav a { color: #e3e9f5; }
.uw-page .uw-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.uw-page .uw-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 -3px 0 var(--uw-gold); }

.uw-account { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; white-space: nowrap; justify-content: flex-end; }
.uw-account-name { color: var(--uw-text); }
.uw-account-sep { width: 1px; height: 20px; background: var(--uw-line); }
.uw-account form { margin: 0; }
/* the account's links (log out, to the website) as quiet pills like the sub navigation */
.uw-account > a:not(.uw-button) { padding: 7px 15px; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .06); }
.uw-page .uw-account > a:not(.uw-button) { color: #e3e9f5; }
.uw-page .uw-account > a:not(.uw-button):hover { color: #fff; background: rgba(255, 255, 255, .12); }

.uw-subnav { background: rgba(21, 28, 43, .88); border-top: 1px solid rgba(255, 255, 255, .05); }
.uw-subnav ul { max-width: var(--uw-width); margin: 0 auto; padding: 8px var(--uw-gutter); display: flex; gap: 4px; list-style: none; box-sizing: border-box; flex-wrap: wrap; }
.uw-subnav a { display: block; padding: 7px 15px; color: var(--uw-muted); text-decoration: none; font-size: 14px; border-radius: 999px; }
.uw-page .uw-subnav a { color: var(--uw-muted); }
.uw-page .uw-subnav a:hover { color: var(--uw-text); background: rgba(255, 255, 255, .06); }
.uw-page .uw-subnav a[aria-current="page"] { color: #fff; background: var(--uw-panel-raised); }

/* online state: one pill per hotel */
.uw-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.uw-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; font-size: 13px; background: var(--uw-panel-raised); color: var(--uw-text); border-radius: 999px; white-space: nowrap; }
/* the mark of a state: a floor tile of the hotels, in the state's colour */
.uw-chip::before { content: ""; flex: none; width: 14px; height: 8px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: var(--uw-muted); }
/* tags everywhere as on the dashboard: "#tag" in white on a coloured pill, the five colours in turn (blue, red, pink,
   green, orange; each at least 5:1 with the white), all of one size. */
.uw-tag-cloud { list-style: none; margin: 0 0 20px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.uw-tag-cloud a { display: inline-block; padding: 4px 12px 5px 12px; border-radius: 999px; background: #2a6fb3; font-size: 14px; font-weight: 500; line-height: 1.4; }
.uw-tag-cloud li:nth-child(5n+2) a { background: #c8433f; }
.uw-tag-cloud li:nth-child(5n+3) a { background: #b6409a; }
.uw-tag-cloud li:nth-child(5n+4) a { background: #2e7d34; }
.uw-tag-cloud li:nth-child(5n+5) a { background: #a85a0c; }
.uw-page .uw-tag-cloud a { color: #fff; }
.uw-page .uw-tag-cloud a:hover { color: #ffe08a; }
/* segments: pill tabs between the views of one page or the pages of one area */
.uw-segments { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--uw-night); padding: 4px; border-radius: 999px; }
.uw-segments a { padding: 5px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--uw-muted); }
.uw-page .uw-segments a { color: var(--uw-muted); }
.uw-page .uw-segments a[aria-current="page"] { background: var(--uw-panel-raised); color: #fff; }
.uw-chip-classic::before { background: var(--uw-classic-green); }
.uw-chip-modern::before { background: var(--uw-modern-purple); }

/* panels ---------------------------------------------------------------------------------------------------------- */

.uw-panel { background: var(--uw-panel); border-radius: var(--uw-radius); box-shadow: var(--uw-shadow); border: 1px solid rgba(255, 255, 255, .05); padding: var(--uw-pad-top) var(--uw-pad) var(--uw-pad) var(--uw-pad); }
.uw-panel-title { display: flex; align-items: center; gap: 12px; margin: -2px calc(-1 * var(--uw-pad)) 22px calc(-1 * var(--uw-pad)); padding: 0 var(--uw-pad) 18px var(--uw-pad); border-bottom: 1px solid var(--uw-line); }
.uw-panel-title .uw-h2 { flex: 1; }
.uw-panel-title a { font-size: 14px; }
.uw-panel + .uw-panel { margin-top: var(--uw-gap); }
.uw-empty { color: var(--uw-muted); margin: 4px 0; }

/* buttons: a darker lower edge, pressed in on a click */
.uw-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px 15px 26px; border: 0; cursor: pointer;
	font: 700 16px/1.2 var(--uw-font-display); letter-spacing: .04em; text-transform: uppercase; color: #fff; text-decoration: none;
	background: var(--uw-panel-raised); border-radius: var(--uw-radius-small); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .22), 0 6px 14px rgba(8, 18, 38, .25);
	transition: transform .06s ease-out, box-shadow .06s ease-out; }
.uw-page a.uw-button { color: #fff; }
.uw-button:hover { filter: brightness(1.07); }
.uw-button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .22), inset 0 2px 0 rgba(255, 255, 255, .15), 0 3px 8px rgba(8, 18, 38, .25); }
/* the hotel buttons a shade deeper than the hotels' colours, so the white text stays readable (4.8:1 and 5.7:1) */
.uw-button-classic { background: linear-gradient(to bottom, #2f8226, #276d1f); }
.uw-button-modern { background: linear-gradient(to bottom, #8a3fd0, #7432b8); }
.uw-button-gold { background: linear-gradient(to bottom, #ffd24d, var(--uw-gold)); color: #3a2600; }
.uw-page a.uw-button-gold { color: #3a2600; }
.uw-button-small { font-size: 13px; padding: 7px 14px 9px 14px; letter-spacing: .03em; }
.uw-button-quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--uw-line); text-transform: none; letter-spacing: 0; font-weight: 500; }
.uw-button[disabled] { opacity: .5; cursor: default; }

/* forms */
.uw-field { display: block; margin: 0 0 20px 0; }
.uw-field > span { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; color: var(--uw-muted); }
.uw-input { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid var(--uw-line); border-radius: 12px; background: var(--uw-night); color: var(--uw-text); font: 400 16px var(--uw-font); }
.uw-input:focus { border-color: var(--uw-link); box-shadow: 0 0 0 3px rgba(111, 192, 255, .25); outline: none; }
.uw-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--uw-muted); }

/* messages */
.uw-note { padding: 16px 20px; margin: 0 0 var(--uw-gap) 0; background: var(--uw-panel); border-radius: var(--uw-radius-small); box-shadow: var(--uw-shadow); border-left: 5px solid var(--uw-link); }
.uw-note-ok { border-left-color: var(--uw-ok); }
.uw-note-error { border-left-color: var(--uw-danger); }

/* footer ---------------------------------------------------------------------------------------------------------- */

.uw-footer { flex: none; background: var(--uw-night); color: var(--uw-muted); font-size: 13px; }
.uw-footer-inner { max-width: var(--uw-width); margin: 0 auto; padding: 36px var(--uw-gutter); display: flex; gap: 24px; flex-wrap: wrap; align-items: center; box-sizing: border-box; }
.uw-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.uw-page .uw-footer a { color: var(--uw-muted); }
.uw-page .uw-footer a:hover { color: var(--uw-text); }
.uw-footer-brand { font: 700 14px/1 var(--uw-font-display); color: var(--uw-text); text-transform: uppercase; letter-spacing: .04em; }
.uw-footer-legal { flex-basis: 100%; margin: 0; font-size: 12px; opacity: .75; }

/* narrow screens --------------------------------------------------------------------------------------------------- */

/* the online pills leave the header first (the launcher and the start page show them too) */
@media (max-width: 1440px) {
	.uw-header .uw-chips { display: none; }
	.uw-nav a { padding-left: 11px; padding-right: 11px; }
}
/* without the script (assets/js/nav.js) the header wraps on small screens */
@media (max-width: 960px) {
	.uw-header-inner { flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; padding-bottom: 12px; }
	.uw-nav { flex-wrap: wrap; }
	.uw-account { margin-left: 0; justify-content: flex-start; flex-basis: 100%; }
	.uw-h1 { font-size: 32px; }
}

/* phones and small tablets: the header is a bar with the logo, for guests the way to an account, and the menu button;
   it slides away while the page scrolls down. The area's pages are one row to swipe through. The menu is a drawer
   from the right (includes/unified_menu.php). nav.js marks the page with .uw-js. */
.uw-menu-button, .uw-header-cta { display: none; }
@media (max-width: 960px) {
	.uw-js .uw-header { position: sticky; top: 0; transition: transform .25s ease; }
	.uw-js .uw-header-away { transform: translateY(-100%); }
	.uw-js .uw-header-inner { flex-wrap: nowrap; gap: 10px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
	.uw-js .uw-header-inner > nav, .uw-js .uw-header-inner > .uw-account, .uw-js .uw-hk-label { display: none; }
	.uw-js .uw-brand img { width: 92px; height: auto; }
	.uw-js .uw-header-cta { display: inline-flex; margin-left: auto; }
	.uw-js .uw-menu-button { display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-left: auto; padding: 0; border: 0; border-radius: 12px;
		background: var(--uw-panel-raised); color: #fff; cursor: pointer; }
	.uw-js .uw-header-cta + .uw-menu-button { margin-left: 0; }
	.uw-subnav ul { flex-wrap: nowrap; overflow-x: auto; position: relative; padding-top: 6px; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
	.uw-subnav ul::-webkit-scrollbar { display: none; }
	.uw-subnav li { flex: none; }
	.uw-subnav a { padding: 8px 15px; white-space: nowrap; }
}
/* three bars */
.uw-menu-icon, .uw-menu-icon::before, .uw-menu-icon::after { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; }
.uw-menu-icon { position: relative; }
.uw-menu-icon::before, .uw-menu-icon::after { content: ""; position: absolute; left: 0; }
.uw-menu-icon::before { top: -7px; }
.uw-menu-icon::after { top: 7px; }

.uw-drawer { position: fixed; inset: 0; z-index: 100; }
.uw-drawer[hidden] { display: none; }
.uw-drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 28, .6); opacity: 0; transition: opacity .25s ease; }
.uw-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 20px; width: min(360px, 88vw); box-sizing: border-box;
	padding: 14px 20px 28px 20px; overflow-y: auto; overscroll-behavior: contain; background: var(--uw-panel); box-shadow: -14px 0 36px rgba(8, 14, 28, .45);
	transform: translateX(100%); transition: transform .25s ease; }
.uw-drawer-open .uw-drawer-backdrop { opacity: 1; }
.uw-drawer-open .uw-drawer-panel { transform: none; }
html.uw-drawer-shown { overflow: hidden; }
.uw-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.uw-drawer-title { font: 700 20px/1 var(--uw-font-display); color: var(--uw-text); }
.uw-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--uw-panel-raised); color: var(--uw-text); cursor: pointer; }
.uw-drawer-account { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.uw-drawer-name { padding: 14px 16px; border-radius: var(--uw-radius-small); background: var(--uw-night); font-weight: 500; color: var(--uw-text); }
.uw-drawer-nav ul { list-style: none; margin: 0; padding: 0; }
.uw-drawer-nav > ul > li + li { border-top: 1px solid var(--uw-line); }
.uw-drawer-nav summary, .uw-page .uw-drawer-link { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 4px;
	font: 700 18px/1.2 var(--uw-font-display); color: var(--uw-text); cursor: pointer; list-style: none; }
.uw-drawer-nav summary::-webkit-details-marker { display: none; }
/* the arrow of an area: down when closed, up when open */
.uw-drawer-nav summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border: solid var(--uw-muted); border-width: 0 2.5px 2.5px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.uw-drawer-nav details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.uw-drawer-nav details ul { display: grid; gap: 2px; padding: 0 0 14px 0; }
.uw-page .uw-drawer-nav details a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 16px; color: var(--uw-muted); }
.uw-page .uw-drawer-nav details a:hover { color: var(--uw-text); background: rgba(255, 255, 255, .05); }
.uw-page .uw-drawer-nav a[aria-current="page"] { color: #fff; background: var(--uw-panel-raised); box-shadow: inset 3px 0 0 var(--uw-gold); }
.uw-drawer-foot { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.uw-header .uw-drawer-foot .uw-chips { display: flex; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	.uw-button, .uw-js .uw-header, .uw-drawer-backdrop, .uw-drawer-panel, .uw-drawer-nav summary::after { transition: none; }
}
