/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
:root {
  --font-heading: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Sleek, Premium Dark Color Palette */
  --bg-primary: #16254c;
  --bg-secondary: #0c152b;
  --bg-gradient: linear-gradient(135deg, #16254c 0%, #0c152b 100%);
  
  --glass-bg: rgba(17, 25, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(255, 255, 255, 0.15);
  
  --color-text-bright: #ffffff;
  --color-text-main: #cbd5e1;
  --color-text-muted: #64748b;
  
  /* Accents */
  --accent-coral: #ff4a5a;
  --accent-gold: #fcd34d;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  
  /* Category Colors */
  --cat-nature: #10b981;
  --cat-culture: #8b5cf6;
  --cat-history: #f59e0b;
  --cat-adventure: #ec4899;
  --cat-all: #3b82f6;

  /* Card highlights */
  --card-active-glow: 0 0 25px rgba(255, 74, 90, 0.35);
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  background-image: var(--bg-gradient);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

/* Header structures */
.header-nav-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-see-messages, .btn-back-map {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-see-messages:hover, .btn-back-map:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  box-shadow: 0 4px 15px rgba(255, 74, 90, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   BALLOON POP GAME & TOP HANGING BANNER
   ========================================== */
.balloon-hanging-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  z-index: 10;
  pointer-events: none;
  overflow: visible;
}

.balloon {
  position: absolute;
  width: 60px;
  height: 75px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  pointer-events: auto;
  cursor: pointer;
  animation: bobTop 3.5s ease-in-out infinite alternate;
  animation-delay: var(--delay);
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.balloon::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid currentColor;
}

.balloon-string {
  position: absolute;
  bottom: -40px;
  width: 2px;
  height: 35px;
  background: rgba(255, 255, 255, 0.4);
  transform-origin: top;
  animation: stringSway 2s ease-in-out infinite alternate;
}

/* Balloon Colors */
.balloon-red { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a); color: #c92a2a; }
.balloon-gold { background: radial-gradient(circle at 30% 30%, #ffd43b, #f59f00); color: #f59f00; }
.balloon-blue { background: radial-gradient(circle at 30% 30%, #4dadf7, #1971c2); color: #1971c2; }
.balloon-purple { background: radial-gradient(circle at 30% 30%, #d0bfff, #7048e8); color: #7048e8; }
.balloon-pink { background: radial-gradient(circle at 30% 30%, #faa2c1, #d6336c); color: #d6336c; }

@keyframes bobTop {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(12px) rotate(3deg); }
}

@keyframes stringSway {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

/* Confetti particles when balloon pops */
.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  animation: explode 0.8s ease-out forwards;
}

@keyframes explode {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ==========================================
   GOOFY WORD ART & HEADER
   ========================================== */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.5rem 0.75rem;
}

.birthday-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Vanamala Row: Groves on each side of centered text */
.vanamala-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0.5rem auto 0.5rem;
  overflow: visible;
}

.vanamala-text-center {
  flex-shrink: 0;
  text-align: center;
}

.vanamala-text-center .header-pre {
  font-size: 1.2rem;
  letter-spacing: 0.2em;
}

/* Birthday Row: Balloons on each side of heading with fireworks */
.birthday-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
}

/* Small Balloon Cluster */
.balloon-cluster-sm {
  position: relative;
  width: 100px;
  height: 80px;
  flex-shrink: 0;
  overflow: visible;
}

/* Small Balloons (50% size) */
.balloon.balloon-sm {
  width: 32px;
  height: 40px;
}

.balloon.balloon-sm .balloon-string {
  height: 20px;
  bottom: -25px;
}

/* Fireworks + Heading Wrapper */
.fireworks-heading-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fireworks-canvas {
  position: absolute;
  top: -40px;
  left: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 0;
}

.fireworks-heading-wrapper .goofy-word-art {
  position: relative;
  z-index: 1;
}

/* Legacy balloon cluster - keep for compatibility but unused */
.balloon-cluster {
  position: relative;
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  overflow: visible;
  display: none;
}

/* CARTOON FLOWER BOUQUET CSS STYLING */
.flower-bouquet {
  position: relative;
  width: 80px;
  height: 120px;
  flex-shrink: 0;
  overflow: visible;
  animation: bouquetSway 4s ease-in-out infinite alternate;
}

@keyframes bouquetSway {
  0% { transform: rotate(-2deg); }
  100% { transform: rotate(2deg); }
}

.stem {
  position: absolute;
  width: 4px;
  height: 60px;
  background: #10b981;
  border-radius: 2px;
  bottom: 0;
}
.stem-1 { left: 30px; transform: rotate(-15deg); transform-origin: bottom center; }
.stem-2 { left: 38px; height: 75px; }
.stem-3 { left: 46px; transform: rotate(15deg); transform-origin: bottom center; }

.flower {
  position: absolute;
  width: 40px;
  height: 40px;
  overflow: visible;
}

.flower-pink { left: 0px; top: 25px; }
.flower-gold { left: 20px; top: 5px; }
.flower-blue { left: 40px; top: 30px; }

.petal {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.flower-pink .petal { background: radial-gradient(circle at 30% 30%, #faa2c1, #d6336c); }
.flower-gold .petal { background: radial-gradient(circle at 30% 30%, #ffd43b, #f59f00); }
.flower-blue .petal { background: radial-gradient(circle at 30% 30%, #4dadf7, #1971c2); }

.petal.p1 { top: 0; left: 12px; }
.petal.p2 { top: 8px; left: 24px; }
.petal.p3 { top: 20px; left: 18px; }
.petal.p4 { top: 20px; left: 6px; }
.petal.p5 { top: 8px; left: 0px; }

.flower-center {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 30% 30%, #fff, #ffd43b);
  border-radius: 50%;
  top: 14px;
  left: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



@media (max-width: 768px) {
  .vanamala-row {
    gap: 0;
  }
  .birthday-row {
    gap: 0;
  }
  .fireworks-canvas {
    top: -20px;
    left: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 40px);
  }
}

.header-pre {
  font-family: var(--font-heading);
  color: var(--accent-coral);
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 0 10px rgba(255, 74, 90, 0.4);
}

.goofy-word-art {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  display: inline-block;
  user-select: none;
  margin-bottom: 1.5rem;
}

/* Dynamic character effects */
.goofy-word-art span {
  display: inline-block;
  animation: goofyWave 2s ease-in-out infinite;
  animation-delay: calc(var(--char-index, 0) * 0.1s);
  transform-origin: bottom center;
}

/* Give each letter a bright cartoon color and shadow */
.goofy-word-art span:nth-child(5n+1) {
  color: #ff595e;
  text-shadow: 
    2px 2px 0px #000, 
    4px 4px 0px #ffca3a, 
    6px 6px 0px #8ac926,
    8px 8px 15px rgba(0,0,0,0.5);
}
.goofy-word-art span:nth-child(5n+2) {
  color: #ffca3a;
  text-shadow: 
    2px 2px 0px #000, 
    4px 4px 0px #8ac926, 
    6px 6px 0px #1982c4,
    8px 8px 15px rgba(0,0,0,0.5);
}
.goofy-word-art span:nth-child(5n+3) {
  color: #8ac926;
  text-shadow: 
    2px 2px 0px #000, 
    4px 4px 0px #1982c4, 
    6px 6px 0px #6a4c93,
    8px 8px 15px rgba(0,0,0,0.5);
}
.goofy-word-art span:nth-child(5n+4) {
  color: #1982c4;
  text-shadow: 
    2px 2px 0px #000, 
    4px 4px 0px #6a4c93, 
    6px 6px 0px #ff595e,
    8px 8px 15px rgba(0,0,0,0.5);
}
.goofy-word-art span:nth-child(5n+5) {
  color: #6a4c93;
  text-shadow: 
    2px 2px 0px #000, 
    4px 4px 0px #ff595e, 
    6px 6px 0px #ffca3a,
    8px 8px 15px rgba(0,0,0,0.5);
}

@keyframes goofyWave {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-16px) scale(1.15) rotate(4deg); }
}

.header-subtitle {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.6;
}

.map-status {
  font-size: 0.95rem;
  color: var(--color-text-main);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
}

/* ==========================================
   MAP WORKSPACE & TWO-COLUMN SIDE-BY-SIDE LAYOUT
   ========================================== */
.map-workspace {
  margin-bottom: 3.5rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.map-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 0; /* Remove padding so the map stretches edge-to-edge */
  overflow: hidden;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}


.text-accent {
  color: var(--accent-coral);
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}


/* Side-by-side dashboard layout */
.map-layout-grid {
  display: block;
  position: relative;
  width: 100%;
}

.map-frame {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.us-cartoon-map {
  display: block;
  width: 100%;
  height: auto;
  background: #121829;
}

/* SVG Vector Landmarks sketches */
.landmark-sketch-vector {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.ocean-bg {
  transition: fill 0.3s ease;
}

.usa-landmass {
  transition: fill 0.3s ease;
}

/* Animations */
.sea-monster {
  animation: monsterSwim 5s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes monsterSwim {
  0% { transform: translateY(0) scaleX(1); }
  100% { transform: translateY(6px) scaleX(1.05); }
}

.sailing-boat {
  animation: boatSway 4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}

@keyframes boatSway {
  0% { transform: translate(1080px, 520px) rotate(-3deg); }
  100% { transform: translate(1090px, 518px) rotate(4deg); }
}

/* ==========================================
   CAROUSEL BAR (INLINE BELOW MAP)
   ========================================== */
.carousel-bar {
  background: rgba(10, 15, 30, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.75rem;
  padding: 0.65rem 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.carousel-bar.bar-playing {
  border-color: var(--accent-green);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.carousel-controls-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================
   SELECTED POST PANEL (BELOW MAP)
   ========================================== */
.selected-post-panel {
  margin-top: 1rem;
  background: rgba(8, 11, 22, 0.95);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.selected-post-panel.hidden {
  display: none;
}

.selected-post-panel .landmark-card {
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-radius: 0;
}

.selected-post-panel .landmark-card:hover {
  transform: none;
  box-shadow: none;
}

.selected-post-panel .card-media {
  padding-top: 45%;
}

.selected-post-panel .card-details {
  padding: 1.25rem;
}

/* Placeholder card state */
.sidebar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  height: 100%;
}

.placeholder-decor {
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(252, 211, 77, 0.3));
  animation: floatDecor 3s ease-in-out infinite alternate;
}

@keyframes floatDecor {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.placeholder-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text-bright);
  margin-bottom: 0.75rem;
}

.placeholder-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.placeholder-helper {
  font-size: 0.85rem;
  color: var(--accent-coral);
  background: rgba(255, 74, 90, 0.08);
  padding: 0.45rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 74, 90, 0.15);
  font-weight: 600;
}

.popup-fade-in {
  animation: popupSlideUp 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes popupSlideUp {
  0% { opacity: 0; transform: translateY(15px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   PINS & INTERACTIVE OVERLAY
   ========================================== */
.pins-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Pins styling - Pushpin style */
.map-pin {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  width: 32px;
  height: 64px;
  transform: translate(-50%, -100%);
  z-index: 5;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-pin::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.7); /* squashed vertically to lie flat on the map surface */
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 30% 30%, #ff8787, #e03131, #9b1c20);
  border-radius: 50%;
  z-index: 6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 0 6px rgba(224, 49, 49, 0.6);
}

.pin-marker {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 3D perspective to make it look like it's pointing out of the map/page towards the user */
  transform: perspective(400px) rotateX(-22deg) rotateY(18deg) rotateZ(12deg);
  transform-origin: 50% 95%; /* Rotate around the needle tip contact point */
  /* Deeper soft shadow representing a pin head floating in 3D space above the map */
  filter: drop-shadow(8px 18px 10px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.25s ease;
}

/* Relatively large and round red pin head at the top */
.pin-marker::before {
  content: "";
  width: 20px;
  height: 20px;
  /* Layered gradients for a high-gloss 3D glass/plastic sphere effect with specular highlight */
  background: 
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 30% 30%, #ff8787 0%, #e03131 55%, #7a0f14 100%);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease;
}

/* Long thin pin stem in the middle */
.pin-marker::after {
  content: "";
  width: 2px;
  height: 38px;
  background: linear-gradient(to right, #ffffff 0%, #cbd5e1 35%, #64748b 70%, #334155 100%);
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Dynamic pulsing anchor / heavy shadow */
.pin-pulse {
  position: absolute;
  width: 26px; /* slightly wider shadow */
  height: 8px; /* slightly taller shadow */
  background: rgba(0, 0, 0, 0.75); /* deeper/heavier shadow */
  border-radius: 50%;
  bottom: -3px;
  left: 52%; /* offset slightly to the right to align with right-tilted pin */
  transform: translateX(-50%);
  z-index: -1;
  animation: pinShadow 1.5s ease-in-out infinite alternate;
}

.pin-pulse::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -13px; /* adjusted for wider pulse */
  width: 52px;
  height: 20px;
  border: 2px solid #e03131;
  border-radius: 50%;
  opacity: 0;
  animation: pulseRipple 2s infinite;
}

@keyframes pinShadow {
  0% { transform: scale(1) translateX(-50%); opacity: 0.85; }
  100% { transform: scale(0.6) translateX(-50%); opacity: 0.35; }
}

@keyframes pulseRipple {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Hover & Active Pin State */
.map-pin:hover {
  transform: translate(-50%, -100%) scale(1.2);
  transform-origin: 50% 100%;
  z-index: 10;
}

.map-pin:hover .pin-marker {
  /* Rotate forward out of the screen (less negative/more forward tilt) and pop */
  transform: perspective(400px) rotateX(-5deg) rotateY(8deg) rotateZ(5deg);
  /* Shadow moves further away, becomes softer and more blurred as the head lifts */
  filter: drop-shadow(12px 26px 14px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.map-pin:hover .pin-marker::before {
  background: 
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 30% 30%, #ffc9c9 0%, #fa5252 55%, #9b1c20 100%);
}

.map-pin.pin-active {
  transform: translate(-50%, -100%) scale(1.25);
  transform-origin: 50% 100%;
  z-index: 10;
  animation: activePulseScale 0.6s ease-in-out infinite alternate;
}

.map-pin.pin-active .pin-marker {
  /* Maintain 3D pop elevation and tilt during active state */
  transform: perspective(400px) rotateX(-5deg) rotateY(8deg) rotateZ(5deg);
  filter: drop-shadow(12px 26px 14px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.map-pin.pin-active .pin-marker::before {
  background: 
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 30% 30%, #ffc9c9 0%, #fa5252 55%, #9b1c20 100%);
  box-shadow: 0 0 15px rgba(250, 82, 82, 0.6), inset -2px -2px 5px rgba(0,0,0,0.4);
}

.map-pin.pin-active .pin-pulse::after {
  border-color: #ff8787;
  animation-duration: 1s;
}

@keyframes activePulseScale {
  0% { transform: translate(-50%, -100%) scale(1.2); }
  100% { transform: translate(-50%, -100%) scale(1.3); }
}

/* Category specific colors for ground pulses */
.map-pin[data-category="nature"] .pin-pulse::after { border-color: var(--cat-nature); }
.map-pin[data-category="culture"] .pin-pulse::after { border-color: var(--cat-culture); }
.map-pin[data-category="history"] .pin-pulse::after { border-color: var(--cat-history); }
.map-pin[data-category="adventure"] .pin-pulse::after { border-color: var(--cat-adventure); }

/* Carousel button styles (shared) */
.carousel-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.play-pause-btn {
  width: auto;
  height: 44px;
  padding: 0 1.5rem;
  border-radius: 99px;
  background: rgba(255, 74, 90, 0.1);
  border: 1px solid rgba(255, 74, 90, 0.25);
  color: var(--accent-coral);
  font-weight: 700;
  display: flex;
  gap: 0.6rem;
  box-shadow: 0 0 12px rgba(255, 74, 90, 0.1);
}

.play-pause-btn:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 74, 90, 0.35);
}

.play-pause-btn.playing {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
}

.play-pause-btn.playing:hover {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #fff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

/* ==========================================
   NON-BLOCKING SLIDE-OUT CREATION SIDEBAR (z-index: 900)
   ========================================== */
.add-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: rgba(8, 11, 22, 0.97);
  border-left: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: -10px 0 45px rgba(0, 0, 0, 0.6);
  z-index: 900;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.add-sidebar.sidebar-visible {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-close-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar-close-btn:hover {
  color: #fff;
}

.sidebar-form {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 80px);
  overflow-y: auto;
  padding-right: 0.2rem;
}

/* ==========================================
   PLACEMENT HELPER OVERLAY
   ========================================== */
.map-placement-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 9, 19, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.map-placement-overlay.active {
  opacity: 1;
  visibility: visible;
}

.helper-content {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  background: #0f1426;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 320px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.map-placement-overlay.active .helper-content {
  transform: scale(1);
}

.bounce-icon {
  font-size: 3rem;
  color: var(--accent-coral);
  margin-bottom: 1rem;
  animation: iconBounce 1s infinite alternate;
}

@keyframes iconBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.helper-content p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}


/* ==========================================
   DETAIL CARDS (MESSAGES BOARD GRID)
   ========================================== */
.cards-workspace {
  margin-top: 2rem;
  margin-bottom: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.top-mode-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: all 0.3s ease;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  transition: all 0.3s ease;
}

.landmark-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  position: relative;
}

.landmark-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-media {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #0d1222;
}

.card-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.landmark-card:hover .card-img {
  transform: scale(1.06);
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 2;
}

.card-media:hover .media-nav {
  opacity: 1;
  visibility: visible;
}

.media-nav:hover {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
}

.media-prev { left: 10px; }
.media-next { right: 10px; }

.media-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 99px;
}

.media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transition: all 0.2s ease;
}

.media-dot.active {
  background: #fff;
  width: 12px;
  border-radius: 3px;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.badge-nature { background: var(--cat-nature); }
.badge-culture { background: var(--cat-culture); }
.badge-history { background: var(--cat-history); }
.badge-adventure { background: var(--cat-adventure); }

.card-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-bright);
}

.card-location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.card-note {
  font-size: 0.92rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.btn-card-media-focus {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(16, 185, 129, 0.9);
  color: #fff !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-media-focus:hover {
  background: var(--accent-green);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-card-media-delete {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(239, 68, 68, 0.9);
  color: #fff !important;
  border: 1px solid rgba(239, 68, 68, 0.3);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.btn-card-media-delete:hover {
  background: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.empty-feed {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--glass-bg);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.empty-feed i {
  font-size: 3rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.empty-feed h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-feed p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ==========================================
   MODAL WINDOW (PIN FORM SIDEBAR ELEMENTS)
   ========================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: 0.5rem;
}

.text-danger {
  color: var(--accent-coral);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-coral);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(255, 74, 90, 0.15);
}

.file-input-hidden {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.file-upload-label:hover {
  border-color: var(--accent-coral);
  background: rgba(255, 74, 90, 0.02);
}

.file-upload-label i {
  font-size: 1.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.file-upload-label:hover i {
  color: var(--accent-coral);
}

.file-upload-label span {
  font-size: 0.85rem;
  color: var(--color-text-main);
}

.file-preview-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.file-preview-item {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.file-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.25rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  background: var(--accent-green);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  background: #34d399;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.btn-sm {
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
  border-radius: 8px !important;
}

/* ==========================================
   APP FOOTER
   ========================================== */
.app-footer {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.app-footer p {
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-size: 0.8rem;
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 992px) {
  .map-layout-grid {
    display: block;
  }
  
  .add-sidebar {
    width: 320px;
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0;
  }
  
  .birthday-header {
    padding: 0 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .goofy-word-art {
    font-size: 2rem;
  }
  
  .header-pre {
    font-size: 0.75rem;
  }
  
  .header-nav-row {
    padding: 0 0.5rem;
  }
  

  .map-workspace {
    margin-bottom: 2rem;
  }
  
  .map-card {
    border-radius: 12px;
  }
  
  .map-frame {
    border-radius: 12px;
  }
  
  .carousel-bar {
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
  }
  

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .play-pause-btn {
    height: 40px;
    font-size: 0.8rem;
    padding: 0 1rem;
  }
  
  .selected-post-panel {
    margin-top: 0.75rem;
    border-radius: 12px;
  }
  
  .selected-post-panel .card-media {
    padding-top: 50%;
  }
  
  .cards-workspace {
    padding: 0 0.5rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feed-header {
    margin-top: 1rem;
    margin-bottom: 1.25rem;
  }
  
  .feed-title {
    font-size: 1.3rem;
  }
  
  .add-sidebar {
    width: 100%;
    border-left: none;
  }
}

@media (max-width: 480px) {
  .goofy-word-art {
    font-size: 1.6rem;
  }
  
  .map-stat-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }
  
  .map-stats-badges {
    gap: 0.4rem;
  }
  
  .carousel-controls-wrapper {
    gap: 0.75rem;
  }
  
  .play-pause-btn {
    padding: 0 0.85rem;
    font-size: 0.75rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-note {
    font-size: 0.85rem;
  }
  
  .card-details {
    padding: 1rem;
  }
}

/* ==========================================
   GROVE DECORATIONS & FAUNA STYLES (HEADER CELEBRATION CLUSTER)
   ========================================== */
.header-grove {
  position: relative;
  width: 140px;
  height: 120px;
  flex-shrink: 0;
  overflow: visible;
  pointer-events: none;
}

.header-grove-left {
  margin-right: 1.5rem;
}

.header-grove-right {
  margin-left: 1.5rem;
}

/* Trees styling inside header grove */
.header-grove .grove-tree {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: bottom center;
  animation: treeSway 6s ease-in-out infinite alternate;
}

@keyframes treeSway {
  0% { transform: rotate(-1.5deg); }
  100% { transform: rotate(1.5deg); }
}

.header-grove .tree-hl { left: 0px; bottom: 8px; z-index: 1; transform: scale(0.95); --scale: 0.95; }
.header-grove .tree-hl2 { left: 32px; bottom: 0px; z-index: 2; transform: scale(0.75); --scale: 0.75; }
.header-grove .tree-hr { right: 0px; bottom: 8px; z-index: 1; transform: scale(0.95); --scale: 0.95; }
.header-grove .tree-hr2 { right: 32px; bottom: 0px; z-index: 2; transform: scale(0.75); --scale: 0.75; }

.grove-tree .trunk {
  width: 12px;
  height: 48px;
  background: linear-gradient(to right, #78350f, #451a03);
  border-radius: 4px;
  z-index: 1;
}

/* Leafy Canopy */
.tree-leafy .leaves {
  position: absolute;
  background: radial-gradient(circle at 35% 35%, #10b981, #047857);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.tree-leafy .leaves-1 { width: 62px; height: 62px; bottom: 38px; z-index: 2; }
.tree-leafy .leaves-2 { width: 48px; height: 48px; bottom: 62px; left: -6px; z-index: 3; background: radial-gradient(circle at 35% 35%, #34d399, #059669); }
.tree-leafy .leaves-3 { width: 48px; height: 48px; bottom: 58px; right: -6px; z-index: 3; }

/* Pine Canopy */
.tree-pine .pine-needles {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-bottom: 38px solid #065f46;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.tree-pine .p-1 { bottom: 32px; border-bottom-color: #064e3b; z-index: 2; border-left-width: 32px; border-right-width: 32px; border-bottom-width: 42px; }
.tree-pine .p-2 { bottom: 56px; border-bottom-color: #065f46; z-index: 3; border-left-width: 26px; border-right-width: 26px; border-bottom-width: 34px; }
.tree-pine .p-3 { bottom: 78px; border-bottom-color: #0d9488; z-index: 4; border-left-width: 18px; border-right-width: 18px; border-bottom-width: 26px; }

/* Baby Fawn in Profile (Facing Left) */
.header-grove .deer-header {
  position: absolute;
  left: 10px;
  bottom: 0px;
  width: 55px;
  height: 75px;
  z-index: 1;
  animation: deerHeaderPeek 9s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  transform-origin: bottom center;
}

@keyframes deerHeaderPeek {
  0%, 20%, 75%, 100% { transform: translateX(-80px) scale(0.85); }
  30%, 65% { transform: translateX(0) scale(0.85); }
}

.deer-body {
  position: absolute;
  left: 12px;
  bottom: 18px;
  width: 34px;
  height: 20px;
  background: #d97706;
  border-radius: 12px 10px 8px 10px;
  box-shadow: inset -1.5px -1.5px 4px rgba(0,0,0,0.15);
  z-index: 2;
}

.deer-tail {
  position: absolute;
  right: -3px;
  top: 2px;
  width: 6px;
  height: 9px;
  background: #78350f;
  border-radius: 50% 0 50% 50%;
  transform: rotate(35deg);
  transform-origin: top left;
}

.deer-spots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.deer-spots .spot {
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}
.deer-spots .spot-1 { left: 10px; top: 4px; }
.deer-spots .spot-2 { left: 16px; top: 5px; }
.deer-spots .spot-3 { left: 22px; top: 4px; }
.deer-spots .spot-4 { left: 14px; top: 10px; }
.deer-spots .spot-5 { left: 20px; top: 11px; }

.deer-neck {
  position: absolute;
  left: 15px;
  bottom: 28px;
  width: 9px;
  height: 26px;
  background: #d97706;
  transform: rotate(-25deg);
  transform-origin: bottom center;
  border-radius: 3px;
  z-index: 3;
}

.deer-head {
  position: absolute;
  top: -8px;
  left: -6px;
  width: 17px;
  height: 15px;
  background: #d97706;
  border-radius: 50% 50% 45% 45%;
  transform: rotate(25deg);
}

/* Large cute baby ears */
.deer-ears {
  position: absolute;
  top: -8px;
  right: 0px;
}
.deer-ears .ear-near, .deer-ears .ear-far {
  position: absolute;
  width: 5px;
  height: 12px;
  border-radius: 50% 50% 0 0;
  transform-origin: bottom center;
}
.deer-ears .ear-near {
  background: #d97706;
  right: -1px;
  transform: rotate(15deg);
  z-index: 2;
}
.deer-ears .ear-near::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 8px;
  background: #fca5a5;
  border-radius: 50% 50% 0 0;
  top: 2px;
  left: 1px;
}
.deer-ears .ear-far {
  background: #b45309;
  right: 4px;
  transform: rotate(-5deg);
  z-index: 1;
}

.deer-face .eye {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  background: #000;
  border-radius: 50%;
  top: 4px;
  left: 4px;
}

.deer-face .muzzle {
  position: absolute;
  width: 7px;
  height: 6px;
  background: #fef08a;
  border-radius: 50%;
  top: 6px;
  left: -2px;
}
.deer-face .muzzle::after {
  content: "";
  position: absolute;
  width: 2.5px;
  height: 2px;
  background: #000;
  border-radius: 50%;
  top: 1px;
  left: 0px;
}

/* Spindly baby legs */
.deer-legs .leg {
  position: absolute;
  width: 2.5px;
  height: 18px;
  border-radius: 1px;
  bottom: 0px;
  border-bottom: 2.5px solid #1a0a02;
}
.deer-legs .leg-back-near {
  background: #d97706;
  left: 38px;
  z-index: 3;
}
.deer-legs .leg-back-far {
  background: #b45309;
  left: 35px;
  z-index: 1;
}
.deer-legs .leg-front-near {
  background: #d97706;
  left: 16px;
  z-index: 3;
}
.deer-legs .leg-front-far {
  background: #b45309;
  left: 13px;
  z-index: 1;
}

/* Squirrel in Profile */
.header-grove .squirrel-header {
  position: absolute;
  left: 88px;
  bottom: 0px;
  width: 30px;
  height: 35px;
  z-index: 2;
  animation: squirrelHeaderPeek 7s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  transform-origin: bottom center;
}

@keyframes squirrelHeaderPeek {
  0%, 15%, 80%, 100% { transform: translateX(80px) scale(0.9); }
  25%, 70% { transform: translateX(0) scale(0.9); }
}

.squirrel-body {
  position: absolute;
  left: 5px;
  bottom: 6px;
  width: 14px;
  height: 18px;
  background: #c2410c;
  border-radius: 50% 50% 40% 40%;
  z-index: 2;
}

.squirrel-belly {
  position: absolute;
  right: -1px;
  top: 4px;
  width: 6px;
  height: 10px;
  background: #ffedd5;
  border-radius: 50%;
}

.squirrel-hands {
  position: absolute;
  right: -2px;
  top: 7px;
  width: 5px;
  height: 4px;
  background: #9a3412;
  border-radius: 3px;
  transform: rotate(-10deg);
}
.squirrel-hands::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -1px;
  width: 3px;
  height: 3px;
  background: #78350f;
  border-radius: 50% 50% 100% 100%;
}

.squirrel-head {
  position: absolute;
  left: 10px;
  bottom: 21px;
  width: 11px;
  height: 11px;
  background: #c2410c;
  border-radius: 50% 50% 45% 45%;
  z-index: 3;
}

.squirrel-ear {
  position: absolute;
  top: -5px;
  left: 2px;
  width: 3px;
  height: 7px;
  background: #c2410c;
  border-radius: 50% 50% 0 0;
  transform: rotate(5deg);
}

.squirrel-eye {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #000;
  border-radius: 50%;
  top: 3px;
  right: 3px;
}

.squirrel-nose {
  position: absolute;
  width: 1.5px;
  height: 1.5px;
  background: #000;
  border-radius: 50%;
  top: 5px;
  right: -1px;
}

.squirrel-tail {
  position: absolute;
  left: -8px;
  bottom: 10px;
  width: 16px;
  height: 22px;
  background: #ea580c;
  border-radius: 80% 20% 80% 20% / 80% 20% 80% 20%;
  transform: rotate(-15deg);
  transform-origin: bottom right;
  z-index: 1;
  animation: squirrelTailTwitch 1.5s ease-in-out infinite alternate;
}

@keyframes squirrelTailTwitch {
  0% { transform: rotate(-15deg) scaleY(1); }
  100% { transform: rotate(-5deg) scaleY(1.08); }
}

.squirrel-legs .s-leg {
  position: absolute;
  bottom: 0px;
  width: 4px;
  height: 7px;
  background: #9a3412;
  border-radius: 2px;
}
.squirrel-legs .s-leg-back {
  left: 6px;
}
.squirrel-legs .s-leg-front {
  left: 12px;
}

/* Nested flower bouquets styles */
.header-grove .flower-bouquet {
  position: absolute;
  bottom: 0;
  z-index: 3;
  width: 80px;
  height: 120px;
  overflow: visible;
  animation: bouquetSway 4s ease-in-out infinite alternate;
}

.header-grove-left .left-bouquet {
  left: 65px;
  transform: scale(0.85);
  transform-origin: bottom center;
}

.header-grove-right .right-bouquet {
  right: 65px;
  transform: scale(0.85);
  transform-origin: bottom center;
}

/* Buzzing Bees in Right Header Grove */
.header-grove .grove-fauna-bee {
  position: absolute;
  width: 20px;
  height: 15px;
  z-index: 4;
  pointer-events: none;
}

.header-grove .bee-h1 {
  left: 10px;
  top: -20px;
  animation: beeHeaderBuzz1 10s ease-in-out infinite;
}

.header-grove .bee-h2 {
  right: 20px;
  top: 15px;
  animation: beeHeaderBuzz2 12s ease-in-out infinite;
}

@keyframes beeHeaderBuzz1 {
  0%, 100% { transform: translate(0, 0) scaleX(1); }
  50% { transform: translate(45px, -15px) scaleX(-1); }
}

@keyframes beeHeaderBuzz2 {
  0%, 100% { transform: translate(0, 0) scaleX(-1); }
  50% { transform: translate(-40px, 25px) scaleX(1); }
}

.bee-body {
  position: relative;
  width: 100%;
  height: 100%;
  background: #fbbf24;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.bee-stripes {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 5px,
    #1e293b 5px,
    #1e293b 9px
  );
}

.bee-wings {
  position: absolute;
  top: -6px;
  left: 4px;
  width: 12px;
  height: 8px;
  display: flex;
  gap: 2px;
}

.bee-wings::before, .bee-wings::after {
  content: "";
  width: 5px;
  height: 7px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transform-origin: bottom center;
  animation: wingFlap 0.1s linear infinite;
}
.bee-wings::after { animation-delay: 0.05s; }

@keyframes wingFlap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.2); }
}


/* ==========================================
   SPA MESSAGES FEED HEADER & STATE
   ========================================== */
.feed-header {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.feed-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-text-bright);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.feed-title i {
  font-size: 1.4rem;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.feed-subtitle {
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.empty-feed {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--glass-bg);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  color: var(--color-text-muted);
}

.empty-feed i {
  font-size: 3rem;
  color: var(--accent-coral);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-feed h3 {
  color: var(--color-text-bright);
  margin-bottom: 0.5rem;
}

.btn-card-focus {
  background: var(--accent-green);
  color: #fff;
  border: none;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-card-focus:hover {
  background: #34d399;
  transform: translateY(-1px);
}

/* Red circle X close button for clearing sidebar focus */
.btn-card-clear {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: #ef4444;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-card-clear:hover {
  background: #f87171;
  transform: scale(1.15) rotate(90deg);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.7);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Mobile responsive scaling for Groves and Balloons */
@media (max-width: 600px) {
  .grove-row-top {
    transform: scale(0.75);
    transform-origin: bottom center;
    margin-bottom: 0.5rem !important;
    margin-top: 0.5rem;
  }
  .balloon-cluster-sm {
    transform: scale(0.65);
    transform-origin: center;
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* Narasimha Murti (Paranitya) Responsive Styles & Spin Animation */
.satellite-landmark-murti {
  position: absolute;
  left: 61.56%;
  top: 70.49%;
  width: 19.14%; /* 196px / 1024px scaled relative to map size (30% decrease from 280px) */
  max-width: 196px;
  min-width: 84px; /* Prevent it from getting too small on tiny mobile screens */
  aspect-ratio: 1 / 1;
  pointer-events: auto;
  z-index: 7;
  transform: translate(-50%, -100%);
  transform-origin: bottom center;
}

.satellite-landmark-murti img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(4px 10px 6px rgba(0,0,0,0.65));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  display: block;
}

.satellite-landmark-murti img:hover {
  transform: scale(1.2) translateY(-8px);
}

.satellite-landmark-murti img.spinning {
  animation: spin-rapid 0.8s ease-in-out;
}

@keyframes spin-rapid {
  0% {
    transform: scale(1.2) translateY(-8px) rotate(0deg);
  }
  100% {
    transform: scale(1.2) translateY(-8px) rotate(1080deg);
  }
}

/* Netlify Identity Widget Overrides */
#netlify-identity-widget,
.netlify-identity-widget,
.netlify-identity-overlay {
  z-index: 100000 !important;
  position: fixed !important;
  pointer-events: auto !important;
}



