/* ═══════════════════════════════════════════════════════════════
 * Universal Project Card — bnp-pcard-*
 * Used wherever the site renders a project listing card:
 *   - All Projects page
 *   - Developer profile pages
 *   - City / location archive pages
 *   - Related projects sections
 *   - Search results
 *
 * Visual derived from the canonical .pa-card design (used on
 * /projects/ since the original theme build).
 * ═══════════════════════════════════════════════════════════════ */

.bnp-pcard {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: border-color .22s, transform .22s, box-shadow .22s;
    position: relative;
    color: inherit;
}
.bnp-pcard:hover {
    border-color: #fed7aa;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249,115,22,.12);
}
.bnp-pcard-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f97316, #fbbf24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
}
.bnp-pcard-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .3s;
}
.bnp-pcard:hover .bnp-pcard-img img { transform: scale(1.05); }
.bnp-pcard-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,.5), transparent);
    pointer-events: none;
}
.bnp-pcard-status {
    position: absolute;
    top: 12px; left: 12px;
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.bnp-pcard-status.new-launch { background: rgba(239,246,255,.9); color: #1d4ed8; }
.bnp-pcard-status.ready      { background: rgba(240,253,244,.9); color: #15803d; }
.bnp-pcard-status.pre-launch { background: rgba(254,243,199,.9); color: #92400e; }
.bnp-pcard-status.under-cons { background: rgba(239,246,255,.9); color: #1d4ed8; }
.bnp-pcard-status.sold-out   { background: rgba(243,244,246,.9); color: #6b7280; }
.bnp-pcard-status.upcoming   { background: rgba(250,245,255,.9); color: #7c3aed; }

.bnp-pcard-price-badge {
    position: absolute;
    bottom: 12px; right: 12px;
    background: rgba(0,0,0,.65);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.bnp-pcard-body { padding: 14px 16px 16px; }
.bnp-pcard-dev {
    font-size: 10px;
    font-weight: 700;
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.bnp-pcard-dev svg {
    width: 10px !important; height: 10px !important;
    min-width: 10px;
    stroke: #f97316;
    fill: none !important;
    stroke-width: 2;
}
.bnp-pcard-name {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 6px;
}
.bnp-pcard-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
}
.bnp-pcard-location svg {
    width: 11px !important; height: 11px !important;
    min-width: 11px;
    stroke: #9ca3af;
    fill: none !important;
    stroke-width: 2;
    flex-shrink: 0;
}
.bnp-pcard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
    margin-top: 2px;
}
.bnp-pcard-type {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    padding: 3px 8px;
    border-radius: 6px;
}
.bnp-pcard-cta {
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    display: flex;
    align-items: center;
    gap: 3px;
}
.bnp-pcard-cta svg {
    width: 12px !important; height: 12px !important;
    min-width: 12px;
    stroke: #f97316;
    fill: none !important;
    stroke-width: 2.5;
}

/* Default grid container — sites can wrap cards in their own grid */
.bnp-pcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1024px) { .bnp-pcard-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .bnp-pcard-grid { grid-template-columns: 1fr; } }
