/* =========================================================
   LUX EMPIRE — view_house.php
   Theme-converted: every hardcoded white/rgba(255,255,255,x)
   now routes through theme.css variables. Photo-overlay badges
   (price badge, unavailable badge) keep a literal gold — those
   sit on a permanently-dark image scrim regardless of site
   theme, so they stay legible either way; everything sitting
   on the page/card surface itself now themes correctly.
   ========================================================= */

.house-container{
    margin-left:280px;
    padding:40px;
    color:var(--white);
}

.house-card{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    border-radius:28px;
    overflow:hidden;
    backdrop-filter:blur(12px);
    box-shadow:var(--shadow-gold);
}

.house-hero-media{
    position:relative;
}

.house-hero-placeholder{
    width:100%;
    min-height:280px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    background:var(--glass);
}

.house-content{
    padding:30px;
}

.house-title{
    font-size:2.5rem;
    color:var(--gold);
    margin-bottom:10px;
    font-family:'Cinzel', serif;
}

.house-price{
    font-size:1.4rem;
    color:var(--gold);
    margin-bottom:20px;
}

.vh-desc{
    color:var(--gray);
    line-height:1.8;
}

.house-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.house-box{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    padding:15px;
    border-radius:16px;
}

.vh-gold-icon{
    color:var(--gold);
    margin-right:8px;
}

.vh-gold-icon-tight{
    color:var(--gold);
    margin-right:6px;
}

.landlord-box{
    margin-top:25px;
    padding:20px;
    border-radius:16px;
    background:var(--glass);
    border:1px solid var(--lux-card-border);
}

.vh-landlord-title{
    color:var(--gold);
    margin-bottom:15px;
}

.vh-landlord-name{
    margin-bottom:15px;
}

.vh-contact-row{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.vh-call-btn{
    flex:1;
    text-align:center;
    padding:14px;
    border-radius:14px;
    background:linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color:var(--black);
    font-weight:bold;
    text-decoration:none;
}

.vh-email-btn{
    flex:1;
    text-align:center;
    padding:14px;
    border-radius:14px;
    background:var(--glass);
    border:1px solid rgba(212,175,55,0.5);
    color:var(--gold);
    text-decoration:none;
}

.actions{
    margin-top:30px;
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.vh-action-btn{
    flex:1;
    text-align:center;
    text-decoration:none;
    border:none;
    cursor:pointer;
    font-size:1rem;
}

.vh-action-btn:disabled{
    cursor:not-allowed;
    opacity:0.85;
}

.vh-card-unavailable .house-hero-media{
    filter:blur(4px) brightness(0.6);
}

@media(max-width:768px){
    .house-container{
        margin-left:0;
        padding:20px;
    }

    .house-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   LUX EMPIRE — BOOKING SYSTEM STYLES
   Covers:
     - dashboard/tenant/search_houses.php  (lux-explore-*)
     - dashboard/landlord/booking_requests.php (landlord-*/booking-*/lb-*)
     - shared booking modal (#luxBookingModal)
   ========================================================= */

/* =========================================
   TENANT — search_houses.php
========================================= */

.lux-explore-page{
    display:flex;
    min-height:100vh;
}

.lux-explore-main{
    flex:1;
    padding:40px;
    margin-left:280px;
}

.lux-explore-hero{
    margin-bottom:40px;
}

.lux-explore-title{
    font-family:'Cinzel', serif;
    font-size:3rem;
    color:var(--gold);
    margin-bottom:10px;
}

.lux-explore-subtitle{
    color:var(--gray);
    max-width:700px;
    line-height:1.8;
}

.lux-explore-search-card{
    padding:25px;
    margin-bottom:40px;
    border-radius:24px;
}

.lux-explore-search-form{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.lux-explore-search-input{
    flex:1;
    min-width:250px;
    padding:16px;
    border:1px solid var(--lux-card-border);
    border-radius:16px;
    background:var(--glass);
    color:var(--white);
}

.lux-explore-search-btn{
    padding:16px 28px;
    border-radius:16px;
}

.lux-explore-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.lux-explore-card{
    overflow:hidden;
    border-radius:24px;
    transition:0.4s;
}

.lux-explore-media{
    position:relative;
}

/*
 * Overlays a photo, not the page — kept as a literal gold so it
 * stays legible on the permanently-dark image scrim regardless
 * of site theme (a dark navy accent, as used everywhere else in
 * light theme, would be nearly unreadable here).
 */
.lux-explore-price-badge{
    position:absolute;
    top:15px;
    right:15px;
    background:rgba(0,0,0,0.75);
    padding:10px 15px;
    border-radius:14px;
    color:#D4AF37;
    font-weight:bold;
    backdrop-filter:blur(10px);
    pointer-events:none;
    z-index:3;
}

.lux-explore-content{
    padding:25px;
}

.lux-explore-card-title{
    color:var(--white);
    font-size:1.6rem;
    margin-bottom:10px;
}

.lux-explore-rating{
    color:var(--gold);
    font-size:1.1rem;
    margin-bottom:14px;
}

.lux-explore-desc{
    color:var(--gray);
    line-height:1.8;
    margin-bottom:18px;
    font-size:0.95rem;
    letter-spacing:0.2px;
    font-weight:400;
}

.lux-explore-meta-row{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:18px;
}

.lux-explore-meta-row2{
    display:flex;
    justify-content:space-between;
    margin-bottom:25px;
    color:var(--gray);
}

.booking-lanlord-details{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    padding:15px;
    border-radius:14px;
    margin-bottom:18px;
    color:var(--gray);
    font-size:0.95rem;
    line-height:1.8;
    word-break:break-word;
}

.lux-explore-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.lux-explore-btn-view{
    flex:1;
    text-align:center;
    text-decoration:none;
}

.lux-explore-btn-book{
    flex:1;
    text-align:center;
    text-decoration:none;
    padding:14px;
    border-radius:14px;
    background:linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color:var(--black);
    font-weight:bold;
    border:none;
    cursor:pointer;
    font-size:1rem;
}

.lux-explore-btn-book:disabled{
    cursor:not-allowed;
    opacity:0.85;
}

.lux-explore-btn-pending{
    background:var(--glass);
    color:var(--gold);
}

.lux-explore-btn-unavailable{
    background:var(--glass);
    color:var(--gray);
}

.lux-explore-btn-chat{
    flex:1;
    text-align:center;
    padding:14px;
    border-radius:14px;
    background:var(--glass);
    color:var(--gold);
    border:1px solid var(--gold);
    font-weight:bold;
    cursor:pointer;
}

.lux-explore-empty-card{
    padding:50px;
    text-align:center;
    grid-column:1/-1;
    border-radius:28px;
}

.lux-explore-empty-title{
    color:var(--gold);
    margin-bottom:15px;
}

.lux-explore-empty-text{
    color:var(--gray);
    line-height:1.7;
}

/* --- Unavailable / booked property state --- */

.lux-explore-card-unavailable .lux-explore-media{
    filter:blur(4px) brightness(0.6);
}

/* Overlays a photo — same reasoning as .lux-explore-price-badge above. */
.lux-explore-unavailable-badge{
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#D4AF37;
    font-family:'Cinzel', serif;
    font-weight:bold;
    letter-spacing:1px;
    text-transform:uppercase;
    background:rgba(0,0,0,0.35);
    z-index:2;
}

/* =========================================
   LANDLORD — booking_requests.php
========================================= */

.landlord-layout{
    display:flex;
    min-height:100vh;
}

.landlord-main{
    flex:1;
    padding:40px;
    margin-left:280px;
    width:calc(100% - 280px);
    box-sizing:border-box;
}

.landlord-header{
    margin-bottom:35px;
}

.landlord-title{
    font-family:'Cinzel', serif;
    color:var(--gold);
    font-size:3rem;
    line-height:1.2;
    margin-bottom:10px;
}

.landlord-subtitle{
    color:var(--gray);
    line-height:1.8;
    max-width:700px;
}

.bookings-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:30px;
}

.booking-card{
    border-radius:24px;
    overflow:hidden;
    height:100%;
    display:flex;
    flex-direction:column;
}

.booking-image{
    height:220px;
    overflow:hidden;
    background:var(--glass);
}

.booking-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.booking-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--gold);
    font-size:2rem;
}

.booking-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.booking-property-title{
    color:var(--white);
    margin-bottom:10px;
    font-size:1.5rem;
    line-height:1.4;
    word-break:break-word;
}

.booking-location{
    color:var(--gray);
    margin-bottom:12px;
    line-height:1.6;
}

.booking-price{
    color:var(--gold);
    font-weight:bold;
    margin-bottom:18px;
    font-size:1.1rem;
}

.booking-tenant-box{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    padding:15px;
    border-radius:14px;
    margin-bottom:18px;
    color:var(--gray);
    font-size:0.95rem;
    line-height:1.8;
    word-break:break-word;
}

.booking-status{
    font-weight:bold;
    margin-bottom:22px;
}

.booking-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.booking-btn{
    flex:1;
    min-width:120px;
    text-align:center;
    padding:14px;
    border-radius:14px;
    font-weight:bold;
    text-decoration:none;
    transition:0.3s;
    box-sizing:border-box;
    border:none;
    cursor:pointer;
    font-size:1rem;
}

.booking-btn:hover{
    transform:translateY(-2px);
}

.booking-btn:disabled{
    cursor:not-allowed;
    opacity:0.7;
    transform:none;
}

/* Kept as a literal green gradient — an "Approve" action reads as
   green regardless of theme, same reasoning as the Pro badge. */
.booking-btn-approve{
    background:linear-gradient(135deg,#00c853,#64dd17);
    color:black;
}

.booking-btn-reject{
    background:var(--lux-danger);
    color:#fff;
}

.booking-finished{
    text-align:center;
    color:var(--gray);
    padding-top:5px;
}

.empty-card{
    padding:50px;
    text-align:center;
    grid-column:1/-1;
    border-radius:28px;
}

.empty-title{
    color:var(--gold);
    margin-bottom:15px;
    font-size:2rem;
}

.empty-text{
    color:var(--gray);
    line-height:1.7;
}

/* --- rating stars --- */

.lb-rating-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    flex-wrap:wrap;
}

.lb-stars{
    display:flex;
    gap:3px;
    font-size:1.1rem;
}

.lb-star{
    color:var(--lux-card-border);
    transition:0.3s;
}

/* Filled stars keep a literal gold — a star rating is read as
   "gold" universally, the same convention as the Pro badge. */
.lb-star.is-filled{
    color:#d4af37;
    text-shadow:0 0 8px rgba(212,175,55,0.4);
}

.lb-rating-text{
    color:var(--gray);
    font-size:0.9rem;
}

/* --- status color --- */

.status-pending{ color:var(--lux-warning); }
.status-approved{ color:var(--lux-success); }
.status-rejected{ color:var(--lux-danger); }

/* =========================================
   TABLET
========================================= */

@media (max-width: 992px){

    .landlord-main{
        margin-left:0;
        width:100%;
        padding:30px 22px;
    }

    .landlord-title{
        font-size:2.5rem;
    }

    .bookings-grid{
        grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
        gap:24px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 768px){

    .landlord-main{
        padding:22px 16px 40px;
    }

    .landlord-title{
        font-size:2rem;
    }

    .landlord-subtitle{
        font-size:0.95rem;
    }

    .bookings-grid{
        grid-template-columns:1fr;
        gap:22px;
    }

    .booking-image{
        height:200px;
    }

    .booking-content{
        padding:20px;
    }

    .booking-property-title{
        font-size:1.3rem;
    }

    .booking-actions{
        flex-direction:column;
    }

    .booking-btn{
        width:100%;
    }

    .empty-card{
        padding:35px 20px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px){

    .landlord-main{
        padding:18px 12px 35px;
    }

    .landlord-title{
        font-size:1.7rem;
    }

    .booking-image{
        height:180px;
    }

    .booking-content{
        padding:18px;
    }

    .booking-property-title{
        font-size:1.15rem;
    }

    .booking-tenant-box{
        font-size:0.9rem;
    }

    .booking-btn{
        padding:13px;
        border-radius:12px;
        font-size:0.95rem;
    }

    .empty-title{
        font-size:1.6rem;
    }
}

/* =========================================
   SHARED BOOKING MODAL
========================================= */

.lux-booking-modal{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2000;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.25s ease;
}

.lux-booking-modal.is-visible{
    opacity:1;
    pointer-events:auto;
}

.lux-booking-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.65);
    backdrop-filter:blur(4px);
}

.lux-booking-modal-box{
    position:relative;
    max-width:380px;
    width:90%;
    background:var(--lux-modal-bg);
    border:1px solid var(--lux-modal-border);
    border-radius:20px;
    padding:30px;
    text-align:center;
    box-shadow:0 20px 60px rgba(0,0,0,0.25);
    transform:translateY(10px);
    transition:transform 0.25s ease;
}

.lux-booking-modal.is-visible .lux-booking-modal-box{
    transform:translateY(0);
}

.lux-booking-modal-icon{
    font-size:2.2rem;
    margin-bottom:14px;
}

.lux-booking-modal.is-success .lux-booking-modal-icon{
    color:var(--lux-success);
}

.lux-booking-modal.is-error .lux-booking-modal-icon{
    color:var(--lux-danger);
}

.lux-booking-modal-message{
    color:var(--white);
    line-height:1.7;
    margin-bottom:22px;
}

.lux-booking-modal-ok{
    background:linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color:var(--black);
    border:none;
    padding:12px 28px;
    border-radius:14px;
    font-weight:bold;
    cursor:pointer;
}