/* Shared navigation for every public page. It looks the same everywhere, so it sets its own colours
   here and reads nothing from a page's tokens. Do not restyle it from a page's stylesheet. */
/* Pages load Manrope in different ways, and some have no 600 weight, so the links carry their own face to render the same everywhere. */
@font-face { font-family: 'Roomrr Nav'; src: url('../fonts/manrope-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: block; }
@font-face { font-family: 'Roomrr Nav'; src: url('../fonts/manrope-bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Roomrr Nav'; src: url('../fonts/manrope-extrabold.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: block; }
.rr-site-nav, .rr-site-nav * { box-sizing: border-box; }
.rr-site-nav { --rr-ink: #191919; --rr-accent: #ff4400; --rr-on-accent: #fff; --rr-grad: linear-gradient(135deg, #e84b19, #fc9b04); --rr-bar: rgba(255, 255, 255, .74); --rr-glass-2: rgba(255, 255, 255, .62); --rr-edge: rgba(255, 255, 255, .72); --rr-line: rgba(25, 25, 25, .13); --rr-panel: rgba(255, 255, 255, .88); --rr-hover: rgba(25, 25, 25, .07); --rr-shadow: 0 10px 32px rgba(52, 28, 10, .14); }
[data-theme="dark"] .rr-site-nav { --rr-ink: #fff; --rr-accent: #ef8000; --rr-on-accent: #fff; --rr-bar: rgba(24, 20, 18, .74); --rr-glass-2: rgba(24, 20, 18, .55); --rr-edge: rgba(255, 255, 255, .16); --rr-line: rgba(255, 255, 255, .17); --rr-panel: rgba(24, 20, 18, .9); --rr-hover: rgba(255, 255, 255, .12); --rr-shadow: 0 10px 32px rgba(0, 0, 0, .34); }
/* No bar of its own: the logo, the glass pill and the buttons stand on the page, and clicks between them reach it. The header itself must not take a backdrop-filter, which would trap the fixed phone menu inside it. */
.rr-site-nav.navbar, .rr-site-nav.navbar.scrolled {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 12px clamp(12px, 3vw, 40px) 0; margin: 0; width: 100%; max-width: none;
  background: transparent; border: 0; box-shadow: none; color: var(--rr-ink); pointer-events: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  font-family: 'Roomrr Nav', Manrope, sans-serif;
}
/* Once the page has moved, a frosted bar keeps the header readable over whatever passes under it. It is a layer of its own for the reason above, and js/site-nav.js switches it on. */
.rr-site-nav::before { content: ''; position: absolute; inset: 0 0 -10px; z-index: -1; opacity: 0; pointer-events: none; background: var(--rr-bar); border-bottom: 1px solid var(--rr-line); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); transition: opacity .2s ease; }
.rr-site-nav.rr-scrolled::before { opacity: 1; }
.rr-site-nav .rr-nav-inner { position: relative; width: 100%; max-width: 1440px; min-height: 56px; margin: auto; display: flex; align-items: center; gap: 1rem; }
.rr-site-nav .rr-logo, .rr-site-nav .rr-links, .rr-site-nav .rr-actions { pointer-events: auto; }
.rr-site-nav .rr-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; line-height: 1; color: var(--rr-ink); }
.rr-site-nav .rr-logo-letter { font-family: 'Roomrr Nav', Manrope, sans-serif; color: var(--rr-ink); font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; }
.rr-site-nav .rr-logo img { display: block; width: auto; height: 1.4rem; max-width: none; }
.rr-site-nav .rr-links { display: flex; align-items: center; list-style: none; padding: 0; margin: 0 auto; }
.rr-site-nav .rr-links > li:not(.rr-mobile-cta) a { display: flex; align-items: center; gap: .5rem; border-radius: 999px; color: var(--rr-ink); font-family: 'Roomrr Nav', Manrope, sans-serif; font-size: .9375rem; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.rr-site-nav .rr-links svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-site-nav .rr-links > li:not(.rr-mobile-cta) a:hover { color: var(--rr-ink); background: var(--rr-hover); }
.rr-site-nav .rr-links > li:not(.rr-mobile-cta) a[aria-current="page"], .rr-site-nav .rr-links > li:not(.rr-mobile-cta) a[aria-current="page"]:hover { color: var(--rr-on-accent); background: var(--rr-grad); font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 68, 0, .38); }
.rr-site-nav .rr-actions { display: flex; align-items: center; gap: .625rem; }
.rr-site-nav .rr-cta, .rr-site-nav .rr-links .rr-mobile-cta a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border-radius: 999px; padding: 0 1.25rem; color: var(--rr-on-accent); background: var(--rr-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 16px rgba(255, 68, 0, .38); font-family: 'Roomrr Nav', Manrope, sans-serif; font-size: .9rem; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.rr-site-nav .rr-cta:hover, .rr-site-nav .rr-links .rr-mobile-cta a:hover { color: var(--rr-on-accent); filter: brightness(1.06); }
.rr-site-nav .rr-cta svg { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* The theme switch: a round glass button showing the theme it switches to. */
.rr-site-nav .rr-theme { display: inline-flex; position: relative; cursor: pointer; }
.rr-site-nav .rr-theme input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rr-site-nav .rr-track { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rr-edge); border-radius: 50%; background: var(--rr-glass-2); color: var(--rr-ink); box-shadow: var(--rr-shadow); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); transition: background-color .2s ease; }
.rr-site-nav .rr-theme:hover .rr-track { background: var(--rr-hover); }
.rr-site-nav .rr-track svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rr-site-nav .rr-sun, .rr-site-nav .rr-theme input:checked + .rr-track .rr-moon { display: none; }
.rr-site-nav .rr-theme input:checked + .rr-track .rr-sun { display: block; }
.rr-site-nav .rr-menu { display: none; border: 0; padding: 8px; background: transparent; cursor: pointer; color: var(--rr-ink); }
.rr-site-nav .rr-menu span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; margin: 5px 0; }
.rr-site-nav .rr-mobile-cta { display: none; }
.rr-site-nav a:focus-visible, .rr-site-nav button:focus-visible, .rr-site-nav summary:focus-visible, .rr-site-nav input:focus-visible + .rr-track { outline: 2px solid var(--rr-accent); outline-offset: 3px; }
.rr-nav-backdrop { display: none; }
/* Without real blur, or for visitors who ask for less transparency, the glass goes solid so the words stay readable. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rr-site-nav { --rr-bar: #f4f1ec; --rr-glass-2: #f4f1ec; --rr-panel: #fff; }
  [data-theme="dark"] .rr-site-nav { --rr-bar: #2a2522; --rr-glass-2: #2a2522; --rr-panel: #1c1816; }
}
@media (prefers-reduced-transparency: reduce) {
  .rr-site-nav { --rr-bar: #f4f1ec; --rr-glass-2: #f4f1ec; --rr-panel: #fff; }
  [data-theme="dark"] .rr-site-nav { --rr-bar: #2a2522; --rr-glass-2: #2a2522; --rr-panel: #1c1816; }
}
/* The full header needs 1220px to keep the pill centred. Below that it becomes the menu button. Equal side columns keep the pill on the page centre, whatever the width of the logo or buttons. */
@media (min-width: 1220px) {
  .rr-site-nav .rr-nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .rr-site-nav .rr-logo { justify-self: start; }
  .rr-site-nav .rr-actions { justify-self: end; }
  /* The centre pill: the header's one pane of glass. */
  .rr-site-nav .rr-links { padding: 4px; border: 1px solid var(--rr-edge); border-radius: 999px; background: var(--rr-glass-2); box-shadow: var(--rr-shadow), inset 0 1px 0 var(--rr-edge); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
  .rr-site-nav .rr-links > li { position: relative; }
  .rr-site-nav .rr-links > li:not(.rr-mobile-cta) a { padding: .55rem 1rem; font-size: .9rem; }
  .rr-site-nav .rr-links > li:nth-child(n+2):not(.rr-mobile-cta) { margin-left: 9px; }
  .rr-site-nav .rr-links > li:nth-child(n+2):not(.rr-mobile-cta)::before { content: ''; position: absolute; left: -5px; top: 11px; bottom: 11px; width: 1px; background: var(--rr-line); }
}
@media (max-width: 1219px) {
  .rr-site-nav.navbar, .rr-site-nav.navbar.scrolled { padding: 8px 10px 0; }
  .rr-site-nav .rr-nav-inner { gap: .75rem; min-height: 48px; }
  .rr-site-nav .rr-actions { gap: .4rem; margin-left: auto; }
  .rr-site-nav .rr-cta { display: none; }
  .rr-site-nav .rr-track { width: 40px; height: 40px; }
  .rr-site-nav .rr-menu { display: block; position: relative; z-index: 2; width: 40px; height: 40px; padding: 8px; border: 1px solid var(--rr-edge); border-radius: 50%; background: var(--rr-glass-2); box-shadow: var(--rr-shadow); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); }
  .rr-site-nav .rr-menu span { width: 100%; margin: 4px 0; }
  .rr-site-nav .rr-links { display: none; margin: 0; position: fixed; top: 0; right: 0; width: min(300px, 82vw); height: 100vh; height: 100dvh; padding: 5.5rem 1.25rem 1.5rem; background: var(--rr-panel); box-shadow: -8px 0 30px rgba(0,0,0,.15); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); flex-direction: column; align-items: stretch; gap: .25rem; }
  .rr-site-nav .rr-links.is-open { display: flex; }
  .rr-site-nav .rr-links > li:not(.rr-mobile-cta) a { padding: .8rem 1rem; font-size: 1.05rem; }
  .rr-site-nav .rr-mobile-cta { display: block; margin-top: 1rem; }
  .rr-site-nav .rr-links .rr-mobile-cta a { display: flex; justify-content: space-between; }
  .rr-nav-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,.45); }
}
@media (max-width: 420px) {
  .rr-site-nav .rr-logo-letter { font-size: 1.5rem; }
  .rr-site-nav .rr-logo img { height: 1.2rem; }
}
/* Clears the header: 12px above, 56px of it, and room below. */
body.rr-header-in-flow { padding-top: 84px; }
@media (max-width: 1219px) { body.rr-header-in-flow { padding-top: 68px; } }

/* "We're coming to your city soon": js/site-nav.js. Colours carry fallbacks because not
   every page loads css/index.css. */
.rr-soon { position: fixed; inset: 0; width: min(420px, calc(100vw - 32px)); height: fit-content; max-width: none; margin: auto; padding: 36px 28px 28px; border: 0; border-radius: 24px; background: var(--hm-card, var(--bg-card, var(--card, #fff))); color: var(--hm-ink, var(--text, #16140f)); box-shadow: 0 10px 30px rgba(52, 28, 10, .14); font-family: Manrope, sans-serif; text-align: center; }
.rr-soon::backdrop { background: rgba(36, 22, 12, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rr-soon[open] { animation: rr-soon-in .4s cubic-bezier(.3, 0, .15, 1) both; }
.rr-soon h2 { margin: 0 24px 20px; color: inherit; font-family: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.rr-soon__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1.5px solid #ff4400; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.rr-soon__cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px; border-radius: 12px; background: linear-gradient(135deg, #e84b19, #fc9b04); color: #fff; font-size: 1rem; font-weight: 700; text-decoration: none; }
.rr-soon__cta:hover { color: #fff; filter: brightness(1.05); }
.rr-soon__close:focus-visible, .rr-soon__cta:focus-visible { outline: 2px solid #ff4400; outline-offset: 3px; }
@keyframes rr-soon-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .rr-soon[open] { animation: none; } }

/* ── Moving between pages ─────────────────────────────────────────────── */
/* One transition for every page the header links to (Find a home, Find a roommate, Partner with
   us, Contact us, Post a property), kept here because every one of them loads this file. It used
   to live in css/pages.css, which the /rooms/<city> pages do not load, so Find a home was a hard
   reload while the other tabs glided.

   The header holds still and its orange pill glides to the new tab while the page beneath drifts
   across, in the direction the tabs run. An inline script in each page's head sets --rr-from
   (see scripts/rooms-city.template.html). The home page's own tab slide is set apart in
   css/tab-transition.css. Browsers without cross-page view transitions just load the next page. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* Named only during the move: at rest the name would stop the header's glass blurring the page. */
  :root:active-view-transition .rr-site-nav.navbar { view-transition-name: rr-nav; }
  :root:active-view-transition .rr-links a[aria-current="page"] { view-transition-name: rr-pill; }
  :root:active-view-transition main { view-transition-name: rr-main; }

  ::view-transition { background: var(--hm-bg, var(--bg, #fff)); }
  ::view-transition-old(root) { animation: rr-fade-out .16s ease both; }
  ::view-transition-new(root) { animation: rr-fade-in .24s ease both; }
  ::view-transition-group(rr-nav) { animation: none; z-index: 2; }
  ::view-transition-old(rr-nav) { display: none; }
  ::view-transition-new(rr-nav) { animation: none; }
  ::view-transition-group(rr-pill) { z-index: 3; animation-duration: .34s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  ::view-transition-old(rr-pill), ::view-transition-new(rr-pill) { height: 100%; animation-duration: .2s; }
  ::view-transition-group(rr-main) { animation: none; overflow: clip; }
  ::view-transition-image-pair(rr-main) { isolation: auto; }
  ::view-transition-old(rr-main) { animation: rr-page-out .12s cubic-bezier(.4, 0, 1, 1) both; mix-blend-mode: normal; }
  ::view-transition-new(rr-main) { animation: rr-page-in .34s .1s cubic-bezier(.16, 1, .3, 1) both; mix-blend-mode: normal; }
}
@keyframes rr-fade-out { to { opacity: 0; } }
@keyframes rr-fade-in { from { opacity: 0; } }
@keyframes rr-page-out { to { opacity: 0; transform: translateX(calc(var(--rr-from, 1) * -18px)); } }
@keyframes rr-page-in { from { opacity: 0; transform: translateX(calc(var(--rr-from, 1) * 28px)); } }
