/* =========================================================
   LUX EMPIRE — COMPACT PROPERTY CARDS
   Used by guest/browse.php, dashboard/tenant/search_houses.php
   and the AJAX-rendered cards from house-filters.js.
   Loaded AFTER bookings.css / property-media.css so it overrides
   their taller card sizing. Theme-safe: only theme variables,
   except badges that sit on photos (kept literal, like the
   existing price badge).
   ========================================================= */

/* ---------- Grid ---------- */

.lux-explore-grid{
    grid-template-columns:repeat(auto-fill, minmax(270px, 1fr));
    gap:20px;
}

/* ---------- Card shell: flex column so there is no dead space ---------- */

.lux-explore-card{
    display:flex;
    flex-direction:column;
    border-radius:18px;
    padding:0;
}

.lux-explore-card .tenant-image,
.lux-explore-card .lux-explore-media{
    height:190px;
    flex:0 0 auto;
}

.lux-explore-card .lux-explore-content{
    display:flex;
    flex-direction:column;
    flex:1;
    padding:16px;
}

/* ---------- Text ---------- */

.lux-explore-card .lux-explore-card-title{
    font-size:1.05rem;
    line-height:1.35;
    margin-bottom:6px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.lux-explore-card .lux-explore-desc{
    font-size:0.85rem;
    line-height:1.5;
    margin-bottom:10px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.lux-explore-card .lux-explore-meta-row2{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:6px 12px;
    margin-bottom:10px;
    font-size:0.82rem;
}

/* ---------- Badges on the photo ---------- */

.lux-explore-card .lux-explore-price-badge{
    top:auto;
    bottom:12px;
    right:12px;
    padding:6px 12px;
    font-size:0.85rem;
    border-radius:12px;
}

.lux-price-suffix{
    font-size:0.7rem;
    font-weight:500;
    opacity:0.85;
}

/* Base badge (also defined in house-filters.css; repeated so it never depends on load order). */
.lux-listing-badge{
    position:absolute;
    top:15px;
    left:15px;
    padding:6px 14px;
    border-radius:12px;
    font-weight:700;
    font-size:0.72rem;
    letter-spacing:0.3px;
    text-transform:uppercase;
    z-index:3;
    backdrop-filter:blur(10px);
    pointer-events:none;
}

.lux-listing-badge.is-sale{
    background:rgba(0, 200, 120, 0.85);
    color:#04140c;
}

.lux-listing-badge.is-rent{
    background:rgba(47, 111, 168, 0.85);
    color:#ffffff;
}

/* On cards, the enlarge button owns the top-left corner — badge goes bottom-left. */
.lux-explore-card .lux-listing-badge{
    top:auto;
    bottom:12px;
    left:12px;
    padding:5px 11px;
    font-size:0.68rem;
}

/* ---------- Perks / contact ---------- */

.lux-explore-card .lux-explore-perks-row{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    margin:0 0 10px;
}

.lux-explore-card .lux-parking-badge{
    padding:3px 10px;
    font-size:0.7rem;
}

.lux-explore-card .lux-landlord-contact{
    font-size:0.82rem;
    line-height:1.6;
    margin-bottom:10px;
}

/* ---------- Actions pinned to the bottom ---------- */

.lux-explore-card .lux-explore-actions{
    margin-top:auto;
    gap:8px;
}

.lux-explore-card .lux-explore-btn-view,
.lux-explore-card .lux-explore-btn-book,
.lux-explore-card .lux-explore-btn-chat{
    padding:10px 12px;
    border-radius:12px;
    font-size:0.88rem;
    min-width:0;
}

@media (max-width:600px){
    .lux-explore-grid{
        grid-template-columns:1fr;
    }
}
