/* Naver-like listing styles for trick list */
*{box-sizing:border-box}
html,body{height:100%}
:root{--bg:#f6f8fb;--text:#101011;--muted:#6b7280;--line:#e9edf1;--brand:#03c75a;--accent:#2563eb}
body.trick-body{margin:0;font-family:'Pretendard',system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;line-height:1.6;background:var(--bg);color:var(--text)}
.nv-topbar{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);z-index:100}
.has-topbar{padding-top:0}
@media (max-width: 820px){
  .nv-topbar{position:fixed;top:0;left:0;right:0;z-index:2000}
  body.trick-body{padding-top:56px}
}
.nv-topbar .nv-inner{max-width:744px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:12px}
.nv-brand{font-weight:800;color:var(--text);font-size:18px}
.top-actions{margin-left:auto;display:flex;gap:8px}
.nv-search{margin-left:auto;display:flex;gap:8px}
.nv-search input,.nv-search select{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:14px}
.nv-search button{padding:8px 12px;border-radius:8px;border:0;background:#2d5bff;color:#fff;font-weight:600}

.nv-main{max-width:744px;margin:0 auto;padding:18px 16px}
.nv-empty{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;color:var(--muted)}

.nv-agency{background:#fff;border-bottom:1px solid var(--line)}
.nv-agency-inner{max-width:744px;margin:0 auto;padding:16px;display:flex;align-items:center;justify-content:space-between}
.nv-broker{display:flex;align-items:center;gap:12px}
.agent-photo{width:70px;height:70px;border-radius:999px;object-fit:cover;border:1px solid var(--line)}
.nv-bio{display:flex;flex-direction:column;gap:2px}
.nv-name{font-weight:800;font-size:16px}
.nv-addr{color:var(--muted);font-size:13px}
.nv-recent{color:var(--muted);font-size:12px}
.nv-cats{color:#374151;font-size:13px}
.nv-cats .num{color:#03c75a;font-weight:800}
.nv-cats b{font-weight:800}
.nv-cats .dot{display:inline-block;width:4px;height:4px;border-radius:999px;background:#d1d5db;margin:0 6px}
.nv-agency-actions .chip{display:inline-block;border:1px solid var(--line);border-radius:999px;padding:8px 12px;background:#fff;color:#374151;margin-left:8px;font-weight:700}

/* right contact buttons */
.nv-contact{display:flex;flex-direction:column;align-items:center;justify-content:center}
.contact-buttons{display:flex;gap:8px}
.contact-btn{display:inline-flex;width:29px;height:29px;border:1px solid #e5e7eb;background:#fff;border-radius:9px;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0,0,0,.03)}
.contact-btn:hover{filter:brightness(0.98)}

/* filter pills */
.filter-pills{display:flex;gap:12px}
.filter-pills .pill{appearance:none;-webkit-appearance:none;border:0;border-radius:999px;background:#1f2937;color:#fff;padding:10px 14px;font-weight:700;cursor:pointer}
.filter-pills .pill:hover{filter:brightness(1.05)}
.filter-pills .pill.apt{background:#03c75a;color:#fff}

.nv-toolbar{max-width:744px;margin:12px auto 0;display:flex;align-items:center;justify-content:space-between;padding:0 16px}
.nv-count{color:var(--text);font-size:14px}
.nv-count b{font-weight:800}
.nv-sort a{color:var(--muted);text-decoration:none;margin:0 4px;font-size:14px}
.nv-sort a.on{color:var(--text);font-weight:800}

.nv-list{display:grid;grid-template-columns:1fr;gap:12px}
.nv-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.nv-card.is-sold .nv-price strong{text-decoration:line-through;color:#9ca3af}
.nv-card-head{position:relative;padding:12px 16px 16px;border-bottom:none}
.nv-addr{color:#111827;margin:0 0 2px;font-size:20px;font-weight:400;opacity:.8}
.nv-price{display:flex;align-items:center;gap:8px}
.nv-price strong{font-size:22px;color:#111827;letter-spacing:-0.2px;font-weight:800}
.nv-badge.sold{display:inline-block;background:#facc15;color:#7c5e00;border-radius:999px;padding:4px 8px;font-size:12px}
.nv-meta{margin-top:6px;color:var(--muted);font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}

/* favorite star button */
.nv-fav{position:absolute;top:10px;right:12px;background:transparent;border:0;cursor:pointer;z-index:2}
.nv-fav svg{display:block}

.nv-card-head{position:relative;padding:12px 16px 12px;border-bottom:none}
.nv-card-body{padding:10px 16px}
.nv-feature{color:#374151;font-size:16px;margin-top:2px}
.nv-chips{margin-top:12px;display:flex;gap:8px;align-items:center}
.nv-chips .chip{display:inline-block;padding:4px 8px;border-radius:6px;font-size:12px;border:1px solid transparent}
.nv-chips .chip.owner{background:#e7f7ee;border-color:#bbf7d0;color:#16a34a}
.nv-chips .chip.confirm{background:#fee2e2;border-color:#fecaca;color:#dc2626}

/* full-card tap area for navigation */
.nv-tap{position:absolute;inset:0;z-index:1;text-indent:-9999px}

.nv-foot{display:flex;justify-content:space-between;gap:8px;padding:10px 16px;border-top:1px solid #f0f2f5;color:var(--muted);font-size:12px}
.nv-price-max{color:#0ea5e9;font-weight:800}

@media (max-width: 640px){
  .nv-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nv-search{width:100%}
  .nv-search input{flex:1}
  .nv-addr{font-size:16px}
  .nv-price strong{font-size:18px}
  .nv-meta{font-size:14px}
  .nv-feature{font-size:14px}
  .nv-chips .chip{font-size:11px;padding:3px 7px}
  /* single-line with ellipsis on mobile */
  .nv-meta, .nv-feature{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
}

/* simple modal for filters */
.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.5);z-index:60}
.modal-card{background:#fff;border-radius:12px;max-width:540px;width:90%;padding:0 0 16px;box-shadow:0 10px 24px rgba(0,0,0,.2)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.modal-head h3{margin:0;font-size:20px}
.modal-close{background:transparent;border:0;font-size:22px;line-height:1;cursor:pointer}
.modal-list{list-style:none;margin:0;padding:0}
.modal-list li{padding:14px 16px;border-bottom:1px solid #f0f2f5}
.modal-list label{display:flex;align-items:center;gap:10px;cursor:pointer}
.modal-apply{display:block;width:calc(100% - 32px);margin:16px auto 0;padding:12px 16px;border-radius:10px;border:0;background:#03c75a;color:#fff;font-weight:800}

/* between section spacing */
.filters-between .inner{max-width:744px;margin:16px auto 0;padding:0 16px}


/* register button above footer */
.reg-wrap{max-width:744px;margin:12px auto 0;padding:0 16px}
.reg-btn{display:block;width:100%;text-align:center;background:#03c75a;color:#fff;border-radius:12px;padding:14px 0;font-weight:800;text-decoration:none}

/* generic 2-column grid for index gwangjun list */
.nv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
/* vertical divider between columns (desktop only) */
@media (min-width:761px){
  .nv-grid{position:relative}
  .nv-grid:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:1px;background:#e5e7eb;transform:translateX(-0.5px);pointer-events:none}
}
@media (max-width:760px){.nv-grid{grid-template-columns:1fr}}

