/* ============================================================
   Talking-Thread — home page "booking announcement" popup
   Desktop / tablet: centred card.  Phones: bottom sheet.
   Uses the site's colour tokens, so light / dark / luxury work.
   Everything is scoped under .tt-pop so nothing else is touched.
   ============================================================ */

.tt-pop[hidden]{display:none!important}
.tt-pop{
  position:fixed;inset:0;z-index:230;           /* above header, chatbot, WhatsApp, tab bar, toasts */
  display:flex;align-items:center;justify-content:center;
  padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  box-sizing:border-box
}
.tt-pop *,.tt-pop *::before,.tt-pop *::after{box-sizing:border-box}

.tt-pop-backdrop{
  position:absolute;inset:0;
  background:rgba(33,28,21,.5);
  opacity:0;transition:opacity .35s var(--ease)
}

.tt-pop-card{
  position:relative;
  width:100%;max-width:460px;
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:36px 34px 30px;
  text-align:center;
  background:var(--paper);color:var(--ink);
  border:1px solid var(--line);border-top:3px solid var(--thread);
  border-radius:16px;
  box-shadow:0 30px 70px -28px rgba(33,28,21,.55),0 4px 16px rgba(33,28,21,.12);
  opacity:0;transform:translateY(14px) scale(.98);
  transition:opacity .4s var(--ease),transform .4s var(--ease);
  outline:none
}
.tt-pop.is-in .tt-pop-backdrop{opacity:1}
.tt-pop.is-in .tt-pop-card{opacity:1;transform:none}
.tt-pop.is-leaving .tt-pop-backdrop{opacity:0}
.tt-pop.is-leaving .tt-pop-card{opacity:0;transform:translateY(10px) scale(.98)}

/* close button */
.tt-pop-x{
  position:absolute;top:10px;right:10px;
  width:36px;height:36px;padding:0;
  display:flex;align-items:center;justify-content:center;
  border:none;border-radius:50%;background:transparent;color:var(--ink-soft);
  cursor:pointer;touch-action:manipulation;
  transition:background-color .2s var(--ease),color .2s var(--ease)
}
.tt-pop-x::before{content:"";position:absolute;inset:-4px}
.tt-pop-x:hover{background:var(--ivory);color:var(--ink)}
.tt-pop-x svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

.tt-pop-mark{display:block;width:auto;height:64px;margin:0 auto 12px;color:var(--sage);fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}

.tt-pop-eyebrow{
  margin:0 0 10px;
  font-family:var(--font-body);font-size:.68rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;color:var(--thread)
}
.tt-pop-title{
  margin:0 0 14px;
  font-family:var(--font-display);font-weight:500;font-size:1.85rem;line-height:1.15;letter-spacing:-.01em;color:var(--ink)
}
.tt-pop-text{
  margin:0 auto 18px;max-width:36ch;
  font-family:var(--font-body);font-size:.95rem;line-height:1.65;color:var(--ink-soft)
}
.tt-pop .tt-date{font-weight:700;color:var(--ink);white-space:nowrap}

.tt-pop-pill{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 22px;padding:8px 16px;
  font-family:var(--font-body);font-size:.84rem;line-height:1.3;
  color:var(--gold-text);background:rgba(176,139,69,.14);
  border:1px solid var(--gold-soft);border-radius:999px
}
.tt-pop-pill svg{width:16px;height:16px;flex:0 0 auto;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.tt-pop-pill .tt-date{color:inherit}

.tt-pop-cta{
  position:relative;
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:100%;padding:16px 20px;
  font-family:var(--font-body);font-size:.76rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  white-space:nowrap;text-decoration:none;
  color:var(--ink);background:var(--ivory);
  border:1px solid var(--line);border-radius:8px;
  touch-action:manipulation;
  transition:background-color .3s var(--ease),color .3s var(--ease),border-color .3s var(--ease)
}
.tt-pop-cta::after{content:"";position:absolute;inset:4px;border:1px dashed var(--gold-soft);border-radius:5px;pointer-events:none;transition:border-color .3s var(--ease)}
.tt-pop-cta svg{width:16px;height:16px;flex:0 0 auto;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease)}
.tt-pop-cta:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.tt-pop-cta:hover::after{border-color:rgba(255,255,255,.35)}
.tt-pop-cta:hover svg{transform:translateX(3px)}

.tt-pop-x:focus-visible,.tt-pop-cta:focus-visible{outline:2px solid var(--gold);outline-offset:2px}

/* ---- phones: bottom sheet --------------------------------------------- */
@media (max-width:560px){
  .tt-pop{align-items:flex-end;padding:0}
  .tt-pop-card{
    max-width:none;
    max-height:88vh;max-height:88dvh;
    padding:30px 22px calc(24px + env(safe-area-inset-bottom,0px));
    border-radius:22px 22px 0 0;
    transform:translateY(60px)
  }
  .tt-pop.is-leaving .tt-pop-card{transform:translateY(40px)}
  .tt-pop-title{font-size:1.65rem}
  .tt-pop-text{font-size:.92rem}
}
@media (max-width:370px){
  .tt-pop-card{padding-left:16px;padding-right:16px}
  .tt-pop-cta{padding:15px 12px;font-size:.7rem;letter-spacing:.1em}
  .tt-pop-title{font-size:1.5rem}
}

/* ---- short screens (phones on their side): never let the card overflow --- */
@media (max-height:520px){
  .tt-pop-card{padding-top:22px;padding-bottom:20px;max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  .tt-pop-mark{display:none}
  .tt-pop-title{font-size:1.4rem;margin-bottom:8px}
  .tt-pop-text{margin-bottom:12px}
  .tt-pop-pill{margin-bottom:14px}
}

@media (prefers-reduced-motion:reduce){
  .tt-pop-backdrop,.tt-pop-card{transition:none}
  .tt-pop-card{transform:none}
}