/* =====================================================================
   BHB Mahal - ONE button style for the whole website
   Loaded from includes/footer.php (after every page's own styles).
   Variants:
     Primary  : maroon pill           -> .bhb-btn-gold, .gx-btn--gold, .book-btn, .bhf-btn--gold, .mp-btn, header Book Now
     Outline  : on dark backgrounds   -> .bhb-btn-light, .bhf-btn--line
     Outline  : on light backgrounds  -> .bhb-btn-line, .gx-btn--line
     WhatsApp : green pill            -> .bhb-btn-wa, .mp-wa
   ===================================================================== */

/* ---------- Back-to-top button (all pages): maroon theme ---------- */
html body #scrollUp {
    background: linear-gradient(135deg, #92000A 0%, #3a0000 100%) !important;
    color: #fff !important;
    border: 2px solid rgba(255, 255, 255, .85) !important;
    box-shadow: 0 10px 22px -8px rgba(146, 0, 10, .65) !important;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease !important;
}
html body #scrollUp:hover {
    background: linear-gradient(135deg, #b0000c 0%, #5a0000 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 26px -8px rgba(146, 0, 10, .8) !important;
}
html body #scrollUp i { display: inline-block; transition: transform .3s ease; }
html body #scrollUp:hover i { transform: translateY(-2px); }

/* ---------- Shared shape ---------- */
html body .bhb-btn,
html body .gx-btn,
html body .bhb-home .book-btn,
html body .boxed-btn.book-btn,
html body .bhf-btn,
html body .mp-btn,
html body .mp-wa,
html body .header-area #navigation > li.hdr-book > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 30px !important;
    min-height: 50px;
    border-radius: 50px !important;
    border: 1.5px solid transparent !important;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    transition: background .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease, transform .35s ease !important;
}
html body .bhb-btn i,
html body .gx-btn i,
html body .bhf-btn i,
html body .mp-btn i,
html body .mp-wa i { font-size: 15px !important; margin: 0 !important; }

/* remove old decorative layer (gallery outline) */
html body .gx-btn--line::before { display: none !important; }

/* ---------- Primary (maroon) ---------- */
html body .bhb-btn-gold,
html body .gx-btn--gold,
html body .bhb-home .book-btn,
html body .boxed-btn.book-btn,
html body .bhf .bhf-btn--gold,
html body .mp-btn,
html body .header-area #navigation > li.hdr-book > a,
html body .header-area .main-header.sticky-bar #navigation > li.hdr-book > a {
    background: linear-gradient(135deg, #92000A 0%, #3a0000 100%) !important;
    background-size: 100% 100% !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -10px rgba(146, 0, 10, .65) !important;
}
html body .bhb-btn-gold:hover,
html body .gx-btn--gold:hover,
html body .bhb-home .book-btn:hover,
html body .boxed-btn.book-btn:hover,
html body .bhf .bhf-btn--gold:hover,
html body .mp-btn:hover,
html body .header-area #navigation > li.hdr-book > a:hover {
    background: linear-gradient(135deg, #b0000c 0%, #5a0000 100%) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 28px -10px rgba(146, 0, 10, .8) !important;
}

/* ---------- Outline on dark backgrounds (hero, CTA, footer) ---------- */
html body .bhb-btn-light,
html body .bhf .bhf-btn--line {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .7) !important;
    color: #fff !important;
}
html body .bhb-btn-light:hover,
html body .bhf .bhf-btn--line:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: #92000A !important;
    transform: translateY(-2px) !important;
}

/* ---------- Outline on light backgrounds ---------- */
html body .bhb-btn-line,
html body .gx-btn--line {
    background: transparent !important;
    border-color: #92000A !important;
    color: #92000A !important;
}
html body .bhb-btn-line:hover,
html body .gx-btn--line:hover {
    background: #92000A !important;
    border-color: #92000A !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* ---------- WhatsApp (green) ---------- */
html body .bhb-btn-wa,
html body .mp-wa {
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .7) !important;
}
html body .bhb-btn-wa:hover,
html body .mp-wa:hover {
    background: #1ebe5b !important;
    border-color: #1ebe5b !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

/* full-width buttons inside popups / sidebar keep full width */
html body .mp-btn,
html body .mp-wa,
html body .bhb-toc-cta .bhb-btn { width: 100%; }

/* header Book Now: a bit more compact */
html body .header-area #navigation > li.hdr-book > a { padding: 12px 24px !important; min-height: 0; font-size: 13.5px !important; }

/* ---------- Home enquiry bar: keeps its full-height block shape, same colours ---------- */
html body .bhb-home .enq-btn button {
    background: linear-gradient(135deg, #92000A 0%, #3a0000 100%) !important;
    color: #fff !important;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
}
html body .bhb-home .enq-btn button:hover {
    background: linear-gradient(135deg, #b0000c 0%, #5a0000 100%) !important;
}

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
html body .bhb-btn,
html body .gx-btn,
html body .bhb-home .book-btn,
html body .boxed-btn.book-btn,
html body .bhf-btn,
html body .mp-btn,
html body .mp-wa,
html body .bhb-home .enq-btn button,
html body .header-area #navigation > li.hdr-book > a {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate;
}

/* 1. Shine sweep on hover */
html body .bhb-btn::after,
html body .gx-btn::after,
html body .bhb-home .book-btn::after,
html body .boxed-btn.book-btn::after,
html body .bhf-btn::after,
html body .mp-btn::after,
html body .mp-wa::after,
html body .bhb-home .enq-btn button::after,
html body .header-area #navigation > li.hdr-book > a::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -80% !important;
    right: auto !important;
    bottom: auto !important;
    width: 50% !important;
    height: 100% !important;
    margin: 0 !important;
    background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%) !important;
    transform: skewX(-22deg) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    opacity: 1 !important;
    transition: none !important;
}
html body .bhb-btn:hover::after,
html body .gx-btn:hover::after,
html body .bhb-home .book-btn:hover::after,
html body .boxed-btn.book-btn:hover::after,
html body .bhf-btn:hover::after,
html body .mp-btn:hover::after,
html body .mp-wa:hover::after,
html body .bhb-home .enq-btn button:hover::after,
html body .header-area #navigation > li.hdr-book > a:hover::after {
    animation: bhbShine .8s ease forwards !important;
}
@keyframes bhbShine { from { left: -80%; } to { left: 130%; } }

/* 2. Icon nudge on hover */
html body .bhb-btn i,
html body .gx-btn i,
html body .bhf-btn i,
html body .mp-btn i,
html body .mp-wa i,
html body .bhb-home .enq-btn button i,
html body .header-area #navigation > li.hdr-book > a i {
    display: inline-block;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1) !important;
}
html body .bhb-btn:hover i,
html body .gx-btn:hover i,
html body .bhf-btn:hover i,
html body .mp-btn:hover i,
html body .header-area #navigation > li.hdr-book > a:hover i { transform: scale(1.18) rotate(-8deg); }
html body .bhb-btn-wa:hover i,
html body .mp-wa:hover i,
html body .bhf .bhf-btn--line:hover i { animation: bhbWiggle .5s ease; }
html body .bhb-home .enq-btn button:hover i { transform: translate(4px,-4px) !important; }
@keyframes bhbWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }

/* 3. Press effect */
html body .bhb-btn:active,
html body .gx-btn:active,
html body .boxed-btn.book-btn:active,
html body .bhf-btn:active,
html body .mp-btn:active,
html body .mp-wa:active,
html body .header-area #navigation > li.hdr-book > a:active { transform: translateY(0) scale(.96) !important; }

/* 4. Click ripple (span added by JS in footer) */
.bhb-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    transform: scale(0);
    animation: bhbRipple .65s ease-out forwards;
    pointer-events: none;
    z-index: 2;
}
.bhb-btn-line .bhb-ripple,
.gx-btn--line .bhb-ripple { background: rgba(146,0,10,.25); }
@keyframes bhbRipple { to { transform: scale(2.6); opacity: 0; } }

/* 5. Soft pulse glow on header Book Now + popup Book Now */
html body .header-area #navigation > li.hdr-book > a,
html body .mp-btn { animation: bhbBookPulse 2.6s ease-in-out infinite; }
html body .header-area #navigation > li.hdr-book > a:hover,
html body .mp-btn:hover { animation: none; }
@keyframes bhbBookPulse {
    0%   { outline: 2px solid rgba(146,0,10,.55); outline-offset: 0; }
    70%  { outline: 2px solid rgba(146,0,10,0);   outline-offset: 9px; }
    100% { outline: 2px solid rgba(146,0,10,0);   outline-offset: 9px; }
}

/* Respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
    html body .bhb-btn, html body .gx-btn, html body .bhf-btn, html body .mp-btn, html body .mp-wa,
    html body .boxed-btn.book-btn, html body .header-area #navigation > li.hdr-book > a { animation: none !important; }
    html body .bhb-btn::after, html body .gx-btn::after, html body .bhf-btn::after, html body .mp-btn::after,
    html body .mp-wa::after, html body .boxed-btn.book-btn::after, html body .bhb-home .enq-btn button::after,
    html body .header-area #navigation > li.hdr-book > a::after { display: none !important; }
    .bhb-ripple { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575px) {
    html body .bhb-btn,
    html body .gx-btn,
    html body .bhf-btn { padding: 13px 24px !important; font-size: 13px !important; }
}
