/* ==========================================================================
   NIKKI'S NOLARETTE — Digital Itinerary
   Design tokens + reusable component system.
   Luxe New Orleans: rich purple (dominant) + energetic yellow accent +
   metallic gold (premium detail) + near-black neutral. Brown appears only
   within the Friday dinner "Brown Girl Magic" dress-code treatment — never
   in the site's overall palette.
   ========================================================================== */

:root {
  /* Neutrals — warm ivory / near-black grounding (not brown) */
  --ink-900: #18101c;
  --ink-700: #2e2035;
  --mauve-500: #8a7a91;
  --mauve-300: #cabdd0;
  --ivory-100: #f8f3ec;
  --ivory-50: #fdfbf8;
  --white: #fffdfb;

  /* Purple system — dominant identity color */
  --purple-900: #29102f;
  --purple-800: #3d144a;
  --purple-700: #4a1e5c;
  --purple-600: #5c2a70;
  --purple-500: #7a3a8c;
  --lilac-400: #b79cc4;
  --lilac-300: #cdb6d8;
  --lilac-200: #e7dbee;

  /* Metallic gold — premium borders, icons, highlights, signature moments */
  --gold-700: #8a6a35;
  --gold-600: #a9843f;
  --gold-500: #d4af64;
  --gold-300: #e9cd93;
  --gold-100: #f7ecd4;

  /* Energetic yellow accent — departure badges, CTAs, high-visibility */
  --yellow-700: #a3760a;
  --yellow-600: #d9a412;
  --yellow-500: #f4c430;
  --yellow-300: #fadd76;

  /* Brown Girl Magic — used ONLY within the Friday dinner dress-code card,
     never elsewhere in the site */
  --brown-900: #2c1a11;
  --brown-700: #5b3620;
  --brown-500: #a86a3c;
  --brown-300: #d9b48c;

  /* Semantic */
  --bg-body: var(--ivory-100);
  --text-primary: var(--ink-900);
  --text-muted: var(--mauve-500);
  --border-soft: rgba(41, 16, 47, 0.12);
  --border-gold: rgba(212, 175, 100, 0.5);
  --border-lilac: rgba(183, 156, 196, 0.5);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container-max: 1180px;
  --gutter: 24px;
  --bottom-nav-h: 64px;

  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-soft: 0 20px 60px -30px rgba(41, 16, 47, 0.45);
  --shadow-card: 0 12px 32px -20px rgba(41, 16, 47, 0.26);

  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 56px; }
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* iOS Home Screen / standalone launches use a different containing-block
   rule for `position: fixed`: an `overflow` value on <body> (even just
   overflow-x) makes <body> the containing block instead of the viewport,
   so fixed headers/nav scroll away with content. Regular Safari tabs are
   unaffected. Move the overflow containment to <html> only in that mode
   so normal browser behavior is untouched. */
@media (display-mode: standalone) {
  html { overflow-x: hidden; }
  body { overflow-x: visible; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-editorial), transform 0.8s var(--ease-editorial);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.4s var(--ease-editorial);
  white-space: nowrap;
}
@media (max-width: 350px) {
  .brand-mark { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
.site-nav.is-scrolled .brand-mark { color: var(--ink-900); }
.nav-links a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 253, 250, 0.88);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.35s var(--ease-editorial), border-color 0.35s var(--ease-editorial);
}
.site-nav.is-scrolled .nav-links a { color: var(--ink-700); }
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--purple-500);
  border-color: var(--purple-500);
}
.site-nav:not(.is-scrolled) .nav-links a:hover,
.site-nav:not(.is-scrolled) .nav-links a.is-active {
  color: var(--yellow-500);
  border-color: var(--yellow-500);
}
.stp-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.share-tooltip.is-visible { opacity: 1; transform: translateY(0); }
a.stay-card-location:hover { color: var(--purple-600); }
a.stay-cta:hover { background: var(--purple-500); }
.activity-field-value a { color: var(--gold-300); text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { padding: 22px var(--gutter) 26px; background: var(--purple-900); color: rgba(231, 219, 238, 0.65); }
@media (max-width: 759px) {
  .site-footer { padding-bottom: calc(26px + var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
}
.footer-line {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.footer-line .dot { color: rgba(231, 219, 238, 0.3); }
.footer-line .brand-link { color: var(--gold-300); font-weight: 600; }
.footer-line .brand-link[href] { cursor: pointer; }
.footer-line .brand-link:not([href]) { cursor: default; }
.footer-social { display: inline-flex; align-items: center; gap: 12px; margin-left: 2px; }
.footer-social a, .footer-social span { display: inline-flex; color: rgba(231, 219, 238, 0.55); transition: color 0.3s var(--ease-editorial); }
.footer-social a:hover { color: var(--gold-300); }
.footer-social svg { width: 15px; height: 15px; }

@media (max-width: 380px) { .footer-line { font-size: 11.5px; }
}

/* The standalone Hunt page (hunt.html) has no fixed bottom nav, so its
   footer doesn't need the itinerary's extra mobile clearance for one. */
@media (max-width: 759px) {
  .hunt-page-footer { padding-bottom: 26px; }
}
.share-status.is-visible { opacity: 1; }

/* ---------------------------------------------------------------------- */
/* STANDALONE HUNT PAGE (hunt.html) — minimal top bar with a back link to  */
/* the main itinerary. Deliberately separate from .site-nav (which is     */
/* itinerary-specific, with Save/Share triggers) rather than reusing or   */
/* modifying it.                                                          */
/* ---------------------------------------------------------------------- */
.hunt-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  background: var(--purple-900);
}
.hunt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-300);
  transition: color 0.3s var(--ease-editorial);
}
.hunt-back-link:hover { color: var(--gold-500); }
.hunt-back-link:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }
.hunt-page-nav .brand-mark { font-size: 13px; color: rgba(255, 253, 250, 0.65); }

.hunt-footer-back { max-width: 460px; margin: 56px auto 0; text-align: center; }
.hunt-back-link--footer { color: var(--purple-600); }
.hunt-back-link--footer:hover { color: var(--purple-500); }

/* ---------------------------------------------------------------------- */
/* THE NOLARETTE HUNT — individual, on-device scavenger hunt feature.      */
/* All new selectors are namespaced with .hunt- and do not touch any       */
/* existing rule above. Reuses the site's existing color tokens, radii,    */
/* shadows, and easing curve rather than introducing a new visual system.  */
/* ---------------------------------------------------------------------- */
.hunt { padding: 0 0 88px; background: var(--bg-body); }
.hunt-container { padding-top: 34px; }

/* Hero — a single responsive image (the graphic already has "THE
   NOLARETTE HUNT / NOLA Scavenger Challenge" designed into it, gold
   border and all). width:100%/height:auto scales it to any screen width
   while preserving its native aspect ratio exactly — never cropped
   (no background-size:cover) and never stretched/distorted. */
.hunt-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}
.hunt-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Header copy directly under the hero */
.hunt-header {
  max-width: 620px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}
.hunt-tagline { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--purple-600); }
.hunt-stats {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.hunt-copy { font-size: 14.5px; line-height: 1.65; color: var(--text-muted); }

/* Personal score card */
.hunt-score-card {
  max-width: 460px;
  margin: 0 auto 40px;
  background: linear-gradient(150deg, var(--ivory-50) 0%, var(--gold-100) 145%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.hunt-score-top { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hunt-score-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-600);
}
.hunt-score-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 9vw, 56px);
  line-height: 1;
  color: var(--ink-900);
}
.hunt-score-pts { font-size: 0.38em; font-weight: 700; letter-spacing: 0.08em; vertical-align: middle; color: var(--gold-700); }
.hunt-score-max { font-size: 12.5px; color: var(--text-muted); }

.hunt-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--purple-600);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-editorial);
}

.hunt-progress-track {
  width: 100%;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(41, 16, 47, 0.1);
  overflow: hidden;
}
.hunt-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--purple-500) 0%, var(--gold-500) 100%);
  transition: width 0.6s var(--ease-editorial);
}

.hunt-celebrate {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  background: var(--purple-800);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-editorial), transform 0.4s var(--ease-editorial);
}
.hunt-score-card { position: relative; }
.hunt-celebrate.is-showing { opacity: 1; transform: translate(-50%, 0); }

/* Challenge / bonus card grid */
.hunt-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .hunt-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1020px) { .hunt-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.hunt-card { position: relative; }
.hunt-card-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.3s var(--ease-editorial), box-shadow 0.3s var(--ease-editorial), transform 0.2s var(--ease-editorial);
}
.hunt-card-btn:hover { transform: translateY(-2px); }
.hunt-card-btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }
.hunt-card-btn:active { transform: translateY(0) scale(0.99); }

.hunt-card-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--ivory-100);
  transition: background-color 0.3s var(--ease-editorial), border-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial);
}
.hunt-card-check svg { width: 13px; height: 13px; }

.hunt-card-icon { font-size: 26px; line-height: 1; margin-bottom: 2px; }
.hunt-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-900);
  padding-right: 30px;
}
.hunt-card-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.hunt-card-points {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--purple-600);
}

.hunt-card.is-complete .hunt-card-btn {
  border-color: var(--border-gold);
  background: linear-gradient(150deg, var(--ivory-50) 0%, var(--gold-100) 160%);
  box-shadow: var(--shadow-soft);
}
.hunt-card.is-complete .hunt-card-check {
  background: var(--gold-500);
  border-color: var(--gold-600);
  color: var(--white);
  transform: scale(1.06);
}
.hunt-card.is-complete .hunt-card-points { color: var(--gold-700); }
.hunt-card.is-complete .hunt-card-title,
.hunt-card.is-complete .hunt-card-desc { opacity: 0.85; }

/* Points-earned flourish — a brief "+N" that floats up and fades, plus a
   quick card pulse. Purely decorative; disabled entirely by the global
   prefers-reduced-motion rule at the top of this file. */
.hunt-card-earned {
  position: absolute;
  top: 14px;
  right: 46px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gold-600);
  opacity: 0;
  pointer-events: none;
}
.hunt-card.is-earning .hunt-card-btn { animation: hunt-card-pulse 0.5s var(--ease-editorial); }
.hunt-card.is-earning .hunt-card-earned { animation: hunt-points-float 0.9s var(--ease-editorial); }

/* Bonus missions — visually distinct, gold-accented treatment */
.hunt-bonus-section { margin-top: 48px; }
.hunt-bonus-header { max-width: 520px; margin: 0 auto 20px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.hunt-bonus-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-700);
}
.hunt-bonus-eyebrow::before { content: "👑 "; }
.hunt-bonus-intro { font-size: 14px; color: var(--text-muted); }

.hunt-bonus-grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .hunt-bonus-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 1020px) { .hunt-bonus-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.hunt-card--bonus .hunt-card-btn {
  background: linear-gradient(155deg, var(--purple-900) 0%, var(--purple-700) 100%);
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 100, 0.15), var(--shadow-soft);
}
.hunt-card--bonus .hunt-card-title { color: var(--white); }
.hunt-card--bonus .hunt-card-desc { color: var(--lilac-300); }
.hunt-card--bonus .hunt-card-points { color: var(--gold-300); }
.hunt-card--bonus .hunt-card-check { background: rgba(255, 253, 250, 0.12); border-color: rgba(212, 175, 100, 0.5); }
.hunt-card--bonus.is-complete .hunt-card-btn {
  background: linear-gradient(155deg, var(--purple-700) 0%, var(--gold-700) 160%);
}
.hunt-card--bonus.is-complete .hunt-card-check { background: var(--gold-500); border-color: var(--gold-300); color: var(--purple-900); }

.hunt-bonus-chip {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-900);
  background: var(--gold-500);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.hunt-card--bonus .hunt-card-icon { margin-top: 18px; }

/* Trip Memories tie-in */
.hunt-memories {
  max-width: 520px;
  margin: 48px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hunt-memories-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 4vw, 24px);
  color: var(--ink-900);
}
.hunt-memories-copy { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.hunt-memories-cta { margin-top: 6px; }
.hunt-memories-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--purple-600);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease-editorial);
}
.hunt-memories-cta:hover { background: var(--purple-500); }
.hunt-memories-cta:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 3px; }

/* Reset — deliberately small and muted so it can't be tapped by accident */
.hunt-reset-row { max-width: 460px; margin: 40px auto 0; text-align: center; }
.hunt-reset-link {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  color: var(--mauve-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 10px;
}
.hunt-reset-link:hover { color: var(--text-primary); }
.hunt-reset-link:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 2px; }

.hunt-reset-confirm {
  margin-top: 12px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hunt-reset-confirm[hidden] { display: none; }
.hunt-reset-confirm-title { font-family: var(--font-display); font-size: 15.5px; color: var(--ink-900); }
.hunt-reset-confirm-body { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.hunt-reset-confirm-actions { margin-top: 8px; display: flex; justify-content: center; gap: 10px; }
.hunt-reset-cancel,
.hunt-reset-confirm-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-editorial), color 0.3s var(--ease-editorial);
}
.hunt-reset-cancel {
  background: var(--ivory-100);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
}
.hunt-reset-cancel:hover { background: var(--lilac-200); }
.hunt-reset-confirm-btn {
  background: #b81f3a;
  border: 1px solid #b81f3a;
  color: var(--white);
}
.hunt-reset-confirm-btn:hover { background: #9c1830; }
.hunt-reset-cancel:focus-visible,
.hunt-reset-confirm-btn:focus-visible { outline: 2px solid var(--yellow-500); outline-offset: 2px; }

/* Keyframes referenced by kept rules above */

@keyframes hunt-card-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
@keyframes hunt-points-float {
  0% { opacity: 0; transform: translateY(6px); }
  30% { opacity: 1; transform: translateY(-2px); }
  100% { opacity: 0; transform: translateY(-26px); }
}