/* PAINEL PRODUTORES/EXPOSITORES/OUTROS (ENTIDADES) */

#entidades-panel {
  width: 50vw;
  height: 50vh;
  overflow-y: auto;
  background: rgb(244, 244, 244);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

#entidades-panel-label {
  display: flex;
  align-items: center;
  gap: 8px;

  flex: 1;
  padding: 6px 16px;

  background: rgba(255, 255, 255, 0.8);
  color: black;

  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;

  backdrop-filter: blur(8px);
}

/* input */
#entidades-panel-label input {
  border: none;
  outline: none;
  background: transparent;

  font-size: 12px;
  flex: 1;

  color: black;
}

/* placeholder */
#entidades-panel-label input::placeholder {
  color: rgba(0,0,0,0.5);
}

#entidades-panel-close {
  width: 28px;
  height: 28px;

  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);

  background: rgba(255,255,255,0.8);
  color: black;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  margin-left: 12px; /* espaço entre label e X */
}

#entidades-panel-header {
  width: 50vw; /* MESMA LARGURA DO PAINEL */

  display: flex;
  justify-content: space-between;
  align-items: center;
}

#entidades-center-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;    
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 12px;
  z-index: 10000;

  opacity: 1;
  pointer-events: auto;
  transition: 0.25s ease;
}

/* FECHADO */
#entidades-center-wrapper.closed {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
}

/* ITEM */
.entidades-item {
  width: 80%;
  padding: 10px 14px;

  margin: 0 auto; /* 👈 CENTRA */
  margin-top: 5px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: rgba(220, 220, 220, 0.947);

  font-size: 13px;
  cursor: pointer;

  transition: 0.2s;
  border: 1px solid rgba(0,0,0,0.1);
}

/* hover */
.entidades-item:hover {
  transform: scale(1.02);
  background: #f2f2f2;
}

/* ativo (igual ao antigo) */
.entidades-item.active {
  background: #2d2d2d;
  color: white;
}


@media (max-width: 768px) {

  #entidades-panel {
    width: 80vw;
    height: 60;
    border-radius: 14px;
  }

  #entidades-panel-header {
    width: 80vw;
  }

  #entidades-panel-label {
    padding: 6px 12px;
    font-size: 11px;
  }

  #entidades-panel-close {
    width: 34px;
    height: 34px;
  }

  .entidades-item {
    width: 72%;
    font-size: 14px;
  }
}