/* Shared residential shell. Miami palette; keep content readable at every size. */
:root {
  --rf-canvas: #fff;
  --rf-paper: #f8fafc;
  --rf-ink: #0e1116;
  --rf-muted: #5a6270;
  --rf-navy: #0b1b3a;
  --rf-accent: #0a7c6b;
  --rf-line: #e3e5e8;
  --rf-gutter: clamp(16px, 3vw, 40px);
  --rf-radius: 16px;
}
html { scrollbar-gutter: stable; }
body { -webkit-text-size-adjust: 100%; }
html body :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid #536caf;
  outline-offset: 3px;
}
html body :is(input, select, textarea):focus-visible {
  border-color: #7688bc;
  box-shadow: 0 0 0 4px rgb(105 104 188 / 9%);
}
@media (forced-colors: active) {
  html body :is(a, button, input, select, textarea, summary):focus-visible { outline-color: Highlight; }
}
.header, .rf-header {
  background: var(--rf-navy) !important;
  color: var(--rf-canvas) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  border-bottom: 0 !important;
}
.header .header-inner, .rf-header-inner {
  width: calc(100% - var(--rf-gutter) * 2) !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 12px 0 !important;
  height: auto !important;
  min-height: 76px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 240px) auto !important;
  grid-template-areas: "logo nav search auth" !important;
  gap: 16px !important;
  align-items: center !important;
}
.header .logo, .rf-logo { grid-area: logo; color: inherit !important; line-height: 1; }
.header .nav-links, .rf-nav {
  grid-area: nav;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center !important;
  gap: 4px !important;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 13px !important;
}
.header .nav-links a, .rf-nav a, .header .header-auth a, .rf-header-auth a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px !important;
  color: inherit !important;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.25;
  font-size: inherit !important;
}
.header .nav-links a:hover, .rf-nav a:hover, .header .header-auth a:hover, .rf-header-auth a:hover {
  background: rgb(255 255 255 / 10%);
}
.header .header-search, .rf-header-search {
  grid-area: search;
  display: flex !important;
  position: relative;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
.header .header-search input:not([type=hidden]), .rf-header-search input:not([type=hidden]) {
  width: 100% !important;
  min-width: 0;
  height: 44px !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 10px 14px 10px 42px !important;
  background: var(--rf-canvas) !important;
  color: var(--rf-ink) !important;
  font-size: 14px;
  box-shadow: none !important;
}
.header .header-search-icon, .header .header-search > svg, .rf-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--rf-muted);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  pointer-events: none;
}
.rf-search-submit { position: absolute; inset: 0 auto 0 0; width: 42px; border: 0; background: transparent; cursor: pointer; }
.header .header-auth, .rf-header-auth {
  grid-area: auth;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 4px !important;
  margin: 0 !important;
  width: auto !important;
  font-size: 13px !important;
}
.header .header-auth a[href*="signup"], .rf-header-auth a[href*="signup"] { background: rgb(255 255 255 / 12%); }
.rf-menu-toggle { display: none !important; }
.header :is(a, button, input):focus-visible, .rf-header :is(a, button, input):focus-visible { outline-color: var(--rf-canvas) !important; }

/* A welcoming home, followed by clear consumer and professional destinations. */
.rf-home .hero { min-height: 0; padding: clamp(40px, 6vw, 88px) 0; }
.rf-home .hero-content { margin: 0 auto; max-width: 1100px; padding-inline: var(--rf-gutter); }
.rf-home .home-eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.rf-home .hero h1 { margin: 0 auto; max-width: 850px; font-size: clamp(36px, 5.5vw, 68px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.rf-home .home-intro { margin: 20px auto 32px; max-width: 540px; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; color: rgb(255 255 255 / 88%); }
.rf-home .search-container { padding: 24px; border-radius: var(--rf-radius); box-shadow: none; }
.rf-home .search-tabs { gap: 16px; flex-wrap: wrap; align-items: center; border: 0; padding: 0; margin-bottom: 20px; }
.rf-home .search-tabs-left { gap: 4px; background: var(--rf-paper); border-radius: 12px; padding: 4px; }
.rf-home .search-tab { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 9px; text-transform: none; letter-spacing: 0; }
.rf-home .search-tab.active { background: var(--rf-navy); color: var(--rf-canvas); }
.rf-home .search-tabs-right { gap: 4px; }
.rf-home .search-tabs-right a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 0; }
.rf-home .search-bar { gap: 12px; }
.rf-home .search-bar .input-group { min-width: 0; border: 0; border-radius: 10px; background: var(--rf-paper); }
.rf-home .locate-btn { border: 0; border-radius: 0 10px 10px 0; min-width: 44px; min-height: 48px; }
.rf-home .search-bar input { min-width: 0; min-height: 48px; background: var(--rf-paper); border: 0; border-radius: 10px; }
.rf-home .search-submit { min-height: 48px; border: 0; border-radius: 10px; background: var(--rf-accent); color: var(--rf-canvas); }
.rf-home .filter-btn { min-height: 44px; height: auto; border: 0; border-radius: 10px; background: var(--rf-paper); }
.rf-home #moreFiltersBtn:disabled, .rf-home #customRadiusBtn:disabled, .rf-home .filter-dropdown:has(#petsDropdown input:disabled) { display: none; }
.rf-home :is(.dropdown-menu, .price-dropdown) { border: 0; border-radius: 12px; }
.rf-home .price-option.keyboard-active { background: var(--rf-paper); color: var(--rf-accent); outline: 2px solid var(--rf-accent); outline-offset: -2px; }
.rf-home :is(.tile, .roomie-card, .need-item) { border: 0; border-radius: var(--rf-radius); }
.rf-home .roomie-card { display: block; color: inherit; text-decoration: none; }
.rf-home .home-paths { padding: 56px var(--rf-gutter); max-width: 1280px; margin: 0 auto; }
.rf-home .home-section-intro { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.rf-home .home-section-intro h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 12px; }
.rf-home .home-section-intro p { color: var(--rf-muted); line-height: 1.65; }
.rf-home .home-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rf-home .home-path { padding: 32px; background: var(--rf-paper); border-radius: var(--rf-radius); }
.rf-home .home-path h3 { font-size: 24px; letter-spacing: -.025em; margin: 12px 0; }
.rf-home .home-path p { color: var(--rf-muted); line-height: 1.7; max-width: 48ch; }
.rf-home .home-path-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rf-accent); }
.rf-home .home-path-links { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-top: 20px; }
.rf-home .home-path-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--rf-accent); text-underline-offset: 5px; text-decoration: underline; }
.rf-home :is(.roomies-header, .value-prop-header, .broker-container) { max-width: 760px; margin-inline: auto; text-align: center; }
.rf-home .store-badges { justify-content: center; flex-wrap: wrap; gap: 12px; }
.rf-home .store-badges a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 12px; background: var(--rf-navy); color: var(--rf-canvas); font-weight: 600; }

/* Balanced destination pages. The four signals are useful, compact quick links. */
.rf-experience .hero { min-height: 540px; align-items: center; padding: 0; }
.rf-experience .hero-content { max-width: 1000px; text-align: center; padding: 72px 0 88px; }
.rf-experience h1 { margin-inline: auto; max-width: 880px; font-size: clamp(36px, 5.5vw, 68px); line-height: 1.08; letter-spacing: -.045em; }
.rf-experience .dek { margin: 24px auto 0; max-width: 650px; font-size: 18px; }
.rf-experience .hero-actions { justify-content: center; }
.rf-experience .btn { min-height: 48px; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.rf-experience .hero::before { background-image: linear-gradient(90deg, rgb(11 27 58 / 80%), rgb(11 27 58 / 55%)), var(--hero-image); }
.rf-experience .signal-bar { max-width: 1080px; margin-inline: auto; }
.rf-experience .signals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rf-experience .signal { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 12px; border: 0; border-radius: var(--rf-radius); min-height: 156px; background: var(--rf-paper); box-shadow: none; }
.rf-experience .signal:hover { background: var(--rf-canvas); outline: 2px solid var(--rf-accent); outline-offset: -2px; }
.rf-experience .signal-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 12px; color: var(--rf-accent); }
.rf-experience .signal-icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.rf-experience .signal strong { font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.rf-experience .signal span:not(.signal-icon) { font-size: 11px; letter-spacing: .05em; margin-top: 6px; }
.rf-experience section:not(.hero) { padding: 64px 0; }
.rf-experience .section-head { gap: 32px; }
.rf-experience h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; }
.rf-experience h3 { font-size: 20px; line-height: 1.3; }
.rf-experience :is(.feature-card, .step, .brief-panel, .trust-item) { border: 0; border-radius: var(--rf-radius); padding: 28px; }
.rf-experience .feature-card { background: var(--rf-paper); min-height: 0; }
.rf-experience .step { min-height: 0; }
.rf-experience .market-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rf-experience .opportunities { grid-template-columns: 1fr; align-content: center; padding: 24px; background: var(--rf-paper); border-radius: var(--rf-radius); }
.rf-experience .opportunities a { color: var(--rf-accent); text-decoration: underline; text-underline-offset: 4px; }
.rf-experience .trust-item { background: rgb(255 255 255 / 5%); }

@media (max-width: 1180px) {
  .header .header-inner, .rf-header-inner { grid-template-columns: auto minmax(180px, 1fr) auto !important; grid-template-areas: "logo search auth" "nav nav nav" !important; gap: 8px 20px !important; }
  .header .nav-links, .rf-nav { width: 100% !important; }
}
@media (max-width: 800px) {
  .rf-experience :is(.feature-grid, .steps, .trust-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rf-experience .section-head { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .rf-experience .section-copy { margin-inline: auto; }
  .rf-experience .signal-bar { margin-top: 0; padding-top: 20px; }
  .rf-home .home-path { padding: 24px; }
}
@media (max-width: 640px) {
  .rf-neighborhoods .hero h1 { font-size: clamp(30px, 8.5vw, 46px); line-height: 1.12; text-align: center; }
  .rf-neighborhoods .hero { min-height: 0; }
  .rf-neighborhoods .hero-content { padding-block: 48px; text-align: center; }
  .rf-neighborhoods .hero-actions { justify-content: center; }
  /* Let the content reclaim the screen as people scroll past discovery controls. */
  .header, .rf-header { position: relative !important; }
  .header .header-inner, .rf-header-inner { width: calc(100% - 32px) !important; grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "logo" "nav" "search" "auth" !important; gap: 6px !important; padding: 12px 0 8px !important; }
  .header .logo, .rf-logo { justify-self: center; padding: 4px 0; }
  .header .nav-links, .rf-nav { overflow: visible !important; flex-wrap: nowrap !important; gap: 0 !important; font-size: clamp(10px, 2.8vw, 12px) !important; justify-content: center !important; }
  .header .nav-links a, .rf-nav a { min-height: 44px; padding: 6px !important; }
  .header .header-search input:not([type=hidden]), .rf-header-search input:not([type=hidden]) { font-size: 16px; }
  .header .header-auth, .rf-header-auth { justify-self: center; gap: 12px !important; font-size: 13px !important; }
  .header .header-auth a, .rf-header-auth a { min-height: 44px; padding: 10px 20px !important; }
  .rf-home .hero { padding: 40px 0; }
  .rf-home .hero-content { padding-inline: 16px; }
  .rf-home .home-intro { margin: 16px auto 24px; }
  .rf-home .search-container { padding: 16px; }
  .rf-home .search-tabs { justify-content: center; gap: 8px; }
  .rf-home .search-tabs-left { width: 100%; justify-content: center; flex-wrap: nowrap; }
  .rf-home .search-tab { flex: 1; padding: 8px; font-size: 13px; white-space: nowrap; }
  .rf-home .search-tabs-right { display: none; } /* Auth remains directly below the main navigation. */
  .rf-home .search-bar, .rf-home .search-bar.rent-out-mode { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rf-home .search-bar > .input-group:first-child, .rf-home .search-submit { grid-column: 1 / -1; }
  .rf-home .search-bar input { font-size: 16px; }
  .rf-home .advanced-filters { justify-content: center; gap: 8px; }
  .rf-home .filter-btn { font-size: 13px; padding: 8px 12px; }
  .rf-home .home-paths { padding: 40px 16px; }
  .rf-home .home-path-grid { grid-template-columns: 1fr; gap: 16px; }
  .rf-home .home-path { text-align: center; }
  .rf-home .home-path-links { justify-content: center; }
  .rf-home :is(.roomie-content, .need-content, .app-text) { text-align: center; }
  .rf-home .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rf-home .tile { aspect-ratio: 3 / 4; }
  .rf-home .tile-content { padding: 16px; background: linear-gradient(to top, rgb(11 27 58 / 90%), rgb(11 27 58 / 5%)); text-align: center; }
  .rf-home .tile-title { font-size: 18px; line-height: 1.25; }
  .rf-home .tile-sub { font-size: 12px; line-height: 1.5; }
  .rf-home .roomies-header { margin-bottom: 24px; }
  .rf-home .roomie-image { height: 190px; }
  .rf-home .need-item { padding: 24px; min-height: 0; }
  .rf-home .need-image { margin-top: 20px; height: 150px; border-radius: 10px; }
  .rf-home :is(.editorial-grid-section, .roomies-section, .value-prop, .app-section, .broker-section) { padding-block: 40px; }
  .rf-experience .wrap { width: calc(100% - 32px); }
  .rf-experience .hero { min-height: 0; }
  .rf-experience .hero-content { padding: 48px 0; }
  .rf-experience .dek { font-size: 16px; line-height: 1.65; margin-top: 20px; }
  .rf-experience .hero-actions { max-width: 360px; margin-inline: auto; gap: 12px; }
  .rf-experience .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rf-experience .signal { min-height: 144px; padding: 20px 8px; }
  .rf-experience .signal strong { font-size: 22px; }
  .rf-experience .signal span:not(.signal-icon) { font-size: 10px; }
  .rf-experience section:not(.hero) { padding: 40px 0; }
  .rf-experience :is(.feature-grid, .steps, .market-grid, .trust-grid) { grid-template-columns: minmax(0, 1fr); }
  .rf-experience :is(.feature-card, .step, .brief-panel, .trust-item, .opportunities, .footer-note) { text-align: center; }
  .rf-experience .brief-panel .btn { align-self: center; }
  .rf-experience .section-copy { font-size: 16px; }
  :is(input, select, textarea) { scroll-margin-block: 24px; }
}
@media (max-width: 400px) {
  .header .header-inner, .rf-header-inner { width: calc(100% - 16px) !important; }
  .header .nav-links, .rf-nav { flex-wrap: wrap !important; }
  .header .nav-links a, .rf-nav a { padding: 6px 4px !important; white-space: normal; text-align: center; }
  .header .header-auth, .rf-header-auth { flex-wrap: wrap; max-width: 100%; }
  .header .header-auth a, .rf-header-auth a { padding: 8px 10px !important; }
  .rf-footer-btns button { padding: 6px 8px; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
@media (forced-colors: active) {
  .rf-home .search-tab.active, .rf-experience .signal, .rf-home .home-path { border: 1px solid CanvasText; }
}
