/* WhatsApp and Call now, on every page.
   Wide screens: two square buttons above the sound control; the label and number slide out on hover or focus.
   Phones (760px and narrower): a bar across the bottom of the screen, with the dock, the sound control
   and the homepage's bottom controls lifted above it. */

.hx-contact{--hx-wa:#25d366;--hx-wa-ink:#052f34;--hx-aqua:#096069;--hx-cream:#fcf7eb;--hx-bar:52px;
  position:fixed;right:18px;bottom:76px;z-index:57;display:flex;flex-direction:column;gap:8px;margin:0;padding:0;
  font-family:"Harsukh Text","Gill Sans","Gill Sans MT",Calibri,"Segoe UI",system-ui,sans-serif;
  transition:opacity .4s,visibility 0s}
body:not(:has(.sound-dock)) .hx-contact{bottom:18px}

.hx-contact a{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0;
  border-radius:2px;text-decoration:none;box-shadow:0 8px 22px rgba(5,47,52,.22);
  transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s}
.hx-contact a:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(5,47,52,.28)}
.hx-contact a:focus-visible{outline:2px solid var(--hx-cream);outline-offset:2px;box-shadow:0 0 0 4px var(--hx-aqua)}
.hx-contact .hx-call{background:var(--hx-aqua);color:var(--hx-cream)}
.hx-contact .hx-wa{background:var(--hx-wa);color:var(--hx-wa-ink)}
.hx-contact svg{flex:none;width:22px;height:22px}
.hx-contact .hx-call svg{width:20px;height:20px}

/* The label beside each square on wide screens */
.hx-label{position:absolute;right:calc(100% + 10px);top:50%;display:flex;flex-direction:column;gap:4px;padding:9px 14px;
  white-space:nowrap;border-radius:2px;background:inherit;color:inherit;box-shadow:0 8px 22px rgba(5,47,52,.22);
  opacity:0;transform:translate(8px,-50%);pointer-events:none;transition:opacity .25s,transform .35s cubic-bezier(.16,1,.3,1)}
.hx-label b{font-weight:600;font-size:.68rem;line-height:1;letter-spacing:.16em;text-transform:uppercase}
.hx-num{font-weight:500;font-size:.92rem;line-height:1;letter-spacing:.02em}
.hx-contact a:hover .hx-label,.hx-contact a:focus-visible .hx-label{opacity:1;transform:translate(0,-50%)}

/* The bottom dock already offered WhatsApp; these buttons now do that on every page. */
.h-dock .h-dock-wa{display:none!important}

/* Hidden while the penthouse film plays full screen, and in print */
body.pf-open .hx-contact{opacity:0;visibility:hidden;pointer-events:none}
@media print{.hx-contact{display:none!important}}

@media (max-width:760px){
  .hx-contact{left:0;right:0;bottom:0;flex-direction:row;gap:0;padding-bottom:env(safe-area-inset-bottom,0px);
    background:#052f34;box-shadow:0 -6px 20px rgba(5,47,52,.18)}
  body:not(:has(.sound-dock)) .hx-contact{bottom:0}
  .hx-contact a{flex:1 1 50%;width:auto;height:var(--hx-bar);gap:10px;border-radius:0;box-shadow:none}
  .hx-contact a:hover{transform:none;box-shadow:none}
  .hx-contact a:focus-visible{outline-offset:-4px;box-shadow:none}
  .hx-contact svg{width:20px;height:20px}
  .hx-contact .hx-call svg{width:18px;height:18px}
  .hx-label{position:static;flex-direction:row;padding:0;background:none;box-shadow:none;opacity:1;transform:none}
  .hx-label b{font-size:.78rem;letter-spacing:.14em}
  .hx-num{display:none}

  /* Keep the page end, the dock, the sound control and the homepage's bottom controls above the bar */
  body{padding-bottom:calc(var(--hx-bar,52px) + env(safe-area-inset-bottom,0px))}
  .open-dock{bottom:calc(62px + env(safe-area-inset-bottom,0px))!important}
  .sound-dock{bottom:calc(62px + env(safe-area-inset-bottom,0px))!important}
  .h31-foot,.rt-credit,.rt-scene,.lv-panel,.toast{margin-bottom:var(--hx-bar,52px)}
  /* 3D tour: the room list, the plan card and messages */
  #rooms.rooms,#mplan.mplan{margin-bottom:var(--hx-bar,52px)}
}
@media (prefers-reduced-motion:reduce){.hx-contact a,.hx-label{transition:none}}
