/* Unified site navigation shared by the app shell, /rent/*, /insights/*, /diorama/*, and generated SEO pages. */
.visually-hidden { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

:root, [data-theme="dark"] {
  --rf-hdr-bg: #090d16;
  --rf-hdr-surface: #111827;
  --rf-hdr-subtle: #1e293b;
  --rf-hdr-border: #243044;
  --rf-hdr-border-strong: #3b4b66;
  --rf-hdr-text: #f8fafc;
  --rf-hdr-muted: #94a3b8;
  --rf-hdr-link: #38bdf8;
  --rf-hdr-link-subtle: rgba(56, 189, 248, 0.14);
  --rf-hdr-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"], [data-theme="light"] {
  --rf-hdr-bg: #f8fafc;
  --rf-hdr-surface: #ffffff;
  --rf-hdr-subtle: #f1f5f9;
  --rf-hdr-border: #e2e8f0;
  --rf-hdr-border-strong: #cbd5e1;
  --rf-hdr-text: #0f172a;
  --rf-hdr-muted: #64748b;
  --rf-hdr-link: #0284c7;
  --rf-hdr-link-subtle: #e0f2fe;
  --rf-hdr-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.rf-site-header {
  position: relative;
  z-index: 40;
  background: var(--rf-hdr-bg);
  color: var(--rf-hdr-text);
  border-bottom: 1px solid var(--rf-hdr-border);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.rf-site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  box-sizing: border-box;
}

.rf-site-header.app-header .rf-site-header-inner {
  max-width: none;
  padding: 0.85rem var(--rf-app-gutter, 1.25rem);
}

.rf-site-header.rf-site-has-search .rf-site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
}

.rf-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--rf-hdr-text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.rf-site-brand:hover {
  color: var(--rf-hdr-text);
  text-decoration: none;
}

.rf-site-logo {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.rf-site-brand:hover .rf-site-logo {
  background: #0369a1;
  transform: scale(1.04);
}

.rf-site-header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.rf-site-menu-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  color: var(--rf-hdr-text);
  border: 1px solid var(--rf-hdr-border);
  border-radius: 7px;
  padding: 0.32rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rf-site-menu-btn:hover,
.rf-site-menu-btn[aria-expanded="true"] {
  border-color: var(--rf-hdr-border-strong);
  background: var(--rf-hdr-subtle);
}

.rf-site-menu-bars {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -4px 0 currentColor, 0 4px 0 currentColor;
}

.rf-site-header nav.rf-site-menu-panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 1.25rem;
  z-index: 80;
  display: grid;
  flex-direction: column;
  gap: 0.15rem;
  width: 244px;
  max-width: calc(100% - 2.5rem);
  padding: 0.4rem;
  background: var(--rf-hdr-surface);
  border: 1px solid var(--rf-hdr-border-strong);
  border-radius: 10px;
  box-shadow: var(--rf-hdr-shadow);
  box-sizing: border-box;
}

.rf-site-header nav.rf-site-menu-panel[hidden] {
  display: none !important;
}

.rf-site-header nav.rf-site-menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0.35rem 0.75rem;
  border-radius: 7px;
  color: var(--rf-hdr-text);
  font-size: 0.88rem;
  font-weight: 550;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.rf-site-header nav.rf-site-menu-panel a:hover,
.rf-site-header nav.rf-site-menu-panel a[aria-current="page"] {
  background: var(--rf-hdr-link-subtle);
  color: var(--rf-hdr-link);
  text-decoration: none;
}

.rf-site-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem 0.25rem;
  border-top: 1px solid var(--rf-hdr-border);
}

.rf-site-menu-footer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rf-hdr-muted);
}

.rf-site-theme-btn {
  appearance: none;
  background: transparent;
  color: var(--rf-hdr-muted);
  border: 1px solid var(--rf-hdr-border);
  border-radius: 7px;
  padding: 0.26rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.rf-site-theme-btn:hover {
  color: var(--rf-hdr-text);
  border-color: var(--rf-hdr-border-strong);
  background: var(--rf-hdr-subtle);
}

.rf-site-header :is(a, button, input):focus-visible {
  outline: 2px solid var(--rf-hdr-link);
  outline-offset: 2px;
}

/* Compact inline search inside generated SEO pages */
.rf-site-header .rf-search {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

.rf-site-header :is(input[type="search"], #nav-search) {
  width: 100%;
  min-width: 0;
  height: auto;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  color: var(--rf-hdr-text);
  background: var(--rf-hdr-surface);
  border: 1px solid var(--rf-hdr-border);
  border-radius: 0.5rem;
  box-shadow: none;
}

.rf-site-header :is(input[type="search"], #nav-search):focus {
  border-color: var(--rf-hdr-link);
  outline: none;
}

.rf-site-header input::placeholder {
  color: var(--rf-hdr-muted);
  opacity: 1;
}

.rf-search-results {
  position: absolute;
  z-index: 70;
  inset: auto 0 auto;
  max-height: 24rem;
  overflow-y: auto;
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.4rem;
  border: 1px solid var(--rf-hdr-border-strong);
  border-radius: 0.5rem;
  background: var(--rf-hdr-surface);
  box-shadow: var(--rf-hdr-shadow);
}

.rf-search-results[hidden] {
  display: none;
}

.rf-search-results a {
  display: block;
  padding: 0.6rem 0.55rem;
  color: var(--rf-hdr-text);
  text-decoration: none;
  border-radius: 6px;
}

.rf-search-results a:hover {
  background: var(--rf-hdr-subtle);
  color: var(--rf-hdr-link);
}

@media (max-width: 820px) {
  .rf-site-header.rf-site-has-search .rf-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }
  .rf-site-header.rf-site-has-search .rf-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 440px) {
  .rf-site-header-inner {
    padding: 0.7rem 0.95rem;
    gap: 0.5rem;
  }
  .rf-site-brand {
    font-size: 0.86rem;
    gap: 0.45rem;
  }
  .rf-site-header nav.rf-site-menu-panel {
    left: 0.95rem;
    right: 0.95rem;
    width: auto;
    max-width: none;
  }
}
