/* Container que envolve a imagem */
.container-foto-marcavel {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.container-foto-marcavel img {
    display: block;
    width: 100%;
    cursor: crosshair; /* Muda o mouse para indicar que pode clicar */
}

/* O quadrado e o nome da pessoa marcada */
.tag-exibicao {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.8);
    border-radius: 4px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none; /* Para não bugar o clique na imagem */
}

.container-foto-marcavel:hover .tag-exibicao {
    opacity: 1; /* Só mostra as tags quando passa o mouse na foto */
}

.tag-nome-texto {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: -25px; /* Joga o nome um pouco pra baixo do quadrado */
    white-space: nowrap;
    font-weight: bold;
}

/* Janela de busca ao clicar */
.caixa-marcacao-busca {
    position: absolute;
    background: #111;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 10px;
    width: 200px;
    transform: translate(-50%, 15px);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.7);
}

.caixa-marcacao-busca input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    background: #222;
    color: #fff;
    border-radius: 4px;
    outline: none;
    font-size: 13px;
}

.resultados-busca-tags {
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
}

.resultado-user-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    transition: background 0.2s;
}

.resultado-user-tag:hover {
    background: #8B4513;
}

.resultado-user-tag img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.resultado-user-tag span {
    color: #fff;
    font-size: 13px;
}