/* ==========================================================
   What Will It Sell For - single listing campaign page
   Client skin lives entirely in the CLIENT BRAND TOKENS block.
   Current skin: Raymond Goirigolzarri / RESF Real Estate
   ========================================================== */

:root {
  color-scheme: light;

  /* ---- CLIENT BRAND TOKENS (swap per client) ---- */
  --brand:      #9EC42C;
  --brand-dk:   #7E9F22;
  --brand-tint: #F5F8EC;
  --brand-on:   #FFFFFF;

  /* ---- Neutral system ---- */
  --ink:       #181818;
  --ink-2:     #4A4A4A;
  --muted:     #616161;   /* was #8E8E8E, only 3.0:1 on --paper */
  --paper:     #F7F6F5;
  --surface:   #FFFFFF;
  --line:      #E2E0DE;
  --line-soft: #EFEDEB;

  /* Player marker is blue, brand is green. Never a red/green pair. */
  --you:       #1D5FA8;
  --over:      #1D5FA8;
  --under:     #664C00;   /* was #7A5A00, 4.48:1 on its tint */

  --radius:      14px;
  --radius-sm:   10px;
  --radius-pill: 100px;

  --shadow:      0 1px 2px rgba(24,24,24,.04), 0 8px 24px -12px rgba(24,24,24,.18);
  --shadow-lift: 0 2px 4px rgba(24,24,24,.05), 0 18px 40px -18px rgba(24,24,24,.28);

  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.3,.64,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button, input, select { font-family: inherit; color: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* screen-reader only, used for the real form labels behind the placeholders */
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ TOP BAR ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,246,245,.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.agent { display: flex; align-items: center; gap: 10px; min-width: 0; }
.agent img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--line); flex-shrink: 0; background: var(--line-soft);
}
.agent > div { min-width: 0; }
.agent-name {
  font-size: .82rem; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.agent-sub {
  font-size: .63rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mute {
  display: none !important;
}
.mute svg { width: 15px; height: 15px; }
.mute.off { color: var(--muted); }
.mute:hover { border-color: var(--muted); }

.steps { display: none !important; }
.step {
  white-space: nowrap; line-height: 1.4;
  font-size: .6rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface);
  transition: all .3s var(--ease);
}
/* namespaced: a bare .done here would inherit the .done card's padding */
.step.is-now  { color: var(--brand-on); background: var(--brand); border-color: var(--brand); }
.step.is-done { color: var(--brand); border-color: var(--brand); }
@media (max-width: 460px) {
  .topbar-in { gap: 10px; }
  .steps { gap: 4px; }
  .step { padding: 3px 7px; font-size: .54rem; letter-spacing: .06em; }
}

/* ============ SHELL ============ */
.shell { max-width: 1080px; margin: 0 auto; padding: 18px 18px 64px; }
.screen { display: none; animation: fadeUp .45s var(--ease); }
.screen.on { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.lede { max-width: 660px; margin: 6px auto 20px; text-align: center; }
.lede .eyebrow {
  font-size: .65rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand);
}
.lede h1 {
  font-size: clamp(1.6rem, 5.6vw, 2.4rem); font-weight: 800;
  letter-spacing: -.032em; line-height: 1.12; margin-top: 10px;
}
.lede .subheadline {
  font-size: clamp(0.95rem, 3.5vw, 1.15rem); font-weight: 700; color: var(--brand-dk); margin-top: 10px; letter-spacing: -0.01em;
}

/* ============ LISTING ============ */
.play { display: grid; gap: 16px; }

.listing-details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.shot {
  position: relative; aspect-ratio: 4 / 3; background: var(--line-soft); overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
/* interiors are bright, so the address needs a stronger floor than a
   listing exterior does */
.shot::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 52%; z-index: 2;
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, transparent 100%);
  pointer-events: none;
}

/* ---- gallery ---- */
.gallery {
  display: flex; height: 100%; width: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 3px solid var(--you); outline-offset: -3px; }

.gslide { position: relative; flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.gslide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.gslide figcaption {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.45); padding: 4px 9px; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.gnav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: all .15s var(--ease);
}
.gnav svg { width: 18px; height: 18px; }
.gnav.prev { left: 10px; } .gnav.next { right: 10px; }
.gnav:hover:not(:disabled) { background: #fff; transform: translateY(-50%) scale(1.08); }
.gnav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .gnav { display: none; } }   /* swipe is better on touch */

/* count lives in the caption now; this stays for screen readers only */
.gcount {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.gdots {
  position: absolute; left: 0; right: 0; bottom: 54px; z-index: 4;
  display: flex; justify-content: center; gap: 6px;
}
.gdot {
  width: 6px; height: 6px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.5); transition: all .2s var(--ease);
}
.gdot.on { background: #fff; width: 18px; border-radius: 3px; }
.shot-tags { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: .61rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.94); color: var(--ink);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag.live { background: var(--brand); color: var(--brand-on); }
.shot-addr { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; color: #fff; }
.shot-addr .street {
  font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em;
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 16px rgba(0,0,0,.5);
}
.shot-addr .city {
  font-size: .72rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; opacity: .92;
  text-shadow: 0 1px 3px rgba(0,0,0,.7);
}

.specs { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec {
  padding: 13px 8px; text-align: center;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.spec:last-child { border-right: none; }
.spec dt {
  font-size: .58rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .09em;
}
.spec dd { font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.blurb { padding: 15px 17px; font-size: .89rem; line-height: 1.62; color: var(--ink-2); }

/* ============ THE GUESS ============ */
.asking, .nudges, .rule { display: none !important; }

.guess {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.asking {
  text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding-bottom: 13px; border-bottom: 1px solid var(--line-soft);
}
.asking b { color: var(--ink); font-weight: 800; }
.guess-q {
  margin-top: 15px; text-align: center;
  font-size: .66rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
/* the readout is a text field: drag it or type it */
.readout-w { margin: 8px 0 8px; }
.readout {
  display: block; width: 100%;
  font-size: clamp(2.4rem, 10.5vw, 3.2rem); font-weight: 800;
  letter-spacing: -.045em; line-height: 1.1; text-align: center;
  color: var(--ink); background: none; border: none;
  border-bottom: 2px dashed var(--line);   /* the affordance */
  padding: 0 0 6px; border-radius: 0;
  transition: border-color .2s var(--ease), color .2s var(--ease);
  -webkit-appearance: none; -moz-appearance: textfield;
}
.readout::-webkit-outer-spin-button,
.readout::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.readout:hover { border-bottom-color: var(--muted); }
.readout:focus {
  outline: none; color: var(--you); border-bottom-color: var(--you);
  border-bottom-style: solid;
}

.type-hint {
  text-align: center; font-size: .7rem; font-weight: 600;
  color: var(--muted); margin-top: 12px;
}

.btn-change {
  margin-top: 12px; padding: 7px 15px; border-radius: var(--radius-pill);
  border: 1px solid var(--brand); background: transparent; color: var(--brand-dk);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  transition: all .15s var(--ease);
}
.btn-change:hover { background: var(--brand); color: var(--brand-on); }

.delta {
  text-align: center; font-size: .84rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill);
  width: fit-content; margin: 0 auto;
}
.delta.over  { color: var(--over);  background: #E8F0F9; }
.delta.under { color: var(--under); background: #FBF3DD; }
.delta.even  { color: var(--muted); background: var(--line-soft); }

.slider-w { margin-top: 24px; position: relative; }
.range {
  -webkit-appearance: none; appearance: none; display: block;
  width: 100%; height: 10px; border-radius: var(--radius-pill);
  background: var(--line); outline: none; cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--you);
  box-shadow: 0 2px 8px rgba(24,24,24,.22); cursor: grab;
  transition: transform .15s var(--spring);
}
.range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
.range::-moz-range-thumb {
  width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box;
  background: var(--surface); border: 3px solid var(--you);
  box-shadow: 0 2px 8px rgba(24,24,24,.22); cursor: grab;
}
.range:focus-visible { outline: 3px solid var(--you); outline-offset: 4px; }

/* asking-price reference mark under the track */
.ask-tick { position: absolute; top: 14px; transform: translateX(-50%); pointer-events: none; }
.ask-tick::before {
  content: ""; display: block; width: 2px; height: 9px;
  background: var(--ink); margin: 0 auto; opacity: .35;
}
.ask-tick span {
  display: block; margin-top: 3px;
  font-size: .58rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.bounds {
  display: flex; justify-content: space-between; margin-top: 34px;
  font-size: .72rem; font-weight: 700; color: var(--muted);
}

.nudges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 14px; }
.nudge {
  padding: 11px 0; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: .78rem; font-weight: 700; transition: all .15s var(--ease);
}
.nudge:hover { background: var(--paper); border-color: var(--muted); transform: translateY(-1px); }
.nudge:active { transform: translateY(0); }

.btn-lock {
  width: 100%; margin-top: 16px; padding: 16px;
  border-radius: var(--radius); background: var(--ink); color: #fff;
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  transition: all .2s var(--ease);
}
.btn-lock:hover:not(:disabled) { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-lock:active { transform: translateY(0); }
.btn-lock:disabled { opacity: .6; cursor: default; }

.psf { text-align: center; font-size: .74rem; font-weight: 600; color: var(--muted); margin-top: 11px; }

/* ============ ENTRY ============ */
.card-wrap { max-width: 520px; margin: 0 auto; }

.entry {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift);
}
.entry-head {
  padding: 24px 22px 20px; text-align: center;
  background: var(--brand-tint); border-bottom: 1px solid var(--line);
}
.verdict {
  font-size: .63rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-dk);
}
.entry-guess {
  font-size: clamp(2.2rem, 9vw, 2.8rem); font-weight: 800;
  letter-spacing: -.045em; line-height: 1; margin: 6px 0 5px; color: var(--brand-dk);
}
.entry-delta { font-size: .82rem; font-weight: 700; color: var(--ink-2); }

.entry-body { padding: 24px 22px 26px; }
.entry-body h2 { font-size: 1.28rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.24; }
.entry-sub { font-size: .89rem; line-height: 1.62; color: var(--ink-2); margin-top: 9px; }

.fields { margin-top: 20px; display: grid; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.field-label {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px;
}
.fields input[type=text], .fields input[type=email], .fields input[type=tel], .fields select {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper); font-size: .92rem;
  transition: all .15s var(--ease);
}
.fields input:focus, .fields select:focus {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(0,102,52,.12);
}
.fields select { color: var(--muted); cursor: pointer; }
.fields select:valid { color: var(--ink); }
.fields input.is-invalid, .fields select.is-invalid {
  border-color: #8A3324; background: #FDF3F1;
}
.fields input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(138,51,36,.14); }

.field-note { font-size: .72rem; color: var(--muted); line-height: 1.5; margin: -3px 0 4px 2px; }

.chip-q {
  font-size: .78rem; font-weight: 700; color: var(--ink-2); margin: 8px 0 -2px 2px;
}
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.chip {
  padding: 11px 4px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--paper);
  font-size: .78rem; font-weight: 700; color: var(--ink-2);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--muted); }
.chip.on {
  background: var(--brand); border-color: var(--brand); color: var(--brand-on);
}

.consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 4px; cursor: pointer; }
.consent input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.consent span { font-size: .76rem; line-height: 1.5; color: var(--ink-2); }

.err { font-size: .8rem; font-weight: 600; color: #8A3324; text-align: center; margin-top: 10px; min-height: 18px; }
.rules { font-size: .7rem; line-height: 1.55; color: var(--muted); text-align: center; margin-top: 6px; }
.rules a { color: var(--muted); }

/* ============ DONE ============ */
.done {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 24px 26px;
  box-shadow: var(--shadow-lift); text-align: center;
}
.tick {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: pop .5s var(--spring);
}
.tick svg { width: 26px; height: 26px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }

.done h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.done > p { font-size: .92rem; line-height: 1.64; color: var(--ink-2); margin-top: 10px; }

.locked {
  display: flex; align-items: center; justify-content: space-between;
  margin: 22px 0 0; padding: 14px 17px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.locked span {
  font-size: .63rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted);
}
.locked b { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }

/* ---- rule card ---- */
.rule {
  margin-top: 16px; padding: 12px 14px;
  background: var(--brand-tint); border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
}
.rule-main { font-size: .8rem; font-weight: 700; line-height: 1.5; color: var(--brand-dk); }
.rule-sub { font-size: .76rem; line-height: 1.5; color: var(--ink-2); margin-top: 5px; }

/* ---- guess board ---- */
.board {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left;
}
.board-line {
  font-size: .92rem; font-weight: 700; line-height: 1.5;
  text-align: center; color: var(--ink);
}

.spread { margin: 20px 0 4px; }
.spread-bar {
  position: relative; height: 8px; border-radius: var(--radius-pill);
  background: var(--line-soft); border: 1px solid var(--line);
}
.spread-iqr {
  position: absolute; top: -1px; bottom: -1px;
  background: var(--brand-tint); border: 1px solid var(--brand);
  border-radius: var(--radius-pill);
}
.spread-med {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--brand); transform: translateX(-50%);
}
.spread-you { position: absolute; top: 50%; width: 0; height: 0; }
.spread-you i {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--you); border: 3px solid var(--surface);
}
.spread-you b {
  position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%);
  font-size: .62rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--you); white-space: nowrap;
}
.spread-ends {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 12px; font-size: .69rem; font-weight: 700; color: var(--muted);
}
.spread-ends .mid { font-weight: 600; text-transform: none; letter-spacing: 0; }

/* ---- the neighborhood line ---- */
.lineboard { margin-top: 22px; text-align: center; }
.line-label {
  font-size: .61rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.line-value {
  font-size: clamp(2.1rem, 9vw, 2.6rem); font-weight: 800;
  letter-spacing: -.045em; line-height: 1; margin-top: 6px; color: var(--ink);
}

.split-bar {
  display: flex; gap: 3px; margin-top: 18px;
  height: 14px; border-radius: var(--radius-pill); overflow: hidden;
}
.seg {
  display: block; height: 100%; min-width: 4px;
  background: var(--line); transition: background .25s var(--ease);
}
.seg.under { border-radius: var(--radius-pill) 3px 3px var(--radius-pill); }
.seg.over  { border-radius: 3px var(--radius-pill) var(--radius-pill) 3px; }
.seg.mine  { background: var(--you); }

.split-legend {
  display: flex; justify-content: space-between; margin-top: 9px;
  font-size: .72rem; font-weight: 600; color: var(--muted);
}
.split-legend b { font-weight: 800; color: var(--ink-2); }
.lg.mine, .lg.mine b { color: var(--you); }

.line-you {
  margin-top: 20px; font-size: 1.02rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--ink);
}
.line-detail {
  margin-top: 7px; font-size: .82rem; line-height: 1.55; color: var(--ink-2);
}

.btn-expand {
  width: 100%; margin-top: 14px; padding: 11px;
  border-radius: var(--radius-sm); border: 1px dashed var(--line);
  background: transparent; color: var(--ink-2);
  font-size: .8rem; font-weight: 700; transition: all .15s var(--ease);
}
.btn-expand:hover { border-color: var(--brand); color: var(--brand-dk); border-style: solid; }

.all-bids {
  list-style: none; margin-top: 10px;
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.all-bids li {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center;
  padding: 9px 12px; font-size: .83rem;
}
.all-bids li + li { border-top: 1px solid var(--line-soft); }
.all-bids li:nth-child(odd) { background: var(--paper); }
.all-bids li.me {
  background: var(--you-tint, #E8F0F9);
  box-shadow: inset 3px 0 0 var(--you);
}
.all-bids .rank { font-size: .7rem; font-weight: 700; color: var(--muted); }
.all-bids .who { font-weight: 600; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.all-bids li.me .who, .all-bids li.me b { color: var(--you); }
.all-bids b { font-weight: 800; letter-spacing: -.02em; }

.board-row-title {
  margin-top: 20px; font-size: .6rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.board-row { list-style: none; margin-top: 8px; }
.board-row li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; font-size: .85rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--paper);
}
.board-row li + li { margin-top: 5px; }
.board-row li.me { border-color: var(--you); background: var(--you-tint, #E8F0F9); }
.board-row li.me b { color: var(--you); }
.board-row li span { font-weight: 600; color: var(--ink-2); }
.board-row li b { font-weight: 800; letter-spacing: -.02em; }

.btn-share {
  width: 100%; margin-top: 8px; padding: 12px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); border: 1px dashed var(--line);
  background: transparent; color: var(--muted);
  font-size: .8rem; font-weight: 700; transition: all .15s var(--ease);
}
.btn-share svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-share:hover { border-color: var(--brand); color: var(--brand-dk); background: var(--brand-tint); border-style: solid; }

.share-incentive {
  font-size: .76rem; line-height: 1.55; color: var(--ink-2);
  text-align: center; margin-top: 9px; padding: 0 6px;
}

.handoff {
  margin-top: 24px;
  padding: 24px 20px;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  animation: fadeUp .3s var(--ease);
}
.handoff img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 14px; border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}
.handoff p { font-size: .92rem; line-height: 1.6; color: var(--ink-2); font-weight: 500; }

.btn-xl {
  display: block; width: 100%; margin-top: 18px; padding: 16px 22px;
  border-radius: var(--radius); background: var(--brand); color: var(--brand-on);
  font-size: .97rem; font-weight: 700; letter-spacing: -.01em;
  text-decoration: none; text-align: center;
  box-shadow: var(--shadow); transition: all .2s var(--ease);
}
.btn-xl:hover { background: var(--brand-dk); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.disclaimer {
  max-width: 520px; margin: 18px auto 0; text-align: center;
  font-size: .69rem; line-height: 1.6; color: var(--muted);
}

/* demo flag, delete at launch */
.demo-flag {
  padding: 7px 18px; background: #FFF4D6; border-bottom: 1px solid #EBD9A4;
  font-size: .67rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #6B5312; text-align: center;
}

/* ============ DESKTOP ============ */
@media (min-width: 900px) {
  .shell { padding: 26px 18px 80px; }
  .play { grid-template-columns: 1fr 380px; align-items: start; }
  .shot { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; }
  .listing-details { grid-column: 1; grid-row: 2; margin-top: 16px; }
  .guess { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 76px; }
  .shot-addr .street { font-size: 1.4rem; }
  .blurb { font-size: .93rem; padding: 17px 20px 20px; }
}

@media (max-width: 899px) {
  .topbar-in { padding: 8px 12px; }
  .play { display: block; }
  .shot { margin-bottom: 16px; }
  .guess {
    position: sticky;
    top: 50px; /* Dock perfectly under 50px mobile header */
    z-index: 40;
    margin-bottom: 16px;
    border-radius: var(--radius);
    border: 1.5px solid var(--line);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    background: var(--surface);
  }
}

@media (max-width: 600px) {
  .range::-webkit-slider-thumb {
    width: 38px; height: 38px;
  }
  .range::-moz-range-thumb {
    width: 38px; height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ LIGHTBOX MODAL ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 15, 15, 0.96);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .25s var(--ease);
}
.lightbox[hidden] { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative; max-width: 90%; max-height: 80vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox-content img {
  max-width: 100%; max-height: 75vh; object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  user-select: none;
}
.lightbox-caption {
  color: #fff; font-size: .85rem; font-weight: 600; text-align: center;
  letter-spacing: 0.02em; opacity: 0.9;
}

.lightbox-close {
  position: absolute; top: 20px; right: 24px; z-index: 1010;
  font-size: 2.5rem; color: rgba(255,255,255,0.7); cursor: pointer;
  transition: color 0.15s var(--ease);
  background: none; border: none; padding: 0;
}
.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1010;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s var(--ease); cursor: pointer;
  border: none;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }
.lightbox-nav:disabled { opacity: 0; pointer-events: none; }
.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

@media (max-width: 600px) {
  .lightbox-nav { width: 38px; height: 38px; font-size: 1.4rem; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .lightbox-close { top: 12px; right: 16px; font-size: 2.2rem; }
}

.gslide img { cursor: zoom-in; }

/* Google Places Autocomplete dropdown overrides */
.pac-container {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  font-family: inherit;
  margin-top: 4px;
  z-index: 10000 !important; /* Float above lead capture form modal */
}
.pac-item {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.pac-item:hover, .pac-item-selected {
  background-color: #f7fafc;
}
.pac-item-query {
  font-size: 14px;
  color: #2d3748;
}
.pac-matched {
  font-weight: 600;
}

/* Minimized sticky bidding panel on mobile */
@media (max-width: 899px) {
  .guess.minimized {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }
  .guess.minimized .asking,
  .guess.minimized .guess-q,
  .guess.minimized .delta,
  .guess.minimized .type-hint,
  .guess.minimized .nudges,
  .guess.minimized .rule,
  .guess.minimized .psf {
    display: none !important;
  }
  .guess.minimized .readout-w {
    margin: 0;
    flex-shrink: 0;
  }
  .guess.minimized .readout {
    font-size: 1.4rem;
    border-bottom: none;
    padding: 0;
    text-align: left;
    width: auto;
    font-weight: 800;
  }
  .guess.minimized .slider-w {
    margin-top: 0;
    flex-grow: 1;
  }
  .guess.minimized .slider-w .ask-tick,
  .guess.minimized .slider-w .bounds {
    display: none !important;
  }
  .guess.minimized .range {
    height: 6px;
  }
  .guess.minimized .range::-webkit-slider-thumb {
    width: 26px;
    height: 26px;
  }
  .guess.minimized .btn-lock {
    margin-top: 0;
    padding: 8px 16px;
    font-size: .78rem;
    width: auto;
    flex-shrink: 0;
    border-radius: var(--radius-pill);
  }
}
