/* Reijon Lista — clean, friendly, map-first. Flat surfaces, no gradients. */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #0e1729;
  --muted: #4b566b;
  --subtle: #7b8598;
  --border: #e3e8f1;
  --border-strong: #c9d2e1;
  --accent: #1f5af6;
  --accent-hover: #1747d4;
  --accent-soft: #e9f0ff;
  --accent-ring: rgba(31, 90, 246, .18);
  --success: #1f5af6;
  --success-soft: #e9f0ff;
  --danger: #c0261c;
  --danger-soft: #fdeceb;
  --warn-soft: #fff3d6;
  --gold: #7a5300;
  --gold-soft: #fdeec8;
  --tile: #eef2f9;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 41, .06);
  --shadow: 0 1px 2px rgba(14, 23, 41, .05), 0 6px 16px -6px rgba(14, 23, 41, .12);
  --shadow-lg: 0 2px 6px rgba(14, 23, 41, .06), 0 24px 56px -20px rgba(14, 23, 41, .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.4, .5, 1);
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
.ic, .brand-ic { flex-shrink: 0; }
::selection { background: #cfdcff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.hdr.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 20px -14px rgba(14, 23, 41, .3); }
.hdr .wrap { height: 68px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: #fff; transition: transform .35s var(--spring); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.hdr-search { flex: 1; max-width: 440px; position: relative; }
.hdr-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.hdr-search input { width: 100%; height: 42px; border: 1px solid transparent; background: var(--bg); border-radius: 999px; padding: 0 16px 0 42px; outline: 0; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.hdr-search input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-ring); }
.hdr-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; display: inline-flex; gap: 7px; align-items: center; transition: color .15s, background-color .15s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: var(--bg); }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 12px 3px 3px; cursor: pointer; font-weight: 600; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.acct-btn:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.acct-btn .ic { color: var(--subtle); transition: transform .25s var(--ease); }
.acct.open .acct-btn .ic { transform: rotate(180deg); }
.ava { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13.5px; letter-spacing: .02em; flex-shrink: 0; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity .16s, transform .22s var(--ease); }
.acct.open .acct-menu { opacity: 1; transform: none; pointer-events: auto; }
.acct-menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.acct-menu .who b { display: block; font-size: 15px; }
.acct-menu .who small { color: var(--subtle); font-size: 13.5px; word-break: break-all; }
.acct-menu a, .acct-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 9px; font-size: 15px; cursor: pointer; text-align: left; color: var(--text); }
.acct-menu a:hover, .acct-menu button:hover { background: var(--bg); }
.acct-menu .ic { color: var(--subtle); }

/* ---------- buttons ---------- */
.btn {
  --h: 44px; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; font-weight: 700; font-size: 15px;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 16px -8px rgba(31, 90, 246, .6); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #24304a; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: #d6e2ff; }
.btn-lg { --h: 52px; padding: 0 28px; font-size: 16px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.harrow { margin-left: 2px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.harrow .l { opacity: 0; transition: opacity .15s; }
.harrow .t { transition: transform .2s var(--ease); }
.btn:hover .harrow .l { opacity: 1; }
.btn:hover .harrow .t { transform: translateX(2px); }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; min-width: 0; }
.field > label, .label { font-size: 14px; font-weight: 700; color: var(--text); }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--surface);
  border: 1px solid var(--border-strong); outline: 0; font-size: 16px; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: #aab5c8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input::placeholder, .textarea::placeholder { color: #98a2b5; }
.input[readonly] { background: var(--bg); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.field.err .input, .field.err .select, .field.err .textarea, .field.err .dd-btn { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(192, 38, 28, .1); }
.ferr { font-size: 14px; color: var(--danger); display: none; font-weight: 500; }
.field.err .ferr { display: block; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.hint { font-size: 14px; color: var(--subtle); }
.affix { position: relative; }
.affix .input { padding-right: 40px; }
.affix > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; font-weight: 600; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tile); position: relative; height: 48px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: color .2s; white-space: nowrap; }
.seg button.on { color: var(--text); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); transition: left .3s var(--spring), width .3s var(--spring); }

/* ---------- custom dropdown ---------- */
.dd { position: relative; width: 100%; }
.dd-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.dd-btn { width: 100%; height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.dd-btn:hover { border-color: #aab5c8; }
.dd-btn:focus-visible, .dd.open .dd-btn { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.dd-btn .dd-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.dd-btn.placeholder .dd-text { color: #98a2b5; font-weight: 400; }
.dd-btn > .ic:last-child { color: var(--subtle); transition: transform .25s var(--ease); }
.dd.open .dd-btn > .ic:last-child { transform: rotate(180deg); color: var(--accent); }
.dd-btn.pulse { animation: ddPulse .35s var(--ease); }
@keyframes ddPulse { 40% { background: var(--accent-soft); } }
.dd-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tile); color: #34405a; flex-shrink: 0; }
.dd-pop { position: absolute; z-index: 1100; left: 0; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; transition: opacity .16s ease, transform .22s var(--ease); }
.dd.up .dd-pop { top: auto; bottom: calc(100% + 6px); transform-origin: bottom center; transform: translateY(6px) scale(.98); }
.dd.open .dd-pop { opacity: 1; transform: none; }
.dd-pop ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; outline: 0; overscroll-behavior: contain; }
.dd-pop li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; font-size: 15.5px; color: var(--text); transition: background-color .12s; }
.dd-pop li.active { background: var(--bg); }
.dd-pop li .dd-text { flex: 1; min-width: 0; }
.dd-pop li.is-empty { color: var(--subtle); }
.dd-pop li .dd-n { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; background: var(--tile); border-radius: 999px; padding: 1px 8px; }
.dd-check { color: var(--accent); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--spring); }
.dd-pop li[aria-selected="true"] { font-weight: 700; }
.dd-pop li[aria-selected="true"] .dd-check { opacity: 1; transform: none; }
.dd-pop li[aria-selected="true"] .dd-ic { background: var(--accent-soft); color: var(--accent); }
.dd-pop .dd-none { color: var(--subtle); cursor: default; }
.dd-search { position: relative; margin-bottom: 6px; }
.dd-search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--subtle); }
.dd-search input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px 0 36px; font-size: 15px; outline: 0; background: var(--bg); }
.dd-search input:focus { border-color: var(--accent); background: var(--surface); }
.results-head .dd { width: auto; min-width: 170px; }
.results-head .dd-btn { height: 42px; font-size: 15px; border-radius: 999px; }

/* ---------- address search + pin ---------- */
.addr { position: relative; display: flex; gap: 8px; }
.addr-in { position: relative; flex: 1; min-width: 0; }
.addr-in > .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--subtle); pointer-events: none; }
.addr-in .input { padding-left: 42px; padding-right: 38px; }
.addr-in .spin { position: absolute; right: 14px; top: 16px; color: var(--subtle); display: none; }
.addr-in.busy .spin { display: block; }
.gps-btn { height: 48px; width: 48px; padding: 0; flex-shrink: 0; border-radius: var(--radius-sm); }
.gps-btn .ic { width: 20px; height: 20px; }
.addr-pop li { align-items: flex-start; }
.addr-pop li .ic { margin-top: 2px; color: var(--subtle); }
.addr-pop li small { display: block; color: var(--subtle); font-size: 13.5px; }
.pin { position: relative; width: 40px; height: 52px; }
.pin svg { position: absolute; left: 0; top: 0; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .25)); transform-origin: 50% 100%; }
.pin.drop svg { animation: pinDrop .6s var(--spring) both; }
.pin::after { content: ""; position: absolute; left: 13px; bottom: -3px; width: 14px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .25); }
.pin.drop::after { animation: pinShadow .6s ease both; }
.pin.lift svg { transform: translateY(-10px); transition: transform .15s; }
@keyframes pinDrop { 0% { transform: translateY(-60px) scaleY(1.05); opacity: 0; } 55% { transform: translateY(0) scaleY(.86); opacity: 1; } 75% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes pinShadow { 0% { transform: scale(.3); opacity: 0; } 55% { transform: scale(1.25); opacity: 1; } 100% { transform: none; } }
.pin-pulse { position: absolute; left: 50%; bottom: -10px; width: 60px; height: 24px; margin-left: -30px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: pinRing 1.8s .5s ease-out infinite; }
@keyframes pinRing { 0% { transform: scale(.3); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.radius-box { margin-top: 16px; }
.np.remote .radius-box { display: none; }
.loc-sum { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14.5px; color: var(--muted); }
.loc-sum .ic { color: var(--accent); margin-top: 2px; }
.loc-sum b { color: var(--text); }
.loc-sum.empty-sum .ic { color: var(--subtle); }
.loc-sum.set { background: var(--accent-soft); animation: popIn .35s var(--spring); }
@keyframes popIn { from { transform: scale(.97); opacity: .4; } }
.leaflet-container { font-family: var(--font) !important; background: #e9eef6 !important; }
.leaflet-control-attribution { font-size: 11px !important; background: rgba(255, 255, 255, .75) !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 34px !important; color: var(--text) !important; }
.soft-tiles .leaflet-tile-pane { filter: saturate(.55) brightness(1.04) contrast(.96); }

/* price-tag markers on the maps */
.ptag { display: inline-flex; align-items: center; gap: 4px; transform: translate(-50%, -100%); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 13px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(14, 23, 41, .22), 0 0 0 1px rgba(14, 23, 41, .06); transition: transform .2s var(--spring), background-color .15s, color .15s; position: relative; cursor: pointer; animation: tagIn .45s var(--spring) backwards; }
.ptag::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; box-shadow: 2px 2px 3px rgba(14, 23, 41, .1); z-index: -1; }
.ptag:hover, .ptag.hot { background: var(--text); color: #fff; transform: translate(-50%, -100%) scale(1.1); z-index: 10; }
.ptag.boost { background: var(--accent); color: #fff; }
@keyframes tagIn { from { opacity: 0; transform: translate(-50%, -60%) scale(.6); } }
.leaflet-marker-icon.ptag-wrap { background: none; border: 0; overflow: visible; }

/* ---------- home hero ---------- */
.hero { position: relative; height: min(600px, 78vh); min-height: 500px; overflow: hidden; background: #e9eef6; }
.hero-map { position: absolute; inset: 0; z-index: 0; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(245, 245, 241, .18); }
.hero-inner { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; pointer-events: none; }
.hero-card { pointer-events: auto; width: 100%; max-width: 500px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 32px; animation: rise .7s var(--ease) both; }
.hero-card h1 { font-size: 44px; line-height: 1.02; margin: 0 0 12px; letter-spacing: -.035em; }
.hero-card h1 em { font-style: normal; color: var(--accent); }
.hero-card p { margin: 0 0 22px; color: var(--muted); font-size: 17px; }
.hero-search { display: flex; gap: 8px; background: var(--bg); padding: 6px; border-radius: 999px; border: 1px solid transparent; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); background: var(--surface); }
.hero-search .ic { margin: 0 0 0 12px; align-self: center; color: var(--subtle); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; padding: 0 4px; }
.hero-alt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.hero-alt span { color: var(--muted); font-size: 15px; }
.hero-stats { display: flex; gap: 18px; margin-top: 16px; font-size: 14px; color: var(--subtle); flex-wrap: wrap; }
.hero-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.map-chip { position: absolute; right: 24px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; animation: rise .6s .2s var(--ease) both; }
.map-chip .ic { color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* category bar */
.catbar { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 4px; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); }
.chip .ic { width: 18px; height: 18px; }
.chip:hover { border-color: var(--border-strong); color: var(--text); transform: translateY(-1px); }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }
.chip .n { font-size: 12.5px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.chip.on .n { color: rgba(255, 255, 255, .6); }

/* ---------- browse ---------- */
.browse { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 28px; padding: 18px 0 80px; align-items: start; }
.browse > * { min-width: 0; }
.side { position: sticky; top: 92px; }
.side h3 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--subtle); margin: 0 0 10px; font-weight: 700; }
.side .block + .block { margin-top: 26px; }
.side-map { position: relative; height: calc(100vh - 116px); max-height: 760px; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: #e9eef6; z-index: 0; border: 1px solid var(--border); }
.side-map-link { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.remote .side-map, .remote .side-map-link { display: none; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head h2 { font-size: 26px; margin: 0; }
.results-head .count { color: var(--subtle); font-size: 15px; margin-left: 10px; font-weight: 500; font-family: var(--font); letter-spacing: 0; }
.results-tools { display: flex; gap: 8px; align-items: center; }
#nearBtn { height: 42px; }
#nearBtn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
#nearBtn .ic { width: 16px; height: 16px; }

/* listing rows */
.list { display: grid; gap: 10px; transition: opacity .2s; }
.list.loading { opacity: .55; }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.row:hover { z-index: 2; transform: translateY(-3px) scale(1.012); border-color: transparent; box-shadow: var(--shadow-lg); }
.row:active { transform: translateY(-1px) scale(1.004); transition-duration: .1s; }
.row-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.row-ic .ic { width: 24px; height: 24px; }
.row:hover .row-ic { background: var(--accent-soft); color: var(--accent); transform: rotate(-6deg) scale(1.06); }
.row-title { font-weight: 700; font-size: 17px; line-height: 1.35; }
.row-desc { color: var(--muted); font-size: 15px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { color: var(--subtle); font-size: 14px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.row-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.row-meta .ic { width: 15px; height: 15px; }
.row-meta .dist { color: var(--accent); font-weight: 700; }
.row-price { text-align: right; white-space: nowrap; }
.row-price b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.row-price small { display: block; color: var(--subtle); font-size: 13.5px; }
.boosted { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; }
.row.fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { 0%, 30% { box-shadow: 0 0 0 3px var(--accent-ring); } 100% { box-shadow: none; } }
[class*="cat-"] { background: var(--tile); color: #34405a; }
.chip[class*="cat-"], .cat-btn { background: var(--surface); }
.sk { background: #e6ebf3; border-radius: 8px; animation: skp 1.4s ease-in-out infinite; }
@keyframes skp { 50% { opacity: .5; } }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.empty .ic { margin: 0 auto 12px; color: var(--subtle); width: 30px; height: 30px; }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.rv { opacity: 0; }
.rv.in { opacity: 1; animation: rvIn .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- create-listing page ---------- */
.np { position: relative; min-height: calc(100vh - 68px); }
.np-map { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; z-index: 0; }
.np-hint { position: fixed; z-index: 5; left: calc(50% + 260px); top: 92px; transform: translateX(-50%); background: rgba(14, 23, 41, .86); color: #fff; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
.np.step-loc .np-hint { opacity: 1; }
.np.has-pin .np-hint { opacity: 0; transform: translate(-50%, -8px); }
.np-col { position: relative; z-index: 2; padding: 28px 0 40px; pointer-events: none; }
.np-card { pointer-events: auto; width: 100%; max-width: 520px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .6s var(--ease) both; }
.np-top { padding: 22px 28px 0; }
.np-progress { height: 6px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.np-progress i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: inherit; transition: width .5s var(--ease); }
.np-count { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--subtle); }
.np-steps { display: grid; }
.np-step { grid-area: 1 / 1; padding: 18px 28px 8px; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.np-step.on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s .05s var(--ease), transform .45s var(--ease), visibility 0s; }
.np-step.left { transform: translateX(-24px); }
.np-step h1 { font-size: 30px; line-height: 1.1; margin: 0 0 6px; }
.np-step > p { margin: 0 0 6px; color: var(--muted); }
.np-nav { display: flex; gap: 10px; padding: 18px 28px 24px; border-top: 1px solid var(--border); margin-top: 18px; align-items: center; }
.np-nav .btn-primary { margin-left: auto; min-width: 140px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.cat-tile { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px; text-align: left; transition: border-color .15s, background-color .15s, transform .2s var(--spring), box-shadow .15s; }
.cat-tile .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tile); transition: background-color .2s, color .2s, transform .35s var(--spring); }
.cat-tile:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cat-tile.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.cat-tile.on .ti { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.field.err .cat-grid .cat-tile { border-color: #f0b9b5; }
.loc-mode { margin-bottom: 12px; }
.preview { margin-top: 10px; pointer-events: none; }
.preview .row { box-shadow: var(--shadow); }
.acct-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); margin-top: 14px; font-size: 14.5px; color: var(--muted); }
.acct-note b { color: var(--text); }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 40px 16px 60px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 36px 32px 28px; animation: rise .55s var(--ease) both; }
.auth-card .logo-mark { width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 16px; }
.auth-card h1 { text-align: center; font-size: 28px; margin: 0 0 6px; }
.auth-card > p { text-align: center; color: var(--muted); margin: 0 0 8px; }
.auth-card .btn-block { margin-top: 22px; }
.auth-switch { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.auth-switch a { color: var(--accent); font-weight: 700; }
.pw { position: relative; }
.pw .input { padding-right: 76px; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg); border-radius: 8px; padding: 5px 9px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }

/* ---------- listing page ---------- */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--subtle); padding: 24px 0 16px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lp { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding-bottom: 80px; }
.lp > aside { align-self: stretch; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lp-main { padding: 32px; }
.lp-main h1 { font-size: 38px; line-height: 1.08; margin: 14px 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 5px 12px 5px 10px; border-radius: 999px; }
.tag .ic { width: 16px; height: 16px; }
.facts { display: flex; gap: 6px 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts .ic { width: 17px; height: 17px; color: var(--subtle); }
.desc { font-size: 17px; line-height: 1.7; color: #1f2a40; white-space: pre-line; margin: 24px 0 0; max-width: 64ch; }
.divider { height: 1px; background: var(--border); margin: 28px 0; }
.seller { display: flex; align-items: center; gap: 14px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.seller b { display: block; font-size: 16px; }
.seller small { color: var(--subtle); font-size: 14px; }
.sec-title { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.embed-box { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); border-radius: 10px; padding: 10px 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.embed-preview { margin-top: 14px; padding: 18px; background: var(--bg); border-radius: var(--radius-sm); }
.embed-preview iframe { width: 100%; max-width: 420px; height: 150px; border: 0; display: block; }
.loc-map { position: relative; height: 280px; margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; background: #e9eef6; z-index: 0; }
.loc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.loc-head a { color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.book { position: sticky; top: 92px; padding: 26px; }
.book .price { font-family: var(--display); font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.book .price small { font-family: var(--font); font-size: 16px; color: var(--subtle); font-weight: 500; letter-spacing: 0; }
/* sliders */
.sl { position: relative; height: 30px; touch-action: pan-y; }
.sl-track { position: absolute; left: 11px; right: 11px; top: 50%; height: 6px; margin-top: -3px; border-radius: 999px; background: var(--border); }
.sl-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--accent); }
.sl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; z-index: 3; }
.sl-dual input { pointer-events: none; }
.sl input::-webkit-slider-runnable-track { height: 30px; background: none; }
.sl input::-moz-range-track { background: none; }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: grab; transition: transform .18s var(--spring), box-shadow .18s; }
.sl input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: grab; transition: transform .18s var(--spring), box-shadow .18s; }
.sl input:hover::-webkit-slider-thumb { transform: scale(1.08); }
.sl input:active::-webkit-slider-thumb { transform: scale(1.2); cursor: grabbing; }
.sl input:active::-moz-range-thumb { transform: scale(1.2); cursor: grabbing; }
.sl input:focus { outline: none; }
.sl input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--accent-ring); }
.sl input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px var(--accent-ring); }
.sl-tip { position: absolute; bottom: calc(100% + 2px); transform: translate(-50%, 4px) scale(.9); opacity: 0; pointer-events: none; background: var(--text); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 9px; border-radius: 8px; white-space: nowrap; transition: opacity .15s, transform .2s var(--spring); font-variant-numeric: tabular-nums; z-index: 5; }
.sl.drag .sl-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
.flt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 2px; font-size: 14.5px; }
.flt-h span, .flt-h .label { color: var(--muted); font-weight: 600; margin: 0; }
.flt-h b { font-variant-numeric: tabular-nums; font-size: 15px; transition: color .2s; }
.flt.on .flt-h b { color: var(--accent); }
.filters { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px 32px; align-items: end; padding: 16px 20px 10px; margin-bottom: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.filters .linkbtn { font-size: 14px; color: var(--muted); padding-bottom: 7px; }
.filters .linkbtn:hover { color: var(--text); }
.slider-field { margin-top: 12px; }
.range-note { font-size: 13.5px; color: var(--subtle); margin-top: 2px; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr; padding: 14px 16px 8px; } }
.stepper { display: flex; align-items: center; height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 46px; height: 100%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: background-color .15s; }
.stepper button:hover { background: var(--bg); color: var(--text); }
.stepper output { flex: 1; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.sum { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 15px; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; color: var(--muted); gap: 10px; }
.sum div span:last-child { font-variant-numeric: tabular-nums; }
.sum .total { color: var(--text); font-weight: 800; font-size: 17px; padding-top: 10px; border-top: 1px solid var(--border); margin-top: 2px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 18px; }
.notice .ic { margin-top: 3px; width: 18px; height: 18px; }
.notice.warn { background: var(--warn-soft); color: #6b4800; }
.notice.ok { background: var(--success-soft); color: #123a9c; }
.notice.bad { background: var(--danger-soft); color: #8e1d17; }
.similar { margin-top: 28px; }
.published { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--text); color: #fff; margin: 4px 0 18px; animation: rise .6s var(--ease) both; flex-wrap: wrap; }
.published .okmark { background: var(--accent); color: #fff; width: 44px; height: 44px; flex-shrink: 0; }
.published > div:not(.okmark) { flex: 1; min-width: 200px; }
.published b { display: block; font-size: 17px; }
.published span { color: rgba(255, 255, 255, .7); font-size: 15px; }
.published .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.published .btn-ghost:hover { border-color: #fff; }

/* ---------- dialog / toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 2000; background: rgba(14, 23, 41, .45); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.overlay.in { opacity: 1; }
.dialog { width: 100%; max-width: 460px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; transform: translateY(12px) scale(.98); transition: transform .35s var(--spring); }
.overlay.in .dialog { transform: none; }
.dialog h3 { margin: 16px 0 6px; font-size: 24px; }
.dialog p { margin: 0; color: var(--muted); }
.dialog .actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dialog .actions .btn { flex: 1; }
.okmark { width: 52px; height: 52px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.okmark .draw { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .45s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; animation: toastIn .3s var(--spring); }
.toast .ic { width: 16px; height: 16px; color: #9cbcff; }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }
.how { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.how li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.how li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.how li span { color: var(--muted); font-size: 15px; }

/* ---------- mine ---------- */
.page-head { padding: 40px 0 22px; }
.page-head h1 { font-size: 36px; margin: 0 0 6px; }
.mine-list { display: grid; gap: 10px; }
.mine-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; padding: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.mine-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; }
.mine-ic .ic { width: 24px; height: 24px; }
.mine-item h3 { margin: 0 0 4px; font-size: 18px; }
.mine-item h3 a:hover { text-decoration: underline; }
.mine-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.orders { grid-column: 2 / -1; display: grid; gap: 8px; }
.order { background: var(--bg); border-radius: 10px; padding: 10px 14px; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0 32px; color: var(--subtle); font-size: 14px; position: relative; z-index: 1; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-base a:hover { color: var(--text); }
.np-page footer { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) { .browse { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 960px) {
  .browse { grid-template-columns: 1fr; gap: 0; padding-top: 18px; }
  .side { display: none; }
  .lp { grid-template-columns: 1fr; }
  .book { position: static; }
  .hdr-search { display: none; }
  .np-hint { left: 50%; }
}
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; overflow: visible; background: var(--bg); }
  .hero-map { position: relative; inset: auto; height: 260px; }
  .hero-shade { display: none; }
  .hero-inner { display: block; margin-top: -56px; }
  .hero-card { max-width: none; padding: 24px 20px; border-radius: 20px; }
  .hero-card h1 { font-size: 34px; }
  .map-chip { top: 16px; bottom: auto; right: 16px; }
  .np-map { position: relative; top: auto; height: 42vh; min-height: 260px; }
  .np-hint { position: absolute; top: auto; bottom: calc(100% - 42vh + 18px); }
  .np-col { padding-top: 0; margin-top: -28px; }
  .np-card { max-width: none; border-radius: 22px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .results-tools { width: 100%; }
  .results-tools .dd { flex: 1; min-width: 0; }
  .grid2 { grid-template-columns: 1fr; gap: 0; }
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .row-ic, .row-desc { display: none; }
  .row-price b { font-size: 19px; }
  .hdr .wrap { gap: 10px; }
  .hdr-nav .nav-link span, .hdr-nav .btn .t, .acct-btn .nm { display: none; }
  .acct-btn { padding: 3px; }
  .acct-btn > .ic { display: none; }
  .hdr-nav .btn { padding: 0 13px; }
  .lp-main { padding: 22px 18px 24px; }
  .lp-main h1 { font-size: 29px; }
  .mine-item { grid-template-columns: minmax(0, 1fr); }
  .mine-ic { display: none; }
  .mine-actions { justify-content: flex-start; }
  .orders { grid-column: 1; }
  .np-top, .np-step { padding-left: 20px; padding-right: 20px; }
  .np-nav { padding: 16px 20px 20px; }
  .np-step h1 { font-size: 26px; }
  .auth-card { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
