.rpcg-widget {
    display: block;
}

.rpcg-search-row {
    margin-bottom: 24px;
}

.rpcg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Search bar */
.rpcg-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    background: #fff;
    padding: 20px 24px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
}

.rpcg-input {
    flex: 1 1 170px;
    padding: 13px 16px !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    min-width: 130px;
    color: #333 !important;
    background: #fff !important;
    box-sizing: border-box;
    height: auto !important;
    line-height: normal !important;
}

.rpcg-input::placeholder {
    color: #a0a0a8;
}

.rpcg-input-small {
    flex: 1 1 110px;
    min-width: 100px;
}

.rpcg-search-btn {
    flex: 0 0 auto;
    background: #14496e !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 34px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: none !important;
}

.rpcg-search-btn:hover {
    background: #0d3654 !important;
    color: #fff !important;
}

.rpcg-results-wrapper.rpcg-loading {
    opacity: 0.6;
}

.rpcg-loading-text,
.rpcg-no-results {
    text-align: center;
    padding: 40px 0;
    color: #777;
    font-size: 15px;
}

/* Property card */
.rpcg-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.rpcg-image-wrap {
    position: relative;
}

.rpcg-image,
.rpcg-noimg {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    background: #ccc;
}

.rpcg-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #f0c95c;
    color: #1a1a1a;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.rpcg-heart {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    z-index: 2;
}

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

.rpcg-price {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.rpcg-currency {
    font-size: 15px;
    font-weight: 600;
    margin-right: 8px;
    color: #444;
}

.rpcg-after-price {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    margin-left: 4px;
}

.rpcg-title {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rpcg-title a {
    color: #111;
    text-decoration: none;
}

.rpcg-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 12px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpcg-developer {
    font-size: 14px;
    color: #888;
    margin: 0 0 16px;
}

.rpcg-developer strong {
    color: #222;
}

.rpcg-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.rpcg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.rpcg-pill-yellow {
    background: #f7de9c;
    color: #333;
}

.rpcg-pill-outline {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.rpcg-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-bottom: 18px;
    font-size: 14px;
    color: #555;
}

.rpcg-meta-row strong {
    color: #111;
}

.rpcg-btn-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.rpcg-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.rpcg-btn-icon {
    color: #fff;
    flex-shrink: 0;
}

.rpcg-btn-enquire {
    background: #14496e;
    color: #fff;
}

.rpcg-btn-enquire:hover {
    background: #0d3654;
    color: #fff;
}

.rpcg-btn-whatsapp {
    background: #4caf50;
    color: #fff;
}

.rpcg-btn-whatsapp:hover {
    background: #3d8b40;
    color: #fff;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 992px) {
    .rpcg-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .rpcg-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .rpcg-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 10px;
    }

    .rpcg-input,
    .rpcg-input-small {
        width: 100%;
        flex: none;
        min-width: 0;
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        height: auto;
        box-sizing: border-box;
    }

    .rpcg-search-btn {
        width: 100%;
        padding: 12px !important;
        font-size: 14px !important;
    }

    .rpcg-btn-row {
        flex-direction: column;
    }
}
