.undo-pp-shell{
    width:min(var(--undo-pp-container,1200px),calc(100% - 32px));
    margin:40px auto 72px;
}
.undo-pp-archive-header{margin-bottom:28px}
.undo-pp-archive-header h1,.undo-pp-single h1{margin:0 0 10px}
.undo-pp-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;margin-bottom:18px}
.undo-pp-filters select,.undo-pp-reset{min-height:44px;border:1px solid #d7dbe2;border-radius:10px;background:#fff;padding:0 12px}
.undo-pp-reset{cursor:pointer}
.undo-pp-map{height:480px;border-radius:var(--undo-pp-radius,18px);overflow:hidden;border:1px solid #e3e6eb;background:#f5f6f7}
.undo-pp-results-meta{margin:16px 0;color:#5f6570}
.undo-pp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.undo-pp-card{border:1px solid #e4e6eb;border-radius:var(--undo-pp-radius,16px);overflow:hidden;background:#fff;box-shadow:0 8px 26px rgba(20,27,40,.06)}
.undo-pp-card[hidden]{display:none!important}
.undo-pp-card-image{display:block;position:relative;aspect-ratio:16/10;background:#eef0f3;overflow:hidden}
.undo-pp-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.undo-pp-card:hover .undo-pp-card-image img{transform:scale(1.03)}
.undo-pp-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#eceff3,#dfe4ea)}
.undo-pp-status{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:700;background:#edf2f7;color:#2f3a4a}
.undo-pp-card-image .undo-pp-status{position:absolute;top:12px;inset-inline-start:12px;background:rgba(255,255,255,.92)}
.undo-pp-status-completed{background:#e7f8ee;color:#166534}
.undo-pp-status-ongoing{background:#fff7db;color:#92400e}
.undo-pp-status-upcoming{background:#eaf0ff;color:#1d4ed8}
.undo-pp-card-body{padding:18px}
.undo-pp-card h3{font-size:20px;line-height:1.25;margin:0 0 10px}
.undo-pp-card h3 a{text-decoration:none;color:inherit}
.undo-pp-card-line{margin:6px 0;color:#616875;font-size:14px}
.undo-pp-tags{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
.undo-pp-tags span{background:#f1f3f6;padding:6px 9px;border-radius:999px;font-size:12px}
.undo-pp-view-project,.undo-pp-popup a{font-weight:700;text-decoration:none;color:var(--undo-pp-primary,#2563eb)}
.undo-pp-empty{padding:28px;text-align:center;border:1px dashed #cfd4dc;border-radius:var(--undo-pp-radius,14px)}
.undo-pp-popup{line-height:1.5;min-width:190px}
.undo-pp-popup strong{display:block;font-size:15px;margin-bottom:6px}
.undo-pp-popup a{display:inline-block;margin-top:8px}

.undo-pp-single-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,var(--undo-pp-hero-image-width,55%));gap:34px;align-items:center;margin-bottom:30px}
.undo-pp-single-image img{width:100%;height:auto;border-radius:var(--undo-pp-radius,20px);display:block}
.undo-pp-single-hero-copy h1{font-size:clamp(28px,5vw,var(--undo-pp-title-size,64px));line-height:1.04;margin-top:12px}
.undo-pp-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0 44px}
.undo-pp-facts>div{border:1px solid #e4e6eb;border-radius:var(--undo-pp-radius,14px);padding:16px}
.undo-pp-facts span{display:block;font-size:12px;color:#6c7380;margin-bottom:6px}
.undo-pp-section{margin:42px 0}
.undo-pp-section h2{margin-bottom:16px}
.undo-pp-preline{white-space:pre-line}
.undo-pp-tags-large span{font-size:14px;padding:8px 12px}
.undo-pp-single-map{height:var(--undo-pp-map-height,420px)}

.undo-pp-gallery{display:grid;grid-template-columns:repeat(var(--undo-pp-gallery-columns,3),minmax(0,1fr));gap:12px}
.undo-pp-gallery>a,.undo-pp-gallery-item{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:var(--undo-pp-radius,14px);background:#f1f3f6}
.undo-pp-gallery-item>a{display:block;width:100%;height:100%}
.undo-pp-gallery img{width:100%;height:100%;object-fit:cover;display:block}

.undo-pp-arrow{display:inline-block}
[dir="rtl"] .undo-pp-arrow{transform:scaleX(-1)}

.undo-pp-used-products{display:grid;grid-template-columns:repeat(var(--undo-pp-product-columns,4),minmax(0,1fr));gap:16px}
.undo-pp-used-product{display:flex;flex-direction:column;gap:10px;text-decoration:none;border:1px solid rgba(0,0,0,.1);border-radius:var(--undo-pp-radius,12px);padding:12px;background:#fff;transition:transform .18s ease,box-shadow .18s ease;color:inherit}
.undo-pp-used-product:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.undo-pp-used-product-image img{display:block;width:100%;height:auto;border-radius:max(0px,calc(var(--undo-pp-radius,12px) - 4px))}
.undo-pp-used-product-name{font-weight:600;color:inherit}
.undo-pp-used-product-price{font-size:.9em}

.undo-pp-component{box-sizing:border-box}
.undo-pp-sc-featured img{display:block;max-width:100%;height:auto;border-radius:var(--undo-pp-radius,16px)}
.undo-pp-term-list{margin:0;padding-inline-start:1.2em}
.undo-pp-tags-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.undo-pp-tags-grid span{display:block}
.undo-pp-shortcode-map{width:100%}

@media(max-width:900px){
    .undo-pp-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
    .undo-pp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .undo-pp-single-hero{grid-template-columns:1fr}
    .undo-pp-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
    .undo-pp-used-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
    .undo-pp-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    .undo-pp-filters,.undo-pp-grid,.undo-pp-facts{grid-template-columns:1fr}
    .undo-pp-map{height:380px}
    .undo-pp-single-map,.undo-pp-shortcode-map{height:var(--undo-pp-map-height,380px)}
    .undo-pp-shell{width:min(100% - 20px,var(--undo-pp-container,1200px))}
    .undo-pp-used-products{grid-template-columns:1fr}
}
