/* Mountain Club demo chatbot (stacked right above the WhatsApp button) */
.mcb{position:fixed;right:22px;bottom:90px;z-index:150;font-family:"DM Sans",Arial,sans-serif}
/* back-to-top moves up to make room for the chat button */
.back-to-top{bottom:158px}

.mcb-launcher{
  position:relative;width:56px;height:56px;border:0;border-radius:999px;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:var(--green,#202522);color:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.3);
  transition:transform .25s ease,background .2s ease;
}
.mcb-launcher:hover{transform:scale(1.07);background:var(--gold,#7d8975)}
.mcb-launcher:focus-visible{outline:3px solid var(--gold-pale,#bec4ba);outline-offset:3px}
.mcb-launcher svg{width:30px;height:30px;transition:transform .25s ease,opacity .2s ease}
.mcb-ic-close{position:absolute;opacity:0;transform:rotate(-90deg)}
.mcb.is-open .mcb-ic-chat{opacity:0;transform:rotate(90deg)}
.mcb.is-open .mcb-ic-close{opacity:1;transform:none}
.mcb-badge{
  position:absolute;top:-2px;right:-2px;min-width:20px;height:20px;padding:0 5px;
  border-radius:999px;background:#e0533d;color:#fff;font-size:11px;font-weight:700;
  display:flex;align-items:center;justify-content:center;border:2px solid #fff;
}

.mcb-panel{
  position:absolute;right:0;bottom:70px;
  width:370px;max-width:calc(100vw - 32px);
  height:560px;max-height:calc(100vh - 180px);
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--cream,#f5f3ee);border-radius:20px;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
  transform-origin:bottom right;animation:mcb-in .25s ease;
}
.mcb-panel[hidden]{display:none}
@keyframes mcb-in{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.mcb-panel{animation:none}}

.mcb-head{
  display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;
  background:var(--green,#202522);color:#fff;
}
.mcb-avatar{width:40px;height:40px;border-radius:999px;background:#fff;object-fit:contain;padding:4px}
.mcb-title{display:flex;flex-direction:column;line-height:1.25;flex:1;min-width:0}
.mcb-title strong{font-size:15px;font-weight:600}
.mcb-title small{font-size:12px;opacity:.75;display:flex;align-items:center;gap:6px}
.mcb-dot{width:8px;height:8px;border-radius:999px;background:#4cd07d;display:inline-block}
.mcb-x{
  width:34px;height:34px;border:0;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.1);color:#fff;font-size:22px;line-height:1;
}
.mcb-x:hover{background:rgba(255,255,255,.2)}

.mcb-log{flex:1;overflow-y:auto;padding:16px 14px 6px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.mcb-msg{
  max-width:86%;padding:10px 13px;border-radius:16px;
  font-size:14px;line-height:1.5;color:var(--ink,#493e34);word-wrap:break-word;
  animation:mcb-msg .2s ease;
}
@keyframes mcb-msg{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.mcb-bot{align-self:flex-start;background:#fff;border-bottom-left-radius:5px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.mcb-user{align-self:flex-end;background:var(--gold,#7d8975);color:#fff;border-bottom-right-radius:5px}
.mcb-msg ul{margin:6px 0 2px;padding-left:18px}
.mcb-msg li{margin:2px 0}
.mcb-msg a{color:var(--green,#202522);font-weight:600}
.mcb-msg b{color:var(--green,#202522)}

.mcb-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.mcb-act{
  display:inline-flex;align-items:center;padding:7px 13px;border-radius:999px;
  background:var(--green,#202522);color:#fff !important;border:0;cursor:pointer;
  font:600 12.5px "DM Sans",Arial,sans-serif;text-decoration:none;transition:background .2s ease;
}
.mcb-act:hover{background:var(--gold,#7d8975)}

.mcb-typing{display:flex;gap:4px;padding:13px 15px}
.mcb-typing span{width:7px;height:7px;border-radius:999px;background:var(--ink-soft,#8e867e);animation:mcb-dot 1s infinite ease-in-out}
.mcb-typing span:nth-child(2){animation-delay:.15s}
.mcb-typing span:nth-child(3){animation-delay:.3s}
@keyframes mcb-dot{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}

.mcb-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 14px;scrollbar-width:none}
.mcb-chips::-webkit-scrollbar{display:none}
.mcb-chips:empty{display:none}
.mcb-chip{
  flex:none;padding:7px 12px;border-radius:999px;cursor:pointer;
  border:1px solid var(--line-dark,rgba(216,205,187,.9));background:#fff;
  color:var(--ink,#493e34);font:500 12.5px "DM Sans",Arial,sans-serif;white-space:nowrap;
  transition:border-color .2s ease,color .2s ease;
}
.mcb-chip:hover{border-color:var(--gold,#7d8975);color:var(--green,#202522)}

.mcb-form{display:flex;gap:8px;padding:10px 12px 12px;border-top:1px solid rgba(0,0,0,.06);background:#fff}
.mcb-input{
  flex:1;min-width:0;height:42px;padding:0 14px;border-radius:999px;
  border:1px solid rgba(0,0,0,.12);background:var(--cream,#f5f3ee);
  font:15px "DM Sans",Arial,sans-serif;color:var(--ink,#493e34);outline:none;
}
.mcb-input:focus{border-color:var(--gold,#7d8975)}
.mcb-send{
  width:42px;height:42px;flex:none;border:0;border-radius:999px;cursor:pointer;
  background:var(--green,#202522);color:#fff;display:flex;align-items:center;justify-content:center;
}
.mcb-send:hover{background:var(--gold,#7d8975)}
.mcb-send svg{width:19px;height:19px}

/* hide while the booking overlay is open */
body.bko-lock .mcb{display:none}

@media(max-width:700px){
  .mcb{right:16px;bottom:78px}
  .mcb-launcher{width:52px;height:52px}
  .back-to-top{right:18px;bottom:140px}
}
@media(max-width:600px){
  .mcb.is-open{left:0;right:0;bottom:0}
  .mcb.is-open .mcb-launcher{display:none}
  .mcb-panel{position:fixed;inset:0;width:auto;max-width:none;height:auto;max-height:none;border-radius:0}
}
