/* =========================
   PALET WARNA & VARIABEL
========================= */
:root {
    --primary: #10b981;       /* Emerald Green (Segar & Terpercaya) */
    --primary-dark: #059669;  /* Deep Emerald untuk Hover */
    --secondary: #3b82f6;     /* Soft Blue untuk aksen 'Sewa' */
    --accent: #ef4444;        /* Muted Red untuk Harga */
    --text-main: #1f2937;     /* Charcoal Gray untuk Judul */
    --text-muted: #6b7280;    /* Cool Gray untuk Lokasi/Deskripsi */
    --bg-body: #f3f4f6;       /* Light Gray untuk background halaman */
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* =========================
   CONTAINER
========================= */
.pu-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* =========================
   GRID (MOBILE FIRST)
========================= */
body .pu-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
}

/* TABLET */
@media (min-width: 768px) {
    body .pu-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    body .pu-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* PAKSA CHILD */
body .pu-grid > .pu-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: unset !important;
}

/* =========================
   CARD
========================= */
.pu-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.pu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* =========================
   IMAGE & OVERLAYS
========================= */
.pu-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #eee;
}

.pu-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pu-card:hover .pu-thumb img {
    transform: scale(1.08);
}

/* HARGA (MUTED RED) */
.pu-overlay-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
    z-index: 10;
}

/* SPEC OVERLAY (DARK BLUR) */
.pu-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(17, 24, 39, 0.75); /* Darker & Elegant */
    backdrop-filter: blur(4px); /* Efek kaca modern */
    color: var(--white);
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

.pu-overlay-bottom span { margin: 0 6px; }
.pu-overlay-bottom .sep { opacity: 0.4; }

/* =========================
   CONTENT
========================= */
.pu-content {
    padding: 20px;
}

.pu-content h3 {
    font-size: 17px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 700;
}

.pu-content h3 a {
    text-decoration: none;
    color: var(--text-main);
    transition: var(--transition);
}

.pu-content h3 a:hover {
    color: var(--primary);
}

.pu-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.pu-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
    height: 3.0em; /* Batasi tinggi deskripsi */
    overflow: hidden;
}

/* =========================
   BUTTON
========================= */
.pu-btn {
    display: block;
    text-align: center;
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.pu-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* =========================
   LABELS (JUAL/SEWA)
========================= */
.pu-label-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.pu-label-status, .pu-label-type {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
}

.pu-label-status.jual { background: var(--primary-dark); }
.pu-label-status.sewa { background: var(--secondary); }
.pu-label-type { background: rgba(31, 41, 55, 0.8); }

/* =========================
   FILTER FORM
========================= */
#pu-filter {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

#pu-filter label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 14px;
}

#pu-filter input[type="text"],
#pu-filter select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 14px;
    transition: var(--transition);
    background: #f8fafc;
}

#pu-filter input[type="text"]:focus,
#pu-filter select:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

#pu-filter button {
    background: var(--primary);
    color: var(--white);
    padding: 14px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    width: 100%;
}

#pu-filter button:hover {
    background: var(--primary-dark);
}

/* RESPONSIVE FILTER */
@media (min-width: 768px) {
    #pu-filter form {
        display: grid;
        grid-template-columns: repeat(3, 1fr) auto;
        gap: 15px;
        align-items: end;
    }
    #pu-filter button { width: auto; }
}
