/* =========================================
   EngJoy — Gamification layer
   Adventure Map nav · Destination banner ·
   Mascot · XP bar · Collectibles · Sound toggle
   ========================================= */

/* ===== ADVENTURE MAP NAV ===== */
.map-nav{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 10px;
}
.map-trail{
  position: absolute;
  left: 30px; right: 30px; top: 50%;
  height: 3px;
  background-image: linear-gradient(90deg, var(--orange) 50%, transparent 50%);
  background-size: 12px 3px;
  background-repeat: repeat-x;
  transform: translateY(-50%);
  opacity: .35;
  z-index: 0;
}
.map-pin{
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 4px;
  transition: transform .25s ease;
}
.map-pin:hover{ transform: translateY(-4px); }
.pin-dot{
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.pin-dot::before{
  content: attr(data-icon);
}
.map-pin:nth-child(2) .pin-dot::before{ content: "🏠"; }
.map-pin:nth-child(3) .pin-dot::before{ content: "📱"; }
.map-pin:nth-child(4) .pin-dot::before{ content: "🎮"; }
.map-pin:nth-child(5) .pin-dot::before{ content: "🎭"; }
.map-pin:nth-child(6) .pin-dot::before{ content: "👨‍👩‍👧"; font-size: .9rem; }
.map-pin:nth-child(7) .pin-dot::before{ content: "🎟️"; }
.map-pin:nth-child(8) .pin-dot::before{ content: "✨"; }
.pin-label{
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(-4px);
  transition: all .25s ease;
  pointer-events: none;
}
.map-pin:hover .pin-label{ opacity: 1; transform: translateY(0); }
.map-pin:hover .pin-dot{
  border-color: var(--orange);
  background: #fff8ec;
  transform: scale(1.1);
}
.map-pin.active .pin-dot{
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 0 6px rgba(238,108,81,.18), 0 8px 18px rgba(238,108,81,.35);
  animation: pinPulse 1.6s ease-in-out infinite;
}
.map-pin.active .pin-label{ opacity: 1; transform: translateY(0); color: var(--orange); }
@keyframes pinPulse{
  0%,100%{ box-shadow: 0 0 0 6px rgba(238,108,81,.18), 0 8px 18px rgba(238,108,81,.35); }
  50%{ box-shadow: 0 0 0 10px rgba(238,108,81,.10), 0 8px 18px rgba(238,108,81,.45); }
}
.map-pin.visited .pin-dot{
  border-color: var(--green);
  background: rgba(60,196,109,.12);
}

/* ===== DESTINATION BANNER ===== */
.dest-banner{
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(34,38,99,.4);
  pointer-events: none;
  opacity: 0;
  transition: transform .55s cubic-bezier(.34,1.56,.64,1), opacity .35s ease;
  border: 3px solid var(--yellow);
}
.dest-banner.show{
  transform: translate(-50%, 0);
  opacity: 1;
}
.dest-icon{
  font-size: 1.6rem;
  display: inline-flex;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  align-items: center; justify-content: center;
  animation: bannerFly 1.2s ease-out;
}
.dest-banner small{
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .75;
  font-weight: 700;
}
.dest-banner strong{
  font-family: var(--font-display);
  font-size: 1.05rem;
}
@keyframes bannerFly{
  0%{ transform: translate(-30px,8px) rotate(-25deg); }
  60%{ transform: translate(6px,-4px) rotate(8deg); }
  100%{ transform: translate(0,0) rotate(0); }
}

/* ===== XP BAR ===== */
.xp-bar{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: rgba(34,38,99,.08);
  z-index: 70;
  overflow: visible;
}
.xp-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green));
  background-size: 200% 100%;
  transition: width .6s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 14px rgba(246,187,88,.6);
  animation: xpShimmer 3s linear infinite;
  position: relative;
}
@keyframes xpShimmer{
  to{ background-position: -200% 0; }
}
.xp-label{
  position: absolute;
  top: 8px; right: 12px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  padding: 4px 12px;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
  white-space: nowrap;
}

/* ===== COLLECTIBLES (stars to click) ===== */
.collectible{
  position: absolute;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  filter: drop-shadow(0 0 8px rgba(246,187,88,.7));
  animation: collectFloat 3s ease-in-out infinite, collectSpin 6s linear infinite;
  transition: transform .2s ease;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto;
}
.collectible:hover{
  transform: scale(1.4);
  filter: drop-shadow(0 0 14px rgba(246,187,88,1));
}
.collectible.collected{
  animation: collectPop .5s ease-out forwards;
  pointer-events: none;
}
@keyframes collectFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-12px); }
}
@keyframes collectSpin{
  to{ transform: rotate(360deg); }
}
@keyframes collectPop{
  0%{ transform: scale(1); opacity: 1; }
  50%{ transform: scale(2); opacity: .8; }
  100%{ transform: scale(0); opacity: 0; }
}

/* ===== MASCOT (cursor follower) ===== */
.mascot{
  position: fixed;
  top: 0; left: 0;
  width: 50px; height: 50px;
  z-index: 65;
  pointer-events: none;
  transition: transform .2s ease;
  display: none;
}
.mascot.active{ display: block; }
.mascot img{
  width: 100%; height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(238,108,81,.4);
  animation: mascotIdle 2.5s ease-in-out infinite;
}
@keyframes mascotIdle{
  0%,100%{ transform: rotate(-4deg); }
  50%{ transform: rotate(6deg); }
}
.mascot-bubble{
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 14px 14px 14px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--orange);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mascot.talking .mascot-bubble{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== SPARKLE PARTICLES ===== */
.fx-layer{
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}
.sparkle{
  position: absolute;
  width: 14px; height: 14px;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  user-select: none;
  animation: sparkleFly .9s ease-out forwards;
}
@keyframes sparkleFly{
  0%{ transform: translate(-50%,-50%) scale(0) rotate(0); opacity: 1; }
  60%{ opacity: 1; }
  100%{
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.4) rotate(360deg);
    opacity: 0;
  }
}
.confetti{
  position: absolute;
  width: 10px; height: 14px;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall 3.5s linear forwards;
}
@keyframes confettiFall{
  0%{ transform: translateY(-20px) rotate(0); opacity: 1; }
  100%{ transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

/* ===== SOUND TOGGLE ===== */
.sound-toggle{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 3px solid var(--yellow);
  box-shadow: 0 12px 28px rgba(34,38,99,.4);
  display: grid; place-items: center;
  font-size: 1.4rem;
  z-index: 75;
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.sound-toggle:hover{
  transform: scale(1.08) rotate(-6deg);
}
.sound-toggle .snd-on{ display: none; }
.sound-toggle .snd-off{ display: block; }
.sound-toggle.on .snd-on{ display: block; }
.sound-toggle.on .snd-off{ display: none; }
.sound-toggle.on{
  background: var(--orange);
  border-color: var(--green);
  animation: soundPulse 2.4s ease-in-out infinite;
}
@keyframes soundPulse{
  0%,100%{ box-shadow: 0 12px 28px rgba(238,108,81,.4); }
  50%{ box-shadow: 0 12px 28px rgba(238,108,81,.6), 0 0 0 8px rgba(238,108,81,.15); }
}
.snd-tip{
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: tipBounce 1.6s ease-in-out infinite;
  pointer-events: none;
}
.snd-tip::after{
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  transform: translateY(-50%);
  border-left: 7px solid var(--yellow);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sound-toggle.on .snd-tip{ display: none; }
@keyframes tipBounce{
  0%,100%{ transform: translateY(-50%) translateX(0); }
  50%{ transform: translateY(-50%) translateX(-6px); }
}

/* ===== SECTION WORLD-THEMING ===== */
section[data-world]{
  transition: background-color .8s ease;
}
.world-active.hero{ background: linear-gradient(180deg, transparent, rgba(246,187,88,.05)); }
.world-active.problem{ background: linear-gradient(180deg, rgba(238,108,81,.05), rgba(255,248,236,.7)); }
.world-active.how{ background: linear-gradient(180deg, transparent, rgba(60,196,109,.06)); }
.world-active.characters{ background: linear-gradient(180deg, rgba(255,248,236,.6), rgba(246,187,88,.06)); }
.world-active.parents{ background: linear-gradient(180deg, transparent, rgba(34,38,99,.04)); }
.world-active.pricing{ background: linear-gradient(180deg, rgba(34,38,99,.04), rgba(238,108,81,.04)); }
.world-active.waitlist{ background: linear-gradient(180deg, rgba(246,187,88,.06), transparent); }

/* Section reveal "swoosh in" when entering */
section[data-world]{
  position: relative;
}
section[data-world]::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--yellow) 0%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity .9s ease;
}
section.world-arriving::before{
  animation: worldArrive 1.4s ease-out;
}
@keyframes worldArrive{
  0%{ opacity: .35; transform: translateX(-100%); }
  60%{ opacity: .15; }
  100%{ opacity: 0; transform: translateX(100%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px){
  .map-nav{ gap: 2px; padding: 4px 6px; }
  .pin-dot{ width: 32px; height: 32px; font-size: .9rem; border-width: 2px; }
  .map-pin:nth-child(6) .pin-dot::before{ font-size: .75rem; }
  .pin-label{ display: none; }
  .map-trail{ left: 18px; right: 18px; }
  .dest-banner{ top: 70px; padding: 10px 16px 10px 12px; font-size: .9rem; }
  .dest-icon{ width: 32px; height: 32px; font-size: 1.3rem; }
  .xp-label{ font-size: .72rem; padding: 3px 10px; right: 8px; }
  .sound-toggle{ width: 48px; height: 48px; font-size: 1.2rem; bottom: 16px; right: 16px; }
  .snd-tip{ font-size: .72rem; padding: 6px 10px; right: 60px; }
  .collectible{ font-size: 1.5rem; }
}
@media (max-width: 600px){
  .map-nav{ padding: 2px; }
  .pin-dot{ width: 28px; height: 28px; font-size: .78rem; }
  .map-trail{ display: none; }
  .nav-cta{ display: none; }
}
@media (hover: none){
  /* Touch devices: hide cursor mascot */
  .mascot{ display: none !important; }
}
@media (prefers-reduced-motion: reduce){
  .pin-dot, .dest-banner, .xp-fill, .collectible, .mascot img,
  .sound-toggle, .snd-tip, section.world-arriving::before,
  .sparkle, .confetti{
    animation: none !important;
    transition: none !important;
  }
}

/* ===== HEADER ALIGNMENT FIX ===== */
/* All header items share consistent vertical alignment & spacing */
.nav-row {
  align-items: center;
  gap: 20px;
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.map-nav {
  align-items: center;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Override floating sound-toggle: now lives inside header */
.sound-toggle {
  position: static;
  bottom: auto;
  right: auto;
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
  border-width: 2px;
  box-shadow: var(--shadow-sm);
  z-index: auto;
  flex-shrink: 0;
}
.sound-toggle:hover {
  transform: scale(1.1) rotate(-8deg);
}

/* Reposition tooltip BELOW the toggle (was to the left when floating) */
.snd-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  font-size: .72rem;
  padding: 5px 10px;
  animation: tipBounceDown 1.6s ease-in-out infinite;
}
.snd-tip::after {
  top: -5px;
  right: 50%;
  transform: translateX(50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 0;
  border-bottom: 6px solid var(--yellow);
}
@keyframes tipBounceDown {
  0%,100% { transform: translateX(50%) translateY(0); }
  50%     { transform: translateX(50%) translateY(4px); }
}

/* CTA button in header: trim to match toggle height */
.nav-cta {
  padding: 10px 18px;
  font-size: .92rem;
  height: 40px;
  display: inline-flex;
  align-items: center;
}

/* Hamburger sized to match */
.nav-toggle {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
}

/* ===== Responsive header ===== */
@media (max-width: 980px) {
  .nav-row { gap: 12px; }
  .nav-actions { gap: 8px; }
  .sound-toggle { width: 36px; height: 36px; font-size: .95rem; }
  .nav-cta { padding: 8px 14px; font-size: .85rem; height: 36px; }
  .snd-tip { display: none; }
}
@media (max-width: 600px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===== HEADER NAV CENTERING (override) ===== */
/* Map nav fills the middle space and centers its pins both axes */
.map-nav {
  flex: 1;
  margin-left: 0;
  justify-content: center;
  align-items: center;
  align-self: center;
}
/* Trail line spans the centered nav properly */
.map-nav .map-trail {
  left: 10%;
  right: 10%;
}
/* Nav actions (sound toggle + CTA + hamburger) stay grouped on the right */
.nav-actions {
  margin-left: 0;
}
/* Ensure logo doesn't push map-nav off-center */
.nav-row > .logo {
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .map-nav { flex: 1; }
  .map-nav .map-trail { left: 6%; right: 6%; }
}

/* ===== POLISH: pill backdrop + always-visible labels ===== */
.map-nav {
  background: rgba(255, 248, 236, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  gap: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px rgba(34,38,99,0.04);
  max-width: 720px;
  margin-inline: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Labels always visible (lighter, smaller) — feels grounded */
.pin-label {
  opacity: 0.75;
  transform: none;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--ink-2);
}
.map-pin:hover .pin-label,
.map-pin.active .pin-label {
  opacity: 1;
}
/* Trim pin dot border so they sit better on the pill */
.pin-dot {
  width: 34px; height: 34px;
  border-width: 2px;
  font-size: 1rem;
  background: #fff;
}
/* Trail line stays inside the pill */
.map-trail {
  left: 30px;
  right: 30px;
  top: 32%;
}

@media (max-width: 1100px) {
  .map-nav { padding: 5px 12px; gap: 10px; max-width: 100%; }
  .pin-label { font-size: 0.58rem; }
}
@media (max-width: 980px) {
  .map-nav {
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    gap: 6px;
  }
  .pin-label { display: none; }
  .pin-dot { width: 32px; height: 32px; }
}

/* ===== TOOLTIP POSITION FIX (final) ===== */
.sound-toggle .snd-tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  font-size: 0.72rem;
  padding: 5px 12px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  animation: tipDown 1.6s ease-in-out infinite;
  pointer-events: none;
}
.sound-toggle .snd-tip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--yellow);
  border-top: 0;
}
@keyframes tipDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(4px); }
}
.sound-toggle.on .snd-tip { display: none; }

/* ===== SKIP-TO-CONTENT LINK (a11y) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  top: 0;
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

/* ===== TOOLTIP ANCHOR FIX =====
   Sound toggle must be position: relative so the absolute tooltip
   positions itself relative to the button, not header/body. */
.nav-actions .sound-toggle {
  position: relative !important;
}

/* ===== PLAN CARD READABILITY FIX =====
   Make the navy "Most Loved" Adventure card high-contrast against
   the pricing-plaza scene background. */
.plan-card.plan-featured {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 30px 60px rgba(34,38,99,.35), 0 0 0 4px rgba(255,255,255,.6);
}
.plan-card.plan-featured h3,
.plan-card.plan-featured .plan-price,
.plan-card.plan-featured ul li,
.plan-card.plan-featured ul {
  color: #fff !important;
  text-shadow: none;
}
.plan-card.plan-featured .plan-price {
  color: var(--yellow) !important;
}
.plan-card.plan-featured ul li {
  color: rgba(255,255,255,.95) !important;
  border-bottom-color: rgba(255,255,255,.18) !important;
}
.plan-card.plan-featured .plan-badge {
  background: var(--yellow);
  color: var(--navy);
  border: 2px solid #fff;
}

/* ===== MOBILE HEADER REWRITE (final, definitive) ===== */
@media (max-width: 700px) {
  .site-header { padding: 0; }
  .nav-row {
    gap: 8px;
    padding: 8px 0;
    flex-wrap: nowrap;
  }
  .logo img {
    height: 30px !important;
    max-width: 110px !important;
  }
  /* Map nav becomes a swipeable horizontal strip */
  .map-nav {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    max-width: 100% !important;
    margin: 0;
    padding: 4px 6px;
    gap: 8px;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .map-nav::-webkit-scrollbar { display: none; }
  .map-trail { display: none; }
  .map-pin {
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 2px;
  }
  .pin-dot {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
    border-width: 2px;
  }
  .pin-label { display: none !important; }
  /* Right side: only sound toggle, hide Join CTA + hamburger */
  .nav-actions { gap: 6px; }
  .nav-cta { display: none !important; }
  .nav-toggle { display: none !important; }
  .nav-actions .sound-toggle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem;
    flex-shrink: 0;
    border-width: 2px;
  }
  .snd-tip { display: none !important; }

  /* Floating mobile-only "Join Waitlist" bottom CTA */
  .mobile-cta {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 60;
    background: var(--orange);
    color: #fff;
    padding: 14px 20px;
    border-radius: 999px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(238,108,81,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
}
@media (min-width: 701px) {
  .mobile-cta { display: none; }
}

/* Make the active pin scroll into view nicely */
.map-pin.active {
  scroll-snap-align: center;
}

/* ===== ACTIVE PIN STYLING (override) =====
   Consistent size with other pins, orange outline only — no filled bg. */
.map-pin.active .pin-dot {
  border-color: var(--orange) !important;
  background: #fff !important;
  color: var(--navy) !important;
  transform: scale(1) !important;
  border-width: 3px !important;
  box-shadow: 0 0 0 4px rgba(238,108,81,.15), 0 4px 12px rgba(238,108,81,.25) !important;
  animation: pinPulseRing 1.8s ease-in-out infinite !important;
}
@keyframes pinPulseRing {
  0%,100% { box-shadow: 0 0 0 4px rgba(238,108,81,.15), 0 4px 12px rgba(238,108,81,.25); }
  50%     { box-shadow: 0 0 0 8px rgba(238,108,81,.08), 0 4px 14px rgba(238,108,81,.35); }
}

/* Hover ring matches the active style language (subtle ring, no fill change) */
.map-pin:hover .pin-dot {
  background: #fff !important;
  border-color: var(--orange) !important;
  transform: scale(1) !important;
}

/* Pin lift on hover stays as feedback */
.map-pin:hover { transform: translateY(-3px); }

/* Visited pins keep a soft green tint without changing size */
.map-pin.visited .pin-dot {
  border-color: var(--green) !important;
  background: rgba(60,196,109,.06) !important;
}

/* On mobile, same consistent treatment */
@media (max-width: 700px) {
  .map-pin.active .pin-dot {
    box-shadow: 0 0 0 3px rgba(238,108,81,.18), 0 3px 8px rgba(238,108,81,.25) !important;
  }
}

/* ===== TEXT-ONLY NAV (icons removed) ===== */
/* Hide the icon dots entirely */
.pin-dot { display: none !important; }
.map-trail { display: none !important; }

/* Promote labels to be the nav links */
.map-pin {
  padding: 8px 14px !important;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.map-pin .pin-label {
  display: inline-block !important;
  opacity: 1 !important;
  transform: none !important;
  font-size: 0.88rem !important;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--navy);
  pointer-events: none;
}
.map-pin:hover {
  background: rgba(238,108,81,.10);
  transform: translateY(0);
}
.map-pin:hover .pin-label {
  color: var(--orange);
  opacity: 1 !important;
}
.map-pin.active {
  background: rgba(238,108,81,.14);
}
.map-pin.active .pin-label {
  color: var(--orange) !important;
  font-weight: 800;
}
.map-pin.visited .pin-label {
  color: var(--ink-2);
}

/* Tighter pill backdrop now that pins are smaller */
.map-nav {
  padding: 4px 12px !important;
  gap: 4px !important;
  max-width: 640px !important;
}

/* Mobile: text nav as horizontal scroll strip */
@media (max-width: 700px) {
  .map-nav {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 4px 8px !important;
  }
  .map-pin {
    padding: 6px 10px !important;
    flex-shrink: 0;
  }
  .map-pin .pin-label {
    font-size: 0.78rem !important;
  }
}

/* ===== MOBILE NAV REWRITE (hamburger drawer) =====
   With 7 text links, horizontal scroll feels clumsy.
   Switch to a clean hamburger → vertical drawer pattern. */
@media (max-width: 700px) {
  /* Hide the inline map nav */
  .nav-row > .map-nav {
    display: none !important;
  }

  /* Show hamburger toggle */
  .nav-actions .nav-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(34,38,99,.06);
    border-radius: 12px;
    flex-shrink: 0;
  }
  .nav-actions .nav-toggle span {
    background: var(--navy);
  }

  /* When drawer is open, animate hamburger to X */
  .nav-actions .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-actions .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-actions .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Drawer: full-width, slides down from header */
  .map-nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    position: fixed !important;
    top: 56px;
    left: 0; right: 0;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    padding: 12px 16px 18px !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-shadow: 0 12px 24px rgba(34,38,99,.12) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    z-index: 55;
    gap: 4px !important;
    animation: drawerSlide .3s ease-out;
  }
  .map-nav.open .map-pin {
    width: 100%;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-bottom: 1px solid rgba(34,38,99,.06);
  }
  .map-nav.open .map-pin:last-child { border-bottom: 0; }
  .map-nav.open .map-pin .pin-label {
    font-size: 1rem !important;
    text-align: left;
    width: 100%;
    display: block !important;
  }
  .map-nav.open .map-pin.active {
    background: rgba(238,108,81,.10);
  }
  @keyframes drawerSlide {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* ===== MOBILE: Nav links on second row (replaces drawer) ===== */
@media (max-width: 700px) {
  /* Hide hamburger — not needed when nav is visible */
  .nav-actions .nav-toggle {
    display: none !important;
  }

  /* Row 1: logo + sound toggle. Row 2: nav links */
  .nav-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    align-items: center;
  }
  .nav-row > .logo {
    flex: 0 0 auto;
  }
  .nav-actions {
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* Map nav forced to its own row, full width */
  .nav-row > .map-nav {
    display: flex !important;
    order: 99;
    flex-basis: 100%;
    width: 100%;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 6px 8px !important;
    background: rgba(255,248,236,0.7) !important;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    justify-content: flex-start !important;
    align-items: center;
    gap: 4px !important;
    -webkit-overflow-scrolling: touch;
  }
  .nav-row > .map-nav::-webkit-scrollbar { display: none; }

  .nav-row > .map-nav .map-pin {
    flex: 0 0 auto;
    flex-direction: row !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border-bottom: 0 !important;
  }
  .nav-row > .map-nav .map-pin .pin-label {
    font-size: 0.82rem !important;
    text-align: center;
    width: auto;
  }

  /* Center nav items if they fit; otherwise scroll */
  @media (min-width: 480px) {
    .nav-row > .map-nav {
      justify-content: center !important;
    }
  }
}

/* ===== COMPACT NAV LINKS (desktop fit) ===== */
.map-nav {
  padding: 4px 8px !important;
  gap: 2px !important;
  max-width: 560px !important;
}
.map-pin {
  padding: 6px 10px !important;
}
.map-pin .pin-label {
  font-size: 0.78rem !important;
  letter-spacing: 0.01em;
}

/* Tighter still on medium screens (tablet / small desktop) */
@media (max-width: 1100px) and (min-width: 701px) {
  .map-nav {
    padding: 3px 6px !important;
    gap: 0 !important;
    max-width: 480px !important;
  }
  .map-pin {
    padding: 6px 8px !important;
  }
  .map-pin .pin-label {
    font-size: 0.72rem !important;
  }
}

/* ===== UNIFIED NAV FONT SIZE (consistent across breakpoints) ===== */
.map-pin .pin-label,
.nav-row > .map-nav .map-pin .pin-label {
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.map-pin {
  padding: 8px 14px !important;
}
.map-nav {
  max-width: 720px !important;
  gap: 4px !important;
  padding: 4px 10px !important;
}

/* Cancel old breakpoint overrides */
@media (max-width: 1100px) and (min-width: 701px) {
  .map-pin .pin-label { font-size: 0.95rem !important; }
  .map-pin { padding: 8px 12px !important; }
}
@media (max-width: 700px) {
  .nav-row > .map-nav .map-pin .pin-label { font-size: 0.95rem !important; }
  .nav-row > .map-nav .map-pin { padding: 10px 14px !important; }
}

/* ===== MOBILE NAV: smaller font so 7 links fit one row ===== */
@media (max-width: 700px) {
  .nav-row > .map-nav {
    gap: 0 !important;
    padding: 4px 6px !important;
  }
  .nav-row > .map-nav .map-pin {
    padding: 8px 6px !important;
  }
  .nav-row > .map-nav .map-pin .pin-label {
    font-size: 0.72rem !important;
    letter-spacing: 0;
  }
}
@media (max-width: 380px) {
  .nav-row > .map-nav .map-pin {
    padding: 8px 4px !important;
  }
  .nav-row > .map-nav .map-pin .pin-label {
    font-size: 0.66rem !important;
  }
}

/* ===== MOBILE NAV: dynamic clamp sizing + centered ===== */
@media (max-width: 700px) {
  .nav-row > .map-nav {
    justify-content: center !important;
    gap: clamp(2px, 0.8vw, 6px) !important;
    padding: 6px clamp(4px, 2vw, 12px) !important;
  }
  .nav-row > .map-nav .map-pin {
    padding: clamp(6px, 1.6vw, 10px) clamp(6px, 1.8vw, 12px) !important;
  }
  .nav-row > .map-nav .map-pin .pin-label {
    /* Scales 11.2px → 14.5px between viewports 320px–700px */
    font-size: clamp(0.7rem, 2.5vw, 0.92rem) !important;
    letter-spacing: 0;
    white-space: nowrap;
  }
}
/* Cancel earlier static mobile sizes */
@media (max-width: 380px) {
  .nav-row > .map-nav .map-pin .pin-label {
    font-size: clamp(0.66rem, 2.6vw, 0.78rem) !important;
  }
  .nav-row > .map-nav .map-pin {
    padding: 6px 4px !important;
  }
}

/* ===== MARQUEE SPEED (faster on mobile) ===== */
@media (max-width: 700px) {
  .marquee-track {
    animation-duration: 16s !important;
  }
}
@media (max-width: 380px) {
  .marquee-track {
    animation-duration: 12s !important;
  }
}

/* Marquee — extra zip on mobile */
@media (max-width: 700px) {
  .marquee-track { animation-duration: 11s !important; }
}
@media (max-width: 380px) {
  .marquee-track { animation-duration: 8s !important; }
}

/* Marquee speed — final override using full shorthand */
@media (max-width: 700px) {
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 8s linear infinite !important;
  }
}
@media (max-width: 380px) {
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 6s linear infinite !important;
  }
}

/* Marquee speed — max specificity override */
@media (max-width: 700px) {
  .hero .marquee .marquee-track {
    animation: scroll-left 8s linear infinite !important;
    -webkit-animation: scroll-left 8s linear infinite !important;
  }
}
@media (max-width: 380px) {
  .hero .marquee .marquee-track {
    animation: scroll-left 6s linear infinite !important;
    -webkit-animation: scroll-left 6s linear infinite !important;
  }
}

/* Final marquee override — same 2s speed everywhere (matches source) */
@media (max-width: 700px) {
  .hero .marquee .marquee-track,
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 2s linear infinite !important;
    -webkit-animation: scroll-left 2s linear infinite !important;
    animation-duration: 2s !important;
  }
}
@media (max-width: 380px) {
  .hero .marquee .marquee-track,
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 2s linear infinite !important;
    -webkit-animation: scroll-left 2s linear infinite !important;
    animation-duration: 2s !important;
  }
}

/* ===== MARQUEE — fix seamless loop (no jerks) =====
   Replace flex `gap` with right-margin on each span so that
   translateX(-50%) lands EXACTLY at the start of the duplicated
   content, eliminating the visible "snap back" at end of each loop. */
.hero .marquee .marquee-track {
  gap: 0 !important;
}
.hero .marquee .marquee-track > span {
  margin-right: 48px;
  display: inline-block;
}

/* Mobile speed */
@media (max-width: 700px) {
  .hero .marquee .marquee-track,
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 14s linear infinite !important;
    -webkit-animation: scroll-left 14s linear infinite !important;
    animation-duration: 14s !important;
  }
}
@media (max-width: 380px) {
  .hero .marquee .marquee-track,
  .marquee .marquee-track,
  .marquee-track {
    animation: scroll-left 10s linear infinite !important;
    -webkit-animation: scroll-left 10s linear infinite !important;
    animation-duration: 10s !important;
  }
}
