/* Browse + listing pages */
.mwrap { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 100px 0 60px; }
.mhead h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.05em; font-weight: 600; margin: 6px 0 6px; line-height: 1.02; }
.mhead p { color: var(--ink-2); margin: 0 0 20px; }
.msearch { display: flex; gap: 8px; align-items: center; background: var(--surface); border-radius: 999px; box-shadow: var(--sh-2); padding: 6px 6px 6px 18px; max-width: 680px; }
.msearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; }
.mtypes { margin: 18px 0 10px; }
.mfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.mfilters select, .mfilters input { border: 0; background: var(--surface); box-shadow: var(--sh-1); border-radius: 999px; padding: 9px 14px; font-size: 14px; outline: 0; }
.mfilters input { width: 120px; }
.mfilters input:focus, .mfilters select:focus { box-shadow: 0 0 0 2px var(--accent); }
.mcount { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mcard { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-1); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mcov { height: 150px; position: relative; display: grid; place-items: center; }
.mcov .mi { font-size: 46px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .12)); }
.mcov .tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); }
.mcov .occ { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 600; background: rgba(17, 18, 20, .75); color: #fff; padding: 3px 9px; border-radius: 99px; }
.t-rent { background: linear-gradient(135deg, #f7ecd4, #e7c27c); }
.t-stay { background: linear-gradient(135deg, #e8eef6, #a9bfdc); }
.t-sale { background: linear-gradient(135deg, #ecebe6, #c7c2b4); }
.t-presell { background: linear-gradient(135deg, #1d1f24, #4a3a1c); }
.t-presell .tag { background: #e2a83f; color: #111214; }
.mbd { padding: 14px 16px 16px; display: grid; gap: 3px; }
.mpr { font-family: var(--mono); font-weight: 500; font-size: 20px; letter-spacing: -.05em; }
.mtt { font-weight: 600; letter-spacing: -.02em; font-size: 15.5px; }
.mar, .msp { color: var(--muted); font-size: 13px; }
.vs { justify-self: start; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 99px; margin-top: 6px; }
.vs.good { background: var(--leaf-soft); color: #0f7a54; }
.vs.high { background: var(--peach-soft); color: #b5552a; }
.vs.fair { background: var(--sunken); color: var(--ink-2); }
.mempty { background: var(--surface); border-radius: 24px; box-shadow: var(--sh-1); padding: 44px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.mempty h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; font-weight: 600; }
.mempty p { margin: 0 0 6px; color: var(--ink-2); max-width: 460px; }
.mcta { margin-top: 40px; background: var(--ink); color: #fff; border-radius: 26px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.mcta h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; font-weight: 600; }
.mcta p { margin: 4px 0 0; color: #b9bdc4; }
.mcta .btn-soft { background: #fff; }

/* Listing page */
.lback { display: inline-flex; gap: 6px; color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.lgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.lhero { border-radius: 26px; height: 300px; display: grid; place-items: center; position: relative; overflow: hidden; }
.lhero .mi { font-size: 90px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .15)); }
.lhero .tag { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .92); font-size: 13.5px; padding: 5px 12px; }
.lhero .views { position: absolute; bottom: 14px; right: 16px; font-family: var(--mono); font-size: 12px; background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 99px; }
.ltitle { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.05em; font-weight: 600; margin: 20px 0 4px; line-height: 1.08; }
.larea { color: var(--ink-2); margin: 0 0 14px; }
.lchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lchips span { background: var(--surface); box-shadow: var(--sh-1); border-radius: 99px; padding: 6px 12px; font-size: 14px; }
.lsec { background: var(--surface); border-radius: 20px; box-shadow: var(--sh-1); padding: 20px; margin-bottom: 12px; }
.lsec h2 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 10px; }
.lsec p { margin: 0; color: var(--ink-2); line-height: 1.65; white-space: pre-line; }
.lcmp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin-top: 12px; }
.lcmp div { background: var(--surface); padding: 12px 14px; }
.lcmp small { color: var(--muted); font-size: 12px; display: block; }
.lcmp b { font-family: var(--mono); font-weight: 500; font-size: 17px; letter-spacing: -.04em; }
.lside { position: sticky; top: 92px; display: grid; gap: 12px; }
.lprice { background: var(--surface); border-radius: 22px; box-shadow: var(--sh-2); padding: 22px; display: grid; gap: 10px; }
.lprice .big { font-family: var(--mono); font-size: 32px; letter-spacing: -.06em; font-weight: 500; line-height: 1; }
.lprice .big small { font-family: var(--sans); font-size: 15px; color: var(--muted); letter-spacing: 0; }
.lprice .by { font-size: 13.5px; color: var(--muted); }
.lprice .btn { width: 100%; }
.lcontacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lcontacts a { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--sunken); font-size: 12.5px; font-weight: 500; }
.lcontacts a:hover { background: #ece8dd; }
.lcontacts a span { font-size: 18px; }
.lshare { display: flex; gap: 6px; flex-wrap: wrap; }
.lshare .btn { flex: 1; }
.lreport { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: center; }
.mine { background: var(--accent-soft); color: #6b4510; border-radius: 16px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.mdlg { border: 0; border-radius: 22px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: var(--sh-2); color: var(--ink); }
.mdlg::backdrop { background: rgba(17, 18, 20, .3); backdrop-filter: blur(4px); }
.mdlg form { padding: 22px; display: grid; gap: 12px; }
.mdlg h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.mdlg label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.mdlg input, .mdlg select, .mdlg textarea { border: 0; border-radius: 12px; padding: 11px 12px; background: var(--sunken); font: inherit; font-size: 15px; outline: 0; }
.mdlg input:focus, .mdlg select:focus, .mdlg textarea:focus { background: #fff; box-shadow: 0 0 0 2px var(--accent); }
.mdlg .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mdlg .acts { display: flex; justify-content: flex-end; gap: 8px; }
.mdlg .err { margin: 0; min-height: 18px; color: var(--rose); font-size: 14px; }
.mdlg .head { display: flex; justify-content: space-between; align-items: center; }
.mdlg .x { border: 0; background: var(--sunken); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; cursor: pointer; }
@media (max-width: 900px) {
  .lgrid2 { grid-template-columns: minmax(0, 1fr); }
  .lside { position: static; }
  .lhero { height: 220px; }
}
@media (max-width: 560px) { .mfilters input { width: 100px; } .lcmp { grid-template-columns: 1fr; } }
