/* =========================================================
   Final CTA above the footer — booking bar between two mountains
   (reuses the .fcta bar styles from cta.css)
   ========================================================= */
.endcta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(20px, 2.5vw, 36px) clamp(16px, 3vw, 40px) 20px;   /* tight top and bottom */
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(110, 30, 210, .28), transparent 70%),
    radial-gradient(30% 50% at 100% 70%, rgba(140, 40, 240, .3), transparent 70%),
    radial-gradient(30% 50% at 0% 80%, rgba(120, 30, 220, .26), transparent 70%),
    #050307;
}
.endcta::before {                            /* seamless join with the section above */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 100px;
  z-index: 0;
  background: linear-gradient(to bottom, #050307, rgba(5, 3, 7, 0));
  pointer-events: none;
}
/* melt the booking section's bottom glow into this one (no hard line between them) */
.rsv::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, #050307, rgba(5, 3, 7, 0));
}

.endcta__inner { position: relative; z-index: 2; max-width: 1040px; margin: 0 auto; text-align: center; }
.endcta .fcta { margin-top: 0; }

/* mountains in the bottom corners, gently rising as the section scrolls in (content.js) */
.endcta__mtn {
  position: absolute;
  bottom: 0;
  z-index: 1;
  width: clamp(200px, 30vw, 500px);
  pointer-events: none;
  transform: translate3d(var(--mx, 0px), var(--my, 30px), 0);
  transition: transform .2s linear;
}
.endcta__mtn--l { left: -24px; }
.endcta__mtn--r { right: -24px; }
.endcta__mtn img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(150, 60, 255, .25));
  -webkit-mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .5) 72%, transparent 88%);
          mask-image: linear-gradient(to bottom, #000 52%, rgba(0, 0, 0, .5) 72%, transparent 88%);
}

@media (max-width: 760px) {
  .endcta__mtn { width: clamp(150px, 42vw, 240px); }
}
@media (prefers-reduced-motion: reduce) {
  .endcta__mtn { transform: none !important; transition: none; }
}

/* ---------- closing heading + perks ---------- */
.endcta__head { margin: 0 auto 18px; max-width: 720px; }
.endcta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #ffd1de;
  background: rgba(255, 80, 130, .1);
  border: 1px solid rgba(255, 120, 160, .35);
}
.endcta__dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4d7d; animation: ecLive 1.6s ease-out infinite; }
.endcta__title {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  color: #f7f3fb;
}
.endcta__gold {
  background: linear-gradient(100deg, #f6d9a4, #f7c47c 40%, #fff1d0 50%, #f7c47c 60%, #f6d9a4);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: ecShine 5s ease-in-out infinite;
}
.endcta__sub { margin: 12px auto 0; max-width: 560px; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.6; color: #d6cbe6; }

/* reveal */
.endcta__head > * { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease, ease), transform .8s var(--ease, ease); }
.endcta__head.is-in > * { opacity: 1; transform: none; }
.endcta__head.is-in > :nth-child(2) { transition-delay: .12s; }
.endcta__head.is-in > :nth-child(3) { transition-delay: .24s; }

/* perks under the bar */
.endcta__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.endcta__perks span { display: inline-flex; align-items: center; gap: 7px; transition: color .3s, transform .3s var(--ease, ease); }
.endcta__perks span:hover { color: #fff; transform: translateY(-2px); }
.endcta__perks svg { width: 16px; height: 16px; fill: none; stroke: #f7c47c; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@keyframes ecLive  { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 125, .7); } 100% { box-shadow: 0 0 0 8px rgba(255, 77, 125, 0); } }
@keyframes ecShine { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .endcta__head > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .endcta__gold, .endcta__dot { animation: none !important; }
}

/* ---------- compact bar in the closing section ---------- */
.endcta .fcta { max-width: 680px; padding: 4px 0 0; }
.endcta .fcta__bar { gap: 16px; padding: 8px 8px 8px 10px; }
.endcta .fcta__btn { padding: 11px 20px; font-size: 15px; }
.endcta .fcta__sep { height: 28px; }
.endcta .fcta__info { gap: 10px; }
.endcta .fcta__cal { width: 18px; height: 18px; }
.endcta .fcta__date { font-size: 14px; }
.endcta .fcta__where { font-size: 12.5px; gap: 6px; }
.endcta .fcta__go { width: 42px; height: 42px; }
.endcta .fcta__go-icon, .endcta .fcta__go svg { width: 20px; height: 20px; }
.endcta .fcta__flare { width: 52px; height: 52px; margin-top: -26px; }
.endcta .fcta__flare--l { left: -7%; }
.endcta .fcta__flare--r { right: -7%; }
.endcta .endcta__perks { margin-top: 12px; font-size: 12.5px; gap: 6px 18px; }
.endcta .endcta__perks svg { width: 14px; height: 14px; }
@media (max-width: 760px) {
  .endcta .fcta { max-width: 460px; }
  .endcta .fcta__bar { border-radius: 22px; }
}

/* less empty space at the bottom of the booking section, above this one */
.rsv__inner { padding-bottom: clamp(16px, 2vw, 28px); }
