/* ==========================================================================
   modules/nearby/nearby.css — prices strip, Wanted, Buy & sell (v123)
   ========================================================================== */
.nbx-sec { margin: 0 10px 18px; }
.nbx-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 16px 2px 8px; }
.nbx-h h2 { margin: 0; font-size: 17px; } .nbx-h small { color: var(--muted); font-size: 12.5px; }
.nbx-card { background: var(--card, #fff); border: 1px solid var(--line, var(--bd,#E1E7E3)); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.nbx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line, var(--bd,#E1E7E3));
  background: var(--surface,#fff); color: var(--ink, #1B2420); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; transition: transform .1s, opacity .15s; }
.nbx-btn:active { transform: scale(.97); }
.nbx-btn.go { background: #0B7A3B; border-color: #0B7A3B; color: #fff; }
.nbx-btn.wa { background: #E7F8EE; border-color: #BFE5CC; color: #0B7A3B; }
.nbx-btn.wide { display: flex; width: 100%; }
.nbx-btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.nbx-btn.link { border: 0; background: none; color: var(--muted); font-weight: 600; }
.nbx-btn.busy { opacity: .6; pointer-events: none; }
.nbx-note { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.nbx-sec input, .nbx-sec select, .nbx-sec textarea { width: 100%; font: inherit; font-size: 15px; border: 1px solid var(--line, var(--bd,#E1E7E3)); border-radius: 12px; padding: 10px 12px; background: var(--surface,#fff); color: var(--ink); box-sizing: border-box; }
.nbx-sec input:focus, .nbx-sec select:focus, .nbx-sec textarea:focus { outline: 0; border-color: #12A150; box-shadow: 0 0 0 3px rgba(18,161,80,.15); }
.nbx-sec label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.nbx-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.nbx-row2 label { margin: 0; }
.nbx-row3 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .9fr) auto; gap: 6px; margin-top: 8px; }
.nbx-chk { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; margin-top: 22px !important; }
.nbx-chk input { width: 20px; height: 20px; accent-color: #0B7A3B; }
.nbx-empty { text-align: center; padding: 26px 18px; background: var(--card, #fff); border: 1px dashed var(--line, var(--bd,#E1E7E3)); border-radius: 18px; margin: 10px 0; }
.nbx-empty.sm { padding: 14px; } .nbx-empty h2 { font-size: 17px; margin: 6px 0; } .nbx-empty p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.nbx-ei { font-size: 40px; } .nbx-empty.sm .nbx-ei { font-size: 26px; }
.nbx-av { flex: 0 0 38px; height: 38px; border-radius: 50%; background: #FFF6E6; color: #B45309; border: 1px solid #F6DDB0; display: grid; place-items: center; font-weight: 700; }
.nbx-safe { font-size: 12.5px; color: var(--muted); text-align: center; margin: 12px 4px; }

/* ---- price strip (top of Nearby) ------------------------------------------ */
.nbx-strip { display: flex; align-items: center; gap: 8px; background: var(--surface,#fff); border: 1px solid var(--line, var(--bd,#E1E7E3)); border-radius: 14px; padding: 7px 8px 7px 10px; margin: 0 0 10px; color: var(--ink); text-decoration: none; overflow: hidden; }
.nbx-sh { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--brand-tx,#0B7A3B); line-height: 1.2; max-width: 74px; }
.nbx-sr { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.nbx-sr::-webkit-scrollbar { display: none; }
.nbx-chip { flex: 0 0 auto; white-space: nowrap; font-size: 13px; background: var(--surface-2,#F3F6F4); border-radius: 10px; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.nbx-chip b { font-weight: 600; } .nbx-chip small { color: var(--muted); }
.nbx-chip.add { color: var(--brand-tx,#0B7A3B); font-weight: 700; }
.nbx-more { color: var(--muted); font-size: 20px; }
.nbx-tr { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 4px; }
.nbx-tr.up { color: #C2410C; } .nbx-tr.dn { color: var(--brand-tx,#0B7A3B); }
.nbx-plist { background: var(--surface,#fff); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.nbx-prow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); }
.nbx-prow:first-child { border-top: 0; }
.nbx-pn b { display: block; font-size: 15px; } .nbx-pn small { color: var(--muted); font-size: 12px; }
.nbx-pv { text-align: right; font-variant-numeric: tabular-nums; } .nbx-pv b { font-size: 17px; } .nbx-pv small { color: var(--muted); }
.nbx-pform { margin-top: 12px; }

/* ---- Wanted -------------------------------------------------------------- */
.nbx-ask { background: linear-gradient(180deg, #E8F7EE, #fff 70px); border-color: #BFE5CC; }
.nbx-askh { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.nbx-askh > span { font-size: 28px; } .nbx-askh b { display: block; font-size: 16px; } .nbx-askh small { color: var(--muted); font-size: 13px; }
.nbx-want { scroll-margin-top: 80px; }
.nbx-want.closed { opacity: .65; }
.nbx-wtop { display: flex; gap: 10px; align-items: flex-start; }
.nbx-wb { flex: 1; min-width: 0; } .nbx-wb p { margin: 0 0 3px; font-size: 15px; font-weight: 600; line-height: 1.4; } .nbx-wb small { color: var(--muted); font-size: 12.5px; }
.nbx-cnt { flex: 0 0 auto; min-width: 48px; text-align: center; border-radius: 12px; background: var(--surface-2,#F3F6F4); padding: 5px 6px; font-weight: 800; font-size: 16px; color: var(--muted); }
.nbx-cnt small { display: block; font-size: 10.5px; font-weight: 500; } .nbx-cnt.on { background: var(--surface-2,#E8F7EE); color: var(--brand-tx,#0B7A3B); }
.nbx-offer { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.nbx-offer > div { flex: 1; min-width: 0; } .nbx-offer b { display: block; } .nbx-offer small { color: var(--muted); font-size: 12.5px; }
.nbx-op { font-weight: 800; font-size: 17px; color: var(--brand-tx,#0B7A3B); font-variant-numeric: tabular-nums; }
.nbx-oform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; margin-top: 10px; }
.nbx-wact { margin-top: 6px; text-align: right; }

/* ---- Buy & sell ---------------------------------------------------------- */
.nbx-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 10px; padding: 0 10px; }
.nbx-cats::-webkit-scrollbar { display: none; }
.nbx-cats a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: var(--surface,#fff); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nbx-cats a.on { background: var(--ink-bg,var(--ink, #1B2420)); color: #fff; border-color: var(--ink, #1B2420); }
.nbx-sellbtn { margin-bottom: 10px; }
.nbx-sell { border-color: #BFE5CC; }
.nbx-photos { position: relative; display: block !important; border: 2px dashed #BFE5CC; border-radius: 14px; background: var(--surface-2,#F4FBF7); padding: 14px; text-align: center; cursor: pointer; }
.nbx-photos input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.nbx-ph0 { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 26px; }
.nbx-ph0 b { font-size: 15px; } .nbx-ph0 small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.nbx-photos.has .nbx-ph0 { display: none; }
.nbx-prev { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.nbx-prev img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.nbx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .nbx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nbx-ad { background: var(--surface,#fff); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.nbx-ad.sold { opacity: .6; }
.nbx-adimg { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2,#F3F6F4); display: grid; place-items: center; }
.nbx-adimg img { width: 100%; height: 100%; object-fit: cover; } .nbx-adimg i { font-style: normal; font-size: 40px; }
.nbx-adimg em { position: absolute; top: 8px; left: 8px; font-style: normal; background: #1B2420; color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.nbx-adb { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.nbx-adb b { font-size: 16px; color: var(--brand-tx,#0B7A3B); font-variant-numeric: tabular-nums; } .nbx-adb b small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.nbx-adb > span { font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nbx-adb > small { color: var(--muted); font-size: 11.5px; }
.nbx-mine summary { cursor: pointer; font-weight: 700; }
.nbx-mrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.nbx-mrow > a { flex: 1; min-width: 0; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; color: var(--ink); text-decoration: none; }
.nbx-mrow > a > img, .nbx-mrow > a > span { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2,#F3F6F4); display: grid; place-items: center; }
.nbx-mrow b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nbx-mrow small { color: var(--muted); font-size: 12px; }
.nbx-mrow form { margin: 0; }
.nbx-one .nbx-back { display: inline-block; margin: 0 0 8px; color: var(--muted); text-decoration: none; font-weight: 600; }
.nbx-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 16px; background: var(--surface-2,#F3F6F4); scrollbar-width: none; }
.nbx-gal::-webkit-scrollbar { display: none; }
.nbx-gal img, .nbx-gal i { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: center; }
.nbx-gal i { display: grid; place-items: center; font-style: normal; font-size: 64px; }
.nbx-dots { display: flex; justify-content: center; gap: 5px; margin: 8px 0; }
.nbx-dots i { width: 7px; height: 7px; border-radius: 50%; background: #CBD5CF; } .nbx-dots i.on { background: #0B7A3B; width: 18px; border-radius: 4px; }
.nbx-oneh { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; }
.nbx-oneh h1 { margin: 0 0 4px; font-size: 19px; line-height: 1.3; } .nbx-oneh small { color: var(--muted); font-size: 12.5px; }
.nbx-big { text-align: right; font-size: 21px; font-weight: 800; color: var(--brand-tx,#0B7A3B); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nbx-big small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.nbx-soldbar { margin: 10px 0 0; background: #1B2420; color: #fff; border-radius: 10px; padding: 7px 10px; font-weight: 700; font-size: 13.5px; text-align: center; }
.nbx-soldbar.warn { background: #FEF3C7; color: #92400E; }
.nbx-desc { margin: 12px 0 0; font-size: 15px; line-height: 1.55; white-space: normal; }
.nbx-seller { display: flex; gap: 10px; align-items: center; margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.nbx-seller b { display: block; } .nbx-seller small { color: var(--muted); }
.nbx-call { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.nbx-report { font-size: 13px; color: var(--muted); text-align: center; }
.nbx-report summary { cursor: pointer; }
.nbx-report form { display: flex; gap: 6px; margin-top: 8px; }

@media (max-width: 380px) {
  .nbx-row3 { grid-template-columns: 1fr 1fr; } .nbx-oform { grid-template-columns: 1fr auto; } .nbx-oform input[name=note] { grid-column: 1 / -1; grid-row: 2; }
}
