/* ===========================================================
   Where's Worm? — Cyber-Luxury Travel Design System
   Deep blacks · neon purple/cyan/gold · glassmorphism
   =========================================================== */

:root {
  --bg: #05040c;
  --bg-2: #0b0718;
  --panel: rgba(18, 12, 34, 0.6);
  --line: rgba(168, 85, 247, 0.22);
  --purple: #a855f7;
  --purple-deep: #7c1fff;
  --cyan: #22e1ff;
  --gold: #ffd24a;
  --pink: #ff3ea5;
  --ink: #f4f1ff;
  --muted: #b3a9d4;
  --radius: 20px;
  --shadow: 0 30px 80px -30px rgba(124, 31, 255, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1100px 600px at 12% -8%, rgba(124, 31, 255, 0.22), transparent 60%),
    radial-gradient(900px 520px at 95% 4%, rgba(34, 225, 255, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Sora', 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.center { text-align: center; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.gradient-text {
  background: linear-gradient(100deg, var(--purple) 0%, var(--cyan) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold { color: var(--gold); }
.cyan { color: var(--cyan); }
.purple { color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(95deg, var(--purple-deep), var(--cyan));
  color: #fff;
  box-shadow: 0 12px 40px -12px rgba(124, 31, 255, .8);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 16px 48px -10px rgba(34,225,255,.7); }
.btn-gold { background: linear-gradient(95deg, var(--gold), #ff9d4a); color: #1a1005; }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 18px; font-size: .85rem; }

/* ---------- Glass cards ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card {
  background: linear-gradient(180deg, rgba(28,18,52,.65), rgba(10,7,22,.65));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s, box-shadow .35s;
  position: relative;
}
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(34,225,255,.55);
  box-shadow: var(--shadow);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-queen { background: rgba(255,62,165,.16); color: #ff7ac2; border: 1px solid rgba(255,62,165,.4); }
.badge-quake { background: rgba(34,225,255,.14); color: var(--cyan); border: 1px solid rgba(34,225,255,.4); }
.badge-member { background: rgba(255,210,74,.16); color: var(--gold); border: 1px solid rgba(255,210,74,.4); }
.badge-live { background: rgba(46,213,115,.16); color: #2ed573; border: 1px solid rgba(46,213,115,.4); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(6,4,12,.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--purple-deep), var(--cyan));
  box-shadow: 0 0 22px rgba(124,31,255,.6);
}
.brand-name { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { font-size: 10px; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: .92rem; color: var(--muted); font-weight: 600; transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 1.5rem; cursor: pointer; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,4,12,.96);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column; padding: 28px;
}
.drawer.open { transform: translateX(0); }
.drawer a { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-close { align-self: flex-end; background: none; border: 0; color: var(--ink); font-size: 2rem; cursor: pointer; }

/* ---------- Welcome-back banner ---------- */
.welcome-banner {
  background: linear-gradient(95deg, rgba(124,31,255,.3), rgba(34,225,255,.18));
  border-bottom: 1px solid var(--line);
  text-align: center; font-size: .9rem; padding: 10px 16px; font-weight: 600;
}
.welcome-banner .gold { font-weight: 800; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-video, .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-bg {
  background:
    radial-gradient(700px 500px at 20% 30%, rgba(124,31,255,.45), transparent 60%),
    radial-gradient(600px 500px at 85% 65%, rgba(34,225,255,.35), transparent 60%),
    linear-gradient(160deg, #0a0618, #05040c);
}
.hero::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(180deg, rgba(5,4,12,.2), rgba(5,4,12,.85));
}
.hero-inner { padding: 60px 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; }
.hero p { max-width: 560px; }

/* ---------- Search bar ---------- */
.search-card { padding: 18px; margin-top: 30px; }
.search-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.field label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .form-control {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: rgba(8,5,18,.7); border: 1px solid var(--line); color: var(--ink);
  font-size: .95rem; font-family: inherit;
}
.field input:focus, .field select:focus, .form-control:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,225,255,.15);
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Hotel cards ---------- */
.hotel-media { height: 190px; position: relative; display: grid; place-items: center; font-size: 4rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: #05040c; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hotel-media .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.hotel-body { padding: 20px; }
.hotel-title { font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; }
.hotel-loc { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 14px 0; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price-new { font-family: 'Sora', sans-serif; font-size: 1.55rem; font-weight: 800; color: var(--gold); }
.price-unit { color: var(--muted); font-size: .8rem; }
.stars { color: var(--gold); font-size: .85rem; letter-spacing: 1px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--muted); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all .2s;
}
.chip.active, .chip:hover { color: var(--ink); border-color: var(--cyan); background: rgba(34,225,255,.1); }

/* ---------- Affiliate disclaimer ---------- */
.affiliate-note { font-size: 11px; color: var(--muted); font-style: italic; text-align: center; margin-top: 10px; opacity: .8; }

/* ---------- Floating AI button ---------- */
.float-ai {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: .92rem;
  background: linear-gradient(95deg, var(--purple-deep), var(--cyan));
  color: #fff; box-shadow: 0 14px 40px -10px rgba(124,31,255,.85);
  display: inline-flex; align-items: center; gap: 9px;
  animation: floaty 3.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.stat { padding: 26px; text-align: center; }
.stat .num { font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800; }

/* ---------- Timeline (planner) ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content:""; position:absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--purple), var(--cyan)); }
.tl-item { position: relative; margin-bottom: 22px; }
.tl-item::before {
  content:""; position:absolute; left: -29px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.tl-day { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--cyan); font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 54px 0 30px; margin-top: 40px; background: rgba(5,4,12,.6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--muted); font-size: .9rem; padding: 5px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.7; }

/* ---------- Section heading ---------- */
.sec-head { margin-bottom: 38px; }
.sec-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Loader ---------- */
.dots span { display:inline-block; width:8px; height:8px; margin:0 3px; border-radius:50%; background: var(--cyan); animation: blink 1.2s infinite both; }
.dots span:nth-child(2){ animation-delay:.2s } .dots span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,80%,100%{ opacity:.2 } 40%{ opacity:1 } }

/* ---------- Mobile bottom tab bar (app-style nav) ---------- */
.tabbar { display: none; }
.tab-badge {
  position: absolute; top: -4px; right: -8px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--gold); color: #1a1005;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 2px 8px rgba(255,210,74,.5);
}

/* ---------- Install (Add to Home Screen) banner ---------- */
.pwa-banner {
  position: fixed; left: 14px; right: 14px; bottom: 22px; z-index: 88;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.pwa-banner.show { transform: translateY(0); }
.pwa-banner .pwa-ico { font-size: 1.6rem; }
.pwa-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pwa-copy strong { font-family: 'Sora', sans-serif; font-size: .95rem; }
.pwa-copy span { color: var(--muted); font-size: .78rem; }
.pwa-banner .btn { flex-shrink: 0; }
.pwa-x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 2px; }

/* ---------- Touch ergonomics ---------- */
.btn, .chip, .tab, .nav-toggle { touch-action: manipulation; }

/* ---------- Worm Rewards (membership perk) ---------- */
.rewards-card { padding: 26px; }
.rewards-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rewards-tier { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; margin-top: 4px; }
.rewards-points { text-align: right; line-height: 1; flex-shrink: 0; }
.rewards-points span { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--gold); }
.rewards-points small { display: block; font-size: .68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.rewards-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; margin: 18px 0 12px; }
.rewards-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(95deg, var(--purple-deep), var(--cyan), var(--gold)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.rewards-next { color: var(--muted); font-size: .92rem; margin: 0; }
.rewards-next strong { color: var(--ink); }
.rewards-meta { color: var(--cyan); font-size: .82rem; font-weight: 700; margin-top: 8px; }
.reward-ladder { display: grid; gap: 10px; margin: 20px 0 6px; }
.reward-tier { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); opacity: .5; transition: opacity .3s, border-color .3s, background .3s; }
.reward-tier.unlocked { opacity: 1; border-color: rgba(34,225,255,.4); background: rgba(34,225,255,.06); }
.reward-emoji { font-size: 1.5rem; line-height: 1.1; }
.reward-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem; }
.reward-min { color: var(--muted); font-size: .72rem; font-weight: 600; margin-left: 6px; }
.reward-perk { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.reward-code { font-size: .8rem; margin-top: 6px; color: var(--gold); }
.reward-code strong { letter-spacing: 1px; }

/* ---------- Activities (GetYourGuide) ---------- */
.activities-frame { min-height: 300px; }
.activities-frame [data-gyg-widget] { min-height: 260px; }
.eg-widget { min-height: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }

  /* Show the app-style tab bar and keep page content clear of it */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .float-ai { display: none !important; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 87;
    justify-content: space-around; align-items: flex-end;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8,5,18,.9); border-top: 1px solid var(--line);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 4px 2px; color: var(--muted); font-weight: 700;
    -webkit-tap-highlight-color: transparent; transition: color .2s;
  }
  .tab-ico { position: relative; display: grid; place-items: center; }
  .tab svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .tab-label { font-size: 10px; letter-spacing: .2px; }
  .tab.active { color: var(--ink); }
  .tab.active svg { color: var(--cyan); }
  .tab-center .tab-ico {
    margin-top: -26px; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(95deg, var(--purple-deep), var(--cyan));
    border: 4px solid var(--bg); box-shadow: 0 10px 28px -8px rgba(124,31,255,.9);
  }
  .tab-center svg { width: 26px; height: 26px; stroke: #fff; }
  .tab-center.active svg { color: #fff; }

  /* Lift the install banner above the tab bar on phones */
  .pwa-banner { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .nav-cta .btn { display: none; }
  .wrap { padding: 0 18px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 0; }
  /* 16px inputs stop iOS Safari from zooming on focus */
  .field input, .field select, .form-control { font-size: 16px; padding: 14px 15px; }
  .btn { padding: 14px 22px; }
}
