/* ═══════════════════════════════════════════════════════════════
   Base tokens + shared components required by the Stays page.
   Extracted from the Eden styles.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face { font-family: "Mergo"; src: url("assets/fonts/Mergo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hando"; src: url("assets/fonts/Hando-ExtraBold.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }

/* ── Design tokens ── */
:root {
  --forest: #17231a;
  --forest-2: #1f3022;
  --olive: #7a8417;
  --olive-d: #3b400b;
  --sage: #b7bf7b;
  --cream: #f5f2d8;
  --paper: #fbfbef;
  --butter: #f3f59c;
  --night: #0c1438;
  --display: "Mergo", "Hando", system-ui, sans-serif;
  --sans: "Hando", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ── Butterfly cursor (matches the main site) ──────── */
:root {
  --cursor-butterfly:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='30' viewBox='-30 -24 60 48'%3E%3Cg fill='none'%3E%3Cpath fill='%232a2f1c' d='M0 0C-6-14-24-22-27-12-29-4-16 2 0 2Z'/%3E%3Cpath fill='%232a2f1c' d='M0 2C-10 4-20 10-17 18-13 24-4 14 0 4Z'/%3E%3Cpath fill='%232a2f1c' d='M0 0C6-14 24-22 27-12 29-4 16 2 0 2Z'/%3E%3Cpath fill='%232a2f1c' d='M0 2C10 4 20 10 17 18 13 24 4 14 0 4Z'/%3E%3C/g%3E%3Cg%3E%3Cpath fill='%23f3f59c' d='M0 0C-6-14-24-22-27-12-29-4-16 2 0 2Z'/%3E%3Cpath fill='%23d7e06a' d='M0 2C-10 4-20 10-17 18-13 24-4 14 0 4Z'/%3E%3Cpath fill='%23f3f59c' d='M0 0C6-14 24-22 27-12 29-4 16 2 0 2Z'/%3E%3Cpath fill='%23d7e06a' d='M0 2C10 4 20 10 17 18 13 24 4 14 0 4Z'/%3E%3Crect x='-1.2' y='-6' width='2.4' height='14' rx='1.2' fill='%232a2f1c'/%3E%3C/g%3E%3C/svg%3E")
    18 15;
}
body { cursor: var(--cursor-butterfly), auto; }
/* keep the butterfly over interactive elements too, with pointer fallback */
a, button, .stay, .stay__gallery, .stay__nav, .stay__zoom, .filters button,
.lightbox button, [role="button"], input[type="submit"] { cursor: var(--cursor-butterfly), pointer; }
/* text inputs keep a normal caret so typing feels right */
input:not([type="submit"]), textarea, select { cursor: auto; }

/* ── Cursor sparkle trail (matches the main site) ──────── */
.cursor-fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: reduce) { .cursor-fx { display: none; } }
/* Touch devices have no hovering cursor, so skip the trail */
@media (hover: none) { .cursor-fx { display: none; } }

/* ── Heading hover-blur (jaise home page) ──────────────
   Word-by-word blur inside a heading, mouse devices only. */
/* wordblur.js wraps each word of a heading in .hw and tags the heading .hw-split.
   Hover one word → the other words of that heading blur and dim (as on the home page). */
.hw { display: inline-block; transition: filter 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
@media (hover: hover) {
  .hw-split:hover .hw { filter: blur(5px); opacity: 0.5; }
  .hw-split:hover .hw:hover { filter: none; opacity: 1; }
}

/* ── Reveal animations ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 500ms); }
.is-ready .reveal { opacity: 1; transform: none; }
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }

/* ── Glass pill nav ── */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(23, 35, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  color: #fff;
  transform: translate(-50%, 0);
  transition: transform 0.6s var(--ease-out), opacity 0.6s;
}
.nav.is-hidden { transform: translate(-50%, -150%); opacity: 0; }
.nav__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--butter); color: var(--forest); }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.74);
  transition: background 0.3s, color 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav__links .nav__cta { background: var(--cream); color: var(--forest); }
.nav__links .nav__cta:hover { background: #fff; color: var(--forest); }
/* Lineup: highlighted link with a pulsing live dot */
.nav__links a.nav__hot { gap: 7px; background: var(--butter); color: var(--forest); box-shadow: 0 0 0 0 rgba(243, 245, 156, 0.55); animation: nav-hot 2.4s ease-out infinite; }
.nav__links a.nav__hot::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #1f9d4d; animation: nav-dot 1.4s ease-in-out infinite; }
.nav__links a.nav__hot:hover, .nav__links a.nav__hot.is-active { background: #fff; color: var(--forest); }
@keyframes nav-hot { 0% { box-shadow: 0 0 0 0 rgba(243, 245, 156, 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(243, 245, 156, 0); } }
@keyframes nav-dot { 50% { transform: scale(0.55); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .nav__links a.nav__hot, .nav__links a.nav__hot::before { animation: none; } }

/* ── Layout helpers ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec--forest { background: radial-gradient(120% 80% at 80% 0%, #24412c 0%, var(--forest) 60%); color: var(--cream); }
.sec--cream { background: var(--cream); color: var(--olive-d); }

/* ── Headings ── */
.h-display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 72px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.h-display em { font-style: normal; color: var(--olive); }
.sec--forest .h-display em { color: var(--sage); }
.kicker { margin: 0 0 16px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.lead { max-width: 52ch; margin: 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; }
.lead a { color: inherit; text-underline-offset: 3px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.5s var(--ease-out), box-shadow 0.4s, background 0.4s, color 0.4s, opacity 1.1s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); }
.btn--solid { background: var(--forest); color: var(--butter); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.btn--solid:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); }
.btn--line-dark { border: 1px solid rgba(23, 35, 26, 0.35); color: var(--forest); }

/* ── Footer ── */
.foot { background: var(--forest); color: var(--cream); padding: 56px clamp(16px, 4vw, 48px) 28px; text-align: center; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foot__links a { padding: 12px 20px; border: 1px solid rgba(183, 191, 123, 0.5); border-radius: 999px; text-decoration: none; font-size: 15px; transition: background 0.3s, color 0.3s; }
.foot__links a:hover { background: var(--sage); color: var(--forest); }
.foot small { font-size: 13px; opacity: 0.6; }

/* ── Lightbox shell ── */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(10, 14, 10, 0.88); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; width: auto; border-radius: 16px; }
.lightbox button { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--forest); font-size: 26px; cursor: pointer; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .rv, .reveal { transition: none; opacity: 1; transform: none; }
  .stay__gallery, .stay__gallery:hover { transform: none; transition: box-shadow 0.4s; }
}

/* ── Responsive nav ── */
@media (max-width: 860px) {
  .nav { top: 10px; max-width: calc(100vw - 20px); }
  .nav__links a { padding: 0 8px; font-size: 11px; letter-spacing: 0.06em; }
  .split { grid-template-columns: 1fr; }
}
