/* ==========================================================================
   COMPONENTS.CSS – COMPONENTES DE INTERFACE E ELEMENTOS INTERATIVOS
   Ecossistema LABGEO / GEFORTE – Padrão Slate & Emerald Dark Studio
   ========================================================================== */

/* ==========================================================================
   INDICADOR DINÂMICO DE GRAVAÇÃO CONTÍNUA (.status-indicator)
   ========================================================================== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(3, 24, 17, 0.75);
  border: 1px solid var(--border-card);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.status-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   BOTÕES FLUTUANTES DO MAPA (.map-btn)
   ========================================================================== */
.map-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  padding: 10px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.map-btn:hover {
  transform: translateY(-2px);
  border-color: var(--border-focus);
  background: rgba(6, 45, 34, 0.95);
}

.map-btn-primary {
  background: linear-gradient(135deg, var(--btn-gradient-start), var(--btn-gradient-end));
  border-color: var(--border-focus);
  color: #ffffff;
}

.map-btn-primary:hover {
  opacity: 0.95;
}

.map-btn-accent {
  background: #d97706;
  border-color: #f59e0b;
  color: #ffffff;
}

.map-btn-accent:hover {
  background: #b45309;
}

.btn-secondary-sm {
  background: rgba(3, 24, 17, 0.6);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  flex: 1;
  text-align: center;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.btn-secondary-sm:hover {
  background: rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

/* ==========================================================================
   CAIXA DE COORDENADAS E CONTEXTO DIDÁTICO
   ========================================================================== */
.coords-info {
  background: rgba(1, 20, 14, 0.85);
  border: 1px solid var(--border-card);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: monospace;
}

.pedagogical-box {
  background: rgba(1, 20, 14, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}

.pedagogical-box h4 {
  color: var(--text-accent);
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copiloto-input-group {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn-copiloto {
  background: linear-gradient(135deg, #10b981, #047857);
  border: 1px solid var(--border-focus);
  color: #ffffff;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.btn-copiloto:hover {
  opacity: 0.9;
}

.copiloto-feedback-box {
  background: rgba(6, 45, 34, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.45;
}

/* ==========================================================================
   PRÉ-VISUALIZAÇÃO DE MULTIMÉDIA (FOTOGRAFIAS E ÁUDIO)
   ========================================================================== */
.fotos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.foto-preview-item {
  position: relative;
  width: 75px;
  height: 75px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-card);
}

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

.foto-preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(220, 38, 38, 0.85);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-preview {
  margin: 8px 0 14px;
}

.audio-preview audio {
  width: 100%;
  height: 38px;
  border-radius: 8px;
}

/* ==========================================================================
   LISTAGEM DE PONTOS NO PAINEL LATERAL
   ========================================================================== */
.pontos-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ponto-item {
  background: rgba(3, 24, 17, 0.7);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.ponto-item:hover {
  transform: translateX(-3px);
  border-color: var(--border-focus);
  background: rgba(6, 45, 34, 0.9);
}

.ponto-item h4 {
  color: var(--text-accent);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.ponto-meta {
  color: var(--text-secondary);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.badges-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.categoria-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.conceito-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(245, 166, 35, 0.15);
  color: var(--text-accent);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 30px 10px;
}

.msg-erro {
  color: #f87171;
  font-size: 0.82rem;
  margin-bottom: 12px;
  min-height: 1.2em;
}

/* ==========================================================================
   ECRÃ DE DETALHES AMPLIADOS (.detalhes-container)
   ========================================================================== */
.detalhes-container {
  padding: 24px;
  max-width: 600px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
}

.detalhes-container h2 {
  color: var(--text-accent);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.detalhes-container p {
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.detalhes-container p strong {
  color: var(--text-secondary);
}

.detalhes-fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.detalhes-fotos img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.detalhes-fotos img:hover {
  transform: scale(1.05);
  border-color: var(--border-focus);
}

.foto-ampliada {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 6000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.foto-ampliada img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 12px;
  border: 1px solid var(--border-focus);
}

/* ==========================================================================
   CUSTOMIZAÇÃO DO LEAFLET (POPUP E CONTROLES SLATE & EMERALD)
   ========================================================================== */
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-card) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-card) !important;
}

.leaflet-popup-tip {
  background: var(--bg-card) !important;
}

.leaflet-tooltip {
  background: var(--bg-input) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-focus) !important;
  border-radius: 6px !important;
  font-family: inherit !important;
  font-size: 0.8rem !important;
}