/* =============================================================
   BOOKING MODAL — public unit booking request
   Only used on the public homepage (index.html). Sits above the
   Property Detail modal (z-index 8000) but below the Login modal
   (9999). Reuses the shared brand tokens from shared/base.css.
============================================================= */

.booking-overlay{
    overscroll-behavior:contain;
    display:none;
    position:fixed;
    inset:0;
    background:rgba(28,17,10,.62);
    backdrop-filter:blur(8px);
    z-index:8500;
    align-items:center;
    justify-content:center;
    padding:20px;
    overflow-y:auto;
}

.booking-overlay.active{
    display:flex;
}

.booking-modal{
    background:var(--sg-ivory);
    border:1px solid rgba(217,184,114,.35);
    border-radius:22px;
    width:100%;
    max-width:440px;
    max-height:90vh;
    /* dvh = the height actually visible (browser toolbars, keyboard). */
    max-height:min(90vh, calc(100dvh - 40px));
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:32px 32px 28px;
    position:relative;
    box-shadow:0 32px 80px rgba(20,12,6,.4);
    animation:booking-in .25s ease;
}

@keyframes booking-in{
    from{ opacity:0; transform:translateY(16px); }
    to{   opacity:1; transform:translateY(0);    }
}

/* Close button */
.booking-close{
    position:absolute;
    top:16px;
    right:18px;
    width:34px;
    height:34px;
    border:1px solid var(--sg-line);
    background:#fff;
    border-radius:50%;
    font-size:15px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.2s;
    color:var(--sg-text);
}

.booking-close:hover{
    background:var(--sg-espresso);
    border-color:var(--sg-espresso);
    color:#fbf6ec;
}

.booking-close:focus-visible{
    outline:2px solid var(--sg-gold);
    outline-offset:2px;
}

.booking-title{
    font-family:'Fraunces',Georgia,serif;
    font-size:1.6rem;
    font-weight:600;
    letter-spacing:-.02em;
    color:var(--sg-ink);
    margin:0 0 20px;
    padding-right:36px;
}

/* Read-only summary of what's being booked */
.booking-summary{
    background:linear-gradient(100deg,#f4e9d6,#fbf6ec);
    border:1px solid #ebdcc2;
    border-left:3px solid var(--sg-gold);
    border-radius:12px;
    padding:14px 16px;
    margin-bottom:22px;
}

.booking-summary-row{
    display:flex;
    justify-content:space-between;
    gap:14px;
    font-size:.84rem;
    line-height:1.7;
}

.booking-summary-row span{ color:var(--sg-muted); }
.booking-summary-row strong{ color:var(--sg-ink); font-weight:600; text-align:right; }

.booking-form{
    display:flex;
    flex-direction:column;
}

.booking-label{
    font-size:.7rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.12em;
    color:var(--sg-gold-deep);
    margin-bottom:6px;
}

.booking-optional{
    font-weight:500;
    text-transform:none;
    letter-spacing:0;
    color:#a99a88;
}

.booking-input{
    width:100%;
    border:1px solid var(--sg-line);
    border-radius:10px;
    padding:12px 14px;
    font-size:.92rem;
    font-family:inherit;
    color:var(--sg-ink);
    background:#fff;
    transition:border-color .2s, box-shadow .2s;
    margin-bottom:16px;
}

.booking-input:focus{
    outline:none;
    border-color:var(--sg-gold);
    box-shadow:0 0 0 3px rgba(184,138,68,.2);
}

/* Fixed "+63" prefix, mirroring the admin Add Account form */
.booking-phone{
    display:flex;
    align-items:stretch;
    margin-bottom:16px;
}

.booking-phone-prefix{
    display:flex;
    align-items:center;
    padding:0 13px;
    border:1px solid var(--sg-line);
    border-right:none;
    border-radius:10px 0 0 10px;
    background:var(--sg-cream);
    color:var(--sg-text);
    font-size:.92rem;
    font-weight:600;
}

.booking-phone .booking-input{
    border-radius:0 10px 10px 0;
    margin-bottom:0;
}

/* Honeypot — off-screen but still in the DOM for bots to fill */
.booking-honeypot{
    position:absolute;
    left:-9999px;
    width:1px;
    height:1px;
    overflow:hidden;
}

.booking-error{
    color:var(--sg-bad);
    font-size:.82rem;
    margin:0 0 12px;
}

.booking-notice{
    margin:12px 0 0;
    font-size:.74rem;
    color:var(--sg-muted);
    text-align:center;
}

.booking-submit{
    width:100%;
    border:none;
    border-radius:10px;
    padding:14px 16px;
    background:var(--sg-espresso);
    color:#fbf6ec;
    font-size:.82rem;
    font-weight:600;
    letter-spacing:.12em;
    text-transform:uppercase;
    cursor:pointer;
    transition:background .2s, opacity .2s;
}

.booking-submit:hover{ background:var(--sg-brand); }

.booking-submit:focus-visible{
    outline:3px solid rgba(184,138,68,.5);
    outline-offset:2px;
}
.booking-submit:disabled{ opacity:.6; cursor:default; }

/* Success state */
.booking-success{
    text-align:center;
    padding:8px 0 4px;
}

.booking-success h3{
    font-family:'Fraunces',Georgia,serif;
    font-size:1.4rem;
    color:var(--sg-ink);
    margin:0 0 10px;
}

.booking-success p{
    font-size:.9rem;
    line-height:1.6;
    color:var(--sg-muted);
    margin:0 0 22px;
}

@media (max-width:480px){
    .booking-modal{ padding:26px 20px 22px; }
}

/* Touch + small screens. Inputs below 16px make iOS Safari zoom the page
   in when a field is focused (and leave it zoomed), so they are 16px here. */
@media (pointer:coarse), (max-width:768px){
    .booking-input,
    .booking-phone-prefix{
        font-size:16px;
    }
}

@media (pointer:coarse){
    .booking-close{
        width:44px;
        height:44px;
        top:12px;
        right:14px;
    }

    .booking-submit{
        min-height:46px;
    }
}
