/* Zee peek (index.html and map.html). Sits under the map's detail sheet (z 40) and full map (z 70). */
.zee-peek { position: fixed; right: 8px; bottom: 0; z-index: 30; width: 118px; height: 154px; pointer-events: none; padding-bottom: env(safe-area-inset-bottom); }
.zee-peek-link { position: absolute; inset: 0; pointer-events: auto; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.zee-peek-img {
  position: absolute; right: 0; bottom: -10px; width: 118px; height: auto;
  transform: translateY(110%); transition: transform 0.7s cubic-bezier(0.2, 1.4, 0.4, 1);
  filter: drop-shadow(0 0 10px rgba(162, 224, 104, 0.75)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}
.zee-peek.is-in .zee-peek-img { transform: translateY(0); animation: zeePeekBob 2.4s ease-in-out 0.8s infinite; }
@keyframes zeePeekBob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-6px) rotate(-3deg); } 75% { transform: translateY(-3px) rotate(3deg); } }
.zee-peek-bubble {
  position: absolute; right: 92px; bottom: 98px; width: 168px;
  background: #A2E068; color: #0D0D10; border-radius: 16px; padding: 0.55rem 0.7rem;
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; font-size: 0.95rem; line-height: 1.2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  opacity: 0; transform: scale(0.6); transform-origin: 100% 100%; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.zee-peek-bubble b { display: block; font-size: 0.8rem; margin-top: 0.2rem; color: #2a4a0a; }
.zee-peek-bubble::after { content: ""; position: absolute; right: -8px; bottom: 14px; border: 9px solid transparent; border-left-color: #A2E068; border-right: 0; }
.zee-peek.is-in .zee-peek-bubble { opacity: 1; transform: scale(1); transition-delay: 0.9s; }
.zee-peek.is-in .zee-peek-bubble.is-swap { opacity: 0; transform: scale(0.85); transition-delay: 0s; }
.zee-peek-x {
  position: absolute; right: 2px; top: -6px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #A2E068; background: #0F1D38; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer;
  pointer-events: auto; opacity: 0; transition: opacity 0.3s 1.2s;
}
.zee-peek.is-in .zee-peek-x { opacity: 1; }
@media (min-width: 760px) { .zee-peek { right: 24px; } }
@media (prefers-reduced-motion: reduce) {
  .zee-peek.is-in .zee-peek-img { animation: none; }
  .zee-peek-img, .zee-peek-bubble { transition: none; }
}
