/* Scoped to the new local market UI only */
.jplm-section{background:#fff;border:1px solid #efecfa;border-radius:25px;padding:16px;margin:22px 0;font-family:Poppins,Arial,sans-serif;color:#0b1429}.jplm-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.jplm-title h2{font-size:23px;margin:0;font-weight:800}.jplm-title button{border:0;background:none;color:#7223ee;font-weight:800}.jplm-types,.jplm-filter{display:flex;gap:8px;overflow:auto;padding:12px 0}.jplm-types button,.jplm-filter button{flex-shrink:0;border:0;border-radius:13px;background:#f3f4f8;padding:9px 13px;color:#485065;font-weight:700}.jplm-types button.active,.jplm-filter button.active{background:#7626f4;color:white}.jplm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.jplm-card{min-width:0;border-radius:17px;background:#fff;box-shadow:0 3px 12px #25144912;overflow:hidden}.jplm-picture{position:relative;background:#f4f1f9;height:150px;display:grid;place-items:center;font-size:55px;cursor:pointer}.jplm-picture img{width:100%;height:100%;object-fit:cover}.jplm-tag{position:absolute;top:9px;left:9px;border-radius:20px;background:#00ad56;color:white;font-size:11px;font-weight:800;padding:5px 9px}.jplm-info{padding:10px}.jplm-info>b{display:block;font-size:13px;cursor:pointer;line-height:1.4}.jplm-info>strong{display:block;font-size:20px;color:#7822ee}.jplm-info>small{color:#777f8e;display:block;font-size:11px}.jplm-actions{display:flex;gap:7px;margin-top:8px}.jplm-actions button{flex:1;border:0;border-radius:12px;background:#dcf9ed;color:#04a85c;padding:9px 2px;font-size:12px;font-weight:800}.jplm-actions button+button{background:#eee4ff;color:#7321e9}.jplm-actions.big button{padding:14px 3px;font-size:14px}.jplm-empty{grid-column:1/-1;padding:25px;text-align:center;color:#68728a}.jplm-overlay{position:fixed;inset:0;z-index:150000;background:#14102b9e;display:flex;align-items:center;justify-content:center;padding:12px}.jplm-panel{position:relative;background:#fff;border-radius:25px;padding:22px;width:min(100%,630px);max-height:92vh;overflow:auto;color:#10192b;font-family:Poppins,Arial,sans-serif}.jplm-panel h2{font-size:24px;margin:5px 35px 8px 0}.jplm-panel p{line-height:1.6}.jplm-close{position:absolute;right:12px;top:12px;border:0;background:#f2f2f8;border-radius:50%;width:36px;height:36px;font-size:26px}.jplm-panel form>label,.jplm-two>label{display:block;font-size:12px;font-weight:700;margin:12px 0;color:#394257}.jplm-panel input:not([type=checkbox]),.jplm-panel select,.jplm-panel textarea{display:block;box-sizing:border-box;width:100%;padding:12px;border:1px solid #d7dbe5;border-radius:12px;margin-top:5px;background:white;color:#111b32;font-family:inherit;font-size:14px}.jplm-two{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.jplm-check{display:flex!important;align-items:center;gap:8px}.jplm-submit,.jplm-bid button,.jplm-success button{border:0;background:#7324ed;color:white;border-radius:14px;width:100%;padding:15px;font-weight:800;font-size:15px}.jplm-submit:disabled{opacity:.5}.jplm-form-status{font-size:13px;color:#b42318}.jplm-gallery{display:flex;gap:8px;overflow:auto}.jplm-gallery img{width:80%;max-height:290px;object-fit:contain;border-radius:14px;background:#f2f2f6;flex-shrink:0}.jplm-purple{color:#6f24e9}.jplm-chip{padding:8px 15px;background:#eee6ff;border-radius:25px;color:#6f24e9}.jplm-specs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.jplm-specs>div{border:1px solid #eee;border-radius:12px;padding:9px}.jplm-specs b,.jplm-specs small{display:block}.jplm-specs small{color:#777}.jplm-seller,.jplm-description,.jplm-bid{padding:15px;background:#f8f7fb;border-radius:15px;margin:16px 0}.jplm-seller small{display:block}.jplm-description p{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:370px){.jplm-picture{height:115px}.jplm-title h2{font-size:20px}.jplm-info>strong{font-size:17px}}

/* Three-card Marketplace entrance: shown instead of the former featured panel */
.biz-page .jplm-legacy-hidden{display:none!important}
.jplm-marketplace{padding:17px 10px 13px;margin:8px 0 22px;border-radius:24px;background:linear-gradient(145deg,#faf9ff,#f0eafd);border:1px solid #e2ddf6;box-shadow:0 5px 18px #27104f0a;text-align:center;font-family:Poppins,Arial,sans-serif}
.jplm-market-title{font-size:clamp(24px,5.5vw,41px);font-weight:900;letter-spacing:-1.8px;line-height:1.16;color:#080e22}.jplm-market-title span{color:#7729eb}.jplm-market-subtitle{color:#626b80;font-weight:600;font-size:12px;margin:7px 0 15px}.jplm-market-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.jplm-market-card{min-width:0;background:#fff;border:1px solid #e0e4fa;border-radius:19px;padding:12px 7px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 12px #2e135a0a}.jplm-market-card.classified{border-color:#cde9d5;background:#f9fffb}.jplm-market-card.auction{border-color:#f7ddc9;background:#fffaf6}.jplm-market-art{font-size:43px;height:61px;display:flex;align-items:center;justify-content:center}.jplm-market-card h3{color:#0a1025;font-weight:850;font-size:clamp(12px,3.2vw,19px);margin:7px 0 4px}.jplm-market-card p{font-size:clamp(9px,2.5vw,12px);line-height:1.32;color:#323b4f;min-height:35px;margin:0 0 12px}.jplm-market-card button{border-radius:10px;width:100%;padding:11px 2px;font-size:clamp(9px,2.5vw,12px);font-weight:800;cursor:pointer}.jplm-market-card .primary{border:1px solid #1251ee;color:#fff;background:#1152ef}.jplm-market-card .secondary{margin-top:7px;border:1px solid #1251ee;color:#1152ef;background:#fff}.jplm-market-card.classified .primary{background:#04aa50;border-color:#04aa50}.jplm-market-card.classified .secondary{color:#009d4b;border-color:#04aa50}.jplm-market-card.auction .primary{background:#ff6219;border-color:#ff6219}.jplm-market-card.auction .secondary{color:#f05a1b;border-color:#ff6219}.jplm-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.jplm-list-head button{background:#7626f4;color:#fff;border:0;border-radius:12px;padding:10px;font-weight:800}.jplm-list-view .jplm-grid{min-height:110px}

/* 16 Oct: compact, height-aware Marketplace layout only. No JS or other pages changed. */
.biz-page #jplmMarketplace{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  min-width:0;
  margin:6px 0 12px;
  padding:14px 9px 12px;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c9b8f4 transparent;
}
.biz-page #jplmMarketplace .jplm-market-title{
  font-size:clamp(22px,6vw,35px);
  letter-spacing:-1.2px;
  overflow-wrap:normal;
}
.biz-page #jplmMarketplace .jplm-market-subtitle{
  font-size:clamp(10px,2.7vw,12px);
  line-height:1.35;
  margin:6px 0 13px;
}
.biz-page #jplmMarketplace .jplm-market-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
  gap:7px;
}
.biz-page #jplmMarketplace .jplm-market-card{
  box-sizing:border-box;
  min-width:0;
  height:100%;
  padding:10px 6px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.biz-page #jplmMarketplace .jplm-market-art{
  height:52px;
  font-size:36px;
  flex:none;
}
.biz-page #jplmMarketplace .jplm-market-card h3{
  font-size:clamp(11px,3.25vw,17px);
  line-height:1.2;
  margin:7px 0 7px;
  overflow-wrap:anywhere;
}
.biz-page #jplmMarketplace .jplm-market-card p{
  flex:1 0 auto;
  font-size:clamp(9px,2.5vw,11px);
  line-height:1.27;
  min-height:49px;
  margin:0 0 10px;
}
.biz-page #jplmMarketplace .jplm-market-card button{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  box-sizing:border-box;
  flex:none;
  width:100%;
  min-height:39px;
  padding:8px 2px;
  font-size:clamp(9px,2.35vw,12px);
  line-height:1.2;
  white-space:normal;
  overflow-wrap:break-word;
  border-radius:10px;
}
.biz-page #jplmMarketplace .jplm-market-card button.secondary{
  margin-top:7px;
}
@media (max-width:360px){
  .biz-page #jplmMarketplace{padding:12px 6px 10px}
  .biz-page #jplmMarketplace .jplm-market-cards{gap:5px}
  .biz-page #jplmMarketplace .jplm-market-card{padding:9px 4px;border-radius:14px}
  .biz-page #jplmMarketplace .jplm-market-art{height:43px;font-size:31px}
  .biz-page #jplmMarketplace .jplm-market-card button{font-size:9px;min-height:40px}
}
/* On short mobile viewports, scroll the cards vertically rather than clipping buttons. */
@media (max-height:640px) and (max-width:700px){
  .biz-page #jplmMarketplace{
    max-height:max(265px,calc(100dvh - 160px));
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
}

/* Classified / auction form modal: mobile-safe viewport scroll and checkbox alignment */
#jplmOverlay.jplm-overlay{
  box-sizing:border-box;
  inset:0;
  width:100%;
  height:100dvh;
  max-height:100dvh;
  padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));
  align-items:center;
  overflow:hidden;
}
#jplmOverlay .jplm-panel{
  box-sizing:border-box;
  width:min(100%,630px);
  min-width:0;
  max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-x:hidden;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:20px 20px 26px;
  scrollbar-width:thin;
  scrollbar-color:#c8b5ee transparent;
}
#jplmOverlay .jplm-close{
  position:sticky;
  top:0;
  float:right;
  z-index:5;
  margin:-10px -8px 0 8px;
  flex-shrink:0;
  display:grid;
  place-items:center;
  line-height:1;
}
#jplmOverlay .jplm-panel form,
#jplmOverlay .jplm-panel form *{box-sizing:border-box}
#jplmOverlay .jplm-panel form>label.jplm-check{
  display:flex!important;
  flex-direction:row!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:10px!important;
  width:100%;
  min-height:36px;
  margin:10px 0 15px;
  padding:0;
  line-height:1.4;
  text-align:left;
  white-space:normal;
}
#jplmOverlay .jplm-check input[type="checkbox"]{
  appearance:auto!important;
  -webkit-appearance:checkbox!important;
  display:inline-block!important;
  position:static!important;
  flex:0 0 18px!important;
  width:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  height:18px!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
  accent-color:#7427ec;
}
#jplmOverlay .jplm-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px}
#jplmOverlay .jplm-two>label{min-width:0}
#jplmOverlay .jplm-panel input:not([type="checkbox"]),
#jplmOverlay .jplm-panel select,
#jplmOverlay .jplm-panel textarea{max-width:100%;min-width:0}
#jplmOverlay .jplm-panel textarea{resize:vertical;min-height:90px}
@media(max-width:420px){
  #jplmOverlay .jplm-panel{padding:17px 17px 24px;border-radius:22px}
  #jplmOverlay .jplm-panel h2{font-size:21px;line-height:1.25}
  #jplmOverlay .jplm-panel form>label,#jplmOverlay .jplm-two>label{margin-top:10px;margin-bottom:10px}
  #jplmOverlay .jplm-two{gap:0 9px}
  #jplmOverlay .jplm-panel input:not([type="checkbox"]),#jplmOverlay .jplm-panel select{padding:11px 10px}
}
@supports not (height:100dvh){
  #jplmOverlay.jplm-overlay{height:100vh;max-height:100vh}
  #jplmOverlay .jplm-panel{max-height:calc(100vh - 24px)}
}

/* 16 Oct: dedicated full-page Classifieds / Auction browser; does not affect forms */
.biz-page.jplm-browsing > :not(#jplmBrowsePage){display:none!important}
.biz-page.jplm-browsing{min-height:100%;background:#f6f5fd;overflow:visible!important}
#jplmBrowsePage{display:block!important;box-sizing:border-box;width:100%;min-height:calc(100dvh - 110px);padding:14px 12px 80px;background:#f6f5fd;color:#0c1429;font-family:Poppins,Arial,sans-serif;overflow:visible}
#jplmBrowsePage *{box-sizing:border-box}
#jplmBrowsePage .jplm-page-head{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:0 0 17px}
#jplmBrowsePage h2{flex:1;min-width:0;margin:0;font-size:clamp(17px,4.9vw,25px);font-weight:850;line-height:1.2;color:#0c1429}
#jplmBrowsePage .jplm-back{flex:none;border:0;border-radius:12px;width:35px;height:37px;background:#fff;color:#121a2c;font-size:32px;line-height:30px;cursor:pointer}
#jplmBrowsePage .jplm-page-post{flex:none;border:0;border-radius:11px;padding:10px 12px;min-height:37px;font-size:11px;font-weight:800;color:white;background:#7525ef;cursor:pointer}
#jplmBrowsePage .jplm-filter{display:flex;align-items:center;gap:8px;max-width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 0 14px;margin:0 0 4px}
#jplmBrowsePage .jplm-filter::-webkit-scrollbar{display:none}
#jplmBrowsePage .jplm-filter button{flex:0 0 auto;white-space:nowrap;border:0;border-radius:13px;padding:12px 13px;background:#eceef5;color:#454d62;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer}
#jplmBrowsePage .jplm-filter button.active{background:linear-gradient(120deg,#8733ff,#681beb);color:white}
#jplmBrowsePage .jplm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start;min-height:180px}
#jplmBrowsePage .jplm-card{min-width:0;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 2px 12px #20134112;border:1px solid #edeaf8;display:flex;flex-direction:column}
#jplmBrowsePage .jplm-picture{position:relative;cursor:pointer;width:100%;height:auto;aspect-ratio:1.78;background:#f4f3f7;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:40px}
#jplmBrowsePage .jplm-picture img{display:block;width:100%;height:100%;object-fit:cover}
#jplmBrowsePage .jplm-tag{position:absolute;bottom:9px;left:8px;top:auto;border-radius:20px;background:#08b45a;color:white;font-size:10px;font-weight:700;padding:5px 9px;white-space:nowrap}
#jplmBrowsePage .jplm-info{display:flex;flex-direction:column;flex:1;min-width:0;gap:5px;padding:10px 9px 9px}
#jplmBrowsePage .jplm-info>b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35;font-weight:800;min-height:32px;color:#11192c}
#jplmBrowsePage .jplm-info>strong{color:#7525ee;font-weight:850;font-size:clamp(15px,4vw,21px);line-height:1.25}
#jplmBrowsePage .jplm-info>small{font-size:10px;line-height:1.4;overflow-wrap:anywhere;color:#737c91;min-height:27px}
#jplmBrowsePage .jplm-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:auto;padding-top:3px}
#jplmBrowsePage .jplm-actions button{min-width:0;min-height:35px;padding:7px 2px;font-size:clamp(10px,2.7vw,13px);border-radius:12px;white-space:nowrap;background:#dff9ed;color:#05a651}
#jplmBrowsePage .jplm-actions button+button{background:#eee5ff;color:#7425ea}
#jplmBrowsePage .jplm-empty{grid-column:1/-1;text-align:center;padding:40px 15px;color:#66718b;font-size:14px;background:#fff;border-radius:18px}
@media(min-width:700px){#jplmBrowsePage{max-width:950px;margin:0 auto;padding:22px 22px 90px}#jplmBrowsePage .jplm-grid{gap:18px}#jplmBrowsePage .jplm-info{padding:14px;gap:9px}#jplmBrowsePage .jplm-info>b{font-size:17px}#jplmBrowsePage .jplm-info>small{font-size:13px}#jplmBrowsePage .jplm-actions button{font-size:15px}}
@media(max-width:355px){#jplmBrowsePage{padding:12px 7px 75px}#jplmBrowsePage .jplm-grid{gap:7px}#jplmBrowsePage .jplm-info{padding:8px 6px}#jplmBrowsePage .jplm-page-post{padding:8px;font-size:10px}}

/* Local Market home: approved classifieds preview, scoped to its own section. */
#jplmFeatured{margin:16px 0 22px;padding:15px 14px 17px;background:#fff;border:1px solid #ebe7f9;border-radius:23px;box-shadow:0 5px 16px rgba(42,28,92,.035);min-width:0;box-sizing:border-box}
#jplmFeatured *{box-sizing:border-box}
#jplmFeatured .jplm-featured-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 13px}
#jplmFeatured .jplm-featured-head h2{margin:0;color:#10182e;font-size:clamp(19px,4.3vw,25px);font-weight:850;line-height:1.18;letter-spacing:-.5px}
#jplmFeatured .jplm-featured-head button{border:0;background:none;color:#7624ef;font-weight:800;font-size:14px;white-space:nowrap;padding:6px 0;cursor:pointer}
#jplmFeatured .jplm-featured-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;margin:0 0 14px;padding:0 0 2px}
#jplmFeatured .jplm-featured-tabs::-webkit-scrollbar{display:none}
#jplmFeatured .jplm-featured-tabs button{flex:0 0 auto;border:0;border-radius:12px;padding:10px 12px;min-height:37px;background:#f1f2f7;color:#3d4760;font-weight:750;font-size:12px;cursor:pointer;white-space:nowrap}
#jplmFeatured .jplm-featured-tabs button.active{background:#7424f3;color:#fff;box-shadow:0 3px 7px #7424f333}
#jplmFeatured .jplm-featured-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}
#jplmFeatured .jplm-featured-card{background:#fff;border-radius:17px;padding:5px;overflow:hidden;min-width:0;box-shadow:0 3px 12px rgba(25,25,50,.10);border:1px solid #efedf8}
#jplmFeatured .jplm-featured-photo{position:relative;aspect-ratio:1.9;overflow:hidden;border-radius:12px;background:#f2f1f8;cursor:pointer;display:flex;align-items:center;justify-content:center}
#jplmFeatured .jplm-featured-photo img{width:100%;height:100%;object-fit:cover;display:block}
#jplmFeatured .jplm-featured-placeholder{font-size:32px}
#jplmFeatured .jplm-featured-tag{position:absolute;left:7px;top:7px;background:#08b456;color:#fff;font-size:10px;padding:5px 8px;border-radius:9px;font-weight:800}
#jplmFeatured .jplm-featured-tag.rent{background:#1884e6}
#jplmFeatured .jplm-featured-info{padding:7px 4px 3px;min-width:0}
#jplmFeatured .jplm-featured-name{display:block;color:#11192d;font-size:12px;line-height:1.32;min-height:32px;cursor:pointer;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
#jplmFeatured .jplm-featured-info strong{display:block;color:#7928e8;font-size:18px;margin:3px 0 6px;overflow-wrap:anywhere}
#jplmFeatured .jplm-featured-info strong small{font-size:10px;color:#586078;font-weight:550}
#jplmFeatured .jplm-featured-meta{display:flex;justify-content:space-between;gap:5px;min-width:0;color:#768098;font-size:10px;margin-bottom:7px}
#jplmFeatured .jplm-featured-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#jplmFeatured .jplm-featured-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#jplmFeatured .jplm-featured-actions button{border:0;border-radius:11px;min-width:0;min-height:31px;font-size:12px;font-weight:850;color:#00a54e;background:#e4faef;cursor:pointer}
#jplmFeatured .jplm-featured-actions button+button{color:#7427e6;background:#eee5ff}
#jplmFeatured .jplm-featured-empty{grid-column:1/-1;text-align:center;color:#646d84;font-size:13px;padding:30px 8px;margin:0}
@media(max-width:370px){#jplmFeatured{padding:13px 10px}#jplmFeatured .jplm-featured-grid{gap:8px}#jplmFeatured .jplm-featured-info strong{font-size:16px}#jplmFeatured .jplm-featured-actions button{font-size:11px}}

/* Three real marketplace tabs. Scoped to preview; no change to other site navigation. */
#jplmFeatured .jplm-main-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 17px;min-width:0}
#jplmFeatured .jplm-main-tabs button{min-width:0;min-height:51px;padding:9px 4px;display:flex;align-items:center;justify-content:center;gap:3px;border:1px solid #ded7fa;border-radius:16px;background:#f7f3ff;color:#181a30;font-size:clamp(11px,3.3vw,15px);font-weight:800;cursor:pointer}
#jplmFeatured .jplm-main-tabs button:nth-child(2){background:#edfff5;border-color:#c8f7df}
#jplmFeatured .jplm-main-tabs button:nth-child(3){background:#fff8f1;border-color:#ffe0c3}
#jplmFeatured .jplm-main-tabs button.active{outline:2px solid #7829ee;outline-offset:-2px;box-shadow:0 3px 12px #7624ef22}
#jplmFeatured .jplm-main-tabs button span{font-size:22px;line-height:1;color:#7624ee}
#jplmFeatured .jplm-main-tabs button:nth-child(2) span{color:#02b867}
#jplmFeatured .jplm-main-tabs button:nth-child(3) span{color:#fc741d}
#jplmFeatured .jplm-featured-tabs[hidden]{display:none!important}
#jplmFeatured .jplm-directory-preview-card{min-width:0;overflow:hidden;border-radius:14px}
#jplmFeatured .jplm-directory-preview-card>*{max-width:100%;min-width:0}
@media(max-width:370px){#jplmFeatured .jplm-main-tabs{gap:5px}#jplmFeatured .jplm-main-tabs button{font-size:11px;border-radius:12px}}
