/* Perkasa - Property Card Grid & Card Styling */
.pk-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin: 40px 0 60px 0;
}

@media (max-width: 768px) {
    .pk-property-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 25px 0 45px 0;
    }
}

.pk-prop-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.pk-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.pk-card-image-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: #0f172a;
    overflow: hidden;
}

.pk-card-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.pk-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.pk-prop-card:hover .pk-card-img {
    transform: scale(1.05);
}

.pk-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.pk-card-code {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
}

.pk-card-body {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pk-card-title {
    margin: 0 0 10px 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.pk-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pk-card-title a:hover {
    color: #2563eb;
}

.pk-card-loc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pk-card-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.pk-meta-item {
    display: flex;
    flex-direction: column;
}

.pk-meta-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pk-meta-val {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-top: 3px;
}

.pk-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pk-card-price {
    display: flex;
    flex-direction: column;
}

.pk-price-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
}

.pk-price-val {
    font-size: 16px;
    font-weight: 800;
    color: #047857;
}

.pk-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pk-btn-wa {
    background: #25D366;
    color: #ffffff !important;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    transition: transform 0.2s ease;
}

.pk-btn-wa:hover {
    transform: scale(1.08);
}

.pk-btn-details {
    background: #0f172a;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.pk-btn-details:hover {
    background: #2563eb;
}

/* Red Sold Status Badges */
.pk-card-badge-sold {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.pk-prop-card.is-sold .pk-card-badge {
    left: 105px;
}

.pk-prop-card.is-sold .pk-card-img {
    filter: grayscale(30%);
    opacity: 0.9;
}

.pk-prop-card.is-sold .pk-price-val {
    color: #dc2626 !important;
}

/* New Layout Adjustments: Clickable card & Size below Category/Tenure */
.pk-prop-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pk-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}
.pk-meta-item.pk-meta-size {
    grid-column: 1 / -1;
    background: #f8fafc;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.pk-card-footer {
    justify-content: flex-start !important;
}
.pk-prop-card.is-sold .pk-price-val {
    color: #047857 !important;
}

/* Minimalist Clean Specs List (No boxes, no emojis) */
.pk-card-specs-list {
    margin: 12px 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.pk-spec-line {
    font-size: 13px;
    color: #334155;
    line-height: 1.45;
    font-weight: 500;
}

/* Full Mobile-Friendly Responsiveness */
.pk-property-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    margin: 30px auto 60px auto !important;
    width: 100% !important;
    max-width: 1200px !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
}

.pk-prop-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .pk-property-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 20px auto 40px auto !important;
        padding: 0 12px !important;
    }
    .pk-card-title {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    .pk-price-val {
        font-size: 16px !important;
    }
}
