/* Keep the fixed concierge anchored, including above 1280px.
   The legacy minified stylesheet removed required whitespace around calc +. */
.bf-whatsapp {
    position: fixed;
    inset: auto clamp(18px, 2.2vw, 34px) calc(28px + env(safe-area-inset-bottom, 0px)) auto;
    z-index: 9500;
    display: flex;
    visibility: visible;
    font-family: 'DM Sans', sans-serif;
}

.bf-whatsapp__link {
    border: 1px solid #d8b28180;
    background: linear-gradient(135deg, #322418f5, #17110efc 65%);
    box-shadow: 0 16px 46px #0006, 0 0 24px #25d36612, inset 0 1px #fff2;
}

.bf-whatsapp__content strong { font-family: 'DM Sans', sans-serif; }
.bf-whatsapp__link:focus-visible { outline: 2px solid #f0d1a9; outline-offset: 6px; }
.bf-whatsapp__message { bottom: calc(100% + 14px); }
.bf-whatsapp__message strong { font-family: 'DM Sans', sans-serif; }
.bf-whatsapp__icon svg { animation: bf-concierge-greeting 7s ease-in-out infinite; }

/* All artwork and steam move together, preserving their alignment. */
.bf-hero-pan-scene {
    position: relative;
    width: 100%;
    isolation: isolate;
    transform-origin: 52% 58%;
    animation: bf-pan-cinematic-float 7s cubic-bezier(.45, 0, .55, 1) infinite;
}
.bf-hero .bf-hero-pan { animation: none; will-change: auto; }
.bf-hero-pan-scene::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 12% 9% 9%;
    border-radius: 50%;
    background: radial-gradient(ellipse, #e0a25438, #c7823112 48%, transparent 72%);
    animation: bf-pan-warmth 5s ease-in-out infinite;
    pointer-events: none;
}
.bf-hero-pan-scene::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 20%;
    right: 16%;
    bottom: 10%;
    height: 7%;
    border-radius: 50%;
    background: #e8ac562a;
    filter: blur(18px);
    animation: bf-pan-warmth 7s ease-in-out infinite reverse;
    pointer-events: none;
}
.bf-pan-atmosphere { position: absolute; inset: 0; z-index: 25; pointer-events: none; }
.bf-pan-atmosphere span {
    position: absolute;
    left: var(--x, 30%);
    top: var(--y, 60%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #f6d09a;
    box-shadow: 0 0 10px 2px #efb65e66;
    opacity: 0;
    animation: bf-pan-spark 5s ease-out infinite;
    animation-delay: var(--delay, 0s);
}
.bf-pan-atmosphere span:nth-child(2) { --x: 43%; --y: 52%; --delay: -1.7s; }
.bf-pan-atmosphere span:nth-child(3) { --x: 62%; --y: 63%; --delay: -3.4s; }
.bf-pan-atmosphere span:nth-child(4) { --x: 72%; --y: 48%; --delay: -.8s; width: 2px; height: 2px; }
.bf-pan-atmosphere span:nth-child(5) { --x: 24%; --y: 42%; --delay: -2.6s; width: 2px; height: 2px; }
.bf-pan-atmosphere span:nth-child(6) { --x: 55%; --y: 36%; --delay: -4.2s; }

@keyframes bf-pan-cinematic-float {
    0%, 100% { transform: translate3d(0, 3px, 0) rotate(-1deg); }
    28% { transform: translate3d(3px, -9px, 0) rotate(.6deg); }
    55% { transform: translate3d(-2px, -14px, 0) rotate(1.2deg); }
    78% { transform: translate3d(-4px, -4px, 0) rotate(-.4deg); }
}
@keyframes bf-pan-warmth {
    0%, 100% { opacity: .45; transform: scale(.94); }
    50% { opacity: 1; transform: scale(1.08); }
}
@keyframes bf-pan-spark {
    0% { opacity: 0; transform: translate3d(0, 12px, 0) scale(.4); }
    20% { opacity: .65; }
    65% { opacity: .35; }
    100% { opacity: 0; transform: translate3d(20px, -85px, 0) scale(.2); }
}
@keyframes bf-concierge-greeting {
    0%, 72%, 100% { transform: rotate(0); }
    77% { transform: rotate(-12deg); }
    82% { transform: rotate(9deg); }
    87% { transform: rotate(-5deg); }
    92% { transform: rotate(0); }
}

@media (max-width: 700px) {
    .bf-whatsapp {
        right: 18px;
        bottom: calc(var(--bf-app-bottom, 82px) + 18px);
    }
    .bf-whatsapp__link {
        width: 64px;
        height: 64px;
        min-height: 64px;
        padding: 6px;
        gap: 0;
        justify-content: center;
        border-radius: 50%;
        overflow: visible;
        animation: bf-concierge-levitate 5s ease-in-out infinite;
    }
    .bf-whatsapp__content, .bf-whatsapp__arrow { display: none; }
    .bf-whatsapp__icon { width: 50px; height: 50px; flex-basis: 50px; }
    .bf-whatsapp__icon svg { width: 26px; height: 26px; }
    .bf-whatsapp__orbit { inset: -4px; width: auto; height: auto; }
    .bf-whatsapp__orbit::before {
        border-width: 1.5px;
        border-top-color: #f0d1a9;
        border-right-color: #25d36688;
        animation-duration: 4s;
    }
    .bf-whatsapp__pulse { left: 7px; top: 7px; width: 48px; height: 48px; }
    .bf-whatsapp__ambient { inset: -18px; width: auto; height: auto; }
    .bf-whatsapp__link::before {
        inset: 0;
        width: auto;
        height: auto;
        z-index: 3;
        border-radius: inherit;
        background: linear-gradient(110deg, transparent 30%, #fff3 49%, transparent 68%);
        background-size: 300% 100%;
        pointer-events: none;
        animation: bf-concierge-sheen 6s ease-in-out infinite;
    }
    .bf-whatsapp__link::after {
        content: '';
        position: absolute;
        right: 1px;
        top: 1px;
        z-index: 4;
        width: 10px;
        height: 10px;
        border: 2px solid #21180f;
        border-radius: 50%;
        background: #a8efbd;
        box-shadow: 0 0 10px #25d36666;
    }
    .bf-hero-pan-scene { animation-duration: 6s; }
    .bf-pan-atmosphere span { animation-duration: 4.5s; }
}
@keyframes bf-concierge-levitate {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}
@keyframes bf-concierge-sheen {
    0%, 50% { background-position: 100% 0; }
    80%, 100% { background-position: 0 0; }
}

body:is(.is-loading, .is-mobile-nav-open, .is-menu-open, .bf-menu-open, .bf-map-lightbox-open, .bfc-lightbox-open) .bf-whatsapp {
    visibility: hidden;
    pointer-events: none;
}
body:is(.is-loading, .is-mobile-nav-open, .is-menu-open, .bf-menu-open, .bf-map-lightbox-open, .bfc-lightbox-open) .bf-whatsapp__link {
    pointer-events: none;
}
body.is-loading .bf-hero-pan-scene,
body.is-loading .bf-hero-pan-scene::before,
body.is-loading .bf-hero-pan-scene::after,
body.is-loading .bf-pan-atmosphere span { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
    .bf-hero-pan-scene, .bf-hero-pan-scene::before, .bf-hero-pan-scene::after,
    .bf-pan-atmosphere span, .bf-whatsapp__link,
    .bf-whatsapp__link::before, .bf-whatsapp__icon svg { animation: none !important; }
    .bf-pan-atmosphere { display: none; }
}
