/* House walk-through */
.wt-hero { padding: 18px 0 22px; }
.wt-hero .display { color: var(--navy); }
.wt-hero .lede { margin: 14px 0 20px; }
.btn-lg { min-height: 56px; font-size: 17px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-title .meta { color: var(--muted); font-size: 14px; }

/* How it works */
.how { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: how; }
.how li {
  counter-increment: how; position: relative;
  padding: 14px 0 14px 46px; border-top: 1px solid var(--line);
}
.how li:first-child { border-top: 0; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: 13px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
}
.how b { display: block; font-size: 17px; }
.how span { color: var(--muted); }

/* Condition strip: the house's report card in one bar */
.strip {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--sky-2);
}
.strip span { flex: 0 0 auto; flex-grow: 0; min-width: 0; transition: flex-grow .35s cubic-bezier(.2,.8,.2,1); }
.strip .g { background: var(--good); }
.strip .f { background: var(--fair); }
.strip .p { background: var(--poor); }
.strip-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 7px; font-size: 14px; color: var(--muted); }
.strip-legend b { color: var(--ink); font-weight: 650; }
.strip-legend .rated-of { margin-left: auto; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dot.g { background: var(--good); } .dot.f { background: var(--fair); } .dot.p { background: var(--poor); }

/* House cards */
.houses { display: grid; gap: 12px; }
.hcard { background: var(--surface); border-radius: var(--r-lg); padding: 14px; position: relative; }
.hcard-open {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start;
  width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit;
}
.thumb {
  width: 76px; height: 76px; border-radius: 12px; background: var(--sky-2) center/cover no-repeat;
  display: grid; place-items: center; color: var(--faint); overflow: hidden;
}
.thumb svg { width: 28px; height: 28px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.hcard .addr { font-size: 19px; font-weight: 750; font-stretch: 88%; line-height: 1.15; }
.hcard .addr.untitled { color: var(--muted); }
.hcard .facts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.hcard .facts .price { color: var(--ink); font-weight: 650; }
.hcard .verdict-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.hcard .cond { margin-top: 12px; }
.hcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--sky-2); }
.hcard-foot .when { font-size: 14px; color: var(--muted); }
.hcard-foot .acts { display: flex; gap: 2px; margin-right: -8px; }

.stars-mini { display: inline-flex; gap: 1px; }
.stars-mini svg { width: 15px; height: 15px; fill: var(--line); }
.stars-mini svg.on { fill: var(--amber); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 650; color: var(--ink); background: var(--sky-2); }
.tag.yes { background: var(--good); } .tag.maybe { background: var(--fair); } .tag.no { background: var(--poor); }

.tip { background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-top: 18px; font-size: 15px; color: var(--muted); position: relative; }
.tip b { color: var(--ink); }
.tip .icon-btn { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; }

/* ---------- House page ---------- */
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--pad) 10px; max-width: var(--col); margin: 0 auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump button {
  flex: none; height: 34px; padding: 0 13px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted);
}
.jump button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.house-head { padding: 14px 0 6px; }
.addr-input {
  width: 100%; border: 0; background: transparent; resize: none; overflow: hidden;
  font-family: var(--font); font-weight: 800; font-stretch: 80%; font-size: 34px; line-height: 1.02; letter-spacing: -0.02em;
  color: var(--navy); padding: 4px 0; border-bottom: 2px dashed transparent; border-radius: 0;
}
.addr-input::placeholder { color: #A9B6CC; }
.addr-input:placeholder-shown { border-bottom-color: var(--line); }
.addr-input:focus { outline: none; border-bottom-color: var(--blue); }
.house-head .strip { height: 16px; border-radius: 8px; margin-top: 14px; }
.house-head .progress { font-size: 14px; color: var(--muted); margin-top: 2px; }

.sec { scroll-margin-top: 118px; }
.sec .hint { font-size: 14px; color: var(--muted); margin: 0 0 4px; }
.sec .row-label { flex: 1; }
.extra { margin-top: 10px; }
.note-toggle { margin-top: 8px; padding-left: 0; color: var(--navy); }
.note-toggle svg { width: 18px; height: 18px; }
.note-box { margin-top: 10px; }
.sec-count { font-size: 14px; color: var(--muted); }

.sub-label { font-size: 14px; color: var(--muted); font-weight: 500; margin: 14px 0 2px; }
.sub-label:first-of-type { margin-top: 4px; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--sky-2); border: 0; padding: 0; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font-size: 12px; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgba(10, 20, 40, .7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-add {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--line); background: var(--sky);
  display: grid; place-items: center; align-content: center; gap: 4px; color: var(--navy); font-weight: 600; font-size: 14px;
}
.photo-add svg { width: 26px; height: 26px; }
.photo-view img { width: 100%; border-radius: 12px; max-height: 56vh; object-fit: contain; background: var(--sky); }

/* Verdict */
.stars { display: flex; gap: 6px; margin: 6px 0 4px; }
.stars button { width: 48px; height: 48px; border: 0; background: none; padding: 4px; border-radius: 10px; }
.stars svg { width: 100%; height: 100%; fill: var(--sky-2); stroke: var(--line); stroke-width: 1; transition: fill .12s, transform .12s; }
.stars button.on svg { fill: var(--amber); stroke: #D99A1E; }
.stars button:active svg { transform: scale(.88); }
.verdict-q { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.verdict-texts { display: grid; gap: 14px; margin-top: 18px; }

.callout { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 20px var(--pad); margin-top: 12px; }
.callout h3 { font-size: 21px; font-weight: 750; font-stretch: 88%; }
.callout p { color: #DCE5F3; margin: 8px 0 14px; }

.actionbar .icon-only { flex: 0 0 48px; width: 48px; padding: 0; }

/* ---------- Compare ---------- */
.cmp-scroll { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: separate; border-spacing: 0; min-width: 100%; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.cmp th, .cmp td { padding: 10px 12px; vertical-align: top; text-align: left; border-top: 1px solid var(--sky-2); font-size: 15px; }
.cmp tr:first-child th, .cmp tr:first-child td { border-top: 0; }
.cmp th[scope="row"] {
  position: sticky; left: 0; z-index: 1; background: var(--surface); width: 108px; min-width: 108px;
  font-weight: 600; color: var(--muted); font-size: 13.5px; box-shadow: 1px 0 0 var(--sky-2);
}
.cmp td { min-width: 158px; max-width: 200px; }
.cmp .col-head { padding-top: 14px; }
.cmp .col-head .thumb { width: 100%; height: 96px; border-radius: 10px; }
.cmp .col-head a { display: block; margin-top: 8px; font-weight: 750; font-stretch: 88%; font-size: 17px; line-height: 1.15; color: var(--navy); text-decoration: none; }
.cmp .best { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--green-ink); }
.cmp ul { margin: 0; padding-left: 16px; }
.cmp .none { color: var(--faint); }
.cmp .strip { height: 10px; }
.cmp .top-pick { display: inline-flex; margin-top: 6px; }
.cmp-empty { text-align: center; padding: 40px 10px; }

/* Sharing */
.got-link { margin-top: 6px; font-size: 15px; }
.share-h { margin: 18px 0 4px; font-size: 17px; }
.share-fine { font-size: 13.5px; margin: 10px 0 0 !important; }
.photo-note { display: flex; gap: 10px; align-items: flex-start; background: #FFF4DA; border-radius: 12px; padding: 10px 12px; color: var(--ink) !important; font-size: 15px; }
.photo-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--amber-ink); }
.paste-row { display: flex; gap: 8px; }
.paste-row .input { flex: 1; min-width: 0; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* Quick questions */
.qchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip-sm { min-height: 34px; padding: 0 12px; font-size: 14px; text-align: left; }

/* What matters to you */
.prefs-card {
  display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px dashed var(--blue); color: var(--ink); text-decoration: none;
}
.prefs-card span { flex: 1; color: var(--muted); font-size: 15px; }
.prefs-card b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }
.prefs-card svg { width: 24px; height: 24px; color: var(--navy); flex: none; }
.prefs-card.set { border-style: solid; border-color: var(--line); }
.prefs-card em { font-style: normal; font-weight: 650; color: var(--navy); }
.seg button[data-v="must"][aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button[data-v="nice"][aria-pressed="true"] { background: #CFE0F3; color: var(--ink); }
.place { display: grid; gap: 8px; }
.place + .place { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sky-2); }

/* Match score */
.match { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; font-size: 14px; }
.match-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 10px; line-height: 1.2; border-radius: 13px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.match-pill.all { background: var(--good); }
.match-pill.part { background: var(--fair); }
.match-pill.miss { background: var(--poor); }
.match-miss { color: var(--coral-ink); font-weight: 600; }
.match-unk, .match-nice { color: var(--muted); }
.match-edit { font-weight: 600; color: var(--navy); text-decoration: none; }
.hcard .match { margin-top: 12px; }
.cmp .match { margin-top: 0; flex-direction: column; align-items: flex-start; }

/* Maps */
.maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.maps .btn svg { width: 18px; height: 18px; }

/* Photos by room */
.head-right { display: inline-flex; align-items: center; gap: 2px; margin-right: -8px; }
.sec-cam { width: 40px; height: 40px; }
.sec-cam svg { width: 21px; height: 21px; }
.sec-photos { display: flex; gap: 6px; overflow-x: auto; margin: 2px 0 8px; scrollbar-width: none; }
.sec-photos:empty { display: none; }
.sec-thumb { flex: none; width: 66px; height: 66px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: var(--sky-2); }
.sec-thumb img, .sec-thumb span { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-badge { position: absolute; top: 6px; left: 6px; background: rgba(27, 42, 78, 0.78); color: #fff; font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 999px; }
.room-pick { margin-top: 4px; }

/* Partner's take */
.partner { margin-top: 18px; padding: 14px 14px 16px; border-radius: var(--r-md); background: var(--sky); }
.partner-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.partner .ptext { margin: 8px 0 0; font-size: 15px; }
.diffs { list-style: none; margin: 4px 0 0; padding: 0; }
.diffs li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--sky-2); font-size: 14.5px; }
.diffs li:first-child { border-top: 0; }
.diffs .dv { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 400px) { .diffs li { grid-template-columns: 1fr 1fr; } .diffs li > span:first-child { grid-column: 1 / -1; } }

/* Section bar arrows */
.jump-wrap { position: relative; max-width: var(--col); margin: 0 auto; }
.jump-arrow {
  position: absolute; top: 0; bottom: 10px; width: 52px; z-index: 2; border: 0; padding: 0;
  display: none; align-items: center; background: transparent; cursor: pointer;
}
.jump-arrow span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(27, 58, 107, 0.25);
}
.jump-arrow svg { width: 18px; height: 18px; }
.jump-arrow.left { left: 0; justify-content: flex-start; padding-left: 8px; background: linear-gradient(to right, var(--sky) 55%, rgba(238, 243, 250, 0)); }
.jump-arrow.right { right: 0; justify-content: flex-end; padding-right: 8px; background: linear-gradient(to left, var(--sky) 55%, rgba(238, 243, 250, 0)); }
.jump-arrow.right svg { transform: rotate(180deg); }
.jump-wrap.can-left .jump-arrow.left, .jump-wrap.can-right .jump-arrow.right { display: flex; }
.jump-arrow:active span { transform: scale(0.92); }
