/* ========================================================================
   Nyara Stays — elevate.css
   Intro loader · soundscape · magnetic cursor · WhatsApp bubble ·
   wishlist · currency switcher · exit-intent · tiered calendar
   ====================================================================== */

/* ---------- Intro loader ---------- */
.intro{
  position: fixed; inset: 0; z-index: 200;
  background: var(--cream-2);
  display: grid; place-items: center;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.intro::before{
  content:""; position: absolute; inset:0;
  background: radial-gradient(60% 40% at 50% 50%, rgba(201,167,122,.20) 0%, transparent 70%);
  opacity: 0; animation: introHalo 1.6s var(--ease) .2s forwards;
}
@keyframes introHalo { to { opacity: 1; } }
.intro__mark{
  position: relative;
  width: clamp(120px, 14vw, 180px);
  height: clamp(120px, 14vw, 180px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(58,38,24,.35);
  transform: scale(.4); opacity: 0;
  animation: introMark 2.4s var(--ease) forwards;
}
.intro__mark img{ width:100%; height:100%; object-fit: cover; }
.intro__mark::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.65) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: introSheen 2.4s var(--ease) .4s forwards;
}
@keyframes introMark{
  0%   { transform: scale(.4); opacity: 0; }
  35%  { transform: scale(1.0); opacity: 1; }
  85%  { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}
@keyframes introSheen{
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.intro__caption{
  position: absolute;
  bottom: clamp(60px, 10vh, 110px); left: 0; right: 0;
  text-align: center;
  font-family: var(--f-display);
  font-size: clamp(15px, 1.2vw, 18px);
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: introCap 1.6s var(--ease) .8s forwards;
}
.intro__caption span{ display:inline-block; }
.intro__caption span + span{ margin-left: 14px; color: var(--brand); }
@keyframes introCap{
  0%   { opacity: 0; transform: translateY(8px); letter-spacing: .5em; }
  100% { opacity: .9; transform: translateY(0); letter-spacing: .35em; }
}
.intro.is-gone{ opacity: 0; visibility: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce){
  .intro__mark{ animation: none; transform: none; opacity: 1; }
  .intro__caption{ animation: none; opacity: .9; }
}

/* ---------- Time-of-day hero tint ---------- */
.hero__media::after{
  content:""; position:absolute; inset:0;
  background: var(--time-tint, transparent);
  mix-blend-mode: soft-light;
  pointer-events: none;
  transition: background 1.2s var(--ease);
}

/* ---------- Magnetic cursor ---------- */
.cursor{
  position: fixed; top: 0; left: 0;
  width: 26px; height: 26px;
  border: 1px solid rgba(139, 94, 63, .55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 180;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), opacity .25s;
  mix-blend-mode: multiply;
  opacity: 0;
}
.cursor.is-ready{ opacity: 1; }
.cursor.is-pull{
  width: 48px; height: 48px;
  background: rgba(139, 94, 63, .12);
  border-color: rgba(139, 94, 63, .85);
}
.cursor__dot{
  position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.cursor.is-pull .cursor__dot{ transform: translate(-50%, -50%) scale(0); }
/* Hide native cursor over hovering CTAs when magnetic active */
body.has-magnetic-cursor a, body.has-magnetic-cursor button{ cursor: none; }
@media (hover: none), (pointer: coarse){
  .cursor{ display: none !important; }
}

/* ---------- Soundscape toggle ---------- */
.sound{
  position: fixed; right: 22px; bottom: 86px; z-index: 90;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: rgba(251,247,236,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 10px 32px -10px rgba(58,38,24,.25);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.sound:hover{ transform: translateY(-2px); }
.sound.is-on{ background: var(--brand); color: var(--paper); border-color: var(--brand); }
/* gentle pulsing ring — only visible when ambient is ON */
.sound.is-on::before,
.sound.is-on::after{
  content:""; position: absolute; inset:-6px;
  border-radius: 999px;
  border: 1px solid rgba(139, 94, 63, .45);
  animation: soundRing 2.6s var(--ease) infinite;
  pointer-events: none;
}
.sound.is-on::after{ animation-delay: 1.3s; }
@keyframes soundRing{
  0%   { transform: scale(.85); opacity: .9; border-color: rgba(139, 94, 63, .55); }
  100% { transform: scale(1.55); opacity: 0;  border-color: rgba(139, 94, 63, 0); }
}
.sound__bars{
  display: inline-flex; align-items: center; gap: 3px;
  height: 18px;
}
.sound__bars i{
  display: inline-block;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 1px;
  transition: height .25s var(--ease);
}
.sound.is-on .sound__bars i{ animation: bars 1.1s var(--ease) infinite; }
.sound.is-on .sound__bars i:nth-child(2){ animation-delay: .12s; }
.sound.is-on .sound__bars i:nth-child(3){ animation-delay: .24s; }
.sound.is-on .sound__bars i:nth-child(4){ animation-delay: .36s; }
@keyframes bars{
  0%, 100% { height: 4px; }
  50%      { height: 16px; }
}
.sound__label{
  position: absolute; right: 64px; top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  background: rgba(251,247,236,.96);
  border: 1px solid var(--line-2);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.sound:hover .sound__label{ opacity: 1; transform: translate(0, -50%); }

/* ---------- WhatsApp concierge ---------- */
.wa{
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  text-decoration: none;
}
.wa:hover{ transform: translateY(-3px) scale(1.04); box-shadow: 0 18px 48px -10px rgba(37, 211, 102, .75); }
.wa__label{
  position: absolute; right: 64px; top: 50%;
  transform: translate(8px, -50%);
  white-space: nowrap;
  background: rgba(251,247,236,.96);
  border: 1px solid var(--line-2);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.wa:hover .wa__label{ opacity: 1; transform: translate(0, -50%); }

/* ---------- Nav right cluster ---------- */
.nav__right{
  display: inline-flex; align-items: center;
  gap: 10px;
  justify-content: flex-end;
}
.nav__right .nav__cta{ margin: 0; }

/* ---------- Wishlist heart ---------- */
.wish{
  position: absolute; top: 18px; right: 18px; z-index: 4;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,253,247,.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.55);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.wish:hover{ transform: scale(1.06); }
.wish svg{ transition: fill .3s var(--ease), transform .3s var(--ease); }
.wish.is-saved{ background: var(--brand); color: var(--paper); border-color: var(--brand); }
.wish.is-saved svg{ fill: currentColor; transform: scale(1.1); }
.wish.is-pulse svg{ animation: heartPulse .55s var(--ease); }
@keyframes heartPulse{
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1.1); }
}

/* Nav wishlist badge */
.nav__wish{
  position: relative;
  width: 36px; height: 36px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: inherit;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.nav__wish:hover{ background: var(--cream-2); border-color: var(--line-2); }
.nav__wish[data-count]:not([data-count="0"])::after{
  content: attr(data-count);
  position: absolute; top: -2px; right: -2px;
  background: var(--brand); color: var(--paper);
  width: 18px; height: 18px;
  border-radius: 999px;
  font-family: var(--f-body); font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
  border: 2px solid var(--paper);
}

/* Wishlist popover */
.wish-pop{
  position: fixed; top: 80px; right: 22px; z-index: 110;
  width: clamp(280px, 88vw, 360px);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 18px;
  opacity: 0; transform: translateY(-8px) scale(.97);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wish-pop.is-open{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.wish-pop h4{
  margin: 0 0 14px;
  font-family: var(--f-body); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.wish-pop__item{
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: 12px;
  transition: background .25s var(--ease);
  color: var(--ink);
}
.wish-pop__item:hover{ background: var(--cream-2); }
.wish-pop__item img{
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
}
.wish-pop__item-body{ flex: 1; min-width: 0; }
.wish-pop__item-title{
  font-family: var(--f-display); font-size: 19px;
  margin: 0; line-height: 1.1;
}
.wish-pop__item-loc{
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}
.wish-pop__remove{
  background: transparent; border: 0; color: var(--muted);
  padding: 6px; cursor: pointer;
  transition: color .25s;
}
.wish-pop__remove:hover{ color: var(--brand); }
.wish-pop__empty{
  text-align: center; padding: 30px 12px;
  color: var(--muted); font-size: 14px;
}

/* ---------- Currency switcher ---------- */
.curr{
  position: relative;
}
.curr__btn{
  appearance: none; background: transparent; border: 1px solid var(--line);
  color: inherit;
  font-family: var(--f-body); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.curr__btn:hover{ background: var(--cream-2); }
.curr__btn svg{ transition: transform .3s var(--ease); }
.curr.is-open .curr__btn svg{ transform: rotate(180deg); }

/* On hero-overlay nav: white border */
.page-home .nav:not(.is-scrolled) .curr__btn,
.page-yume .nav:not(.is-scrolled) .curr__btn,
.page-nyara .nav:not(.is-scrolled) .curr__btn{
  color: rgba(255,253,247,.95);
  border-color: rgba(255,255,255,.55);
}
.page-home .nav:not(.is-scrolled) .nav__wish,
.page-yume .nav:not(.is-scrolled) .nav__wish,
.page-nyara .nav:not(.is-scrolled) .nav__wish{ color: rgba(255,253,247,.95); }

.curr__menu{
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 8px;
  min-width: 180px;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.curr.is-open .curr__menu{ opacity: 1; transform: translateY(0); pointer-events: auto; }
.curr__opt{
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink); cursor: pointer;
  transition: background .25s var(--ease);
  background: transparent; border: 0; width: 100%; font-family: var(--f-body);
  letter-spacing: 0; text-transform: none;
}
.curr__opt:hover{ background: var(--cream-2); }
.curr__opt.is-active{ color: var(--brand); }
.curr__opt-code{ font-weight: 600; letter-spacing: .12em; }
.curr__opt-sym{ color: var(--muted); font-size: 12px; }

/* ---------- Calendar tiered seasons ---------- */
.cal__day{ position: relative; }
.cal__day::after{
  content:""; position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: transparent;
  transition: background .25s var(--ease);
}
.cal__day.is-tier-low::after  { background: rgba(108, 154, 119, .85); }   /* sage */
.cal__day.is-tier-mid::after  { background: rgba(201, 167, 122, .9); }    /* sand */
.cal__day.is-tier-high::after { background: rgba(199, 95, 75, .9); }      /* warm coral */
.cal__day.is-muted::after,
.cal__day.is-past::after{ display: none; }
.cal__day.is-start::after,
.cal__day.is-end::after,
.cal__day.is-in-range::after{ background: rgba(255,255,255,.7); }

.cal__legend{
  display: flex; flex-wrap: wrap; gap: 16px;
  padding-top: 16px; margin-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.cal__legend span{ display: inline-flex; align-items: center; gap: 8px; }
.cal__legend i{
  width: 8px; height: 8px; border-radius: 50%; display: inline-block;
}
.cal__legend .l-low{  background: rgba(108, 154, 119, .85); }
.cal__legend .l-mid{  background: rgba(201, 167, 122, .9); }
.cal__legend .l-high{ background: rgba(199, 95, 75, .9); }

/* ---------- Exit-intent modal ---------- */
.exit{
  position: fixed; inset: 0; z-index: 150;
  background: rgba(20, 14, 10, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
}
.exit.is-open{ opacity: 1; visibility: visible; }
.exit__card{
  background: var(--paper);
  max-width: 480px; width: 100%;
  border-radius: 22px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.4);
  text-align: center;
  transform: translateY(20px) scale(.96);
  transition: transform .45s var(--ease);
}
.exit.is-open .exit__card{ transform: translateY(0) scale(1); }
.exit__kicker{
  display: inline-block;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--brand);
  background: rgba(139, 94, 63, .08);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.exit__title{
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.exit__body{
  font-size: 15px; color: #4a3a2c; line-height: 1.6;
  margin: 0 0 22px;
}
.exit__timer{
  display: inline-flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 56px);
  color: var(--brand);
  margin-bottom: 22px;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.exit__timer span:last-child{
  font-family: var(--f-body); font-size: 13px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.exit__cta{ display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.exit__close{
  position: absolute; top: 14px; right: 14px;
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: background .25s, color .25s;
}
.exit__close:hover{ background: var(--cream-2); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 720px){
  .sound{ width: 44px; height: 44px; right: 16px; bottom: 16px; }
  .wa{ width: 44px; height: 44px; right: 16px; bottom: 72px; }
  .sound__label, .wa__label{ display: none; }
  .curr{ display: none; } /* hide in nav on small screens — drawer handles */
  .nav__wish{ display: none; }
}
