/* Buyer account mockups. Visual language from homes (getownerfinancedhomes.com) main:
   paper #f4f7fc, ink #16213a, pine #15315e, red #e23b3b, Bricolage + DM Sans.
   Static pictures only. Nothing here talks to the CRM. */

:root {
  --paper: #f4f7fc;
  --card: #ffffff;
  --ink: #16213a;
  --ink-soft: #5b6577;
  --line: #e2e8f2;
  --pine: #15315e;
  --pine-deep: #0f2444;
  --honey: #e23b3b;
  --honey-soft: #eaf1fb;
  --go: #e23b3b;
  --go-hover: #c92f2f;
  --ok: #0d6b3d;
  --ok-bg: #e5f6ec;
  --need: #8a4b08;
  --need-bg: #fff4e5;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(15, 36, 68, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--pine); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(28px, 7vw, 36px); }
h2 { font-size: 22px; }
p { margin: 0; }

.mock {
  margin: 0;
  padding: 8px 16px;
  background: var(--pine-deep);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.mock span { color: #c5d4ee; font-weight: 600; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 16px 16px 48px; }
.narrow { width: min(440px, 100%); margin: 0 auto; }

.bar, .site-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--pine);
  min-width: 0;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .bn {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  line-height: 1.05;
}
.brand .bn small {
  display: block;
  margin-top: 2px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}
.bar-actions, .site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.lang {
  display: inline-flex;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}
.lang a[aria-current="page"] { background: var(--pine); color: #fff; }
.linkish, .textbtn {
  background: none;
  border: 0;
  color: var(--pine);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 4px;
  cursor: pointer;
}
.saved-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  padding: 8px;
}
.saved-link .count {
  background: var(--honey);
  color: #fff;
  border-radius: 99px;
  font-size: 11px;
  min-width: 18px;
  text-align: center;
  padding: 1px 5px;
}
.create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 44px;
}

.site-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 16px 14px;
}
.site-head .brand { flex: 1 1 220px; }
.site-head .search { flex: 1 1 100%; margin-top: 0; }
.site-head .site-nav { flex: 1 1 100%; justify-content: flex-start; }
.search {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--pine);
  border-radius: 12px;
  background: #fff;
  padding-left: 10px;
  color: var(--ink-soft);
}
.search input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 4px;
  min-width: 0;
  color: var(--ink);
}
.search button {
  border: 0;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  padding: 0 16px;
  height: 44px;
  border-radius: 0 9px 9px 0;
  cursor: pointer;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 10px;
}
.results-head p { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.cards { display: grid; gap: 14px; }

.panel, .auth, .home, .tour, .block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.auth { padding: 22px 18px 20px; margin-top: 18px; }
.lede { color: var(--ink-soft); margin-top: 8px; }
.auth h1, .page-head h1 { margin-top: 8px; }
.page-head { margin: 8px 0 14px; }
.hello { font-weight: 800; color: var(--pine); }

label.field { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 800; }
label.field input, .profile input[type="text"], .profile input[type="email"], .profile input[type="tel"] {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
}
label.field input:focus, .profile input:focus {
  outline: 3px solid var(--honey-soft);
  border-color: var(--pine);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 13px;
  background: var(--pine);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 16px;
}
.btn.go { background: var(--go); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost {
  background: #fff;
  color: var(--pine);
  border: 1.5px solid #c9d3e4;
}
.btn.tiny { width: auto; min-height: 44px; margin-top: 0; padding: 10px 14px; }
.hint { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.alt { margin-top: 16px; font-size: 15px; font-weight: 700; }
.alt a { font-weight: 800; }

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.otp input {
  width: 100%;
  aspect-ratio: 0.85;
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 24px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.otp input.next { border-color: var(--pine); box-shadow: 0 0 0 3px var(--honey-soft); }
.code-input {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 12px;
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 0.35em;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.code-input:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px var(--honey-soft); }

.banner {
  background: var(--honey-soft);
  border: 1px solid #d5e2f4;
  color: var(--pine-deep);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 12px 0;
}
/* minmax(0, 1fr): a wide child (the file picker) must not push the page past a 375px phone. */
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.layout > * { min-width: 0; }
.stack { display: grid; gap: 12px; }
.block, .tour { padding: 14px; }
.block h2, .tour h2, .section-title { margin-bottom: 8px; }
.section-title { margin: 4px 0 8px; }

.home { overflow: hidden; display: grid; }
.photo {
  position: relative;
  min-height: 168px;
  background: linear-gradient(180deg, #d5e4f6 0%, #eef3f8 72%);
}
.photo.b { background: linear-gradient(180deg, #e7e0d4 0%, #f6f3ee 72%); }
.photo.pine { background: linear-gradient(160deg, #15315e 0%, #3d6aa8 55%, #d5e4f6 55%, #eef3f8 100%); }
.house {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 92px;
  height: 70px;
  transform: translate(-50%, -50%);
  background: #fff;
  clip-path: polygon(50% 0, 100% 38%, 84% 38%, 84% 100%, 16% 100%, 16% 38%, 0 38%);
}
.house::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--pine);
}
.heart {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--honey);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 36, 68, 0.12);
}
.body { padding: 12px 14px 14px; }
.price {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.price small {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 4px;
}
.down, .where, .specs { margin-top: 4px; }
.down { font-weight: 800; }
.where, .meta { color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.specs { font-weight: 800; }

.when { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.3px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--honey-soft);
  color: var(--pine);
  font-size: 13px;
  font-weight: 800;
}
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.need { background: var(--need-bg); color: var(--need); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions .btn { flex: 1; width: auto; margin-top: 0; }

.kv { list-style: none; margin: 8px 0 0; padding: 0; }
.kv li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--ink-soft); font-weight: 600; text-align: right; flex: 1 1 12rem; }

.have { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.have li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-weight: 700;
}
.have li::before {
  content: "✓";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 13px;
  display: grid;
  place-items: center;
}
.miss { color: var(--need); font-weight: 800; margin-top: 8px; }

.days, .times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 8px;
}
.chip {
  flex: none;
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid #d0d5dc;
  background: #fff;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
}
.chip.on { background: var(--pine); color: #fff; border-color: var(--pine); }
.subhead { margin: 12px 0 4px; font-size: 13px; font-weight: 800; color: var(--ink-soft); letter-spacing: 0.04em; text-transform: uppercase; }

.drop {
  margin-top: 10px;
  border: 1.5px dashed #b7c3d6;
  border-radius: 14px;
  background: var(--paper);
  min-height: 140px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  gap: 4px;
}
.drop input[type="file"] { max-width: 100%; min-width: 0; font-size: 14px; }
.drop strong { font-size: 16px; }
.drop span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 800;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.knob {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: #c5cedd;
  position: relative;
  flex: none;
}
.knob::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
}
.soon { color: var(--need); font-weight: 800; }

.profile { display: grid; gap: 10px; margin-top: 8px; }
.profile label { display: grid; gap: 4px; font-size: 13px; font-weight: 800; }
.seg { display: flex; gap: 8px; }
.seg span {
  flex: 1;
  text-align: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  font-weight: 800;
}
.seg span.on, .segbtn.on { background: var(--pine); color: #fff; border-color: var(--pine); }
.segbtn { flex: 1; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font-weight: 800; background: #fff; cursor: pointer; }
.segbtn input { margin-right: 6px; }
.trap { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 15px;
}
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--pine); }

.note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}

/* Book a tour: the home on top, big time buttons, one clear Book button. */
.photo .photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.book-home .photo { min-height: 200px; }
.street { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 22px; font-weight: 800; line-height: 1.15; }
.book-home .price { margin-top: 8px; }
.book-home .price .dp { font-size: 15px; font-weight: 800; color: var(--ink-soft); margin-left: 6px; }
.book-home .actions { display: flex; gap: 8px; margin-top: 12px; }
.book-home .actions .btn { flex: 1; width: auto; margin-top: 0; min-height: 48px; }
.all-set { margin-bottom: 8px; border-radius: 12px; background: #eef7f0; padding: 10px 12px; }
.all-set summary { cursor: pointer; font-weight: 800; list-style: none; }
.all-set summary::-webkit-details-marker { display: none; }
.all-set summary::before { content: "\2713  "; color: #1f7a3a; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 4px 0 8px; }
.slot { position: relative; display: block; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span {
  display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px;
  border: 1.5px solid #d0d5dc; background: #fff; font-weight: 800; font-size: 15px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.slot input:checked + span { background: var(--pine); color: #fff; border-color: var(--pine); }
.slot input:focus-visible + span { outline: 3px solid #8fb3e6; outline-offset: 2px; }
.book-go { position: sticky; bottom: 12px; margin-top: 12px; min-height: 52px; font-size: 17px; }

@media (min-width: 800px) {
  .brand .bn { font-size: 19px; }
  .site-head { padding: 12px 20px; flex-wrap: nowrap; }
  .site-head .brand { flex: 0 0 auto; }
  .site-head .search { flex: 1 1 280px; order: 2; }
  .site-head .site-nav { flex: 0 0 auto; order: 3; justify-content: flex-end; }
  .wrap { padding: 20px 24px 64px; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  .layout.dash { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr); align-items: start; }
  .layout.book { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .home.split { grid-template-columns: 200px 1fr; }
  .home.split .photo { min-height: 100%; }
  .auth { padding: 28px 26px; margin-top: 28px; }
  .btn.desk { width: auto; min-width: 220px; }
}
#pick { scroll-margin-top: 96px; }
/* Booking safety net: "Having trouble? Text us to book". */
.textus-wrap { padding-top: 0; padding-bottom: 32px; }
.textus { margin-top: 12px; padding: 14px; border: 1px solid #d7deea; border-radius: 14px; background: #fff; display: grid; gap: 8px; }
.textus-q { margin: 0; font-size: 15px; color: var(--ink-soft); }
.textus-q strong { color: var(--ink); }
.textus .textus-btn { margin-top: 0; background: #1f8a4c; color: #fff; text-align: center; }
.textus-line { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.textus-top { border-color: #e2a33a; background: #fff8ec; }
/* Normal steps: booking is the one clear action, so "Text us" is only a small line at the bottom. */
.textus.textus-quiet { display: block; margin-top: 28px; padding: 0; border: 0; background: none; }
.textus-small { margin: 0; font-size: 13px; color: var(--ink-soft); text-align: center; }
.textus-small .textus-link { color: inherit; text-decoration: underline; font-weight: 400; }

/* Booking header: the home on every step. Street View badge, and a lighter photo on phones. */
.book-home .photo { position: relative; }
.book-home .sv-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; }
.wrap.narrow > .book-home { margin-bottom: 14px; }
@media (max-width: 560px) {
  .book-home .photo { min-height: 160px; }
  .wrap.narrow > .book-home .photo { min-height: 150px; max-height: 190px; }
}

/* Booking header price line: each amount stays whole ("$62,000 precio" never splits); amounts wrap as units. */
.book-home .price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.book-home .price .mo-amt, .book-home .price .dp { white-space: nowrap; }
.book-home .price .dp { margin-left: 0; }
