/* =========================================================
   LUX EMPIRE — GUEST BROWSE PAGE
   SAVE AT: assets/css/guest-browse.css
   Reuses .lux-explore-* (house card styling) and .lux-btn from
   bookings.css / global styles — this file only covers what's new:
   page layout, tabs, the truck form, and the detail quick-view modal.
   ========================================================= */

.guest-browse-page{
    min-height:100vh;
}

.guest-browse-main{
    max-width:1300px;
    margin:0 auto;
    padding:40px 30px 80px;
}

.guest-browse-hero{
    text-align:center;
    margin-bottom:35px;
}

.guest-browse-title{
    font-family:'Cinzel', serif;
    color:var(--gold);
    font-size:2.8rem;
    margin-bottom:12px;
}

.guest-browse-subtitle{
    color:var(--gray);
    max-width:600px;
    margin:0 auto;
    line-height:1.8;
}

.guest-browse-tabs{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-bottom:35px;
    flex-wrap:wrap;
}

.guest-browse-tab-btn{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    color:var(--gray);
    padding:14px 24px;
    border-radius:16px;
    font-weight:bold;
    cursor:pointer;
    transition:0.25s;
    display:flex;
    align-items:center;
    gap:10px;
}

.guest-browse-tab-btn:hover{
    color:var(--white);
    border-color:rgba(212,175,55,0.4);
}

.guest-browse-tab-btn.is-active{
    background:linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color:var(--black);
    border-color:transparent;
}

.guest-browse-section[hidden]{
    display:none;
}

.guest-browse-search-form{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:35px;
}

.guest-browse-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);
}

/* =========================================
   TRUCK REQUEST
========================================= */

.guest-browse-truck-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
    gap:35px;
    align-items:start;
}

.guest-browse-truck-card{
    padding:35px;
    border-radius:28px;
}

.guest-browse-truck-heading{
    color:var(--white);
    margin-bottom:25px;
    font-size:1.6rem;
}

.guest-browse-field{
    margin-bottom:22px;
}

.guest-browse-field label{
    display:block;
    margin-bottom:10px;
    color:var(--gold);
    font-weight:600;
}

.guest-browse-field-row{
    display:flex;
    gap:10px;
}

.request-input{
    width:100%;
    padding:16px;
    border:1px solid var(--lux-card-border);
    border-radius:16px;
    background:var(--glass);
    color:var(--white);
    outline:none;
    font-size:1rem;
    box-sizing:border-box;
}

.request-input::placeholder{
    color:var(--gray);
}

.guest-browse-truck-submit{
    width:100%;
    padding:18px;
    border:none;
    border-radius:18px;
    cursor:pointer;
    font-size:1rem;
}

.guest-browse-benefits-list{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:14px;
    padding:0;
    margin:0;
}

.guest-browse-benefits-list li{
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    padding:15px;
    border-radius:14px;
    color:var(--white);
}

/* =========================================
   GUEST HOUSE DETAIL QUICK-VIEW MODAL
   Theme-safe: only theme variables. Reuses house-gallery.css's
   .vh-gallery / .vh-video-stage / .vh-listing-tag / .vh-price-suffix
   for the media + tags, scoped smaller to fit the modal width.
========================================= */

.guest-detail-modal{
    position:fixed;
    inset:0;
    z-index:5000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.guest-detail-modal.is-open{
    display:flex;
}

.guest-detail-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.75);
    backdrop-filter:blur(6px);
}

.guest-detail-modal-box{
    position:relative;
    max-width:680px;
    width:100%;
    max-height:88vh;
    display:flex;
    flex-direction:column;
    overflow:hidden;
    background:var(--lux-modal-bg);
    border:1px solid var(--lux-modal-border);
    border-radius:24px;
    padding:30px;
    color:var(--white);
    box-shadow:0 24px 70px rgba(0,0,0,0.35);
}

/* The button stays fixed in place; only the content below it scrolls. */
.guest-detail-modal-close{
    position:absolute;
    top:16px;
    right:16px;
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    color:var(--white);
    font-size:1.4rem;
    line-height:1;
    width:40px;
    height:40px;
    border-radius:50%;
    cursor:pointer;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:0.25s ease;
}

.guest-detail-modal-close:hover{
    background:linear-gradient(135deg, var(--gold), var(--gold-secondary));
    color:var(--black);
    border-color:transparent;
}

#guestDetailModalContent{
    flex:1;
    min-height:0;
    overflow-y:auto;
    padding-right:6px;
}

.guest-detail-loading{
    color:var(--gray);
    text-align:center;
    padding:60px 0;
}

.guest-detail-no-media{
    min-height:200px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--glass);
    border:1px solid var(--lux-card-border);
    color:var(--gold);
    margin-bottom:18px;
}

/* Scale the reused gallery/video down to fit the modal's width. */
.guest-detail-modal-box .vh-gallery{
    grid-auto-rows:120px;
    gap:8px;
    margin-bottom:18px;
}

.guest-detail-modal-box .vh-gallery[data-count="3"]{
    grid-auto-rows:150px;
}

.guest-detail-modal-box .vh-gallery[data-count="2"]{
    grid-auto-rows:220px;
}

.guest-detail-modal-box .vh-gallery[data-count="1"]{
    grid-auto-rows:280px;
}

.guest-detail-modal-box .vh-video-stage{
    max-height:320px;
    margin-bottom:18px;
}

.guest-detail-modal-box .vh-listing-tag{
    margin-bottom:10px;
}

.guest-detail-title{
    color:var(--white);
    font-size:1.6rem;
    margin-bottom:6px;
    line-height:1.35;
}

.guest-detail-price{
    color:var(--gold);
    font-weight:bold;
    font-size:1.2rem;
    margin-bottom:16px;
}

.guest-detail-desc{
    color:var(--gray);
    line-height:1.8;
    margin-bottom:20px;
}

.guest-detail-meta{
    display:flex;
    gap:18px;
    color:var(--gray);
    margin-bottom:14px;
    flex-wrap:wrap;
    font-size:0.92rem;
}

.guest-detail-meta i{
    color:var(--gold);
    margin-right:5px;
}

.guest-detail-perks{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:18px;
}

@media (max-width:768px){
    .guest-browse-main{
        padding:24px 18px 40px;
    }

    .guest-detail-modal-box{
        padding:22px;
        border-radius:18px;
    }

    .guest-detail-modal-box .vh-gallery,
    .guest-detail-modal-box .vh-gallery[data-count]{
        grid-template-columns:repeat(2, 1fr);
        grid-auto-rows:110px;
    }
}