/* Olho Amigo — Ocorrências
   O grosso do visual já vem de css/styles.css (profile-section,
   profile-collapsible, profile-contact-item, auth-field, btn-primary,
   btn-link etc). Este arquivo só cobre o que é específico daqui. */

.occ-detalhe__fotos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------- mapa admin ---------- */
#oc-status-filtro-wrap {
  margin: 0 20px 18px;
}
/* filtro de status das ocorrências públicas -- fundo mais escuro que
   o normal pra se destacar como controle, com um filtro de brilho que
   funciona igual nos temas claro e escuro (não precisa escolher uma
   cor fixa que ficaria errada num dos dois). */
#ocp-filtro-status {
  filter: brightness(0.85);
}

.occ-mapa {
  margin: 0 20px;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.occ-mapa-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 20px 14px;
  font-size: 12px;
  color: var(--muted);
}
.occ-mapa-legenda__item { display: inline-flex; align-items: center; gap: 6px; }
.occ-mapa-legenda__cor {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.occ-mapa-legenda__cor--aberta { background: #1565c0; }
.occ-mapa-legenda__cor--atendendo { background: #f9a825; }
.occ-mapa-legenda__cor--atrasado { background: #c62828; }
.occ-mapa-legenda__cor--resolvido { background: #2e7d32; }
.occ-mapa-legenda__cor--nao_resolvido { background: #6a1b9a; }
.occ-mapa-legenda__cor--cancelada { background: #546e7a; }
.occ-mapa-marker {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.occ-mapa-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 20px 0;
}
.occ-mapa-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.occ-mapa-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
}
.occ-mapa-stat__label {
  font-size: 11px;
  color: var(--muted);
}

/* ---------- popup de confirmação (ex: "Ocorrência registrada") ---------- */
.oa-popup { position: fixed; inset: 0; z-index: 1900; }
.oa-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 13, 0.7);
}
.oa-popup__card {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(88vw, 360px);
  padding: 28px 22px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.oa-popup__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.oa-popup__close svg { width: 14px; height: 14px; }
.oa-popup__icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(74, 175, 121, 0.15);
  color: #4aaf79;
  display: flex; align-items: center; justify-content: center;
}
.oa-popup__icon svg { width: 24px; height: 24px; }
.oa-popup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  color: var(--paper);
}
.oa-popup__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ---------- visualizador de fotos em tela cheia (carrossel) ---------- */
.oa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(6, 7, 8, 0.95);
  padding: calc(14px + var(--safe-top)) 14px calc(14px + var(--safe-bottom));
}
.oa-lightbox__close-x {
  position: absolute;
  top: max(14px, calc(14px + var(--safe-top)));
  right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  z-index: 2;
}
.oa-lightbox__close-x svg { width: 18px; height: 18px; pointer-events: none; }
.oa-lightbox__contador {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0 0 10px;
}
.oa-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.oa-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.oa-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  z-index: 2;
}
.oa-lightbox__nav--prev { left: 4px; }
.oa-lightbox__nav--next { right: 4px; }
.oa-lightbox__close-baixo {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 28px;
  border-radius: 999px;
  touch-action: manipulation;
  flex-shrink: 0;
}

/* ---------- avaliação por estrelas ---------- */
.oa-estrelas {
  display: flex;
  gap: 4px;
}
.oa-estrelas__btn {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  padding: 4px;
  color: var(--line);
}
.oa-estrelas__btn.is-ativa { color: #f0b429; }

/* ---------- destaque temporário (chegou por link compartilhado) ---------- */
.profile-contact-item.is-destacado {
  outline: 2px solid var(--iris-bright);
  outline-offset: 2px;
  transition: outline-color 2s ease;
}
