/* ============================================================
   PROPERTY EVALUATION page only (property-evaluation.html). Loads
   after services.css. .pe-* = the valuation request tool (form + map,
   ids unchanged since 2026-07); .pv-* = the rebuilt page sections.
   Promotion candidates (generic enough for services.css):
     .pv-doc     illustrative "sample report" document mock
     .pv-vs      two-column "them vs. me" comparison slab
     .pv-when    time chip on a .svc-step
   ============================================================ */

/* ---------- hero entry ---------- */
.pv-entry .val-pill { margin-top: 12px; }
.pv-when-row { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.pv-when-row li { border: 1px solid var(--hairline); border-radius: 10px; padding: 9px 10px; font-size: 12px; line-height: 1.35; color: var(--ink-soft); min-width: 0; }
.pv-when-row b { display: block; font-size: 13px; color: var(--ink); }

/* ---------- the request tool (form + map) ---------- */
.pe-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.pe-form { background: #FBFAF7; border: 1px solid var(--hairline); border-radius: 18px; padding: clamp(22px, 3vw, 32px); }
.pe-group { margin: 6px 0 12px; font-size: 12.5px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.pe-group span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; font-variant-numeric: tabular-nums; }
.pe-group + .pe-seg { margin-top: 0; }
.pe-sep { border: 0; border-top: 1px solid var(--hairline); margin: 18px 0 16px; }
.pe-seg { display: flex; border: 1.5px solid var(--hairline); border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.pe-seg button { flex: 1; border: none; background: var(--paper); padding: 13px 0; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: background .15s ease, color .15s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pe-seg button.active { background: var(--ink); color: var(--paper); }
.pe-seg button + button { border-left: 1.5px solid var(--hairline); }
.pe-seg button:focus-visible { outline: 3px solid rgba(242,179,54,.75); outline-offset: -3px; }
.pe-range { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: var(--hairline); outline: none; margin-top: 6px; }
.pe-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--hairline); cursor: pointer; }
.pe-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--hairline); cursor: pointer; }
.pe-radiuslabel { font-size: 12px; font-weight: 700; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.pe-mapwrap { position: sticky; top: calc(var(--svc-nav-h) + 16px); }
.pe-map { height: min(66vh, 600px); min-height: 440px; border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline); background: #E9E7E1; }
.pe-hint { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 12px; }
.pe-hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.pe-readout { margin-top: 12px; border: 1px solid var(--hairline); border-left: 3px solid var(--amber); border-radius: 10px; background: #FBFAF7; padding: 12px 15px; font-size: 13px; color: var(--ink-soft); }
.pe-readout b { color: var(--ink); }
.leaflet-container { font-family: 'Sora', 'Sora Fallback', sans-serif; }
.pe-ac { position: relative; }
.pe-suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: 0 18px 50px -20px rgba(16,17,20,.3); overflow: hidden; display: none; }
.pe-suggest.open { display: block; }
.pe-suggest button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 11px 14px; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--hairline); }
.pe-suggest button:last-child { border-bottom: none; }
.pe-suggest button:hover, .pe-suggest button.active { background: var(--paper-deep); }
.pe-suggest small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-top: 1px; }
.pe-photos { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; border: 1.5px dashed var(--hairline); border-radius: 10px; padding: 11px 15px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); text-transform: none; letter-spacing: 0; transition: border-color .15s ease, color .15s ease; }
.pe-photos span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pe-photos:hover, .pe-photos:focus-within { border-color: var(--amber); color: var(--ink); }
.pe-photos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pe-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pe-thumbs:empty { display: none; }
.pe-thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--hairline); }
.pe-fine { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; }
.pe-tool .note-box { margin-top: 14px; }

/* ---------- what the report covers ---------- */
.pv-report { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pv-doc { position: relative; margin: 0; padding: clamp(20px, 2.6vw, 30px); border-radius: 14px; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 30px 60px -36px rgba(16,17,20,.35); transform: rotate(-1.2deg); }
.pv-doc::after { content: ''; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: 14px; background: #EFEDE7; border: 1px solid var(--hairline); }
.pv-doc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.pv-doc-top b { font-size: 14px; }
.pv-doc-top span { font-size: 11px; color: var(--ink-soft); }
.pv-doc .pv-doc-h { margin: 16px 0 8px; font-size: 11.5px; font-weight: 800; color: var(--ink-soft); }
.pv-range { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #EFE6CF, var(--amber) 50%, #EFE6CF); }
.pv-range i { position: absolute; left: 58%; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); }
.pv-range-k { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--ink-soft); }
.pv-rows { display: grid; gap: 6px; }
.pv-rows div { display: grid; grid-template-columns: 1.4fr .7fr .5fr .6fr; gap: 10px; align-items: center; }
.pv-rows i { display: block; height: 8px; border-radius: 4px; background: #E6E3DC; }
.pv-rows div:first-child i { background: #CFCBC2; height: 6px; }
.pv-rows .hl i:first-child { background: #F4D58C; }
.pv-mini { display: flex; align-items: flex-end; gap: 5px; height: 54px; }
.pv-mini i { flex: 1; border-radius: 3px 3px 0 0; background: #E6E3DC; height: var(--h); }
.pv-mini i:last-child { background: var(--amber); }
.pv-doc figcaption { margin-top: 14px; font-size: 11.5px; color: var(--ink-soft); }
.pv-covers { list-style: none; display: grid; gap: 0; counter-reset: pv; }
.pv-covers li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pv-covers li:first-child { padding-top: 0; }
.pv-covers li::before { counter-increment: pv; content: counter(pv); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--amber); font-size: 12px; font-weight: 800; color: var(--ink); }
.pv-covers h3 { font-size: 1.02rem; }
.pv-covers p { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- algorithm vs. my CMA ---------- */
.pv-vs { border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: #101318; overflow: hidden; }
.pv-vs-cols, .pv-vs-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr); gap: 10px 26px; padding: 0 clamp(20px, 3vw, 36px); }
.pv-vs-cols { padding-top: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--term-line); font-size: 13px; font-weight: 800; }
.pv-vs-cols .a { color: #80868f; }
.pv-vs-cols .b { color: var(--amber); }
.pv-vs-row { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--term-line); align-items: baseline; }
.pv-vs-row:last-child { border-bottom: none; }
.pv-vs-row .k { font-size: 13px; font-weight: 700; color: #fff; }
.pv-vs-row .algo { font-size: 14px; line-height: 1.6; color: #8E949C; padding-left: 22px; position: relative; }
.pv-vs-row .me { font-size: 14px; line-height: 1.6; color: #EDEEF0; font-weight: 600; padding-left: 22px; position: relative; }
.pv-vs-row .algo::before, .pv-vs-row .me::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pv-vs-row .algo::before { content: '✕'; color: #C9502C; }
.pv-vs-row .me::before { content: '✓'; color: var(--amber); }

/* time chip on a step */
.pv-when { display: inline-block; margin: 2px 0 6px; padding: 4px 10px; border-radius: 999px; background: #FFF6E0; border: 1px solid #F0D79A; font-size: 12px; font-weight: 700; color: var(--amber-ink); }

/* closing band: direct contact panel in the form column */
.pv-direct { align-self: start; }
.pv-direct .btn { margin-top: 18px; }

@media (max-width: 1080px) {
  .pv-report { grid-template-columns: minmax(0, 1fr); }
  .pv-doc { max-width: 560px; }
}
@media (max-width: 900px) {
  .pe-tool { grid-template-columns: minmax(0, 1fr); }
  .pe-mapwrap { position: static; }
  .pe-map { height: 300px; min-height: 0; }
  /* the map rides inside the form under the address field (moved by the page script) */
  .pe-form .pe-mapwrap { margin: -4px 0 18px; }
  .pe-form .pe-map { height: 220px; border-radius: 12px; }
  .pe-form .pe-hint { display: none; }
}
@media (max-width: 700px) {
  .pv-vs-cols { display: none; }
  .pv-vs-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pv-when-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .pv-when-row li { padding: 8px; font-size: 11px; }
  .pv-when-row b { font-size: 12px; }
  .pv-doc { transform: none; }
  .pv-doc::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pe-seg button { transition: none; }
}
