/* ═══════════════════════════════════════════════
   SOHBA book.php — Dedicated Booking Page
   Palette: Warm Espresso | Gold | Ivory
═══════════════════════════════════════════════ */

/* Override for book page — light theme */
.book-page {
    --navy:   #ffffff;
    --navy-2: #f7f3ee;
    --navy-3: #ede8e0;
    --off:    #f7f3ee;
    --muted:  #7a7065;
    --body-text: #4a4035;
    --dark:   #1a1410;
}

/* ─── LAYOUT ─── */
.book-main {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 100vh;
}

/* ══ LEFT HERO PANEL ══ */
.book-hero-panel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.book-bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.book-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(255,255,255,.9) 0%,
        rgba(255,255,255,.6) 55%,
        transparent 100%
    );
}
.book-hero-content {
    position: relative; z-index: 2;
    padding: 4rem 3.5rem;
    width: 100%;
}
.book-tag {
    font-size: .7rem; font-weight: 600;
    letter-spacing: .3em; text-transform: uppercase;
    color: var(--gold); display: block; margin-bottom: 1.5rem;
}
.book-hero-content h1 {
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    color: var(--dark); line-height: .95;
    margin-bottom: 1.2rem;
}
.book-hero-content h1 em { font-style: italic; color: var(--gold); }
.book-hero-content > p {
    font-size: 1rem; color: var(--body-text);
    margin-bottom: 2rem; max-width: 38ch;
}

/* Property sidebar list (Glassmorphism Redesign) */
.book-properties-list {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1.5rem 1.8rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    max-width: 400px;
}
.bpl-label {
    font-size: .7rem; font-weight: 700;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--gold); margin-bottom: 1.2rem; display: block;
}
.bpl-item {
    display: flex; align-items: center; gap: 1.2rem;
    padding: .8rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    cursor: pointer; transition: opacity .3s;
}
.bpl-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.bpl-item:not(.active) { opacity: .45; }
.bpl-item.active .bpl-dot { background: var(--gold); box-shadow: 0 0 8px rgba(212,175,55,0.6); }
.bpl-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(0,0,0,.25); flex-shrink: 0;
    transition: all .3s;
}
.bpl-item strong { display: block; color: var(--dark); font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.bpl-item small  { font-size: .75rem; color: var(--muted); }

/* ══ RIGHT FORM PANEL ══ */
.book-form-panel {
    background: var(--white);
    overflow-y: auto;
    max-height: 100vh;
    position: sticky;
    top: 0;
}
.bfp-inner {
    padding: 5rem 4rem 4rem;
    min-height: 100%;
    max-width: 620px;
}

.bfp-logo {
    height: 44px; width: auto;
    object-fit: contain; display: block;
    margin-bottom: 2rem;
}
.bfp-head h2 { font-size: 2.4rem; color: var(--dark, #1a1410); margin-bottom: .6rem; }
.bfp-head p  { font-size: .95rem; color: var(--muted); margin-bottom: 2.5rem; max-width: 42ch; }

/* ─── STEPS INDICATOR ─── */
.book-steps {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    width: 100%;
}
.bstep {
    display: flex; align-items: center; gap: .6rem;
    opacity: .3; transition: opacity .4s;
}
.bstep.active { opacity: 1; }
.bstep.done .bstep-num {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}
.bstep-num {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700;
    color: var(--muted); flex-shrink: 0;
    transition: all .4s;
}
.bstep.active .bstep-num {
    background: var(--dark, #1a1410);
    color: var(--white);
    border-color: var(--dark, #1a1410);
}
.bstep-label {
    font-size: .7rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--body-text);
}
.bstep-line {
    flex: 1; height: 1px;
    background: rgba(0,0,0,.1); margin: 0 .8rem;
}

/* ─── STEP PANELS ─── */
.bform-step { display: none; }
.bform-step.active { display: block; }
.bform-step h4 {
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .75rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 1.8rem;
}

/* ── STEP 1: Property Cards ── */
.prop-select-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1rem; margin-bottom: 2rem;
}
.prop-radio-card:nth-child(5) {
    grid-column: 1 / -1; /* Make the 5th card span full width for balanced layout */
}
.prop-radio-card { cursor: pointer; display: block; }
.prop-radio-card input { display: none; }

.prc-inner {
    border: 1.5px solid rgba(0,0,0,.1);
    border-radius: 12px; /* Added modern rounding */
    overflow: hidden; position: relative;
    transition: border-color .3s, box-shadow .3s;
}
.prc-inner:hover { border-color: var(--gold); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.prop-radio-card.selected .prc-inner {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 8px 25px rgba(212,175,55,0.2);
}

.prc-img { height: 110px; overflow: hidden; border-radius: 12px 12px 0 0; }
.prc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prop-radio-card:hover .prc-img img { transform: scale(1.06); }

.prc-info {
    padding: .85rem 1rem;
    background: var(--white);
    border-top: 1px solid rgba(0,0,0,.05);
}
.prc-loc {
    display: block; font-size: .62rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .2rem;
}
.prc-info strong { display: block; font-size: .88rem; color: var(--dark, #1a1410); margin-bottom: .15rem; }
.prc-info small  { font-size: .72rem; color: var(--muted); }

.prc-check {
    position: absolute; top: .5rem; right: .5rem;
    width: 22px; height: 22px;
    background: var(--gold); color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem; opacity: 0; transition: opacity .3s;
}
.prop-radio-card.selected .prc-check { opacity: 1; }

/* ── STEP 2: Dates & Guests ── */
.dates-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem; margin-bottom: 2rem;
}
.date-field label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .5rem;
}
.date-field label i { margin-right: .4rem; }
.date-field input {
    width: 100%; padding: .9rem 1rem;
    border: 1px solid rgba(0,0,0,.12);
    background: var(--off);
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .95rem; color: var(--dark, #1a1410);
    outline: none; transition: border-color .3s;
}
.date-field input:focus { border-color: var(--gold); }

.guests-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem; margin-bottom: 2rem;
}
.guest-select label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: var(--gold); margin-bottom: .7rem;
}
.guest-select label i { margin-right: .4rem; }

.qty-ctrl {
    display: flex; align-items: center;
    border: 1px solid rgba(0,0,0,.12);
    background: var(--off);
}
.qty-ctrl button {
    width: 36px; height: 42px;
    border: none; background: transparent;
    font-size: 1.2rem; color: var(--dark, #1a1410);
    cursor: pointer; transition: all .25s;
}
.qty-ctrl button:hover { background: var(--gold-dim); color: var(--gold); }
.qty-ctrl span {
    flex: 1; text-align: center;
    font-size: .95rem; font-weight: 600;
    color: var(--dark, #1a1410);
}

.room-type-row {
    display: flex; gap: .8rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.rt-option { cursor: pointer; }
.rt-option input { display: none; }
.rt-option span {
    display: block; padding: .6rem 1.2rem;
    border: 1.5px solid rgba(0,0,0,.12);
    font-size: .78rem; font-weight: 500;
    color: var(--muted); transition: all .3s;
    white-space: nowrap;
}
.rt-option.active-rt span {
    border-color: var(--gold); color: var(--gold);
    background: rgba(201,168,76,.07);
}

/* ── STEP 3: Guest Info ── */
.info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.2rem; margin-bottom: 1.2rem;
}
.info-field { margin-bottom: 1.2rem; }
.info-field label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); margin-bottom: .45rem;
}
.info-field input, .info-field textarea {
    width: 100%; padding: .9rem 1rem;
    border: 1px solid rgba(0,0,0,.12);
    background: var(--off);
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .9rem; color: var(--dark, #1a1410);
    outline: none; transition: border-color .3s;
}
.info-field input:focus, .info-field textarea:focus { border-color: var(--gold); }
.info-field input::placeholder, .info-field textarea::placeholder { color: var(--muted); }
.info-field textarea { min-height: 90px; resize: none; }
.full-w-field { margin-bottom: 1.2rem; }

.promo-row {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 2rem;
}
.promo-row input {
    flex: 1; padding: .75rem 1rem;
    border: 1px solid rgba(0,0,0,.12);
    background: var(--off);
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .85rem; color: var(--dark, #1a1410); outline: none;
}
.promo-row input:focus { border-color: var(--gold); }
.promo-badge {
    display: flex; align-items: center; gap: .4rem;
    font-size: .72rem; color: var(--muted); white-space: nowrap;
}
.promo-badge i { color: var(--gold); }

/* ── BUTTONS ── */
.step-btns { display: flex; gap: 1rem; align-items: center; }

.btn-step-next {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .7rem; flex: 1;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), #aa8c2c);
    color: var(--white);
    border: none;
    border-radius: 8px; /* Modern rounding */
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .8rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: all .35s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-step-next:hover { 
    background: linear-gradient(135deg, #e5c158, #bf9c31);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35); 
    transform: translateY(-2px);
}

.btn-step-back {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px; /* Modern rounding */
    background: transparent; color: var(--muted);
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .8rem; cursor: pointer; transition: all .3s;
}
.btn-step-back:hover { border-color: var(--gold); color: var(--gold); background: rgba(212,175,55,0.05); }

.btn-submit-booking {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .8rem; flex: 1;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--gold), #aa8c2c);
    color: var(--white);
    border: none;
    border-radius: 8px; /* Modern rounding */
    font-family: var(--ff-sans, 'Inter', sans-serif);
    font-size: .82rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    cursor: pointer; transition: all .35s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}
.btn-submit-booking:hover { 
    background: linear-gradient(135deg, #e5c158, #bf9c31);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35); 
}

/* ── SUCCESS ── */
.bform-success {
    display: none; /* Fixed bug where it was always flex !important */
    flex-direction: column; align-items: center;
    text-align: center; padding: 3rem 0;
}
.success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #aa8c2c); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}
.bform-success h3 { font-size: 2.2rem; margin-bottom: 1rem; }
.bform-success p { color: var(--body-text); max-width: 38ch; margin: 0 auto 2rem; }
.btn-gold-link {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: 1rem 2.5rem; background: var(--gold);
    color: var(--dark, #1a1410);
    font-size: .8rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    transition: background .35s;
}
.btn-gold-link:hover { background: var(--gold-lt); }

/* ── ASSURANCE BAR ── */
.bfp-assurance {
    display: flex; gap: 2rem; flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,.07);
    margin-top: 2rem;
}
.bfp-assurance span {
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; color: var(--muted);
}
.bfp-assurance i { color: var(--gold); }

/* ── HEADER BACK BUTTON ── */
.hdr-back-btn {
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,.2);
    padding: .65rem 1.2rem; transition: all .3s;
}
.hdr-back-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
    .book-main { grid-template-columns: 1fr; }
    .book-hero-panel { display: none; } /* Hide hero completely to prevent scrolling */
    .book-form-panel { position: relative; max-height: none; overflow-y: visible; overflow-x: hidden; width: 100%; }
    .bfp-inner { padding: 2rem 1.5rem; max-width: 100%; margin: 0 auto; box-sizing: border-box; }
}
@media (max-width: 600px) {
    .dates-grid, .guests-row, .info-grid { grid-template-columns: 1fr; }
    
    /* Make property cards horizontal scroll on mobile */
    .prop-select-grid { 
        display: flex; 
        flex-direction: row; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        margin-right: -1.5rem; /* Bleed to edge */
        padding-right: 1.5rem;
        scrollbar-width: none; /* Firefox */
    }
    .prop-select-grid::-webkit-scrollbar { display: none; } /* Safari and Chrome */
    
    .prop-radio-card { 
        min-width: 85%; 
        scroll-snap-align: start; 
        flex-shrink: 0; 
    }

    .step-btns { flex-direction: column; }
    .btn-step-next, .btn-submit-booking { width: 100%; }
    .bfp-inner { padding: 1.5rem 1rem; }
    .prop-select-grid { margin-right: -1rem; padding-right: 1rem; }
    
    /* Header fixes for Book page */
    .hdr-back-btn span { display: none; }
    .hdr-back-btn { padding: .5rem; border: none; font-size: 1.3rem; margin-left: auto; }
    .burger { margin-left: .5rem; }
    
    /* Steps indicator fixes to prevent mobile overflow */
    .book-steps { gap: .5rem; justify-content: flex-start; flex-wrap: wrap; }
    .bstep:not(.active) .bstep-label { display: none; }
    .bstep-line { display: none; } /* Lines take too much space on small screens */
    .bstep-num { width: 28px; height: 28px; font-size: .75rem; }
    .bstep { gap: .4rem; }
    
    /* Assurance bar */
    .bfp-assurance { gap: 1rem; justify-content: center; }
}
