#ar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: black;
}

#ar-overlay.active { display: block; }

#ar-overlay a-scene {
  width: 100%;
  height: 100%;
}

#ar-close-btn {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 10010;
  background: rgba(61,43,31,0.9);
  border: 2px solid rgba(245,200,66,0.7);
  color: #F5C842;
  border-radius: 50%;
  width: 3.4rem;
  height: 3.4rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

#ar-close-btn:hover,
#ar-close-btn:active {
  transform: scale(1.12);
  background: rgba(139,90,0,0.95);
}

#ar-status {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  background: rgba(0,0,0,0.55);
  color: white;
  padding: 0.6em 1.4em;
  border-radius: 2em;
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  text-align: center;
  max-width: 80vw;
  white-space: nowrap;
}

#ar-loading {
  position: absolute;
  inset: 0;
  background: var(--bark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 10002;
  font-family: 'Crimson Pro', serif;
}

#ar-loading.hidden { display: none; }

.loading-bee {
  font-size: 3rem;
  animation: loadBee 1s ease-in-out infinite alternate;
}

@keyframes loadBee {
  from { transform: translateX(-20px) rotate(-10deg); }
  to   { transform: translateX(20px) rotate(10deg); }
}

#ar-loading p { font-size: 1rem; opacity: 0.7; }

#marker-info {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  padding: 3rem 1.5rem 1.5rem;
  color: white;
  font-family: 'Crimson Pro', serif;
}

#marker-info.visible { display: block; }
#marker-info h4 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--honey-light); }
#marker-info p { font-size: 0.9rem; opacity: 0.8; margin-top: 0.3rem; }
