/* Styles for the marketplace layer: owner photo/document tools, live search, price quote, admin verification.
   Kept in its own file so style.css stays untouched. Uses the existing design tokens. */
.mg-h{margin:22px 0 8px;font-size:15px}
.mg-photos{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}
.mg-photos figure{position:relative;margin:0;width:110px;height:82px;border-radius:10px;overflow:hidden;background:var(--line,#e5e7eb)}
.mg-photos img{width:100%;height:100%;object-fit:cover;display:block}
.mg-photos figure .icon-btn{position:absolute;top:4px;right:4px;background:#fff}
.mg-file{cursor:pointer}
.mg-req{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px;font-size:13.5px}
.mg-req li{display:flex;gap:8px;align-items:flex-start;color:var(--ink-2,#475569)}
.mg-req li.ok{color:#15803d}.mg-req li.wait{color:#b45309}
.mg-req em{font-style:normal;font-weight:600;margin-left:auto;white-space:nowrap}
.mg-docs{display:grid;gap:8px;margin:8px 0}
.mg-doc{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:12px}
.mg-doc small{display:block;color:var(--ink-3,#64748b);font-size:12px;margin-top:2px}
.mg-upload{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin:10px 0}
.mg-upload .fld{flex:1;min-width:220px}
.mg-week{display:grid;gap:6px;margin:10px 0}
.mg-day{display:grid;grid-template-columns:130px 150px 24px 150px;gap:8px;align-items:center}
.mg-day input[type=time]{height:38px;padding:0 10px;min-width:0;width:100%;border:1px solid var(--line,#e5e7eb);border-radius:10px}
.rej{color:#b91c1c}
.quote{display:grid;gap:4px;margin:10px 0;font-size:14px}
.quote div{display:flex;justify-content:space-between}.quote .tot{border-top:1px solid var(--line,#e5e7eb);padding-top:6px;font-size:15px}
.ls-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-top:10px}
.ls-f{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;color:var(--ink-2,#475569)}
.ls-f select,.ls-f input{height:40px;padding:0 10px;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:#fff;font-size:14px;font-weight:400}
.ls-pr{display:flex;gap:6px}.ls-pr input{width:90px}
.ls-t{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;margin-right:6px}
.p-photo{width:100%;height:100%;object-fit:cover;display:block}
.badge-ok{background:#dcfce7;color:#166534}
.g-photo{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.g-th img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.owner-type{display:grid;gap:10px;margin:12px 0}
.owner-type[hidden],#bizField[hidden]{display:none}
@media (max-width:640px){.mg-day{grid-template-columns:1fr 1fr 24px 1fr}.mg-day .check{grid-column:1/-1}}

.preview-bar.bar-down{background:#fee2e2;color:#991b1b;border-bottom-color:#fecaca}
.err-state{margin:40px auto;max-width:560px}

.ls-toggle{display:none}
@media (max-width:760px){
  .ls-toggle{display:inline-flex}
  .search-top:not(.ls-open) .ls-row{display:none}
  .ls .bar{flex-wrap:wrap}.ls .bar .bar-f.grow{flex:1 1 100%}
}

.ci-form{display:flex;gap:8px;margin:8px 0}.ci-form input{flex:1;min-width:0;height:46px;padding:0 13px;border:1px solid var(--line,#e5e7eb);border-radius:12px;font-size:20px;letter-spacing:6px;text-align:center}
.otp-big{font-size:44px;font-weight:800;letter-spacing:10px;text-align:center;padding:14px;border-radius:16px;background:#ecfdf5;color:#065f46;margin:10px 0}
.rec-codes{background:#f1f5f9;border-radius:12px;padding:12px;font-size:15px;letter-spacing:1px;line-height:1.7}.ok-box{background:#ecfdf5;color:#065f46;border-radius:12px;padding:10px 12px;margin:8px 0}

.legal{max-width:820px}.legal h1{margin-bottom:12px}.legal h2{font-size:18px;margin:26px 0 8px}.legal p{line-height:1.65;margin:8px 0}
.legal-nav{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.legal-nav a{padding:6px 12px;border:1px solid var(--line,#e5e7eb);border-radius:999px;font-size:13px}.legal-nav a.on{background:var(--ink,#0b1f3a);color:#fff}
mark.todo{background:#fef3c7;color:#92400e;padding:0 3px;border-radius:4px;font-weight:600}

/* The live search map container needs an explicit size, otherwise Leaflet renders a 0-pixel-high (invisible) map. */
#lsMap{width:100%;height:100%;min-height:440px;background:#e8eef5}
.ls-f #lsRef{display:block;margin-top:2px;font-size:11px}
.co-founder{display:flex;align-items:center;gap:10px;margin-top:14px;color:#dfe8f5;font-size:15px}
.co-founder>span{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#14b08b,#0b5f9e);display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff}
.co-founder small{color:#35e0b4;font-weight:600}
