/* On this page (and /estimate, which also loads this file): don't smooth-scroll. iOS + JS scrollTo looks like a twitch. */
html { scroll-behavior: auto; }
/* Rent Estimate Builder (draft) */
.rb-wrap { max-width: 960px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.rb-card { background: var(--white); border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 1.5rem; }
.rb-card h2 { font-size: 1.5rem; color: var(--navy); margin-bottom: 0.35rem; }
.rb-step { display: inline-flex; align-items: center; justify-content: center; }
.rb-num { display: inline-flex; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--orange); color: #fff; font: 700 0.95rem 'DM Sans', sans-serif; align-items: center; justify-content: center; margin-right: 0.5rem; vertical-align: middle; }
.rb-sub { color: var(--gray-600); font-size: 0.98rem; margin-bottom: 1rem; }
.rb-search { position: relative; display: flex; gap: 0.6rem; }
.rb-search input { flex: 1; font-size: 1.1rem; padding: 0.9rem 1rem; border: 2px solid var(--gray-200); border-radius: 10px; font-family: inherit; min-width: 0; }
.rb-search input:focus { outline: none; border-color: var(--orange); }
.rb-field { position: relative; flex: 1; min-width: 0; }
.rb-field input { width: 100%; box-sizing: border-box; }
.rb-suggest { position: absolute; z-index: 1000; left: 0; right: 0; top: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin-top: 4px; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); list-style: none; max-height: 340px; overflow-y: auto; }
.rb-suggest[hidden] { display: none; }
.rb-opt { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--gray-100); }
.rb-opt:last-child { border-bottom: 0; }
.rb-opt:hover, .rb-opt.on { background: #fff4e5; }
.rb-opt-main { font-weight: 600; color: var(--navy); }
.rb-opt-county { color: var(--gray-600); font-size: 0.85rem; white-space: nowrap; }
.rb-status { min-height: 1.4rem; margin-top: 0.6rem; font-size: 0.95rem; color: var(--gray-600); }
.rb-hint { font-size: 0.93rem; color: var(--gray-600); margin-top: 0.5rem; }
.rb-area { font-size: 0.9rem; color: var(--gray-600); margin-top: 0.4rem; }
.rb-outofarea { background: #fff4e5; border: 1px solid var(--orange); border-radius: 10px; padding: 1rem 1.25rem; margin-top: 1rem; }
.rb-outofarea[hidden], #rb-flow[hidden], #rb-results[hidden], #rb-prop-warn[hidden], #rb-need-beds[hidden] { display: none; }
.rb-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.75rem 1.25rem; margin: 1rem 0; }
.rb-fact dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-600); }
.rb-fact dd { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.rb-fact dd small { font-weight: 400; color: var(--gray-600); }
.rb-source { font-size: 0.85rem; color: var(--gray-600); }
.rb-warn { background: #fffbea; border: 1px solid #f0d36a; border-radius: 8px; padding: 0.8rem 1rem; margin-top: 0.75rem; font-size: 0.95rem; }
.rb-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rb-chip { padding: 0.7rem 1.1rem; border: 2px solid var(--gray-200); border-radius: 999px; background: #fff; font: 600 1rem 'DM Sans', sans-serif; cursor: pointer; color: var(--navy); }
.rb-chip.on { border-color: var(--orange); background: #fff4e5; }
.rb-mix { max-width: 420px; }
.rb-mix-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid var(--gray-100); }
.rb-mix-row span { flex: 1; font-weight: 600; color: var(--navy); }
button.rb-step { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--gray-200); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.rb-step-val { min-width: 2rem; text-align: center; font-weight: 700; }
.rb-link { background: none; border: 0; color: var(--navy-light); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; margin-top: 0.8rem; }
.rb-big { font-family: 'DM Serif Display', serif; font-size: 2.3rem; color: var(--navy); line-height: 1.15; margin: 0.25rem 0 0.5rem; }
.rb-note { font-size: 0.93rem; color: var(--gray-600); line-height: 1.55; }
.rb-cite { font-weight: 600; color: var(--navy); margin-top: 0.5rem; font-size: 0.95rem; }
.rb-table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.rb-table th, .rb-table td { padding: 0.65rem 0.25rem; border-bottom: 1px solid var(--gray-100); text-align: left; vertical-align: top; }
.rb-table th { font-weight: 500; }
.rb-table th small { display: block; font-weight: 400; color: var(--gray-600); font-size: 0.82rem; }
.rb-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.rb-table .rb-out td { color: #9b2c2c; }
.rb-table .rb-sub th, .rb-table .rb-sub td { background: var(--gray-100); font-weight: 700; }
.rb-table .rb-total th, .rb-table .rb-total td { font-size: 1.25rem; font-weight: 700; border-bottom: 0; padding-top: 0.9rem; }
.rb-table .rb-total.pos td { color: #276749; }
.rb-table .rb-total.neg td { color: #c53030; }
.rb-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1rem; margin: 1rem 0; }
.rb-grid label, .rb-lead label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.25rem; color: var(--navy); }
.rb-grid input, .rb-lead input, .rb-lead textarea, .rb-lead select, .rb-money input { width: 100%; padding: 0.7rem 0.8rem; border: 1px solid var(--gray-200); border-radius: 8px; font: 1rem 'DM Sans', sans-serif; }
.rb-pre { position: relative; }
.rb-pre span { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--gray-600); }
.rb-pre input { padding-left: 1.7rem; }
.rb-rentpick { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.5rem 0 0.25rem; }
.rb-rentpick .rb-pre { width: 140px; }
.rb-check { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.75rem 0; font-size: 0.95rem; }
.rb-check input { margin-top: 0.3rem; }
.rb-list { padding-left: 1.2rem; font-size: 0.95rem; line-height: 1.6; }
.rb-list li { margin-bottom: 0.4rem; }
.rb-lead .form-group { margin-bottom: 1rem; }
.rb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
details.rb-details { margin-top: 1rem; font-size: 0.93rem; color: var(--gray-600); }
details.rb-details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
details.rb-details ul { padding-left: 1.2rem; margin-top: 0.5rem; }
details.rb-details li { margin-bottom: 0.35rem; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .rb-grid { grid-template-columns: 1fr; }
  .rb-search { flex-direction: column; }
  .rb-big { font-size: 1.9rem; }
  .rb-card { padding: 1.1rem; }
  .rb-opt { flex-direction: row; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 48px; padding: 0.4rem 0.85rem; }
  .rb-opt-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.98rem; }
  .rb-opt-county { font-size: 0.75rem; }
  .rb-search.rb-open #rb-go { display: none; }
  .rb-suggest { max-height: 208px; }
}
#rb-bedsec[hidden], #rb-anyway[hidden]{display:none}
.rb-rentpick .rb-pre { width: 150px; }
.rb-rentpick .rb-pre input { width: 100%; padding: 0.7rem 0.8rem 0.7rem 1.7rem; border: 1px solid var(--gray-200); border-radius: 8px; font: 1rem 'DM Sans', sans-serif; }
/* simplified flow */
.rb-result { text-align: center; padding: 2rem 1.5rem; }
.rb-label { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-600); font-weight: 600; }
.rb-hero-rent { font-family: 'DM Serif Display', serif; font-size: 4rem; line-height: 1.1; color: var(--navy); margin: 0.25rem 0; }
.rb-hero-rent small { font-family: 'DM Sans', sans-serif; font-size: 1.2rem; color: var(--gray-600); }
.rb-range { font-size: 1.05rem; color: var(--gray-600); }
.rb-adjust { margin: 0.35rem 0 0; font-size: 1rem; color: var(--navy); }
.rb-result .rb-note { margin-top: 0.4rem; }
.rb-result .rb-check { justify-content: center; margin-top: 1.5rem; font-size: 1rem; font-weight: 600; color: var(--navy); }
#rb-feebox { max-width: 460px; margin: 0.5rem auto 0; text-align: left; }
#rb-feebox[hidden] { display: none; }
@media (max-width: 640px) { .rb-hero-rent { font-size: 3rem; } }
.rb-util { font-weight: 400 !important; font-size: 0.93rem !important; color: var(--gray-600) !important; justify-content: flex-start !important; margin: 0.25rem 0 0.5rem !important; }

.rb-cs-link { text-align: center; color: var(--gray-600); font-size: 0.95rem; margin: 1.5rem 0 0; }
.rb-cs-link a { color: #c05621; font-weight: 600; }
.rb-status.rb-ok, .rb-sub.rb-ok { color: #15803d; font-weight: 600; }

.rb-privacy { font-size: 0.8rem; color: var(--gray-600); margin-top: 0.65rem; font-weight: 400; }
.rb-opt.rb-searching { color: var(--gray-600); font-size: 0.9rem; font-style: italic; cursor: default; pointer-events: none; min-height: 40px; }
/* typing on a phone: collapse the hero so the address card sits right under the sticky header */
@media (max-width: 640px) {
  body.rb-focus .page-hero { padding: calc(4.6rem + var(--hiring-bar-height)) 0 0.5rem; background: none; min-height: 0; }
  body.rb-focus .page-hero::before { display: none; }
  body.rb-focus .page-hero-content { display: none; }
}

/* iOS: inputs under 16px zoom the page on focus, which looks like a twitch. */
@media (max-width: 640px) {
  .rb-search input,
  .rb-lead input,
  .rb-lead select,
  .rb-lead textarea,
  .est-form input,
  .est-form select { font-size: 16px; }
}
/* Do not collapse the page hero on focus: hiding the title and shrinking
   padding was a large layout shift on iPhone Safari. */
