/* Frontend styles - mobile-first */
body .wpm-listing { display:flex; flex-wrap:wrap; gap:16px; justify-content:center; padding:12px; }
.wpm-card { width:100%; max-width:360px; border:1px solid #eee; border-radius:6px; overflow:hidden; background:#fff; box-shadow:0 2px 6px rgba(0,0,0,0.06); position:relative; }
.wpm-card img { display:block; width:100%; height:auto; object-fit:cover; }
.wpm-card-body { padding:12px; text-align:left; }
.wpm-title { font-size:18px; margin:0 0 6px; }
.wpm-price { font-size:20px; color:#111; font-weight:700; }
.wpm-payment { font-size:14px; color:#111; margin-top:6px; }
.wpm-estdown { font-size:12px; color:#666; margin-top:4px; }
.wpm-view-details { display:inline-block; margin-top:8px; background:#11478f; color:#fff; padding:8px 12px; border-radius:4px; text-decoration:none; }
.wpm-conditions { text-align:center; padding:8px; background:#f8f8f8; font-size:13px; color:#333; font-weight:600; }
.wpm-badge { position:absolute; top:8px; left:8px; padding:4px 8px; border-radius:4px; color:#fff; font-weight:700; font-size:12px; z-index:10; }
.wpm-status-available { background:#2ecc71; } /* green */
.wpm-status-pending { background:#f39c12; } /* orange */
.wpm-status-sold { background:#e74c3c; } /* red */
.wpm-status-order { background:#7f8c8d; } /* gray */

@media(min-width:768px){
  .wpm-card { width:calc(33.333% - 22px); }
  .wpm-listing { justify-content:flex-start; }
}

/* gallery on single */
.wpm-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:8px; }
.wpm-gallery img { width:100%; height:auto; display:block; border-radius:6px; }
.wpm-single { max-width:1100px; margin:20px auto; padding:10px; }
.wpm-block { border:1px solid #eee; padding:12px; margin:10px 0; border-radius:6px; }

/* prevent hidden anchors from showing (anchors without images) */
.wpm-gallery-card a.wpm-hidden-anchor { display: none !important; }

/* ensure PhotoSwipe UI (close button) is visible above other elements if theme z-index conflicts */
.pswp__ui {
    z-index: 100000 !important;
}
